Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente | ||
wiki:syntax [27/05/2020 15:28] – [Footnotes] bonnet | wiki:syntax [17/06/2020 08:08] (Version actuelle) – bonnet | ||
---|---|---|---|
Ligne 2: | Ligne 2: | ||
[[doku> | [[doku> | ||
+ | |||
+ | More advanced syntaxe is available from this documentation: | ||
===== Basic Text Formatting ===== | ===== Basic Text Formatting ===== | ||
Ligne 29: | Ligne 31: | ||
You should use forced newlines only if really needed. | You should use forced newlines only if really needed. | ||
+ | |||
+ | ==== Alignement ==== | ||
+ | |||
+ | < | ||
+ | <TEXT align=" | ||
+ | <TEXT align=" | ||
+ | <TEXT align=" | ||
+ | <TEXT align=" | ||
+ | <TEXT align=" | ||
+ | </ | ||
+ | |||
+ | <TEXT align=" | ||
+ | <TEXT align=" | ||
+ | <TEXT align=" | ||
+ | <TEXT align=" | ||
+ | <TEXT align=" | ||
+ | |||
+ | ==== Contextual colors ==== | ||
+ | |||
+ | |||
+ | <TEXT type=" | ||
+ | |||
+ | <TEXT type=" | ||
+ | |||
+ | <TEXT type=" | ||
+ | |||
+ | <TEXT type=" | ||
+ | |||
+ | <TEXT type=" | ||
+ | |||
+ | <TEXT type=" | ||
+ | |||
+ | \\ | ||
+ | |||
+ | <code html5> | ||
+ | <text type=" | ||
+ | <text type=" | ||
+ | <text type=" | ||
+ | <text type=" | ||
+ | <text type=" | ||
+ | <text type=" | ||
+ | </ | ||
+ | |||
+ | \\ | ||
+ | |||
+ | ==== Text size ==== | ||
+ | |||
+ | <TEXT size=" | ||
+ | |||
+ | <TEXT size=" | ||
+ | |||
+ | <TEXT size=" | ||
+ | |||
+ | <TEXT size=" | ||
+ | |||
+ | <TEXT size=" | ||
+ | |||
+ | <TEXT size=" | ||
+ | |||
+ | <TEXT size=" | ||
+ | |||
+ | <TEXT size=" | ||
+ | |||
+ | <TEXT size=" | ||
+ | |||
+ | |||
+ | |||
+ | <code html5> | ||
+ | <text size=" | ||
+ | </ | ||
+ | |||
+ | Size attribute can be: | ||
+ | * medium | ||
+ | * xx-small | ||
+ | * x-small | ||
+ | * small | ||
+ | * large | ||
+ | * x-large | ||
+ | * xx-large | ||
+ | * smaller | ||
+ | * larger | ||
+ | * any length in px / percent / em / etc... | ||
===== Links ===== | ===== Links ===== | ||
Ligne 67: | Ligne 151: | ||
* DokuWiki does not use [[wp> | * DokuWiki does not use [[wp> | ||
* When a section' | * When a section' | ||
+ | |||
==== Interwiki ==== | ==== Interwiki ==== | ||
Ligne 104: | Ligne 189: | ||
The whole [[# | The whole [[# | ||
+ | |||
+ | ===== Tooltip ===== | ||
+ | < | ||
+ | <tooltip title=" | ||
+ | </ | ||
+ | |||
+ | <tooltip title=" | ||
===== Footnotes ===== | ===== Footnotes ===== | ||
Ligne 111: | Ligne 203: | ||
You can add footnotes ((This is a footnote)) by using double parentheses. | You can add footnotes ((This is a footnote)) by using double parentheses. | ||
- | ==== References | + | ===== Grid system ===== |
- | For références | + | You can use [[https:// |
- | [[https://www.dokuwiki.org/ | + | **Note:** Instead of < |
- | The basic reference syntax is similar to the footnotes: | ||
< | < | ||
- | [(This is a note.)] | + | < |
+ | <col sm=" | ||
+ | <col sm=" | ||
+ | </ | ||
</ | </ | ||
+ | |||
+ | Arguments is xs, sm, md, lg. | ||
+ | |||
+ | ===== Thumbnail ===== | ||
+ | |||
+ | < | ||
+ | < | ||
+ | ... | ||
+ | <col xs=" | ||
+ | < | ||
+ | {{ wiki: | ||
+ | < | ||
+ | === DokuWiki ==== | ||
+ | |||
+ | //DokuWiki is a simple to use and highly versatile Open Source wiki software that doesn' | ||
+ | </ | ||
+ | </ | ||
+ | ... | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | <col xs=" | ||
+ | < | ||
+ | {{ wiki: | ||
+ | < | ||
+ | === DokuWiki ==== | ||
+ | |||
+ | //DokuWiki is a simple to use and highly versatile Open Source wiki software that doesn' | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | <col xs=" | ||
+ | < | ||
+ | {{ wiki: | ||
+ | < | ||
+ | === DokuWiki ==== | ||
+ | |||
+ | //DokuWiki is a simple to use and highly versatile Open Source wiki software that doesn' | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | <col xs=" | ||
+ | < | ||
+ | {{ wiki: | ||
+ | < | ||
+ | === DokuWiki ==== | ||
+ | |||
+ | //DokuWiki is a simple to use and highly versatile Open Source wiki software that doesn' | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | |||
===== Sectioning ===== | ===== Sectioning ===== | ||
Ligne 135: | Ligne 285: | ||
---- | ---- | ||
+ | |||
+ | For beautiful sectionning, | ||
+ | < | ||
+ | < | ||
+ | ====== Hello, world! ====== | ||
+ | |||
+ | This is a simple hero unit, a simple jumbotron-style | ||
+ | component for calling extra attention to featured | ||
+ | content or information. | ||
+ | |||
+ | <btn type=" | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | ====== Hello, world! ====== | ||
+ | |||
+ | This is a simple hero unit, a simple jumbotron-style | ||
+ | component for calling extra attention to featured | ||
+ | content or information. | ||
+ | |||
+ | <btn type=" | ||
+ | </ | ||
===== Media Files ===== | ===== Media Files ===== | ||
Ligne 146: | Ligne 319: | ||
Resize to given width and height((when the aspect ratio of the given width and height doesn' | Resize to given width and height((when the aspect ratio of the given width and height doesn' | ||
- | Resized external image: | + | Resized external image: |
Real size: {{wiki: | Real size: {{wiki: | ||
Resize to given width: | Resize to given width: | ||
Resize to given width and height: {{wiki: | Resize to given width and height: {{wiki: | ||
- | Resized external image: | + | Resized external image: |
Ligne 191: | Ligne 364: | ||
{{wiki: | {{wiki: | ||
+ | === Image shape === | ||
+ | |||
+ | | <image shape=" | ||
+ | {{: | ||
+ | </ | ||
+ | | <image shape=" | ||
+ | {{: | ||
+ | </ | ||
+ | | <image shape=" | ||
+ | {{: | ||
+ | </ | ||
==== Fallback Formats ==== | ==== Fallback Formats ==== | ||
Ligne 277: | Ligne 461: | ||
There are three exceptions which do not come from that pattern file: multiplication entity (640x480), ' | There are three exceptions which do not come from that pattern file: multiplication entity (640x480), ' | ||
+ | |||
+ | ===== Diagrams ===== | ||
+ | ==== Network Diagram ==== | ||
+ | < | ||
+ | <uml> | ||
+ | @startuml | ||
+ | nwdiag { | ||
+ | network Sample_front { | ||
+ | address = " | ||
+ | |||
+ | // define group | ||
+ | group web { | ||
+ | web01 [address = " | ||
+ | web02 [address = " | ||
+ | } | ||
+ | } | ||
+ | network Sample_back { | ||
+ | address = " | ||
+ | web01 [address = " | ||
+ | web02 [address = " | ||
+ | db01 [address = " | ||
+ | db02 [address = " | ||
+ | |||
+ | // define network using defined nodes | ||
+ | group db { | ||
+ | db01; | ||
+ | db02; | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | @enduml | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | More information on: [[https:// | ||
+ | |||
+ | <uml> | ||
+ | @startuml | ||
+ | nwdiag { | ||
+ | network Sample_front { | ||
+ | address = " | ||
+ | |||
+ | // define group | ||
+ | group web { | ||
+ | web01 [address = " | ||
+ | web02 [address = " | ||
+ | } | ||
+ | } | ||
+ | network Sample_back { | ||
+ | address = " | ||
+ | web01 [address = " | ||
+ | web02 [address = " | ||
+ | db01 [address = " | ||
+ | db02 [address = " | ||
+ | |||
+ | // define network using defined nodes | ||
+ | group db { | ||
+ | db01; | ||
+ | db02; | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | @enduml | ||
+ | </ | ||
+ | |||
+ | ==== Pannel Diagram ==== | ||
+ | For more documentation : [[https:// | ||
+ | |||
+ | < | ||
+ | < | ||
+ | Index, | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | # Documentation et rapports de bug : https:// | ||
+ | ==text | ||
+ | 4x12 ports sur 2U (01-12 & 13-24) | ||
+ | ==line: | ||
+ | 01, | ||
+ | 02, | ||
+ | 03, | ||
+ | 04, | ||
+ | 05,05 | ||
+ | 06,06 | ||
+ | 07,07 | ||
+ | 08,08 | ||
+ | 09,09 | ||
+ | 10,10 | ||
+ | 11, | ||
+ | 12, | ||
+ | 13, | ||
+ | 14, | ||
+ | 15, | ||
+ | 16, | ||
+ | 17,17 | ||
+ | 18,18 | ||
+ | 19,19 | ||
+ | 20,20 | ||
+ | 21,21 | ||
+ | 22,22 | ||
+ | 23, | ||
+ | 24, | ||
+ | ==text | ||
+ | 4x12 ports sur 2U (25-36 & 37-48) | ||
+ | ==line: | ||
+ | 01, | ||
+ | 02, | ||
+ | 03, | ||
+ | 04, | ||
+ | 05,29 | ||
+ | 06,30 | ||
+ | 07,31 | ||
+ | 08,32 | ||
+ | 09,33 | ||
+ | 10,34 | ||
+ | 11, | ||
+ | 12, | ||
+ | 13, | ||
+ | 14, | ||
+ | 15, | ||
+ | 16, | ||
+ | 17,41 | ||
+ | 18,42 | ||
+ | 19,43 | ||
+ | 20,44 | ||
+ | 21,45 | ||
+ | 22,46 | ||
+ | 23, | ||
+ | 24, | ||
+ | </ | ||
+ | |||
+ | ==== UML Diagram ==== | ||
+ | < | ||
+ | <uml> | ||
+ | @startuml | ||
+ | Alice -> Bob: Authentication Request | ||
+ | Bob --> Alice: Authentication Response | ||
+ | |||
+ | Alice -> Bob: Another authentication Request | ||
+ | Alice <-- Bob: another authentication Response | ||
+ | @enduml | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | More documentation for avalaible diagram on [[https:// | ||
+ | |||
+ | <uml> | ||
+ | @startuml | ||
+ | Alice -> Bob: Authentication Request | ||
+ | Bob --> Alice: Authentication Response | ||
+ | |||
+ | Alice -> Bob: Another authentication Request | ||
+ | Alice <-- Bob: another authentication Response | ||
+ | @enduml | ||
+ | </ | ||
===== Quoting ===== | ===== Quoting ===== | ||
Ligne 426: | Ligne 766: | ||
</ | </ | ||
- | The following language strings are currently recognized: //4cs 6502acme 6502kickass 6502tasm 68000devpac abap actionscript3 actionscript ada aimms algol68 apache applescript apt_sources arm asm asp asymptote autoconf autohotkey autoit avisynth awk bascomavr bash basic4gl batch bf biblatex bibtex blitzbasic bnf boo caddcl cadlisp ceylon cfdg cfm chaiscript chapel cil c_loadrunner clojure c_mac cmake cobol coffeescript c cpp cpp-qt cpp-winapi csharp css cuesheet c_winapi dart dcl dcpu16 dcs delphi diff div dos dot d ecmascript eiffel email epc e erlang euphoria ezt f1 falcon fo fortran freebasic freeswitch fsharp gambas gdb genero genie gettext glsl gml gnuplot go groovy gwbasic haskell haxe hicest hq9plus html html4strict html5 icon idl ini inno intercal io ispfpanel java5 java javascript jcl j jquery julia kixtart klonec klonecpp kotlin latex lb ldif lisp llvm locobasic logtalk lolcode lotusformulas lotusscript lscript lsl2 lua m68k magiksf make mapbasic mathematica matlab mercury metapost mirc mk-61 mmix modula2 modula3 mpasm mxml mysql nagios netrexx newlisp nginx nimrod nsis oberon2 objc objeck ocaml-brief ocaml octave oobas oorexx oracle11 oracle8 oxygene oz parasail parigp pascal pcre perl6 perl per pf phix php-brief php pic16 pike pixelbender pli plsql postgresql postscript povray powerbuilder powershell proftpd progress prolog properties providex purebasic pycon pys60 python qbasic qml q racket rails rbs rebol reg rexx robots rpmspec rsplus ruby rust sas sass scala scheme scilab scl sdlbasic smalltalk smarty spark sparql sql standardml stonescript swift systemverilog tclegg tcl teraterm texgraph text thinbasic tsql twig typoscript unicon upc urbi uscript vala vbnet vb vbscript vedit verilog vhdl vim visualfoxpro visualprolog whitespace whois winbatch xbasic xml xojo xorg_conf xpp yaml z80 zxbasic// | + | The following language strings are currently recognized: //4cs 6502acme 6502kickass 6502tasm 68000devpac abap actionscript3 actionscript ada aimms algol68 apache applescript apt_sources arm asm asp asymptote autoconf autohotkey autoit avisynth awk bascomavr bash basic4gl batch bf biblatex bibtex blitzbasic bnf boo caddcl cadlisp ceylon cfdg cfm chaiscript chapel cil c_loadrunner clojure c_mac cmake cobol coffeescript c cpp cpp-qt cpp-winapi csharp css cuesheet c_winapi dart dcl dcpu16 dcs delphi diff div dos dot d ecmascript eiffel email epc e erlang euphoria ezt f1 falcon fo fortran freebasic freeswitch fsharp gambas gdb genero genie gettext glsl gml gnuplot go groovy gwbasic haskell haxe hicest hq9plus html html4strict html5 icon idl ini inno intercal io ispfpanel java5 java javascript jcl j jquery julia kixtart klonec klonecpp kotlin latex lb ldif lisp llvm locobasic logtalk lolcode lotusformulas lotusscript lscript lsl2 lua m68k magiksf make mapbasic mathematica matlab mercury metapost mirc mk-61 mmix modula2 modula3 mpasm mxml mysql nagios netrexx newlisp nginx nimrod nsis oberon2 objc objeck ocaml-brief ocaml octave oobas oorexx oracle11 oracle8 oxygene oz parasail parigp pascal pcre perl6 perl per pf phix php-brief php pic16 pike pixelbender pli plsql postgresql postscript povray powerbuilder powershell proftpd progress prolog properties providex purebasic pycon pys60 python qbasic qml q racket rails rbs rebol reg rexx robots |
There are additional [[doku> | There are additional [[doku> | ||
Ligne 446: | Ligne 786: | ||
If you don't want any highlighting but want a downloadable file, specify a dash ('' | If you don't want any highlighting but want a downloadable file, specify a dash ('' | ||
+ | |||
+ | ===== Tabs ===== | ||
+ | < | ||
+ | * [[# | ||
+ | * [[# | ||
+ | |||
+ | <pane id=" | ||
+ | === Foo === | ||
+ | Lorem ipsum dolor sit amet, consectetur adipisici elit, sed eiusmod tempor incidunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquid ex ea commodi consequat. Quis aute iure reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint obcaecat cupiditat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. | ||
+ | </ | ||
+ | |||
+ | <pane id=" | ||
+ | === Bar === | ||
+ | Lorem ipsum dolor sit amet, consectetur adipisici elit, sed eiusmod tempor incidunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquid ex ea commodi consequat. Quis aute iure reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint obcaecat cupiditat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. | ||
+ | </ | ||
+ | |||
+ | </ | ||
+ | < | ||
+ | * [[# | ||
+ | * [[# | ||
+ | |||
+ | <pane id=" | ||
+ | === Foo === | ||
+ | Lorem ipsum dolor sit amet, consectetur adipisici elit, sed eiusmod tempor incidunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquid ex ea commodi consequat. Quis aute iure reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint obcaecat cupiditat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. | ||
+ | </ | ||
+ | |||
+ | <pane id=" | ||
+ | === Bar === | ||
+ | Lorem ipsum dolor sit amet, consectetur adipisici elit, sed eiusmod tempor incidunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquid ex ea commodi consequat. Quis aute iure reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint obcaecat cupiditat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. | ||
+ | </ | ||
+ | |||
+ | </ | ||
===== Embedding HTML and PHP ===== | ===== Embedding HTML and PHP ===== | ||
Ligne 527: | Ligne 899: | ||
| %%~~NOTOC~~%% | | %%~~NOTOC~~%% | ||
| %%~~NOCACHE~~%% | DokuWiki caches all output by default. Sometimes this might not be wanted (eg. when the %%< | | %%~~NOCACHE~~%% | DokuWiki caches all output by default. Sometimes this might not be wanted (eg. when the %%< | ||
+ | | %%~~CLEARFIX~~%% | Clear the float | | ||
+ | | %%~~PAGEBREAK~~%% | Add a page break | | ||
===== Syntax Plugins ===== | ===== Syntax Plugins ===== |