dokuwiki_annoyances
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
dokuwiki_annoyances [2023.07.27 09:01] – Steve Isenberg | dokuwiki_annoyances [2024.09.20 13:20] (current) – Steve Isenberg | ||
---|---|---|---|
Line 2: | Line 2: | ||
=====Dokuwiki Annoyances===== | =====Dokuwiki Annoyances===== | ||
+ | //These are notes for Dokuwiki functions that I find helpful and that I've used throughout this wiki. This information is not intended to replace the plugin and Dokuwiki documentation, | ||
====The dropdowns in upper-right don't work==== | ====The dropdowns in upper-right don't work==== | ||
Line 28: | Line 29: | ||
Using | in a table\\ | Using | in a table\\ | ||
- | Normally, when you use a | inside a table, it's treated as start-next-column. | + | Normally, when you use a '' |
- | |paging file listing|ls -lt %%|%% more|ls -lt < | + | |
+ | < | ||
+ | |paging file listing | ls -lt %%|%% more | ls -lt < | ||
+ | </ | ||
+ | |||
+ | |paging file listing | ls -lt %%|%% more | ls -lt < | ||
===Coloring a cell=== | ===Coloring a cell=== | ||
- | <nowiki> | + | <code> |
- | |@palegreen: | + | | @palegreen: |
+ | </code> | ||
+ | | @palegreen: | ||
===Coloring text=== | ===Coloring text=== | ||
- | <nowiki>< | + | <code> |
- | <color /# | + | <color /# |
+ | </code> | ||
+ | |||
+ | <color /# | ||
+ | |||
+ | ===Specifying column widths==== | ||
+ | Put this on the line before the start of the table. | ||
+ | |||
+ | < | ||
+ | |< 100% 14% - 10% 1%>| | ||
+ | |Col1|Column 2, the wordy column.|Column 3|4th| | ||
+ | </ | ||
+ | |||
+ | |< 100% 14% - 10% 1%>| | ||
+ | |Col1|Column 2, the wordy column.|Column 3|4th| | ||
+ | |||
+ | |||
+ | This example is for a 3-column table, that's only using 3/4 of page width. | ||
+ | |||
+ | < | ||
+ | |< 75% 10% 13% ->| | ||
+ | |July 4, 2023|watch fireworks|Now is the time for all good people to view fireworks. From a safe distance.| | ||
+ | </ | ||
+ | |< 75% 10% 13% ->| | ||
+ | |July 4, 2023|watch fireworks|Now is the time for all good people to view fireworks. From a safe distance.| | ||
====Hiding text==== | ====Hiding text==== | ||
The Hidden plugin does the job. | The Hidden plugin does the job. | ||
- | If you use: '' | + | <code> |
<hidden click to show>the text to be shown or hidden</ | <hidden 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/ | + | |
- | '' | + | <hidden click to show>the text to be shown or hidden</ |
- | <hidden initialState=" | + | \\ |
+ | If you want to control initial state visible/not and change text shown depending on visible/ | ||
+ | <code> | ||
+ | <hidden initialState=" | ||
+ | <hidden initialState=" | ||
+ | </code> | ||
+ | |||
+ | <hidden initialState=" | ||
+ | <hidden initialState=" | ||
+ | |||
+ | |||
+ | ---- | ||
+ | |||
+ | ====Insert spreadsheet contents to wiki==== | ||
+ | Use the CSV Plugin. | ||
+ | |||
+ | **//Inline CSV//**\\ | ||
+ | Save the spreadsheet page as a CSV file, then open the file using text editor, copy all and paste between the csv' | ||
+ | < | ||
+ | < | ||
+ | copied, | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | **//use file in media area//**\\ | ||
+ | You copy the CSV file to your media area. Maybe it's in namespace '' | ||
+ | < | ||
+ | <csv abc: | ||
+ | </ | ||
+ | |||
+ | **//Options of note//** | ||
+ | * Format first (eg) 2 rows as column headers: '' | ||
+ | * Format first (eg) 1 column as column header: '' | ||
+ | * Limit result to 12 rows: '' | ||
+ | * Skip first 7 rows in file: '' | ||
+ | |||
+ | For example | ||
+ | < | ||
+ | <csv hdr_rows=1> | ||
+ | abc, | ||
+ | jkl, | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | <csv hdr_rows=1> | ||
+ | abc, | ||
+ | jkl, | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ====Using the Gallery Plugin==== | ||
+ | |||
+ | ==Add photos by using a namespace== | ||
+ | < | ||
+ | {{gallery>: | ||
+ | </ | ||
+ | All image files in that namespace will be added to the gallery. | ||
+ | |||
+ | ==Options of note== | ||
+ | |||
+ | Aligning the pictures | ||
+ | < | ||
+ | {{gallery> | ||
+ | {{gallery>: | ||
+ | {{gallery> | ||
+ | </ | ||
+ | |||
+ | ^Option name | ||
+ | |thumbnail size | ||
+ | |lightbox size |1024X768|capital X| | ||
+ | |limit to 10 images |=10| | ||
+ | |sort pix randomly | ||
+ | |sort by mod date | ||
+ | |sort by create date|datesort| | ||
+ | |show filename below thumbnails|showname| | ||
+ | |don't crop pix | ||
+ | |don't search subdirs|norecursive|recursive search enabled by default| | ||
+ | |||
+ | Example: Photos with name, not cropped, reasonable expanded size, landscape thumbnails: | ||
+ | < | ||
+ | {{gallery>: | ||
+ | </code> | ||
+ | |||
+ | ====Add text from a file with wrapping==== | ||
+ | You have text you want to add to a wiki page, and you want to make sure that it's inserted with line wraps. | ||
+ | |||
+ | For example if you have the text | ||
+ | |||
+ | < | ||
+ | 11:29:43 message to everyone: | ||
+ | Sabine Hossenfelder (born 1976) is a German professional YouTuber, theoretical physicist, science communicator, | ||
+ | </ | ||
+ | |||
+ | But you want it to look like this, note that you don't have to scroll left and right to read the whole line: | ||
+ | |||
+ | <WRAP prewrap> | ||
+ | < | ||
+ | 11:29:43 message to everyone: | ||
+ | Sabine Hossenfelder (born 1976) is a German professional YouTuber, theoretical physicist, science communicator, | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | You surround the lines as follows: | ||
+ | < | ||
+ | <WRAP prewrap> | ||
+ | < | ||
+ | 11:29:43 message to everyone: | ||
+ | Sabine Hossenfelder (born 1976) is a German professional YouTuber, theoretical physicist, science communicator, | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | When the wiki processes this, it'll do the line wrapping on the Sabine line. | ||
+ | |||
+ | ====Change the wiki logo==== | ||
+ | The logo is a 128x128 pixel file named wiki: | ||
+ | |||
+ | Consider using https:// | ||
+ | |||
+ | |||
dokuwiki_annoyances.1690473713.txt.gz · Last modified: 2023.07.27 09:01 by Steve Isenberg