Ceci est une ancienne révision du document !
Je met ici des informations glanées ça et là
Les exemples de Formatting Syntax ne montrent pas tout.
{{ wiki:dokuwiki-128.png?nolink&40 }}
Référence: http://sebsauvage.net/wiki/doku.php?id=dokuwiki
J'ai modifié certains points (notamment supprimé des plugins) d'après mes goûts.
/conf/mime.local.conf
et y ajouter les types voulus. Exemple:exe application/octet-stream
/conf/userstyle.css
et mettez-y ce que vous voulez, par exemple:body { font-family: "Droid Sans","Noto Sans","Ascender Uni","Linotype Aroma","FF Kievit","Source Sans","Open Sans","Museo Sans","Myriad","Camphor","Corbel","Frutiger","Vectora","Calibri","Ubuntu","Roboto",sans-serif; }
userstyle.css
, j'ajoute:@media screen and (max-width: 700px) { #dokuwiki__site > .site { padding-right: 0px; padding-left: 0px; } }
~~DISCUSSION~~
dans le corps de l'article.Usage
<note> This is my note ! Remember it!! </note> <note important> Warning ! You're about to lose your mind ;-) </note> <note tip> The clues are in the images. </note> <note warning> Beware of the cat when you open the door !! </note>
You can use the note keywords important
, warning
and tip
. Or some French synonyms: importante
(important), bloquante
, critique
(warning), tuyau
, idée
(tip), classique
(classic). It is quite easy to add new types of notes if you know a bit of PHP and CSS.
Plugin won't work inside numbered list
Usage
The simplest way is:
<hidden>Hidden text</hidden>
This will display the default text “Click to display ⇲” when the text is hidden, and “Click to hide ⇱” when it's visible.
Some options may be added inside the opening <hidden>
tag:
Option | Effect | Example |
---|---|---|
any text | use this text instead of the defaults “Click to display” and “Click to hide” | <hidden click me!>hidden text</hidden> |
onHidden=“any text” | Display this text when the section is hidden | see below |
onVisible=“any text” | Display this text when the section is unfolded | <hidden onHidden=“Click to read more” onVisible=“Click to see less”>Hidden text</hidden> |
onExportPdf=“any text” | Display this text when the page is dw2pdf exported in pdf (defaults to the onVisible text) | <hidden onExportPdf=“you're reading a pdf, you can't click me”>hidden text</hidden> |
initialState=“visible” | The block will initially be expanded. Readers may still click to hide it | |
-noprint | the text “click to display” won't appear on the printed copy | |
-edit=“any text” | Add an “edit” button below the hidden section.The text will appear when one let his mouse on the button | |
-edit | Same as above, but a default text is used |
Please note that Dokuwiki formatting syntax may be used with options like “onHidden”. It's possible to add a button that will hide/display every hidden blocks at once using:
<hiddenSwitch>
or
<hiddenSwitch Here comes my custom text>
Therefore, to see it in action, you could create such a page:
<hidden>My first hidden block</hidden> <hidden>My second hidden block</hidden> <hiddenSwitch>
Note: this feature used to be provided by a separate plugin. However, since “hidden v2015-08-12”, they have been merged
/conf/userstyle.css
, ajouter à la fin:kbd { background-color: #F2F2F2 !important; border-style: outset; border-width: 3px; border-radius: 0.3em; padding : 0px 2px 0px 2px !important; }