wiki:syntax
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| wiki:syntax [2022/12/21 10:30] – example for disambiguating death/drain/magic/misfortune scales timotej | wiki:syntax [2026/10/07 17:10] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 2: | Line 2: | ||
| [[doku> | [[doku> | ||
| - | |||
| - | ===== Dominions Hover-links ===== | ||
| - | |||
| - | Inspector-like pop-ups on hover work for units, items and spells. | ||
| - | |||
| - | ^ Wiki syntax ^ Result ^ | ||
| - | |< | ||
| - | |< | ||
| - | |< | ||
| - | |< | ||
| - | |||
| - | Some different units have the same name. You can optionally supply the unit ID to specify which one to show, as follows. You can find the unit ID in-game or in the Inspector. | ||
| - | |||
| - | ^ Wiki syntax ^ Result ^ | ||
| - | |< | ||
| - | |< | ||
| - | |< | ||
| - | |||
| - | ===== Dominions Icons Shorthands ===== | ||
| - | |||
| - | There are abbreviations available for many common patterns and images in the wiki. Most are listed in the table below. | ||
| - | |||
| - | ^ Magic Paths ^^ | ||
| - | |< | ||
| - | |< | ||
| - | |< | ||
| - | |< | ||
| - | |< | ||
| - | ^ Gems ^^ | ||
| - | |< | ||
| - | |< | ||
| - | |< | ||
| - | |< | ||
| - | |< | ||
| - | ^ Scales ^^ | ||
| - | |< | ||
| - | |< | ||
| - | |< | ||
| - | |< | ||
| - | |< | ||
| - | |< | ||
| - | |< | ||
| - | |< | ||
| - | |< | ||
| - | |< | ||
| - | |< | ||
| - | |< | ||
| - | |< | ||
| - | |< | ||
| - | |< | ||
| - | |< | ||
| - | ^ Other frequently used images^^ | ||
| - | |< | ||
| - | |< | ||
| - | |< | ||
| ===== Basic Text Formatting ===== | ===== Basic Text Formatting ===== | ||
| Line 64: | Line 9: | ||
| DokuWiki supports **bold**, //italic//, __underlined__ and '' | DokuWiki supports **bold**, //italic//, __underlined__ and '' | ||
| Of course you can **__//'' | Of course you can **__//'' | ||
| + | |||
| + | Note that the formatting markers have to directly enclose the text, so '' | ||
| You can use < | You can use < | ||
| Line 192: | Line 139: | ||
| 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: |
| Line 211: | Line 158: | ||
| {{wiki: | {{wiki: | ||
| {{ wiki: | {{ wiki: | ||
| + | |||
| + | You can also set the alignment explicitly with a ''? | ||
| + | |||
| + | {{wiki: | ||
| + | |||
| + | {{wiki: | ||
| Of course, you can add a title (displayed as a tooltip by most browsers), too. | Of course, you can add a title (displayed as a tooltip by most browsers), too. | ||
| Line 302: | Line 255: | ||
| * ;-) %% ;-) %% | * ;-) %% ;-) %% | ||
| * ^_^ %% ^_^ %% | * ^_^ %% ^_^ %% | ||
| + | * m( %% m( %% | ||
| * :?: %% :?: %% | * :?: %% :?: %% | ||
| * :!: %% :!: %% | * :!: %% :!: %% | ||
| Line 472: | Line 426: | ||
| </ | </ | ||
| - | 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> | ||
| Line 491: | Line 445: | ||
| 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 ('' | ||
| - | |||
| - | |||
| - | ===== Embedding HTML and PHP ===== | ||
| - | |||
| - | You can embed raw HTML or PHP code into your documents by using the '' | ||
| - | |||
| - | HTML example: | ||
| - | |||
| - | < | ||
| - | < | ||
| - | This is some <span style=" | ||
| - | </ | ||
| - | < | ||
| - | <p style=" | ||
| - | </ | ||
| - | </ | ||
| - | |||
| - | < | ||
| - | This is some <span style=" | ||
| - | </ | ||
| - | < | ||
| - | <p style=" | ||
| - | </ | ||
| - | |||
| - | PHP example: | ||
| - | |||
| - | < | ||
| - | <php> | ||
| - | echo 'The PHP version: '; | ||
| - | echo phpversion(); | ||
| - | echo ' (generated inline HTML)'; | ||
| - | </ | ||
| - | <PHP> | ||
| - | echo '< | ||
| - | echo '< | ||
| - | echo '</ | ||
| - | </ | ||
| - | </ | ||
| - | |||
| - | <php> | ||
| - | echo 'The PHP version: '; | ||
| - | echo phpversion(); | ||
| - | echo ' (inline HTML)'; | ||
| - | </ | ||
| - | <PHP> | ||
| - | echo '< | ||
| - | echo '< | ||
| - | echo '</ | ||
| - | </ | ||
| - | |||
| - | **Please Note**: HTML and PHP embedding is disabled by default in the configuration. If disabled, the code is displayed instead of executed. | ||
| ===== RSS/ATOM Feed Aggregation ===== | ===== RSS/ATOM Feed Aggregation ===== | ||
| Line 551: | Line 454: | ||
| | author | | author | ||
| | date | show item dates | | | date | show item dates | | ||
| - | | description| show the item description. | + | | description| show the item description. |
| | nosort | | nosort | ||
| | //n//[dhm] | refresh period, where d=days, h=hours, m=minutes. (e.g. 12h = 12 hours). | | | //n//[dhm] | refresh period, where d=days, h=hours, m=minutes. (e.g. 12h = 12 hours). | | ||
| Line 568: | Line 471: | ||
| ===== Control Macros ===== | ===== Control Macros ===== | ||
| - | Some syntax influences how DokuWiki renders a page without creating any output it self. The following control macros are available: | + | Some syntax influences how DokuWiki renders a page without creating any output it self. The following control macros are availble: |
| ^ Macro ^ Description | | ^ Macro ^ Description | | ||
| | %%~~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 %%< | ||
| - | | %%~~REDIRECT> | ||
| ===== Syntax Plugins ===== | ===== Syntax Plugins ===== | ||
wiki/syntax.1671618628.txt.gz · Last modified: by timotej
