The "To Keep Up" Wiki

A collection of information we find useful

User Tools

Site Tools


dokuwiki_annoyances

This is an old revision of the document!


This page last changed 2023.08.23 16:28 visits: 7 times today, 19 times yesterday, and 4600 total times

Dokuwiki Annoyances

The dropdowns in upper-right don't work

When you select the person-dropdown and others in upper right to right of Search, nothing happens. You expect to see your name, update profile, and admin, but the dropdown doesn't drop down.

This is because a flag defer_js is set.

To undo this:

On the config page, the setting is in Feature Flags, after Advanced and before Network

Inserting Picture Files

If you upload a jpg and can't get it to be inserted, this is why. You need to rename its extent to jpeg, upload, and reference it with .jpeg extent.

So you need to rename something.jpg to be something.jpeg, upload and reference it as something.jpeg: {{something.jpeg?linkonly}} (the 'linkonly' is optional, it links to the picture, click-to-see-it, rather than insert-the-picture-here)

Tables

Including | in Table Entry

Using | in a table
Normally, when you use a | inside a table, it's treated as start-next-column. If you want it to be treated as a regular character (for example: ls | more in Linux, where the | is part of the command sequence, then surround the | in two pair of % or use nowiki.

paging file listingls -lt | morels -lt | more

Coloring a cell

|@palegreen:cell1|@:cell2|@#FF00FF:cell3|

cell1cell2cell3

Coloring text

<color /#ccccff>text1 background</color> <color green>text2</color> <color #00FFFF>text3</color> <color red/green>text4</color>
text1 background text2 text3 text4

Specifying column widths

Put this on the line before the start of the table. This example shows a spec for a 4-column table. 100% means you're dealing with the entire table width. 14%, 10%, and 1% specify the relative width for those three columns; the - means the rest of the width goes into that table.
|< 100% 14% - 10% 1%>|

Col1Column 2, the wordy column.Column 34th


This example is for a 3-column table, that's only using 3/4 of page width. The first two columns are smaller and the remainder of the table is taken by the contents of the 3rd column. |< 75% 10% 13% ->|

July 4, 2023watch fireworksNow is the time for all good people to view fireworks. From a safe distance.

Hiding text

The Hidden plugin does the job.

If you use: <hidden click to show>the text to be shown or hidden</hidden> it works like this:

click to show

click to show

the text to be shown or hidden



If you want to control initial state visible/not and change text shown depending on visible/not, use:
<hidden initialState="visible" onVisible="Click to hide" onHidden="click to show ">Text to be seen or not seen</hidden> and it works like this:

click to show

Click to hide

Text to be seen or not seen



Insert spreadsheet contents to wiki

Use the CSV Plugin. Insert using CSV or reference a CSV file that's in the wiki.

Inline CSV
Save the spreadsheet page as a CSV file, then open the file using text editor, copy all and paste between the csv's:

<csv>
copied,csv,file,goes,here
</csv>

use file in media area
You copy the CSV file to your media area. Maybe it's in namespace abc and file is named mystuff.csv.

<csv abc:mystuff.csv></csv>

Options of note

  • Format first (eg) 2 rows as column headers: hdr_rows=2
  • Format first (eg) 1 column as column header: hdr_cols=1
  • Limit result to 12 rows: maxlines=12
  • Skip first 7 rows in file: offset=7

For example

<csv hdr_rows=1>
abc,def,ghi
jkl,mno,pqr
</csv>
abcdefghi
jklmnopqr

{{gallery>:namespace:someimage.jpg}}
{{gallery>:namespace}}

NEEDS MORE DETAIL

dokuwiki_annoyances.1692833329.txt.gz · Last modified: 2023.08.23 19:28 by Steve Isenberg