en:wiki:syntax
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| en:wiki:syntax [2024/02/08 08:02] – created - external edit 127.0.0.1 | en:wiki:syntax [2026/08/03 19:10] (current) – Automatic push translation domele | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Formatting Syntax ====== | ====== Formatting Syntax ====== | ||
| - | [[doku> | + | [[doku> |
| ===== Basic Text Formatting ===== | ===== Basic Text Formatting ===== | ||
| - | DokuWiki supports **bold**, //italic//, __underlined__ and '' | + | DokuWiki supports **bold**, //italic//, __underlined__ and '' |
| - | DokuWiki supports **bold**, //italic//, __underlined__ and '' | + | DokuWiki supports **bold**, //italics//, __underlined__ and '' |
| - | Of course you can **__//'' | + | Of course you can **__//'' |
| - | You can use < | + | Note that the formatting markers must directly enclose the text, so '' |
| + | |||
| + | You can use < | ||
| You can use < | You can use < | ||
| Line 18: | Line 20: | ||
| You can mark something as < | You can mark something as < | ||
| - | **Paragraphs** are created from blank lines. If you want to **force a newline** without a paragraph, you can use two backslashes followed by a whitespace | + | **Paragraphs** are created from blank lines. If you want to **force a newline** without |
| - | This is some text with some linebreaks\\ Note that the | + | This is some text with some line breaks\\ Note that the |
| - | two backslashes are only recognized | + | two backslashes are only recognised |
| - | or followed by\\ a whitespace | + | or when followed by\\ a space \\this happens without it. |
| - | This is some text with some linebreaks\\ Note that the | + | This is some text with some line breaks\\ Note that the |
| - | two backslashes are only recognized | + | two backslashes are only recognised |
| or followed by\\ a whitespace \\this happens without it. | or followed by\\ a whitespace \\this happens without it. | ||
| - | You should use forced | + | You should |
| ===== Links ===== | ===== Links ===== | ||
| - | DokuWiki supports | + | DokuWiki supports |
| ==== External ==== | ==== External ==== | ||
| - | External links are recognized automagically: http:// | + | External links are recognised automatically: http:// |
| - | DokuWiki supports multiple ways of creating links. External links are recognized | + | DokuWiki supports multiple ways of creating links. External links are recognised |
| - | | + | |
| - | link text as well: [[http:// | + | |
| - | addresses like this one: < | + | addresses like this one: < |
| ==== Internal ==== | ==== Internal ==== | ||
| - | Internal links are created | + | Internal links are created using square brackets. You can either |
| - | Internal links are created | + | Internal links are created using square brackets. You can either |
| - | a [[pagename]] or use an additional [[pagename|link text]]. | + | a [[de:wiki:pagename]] or use an additional [[de:wiki:pagename|link text]]. |
| - | [[doku> | + | [[doku> |
| - | You can use [[some: | + | You can use [[some: |
| - | You can use [[some: | + | You can use [[some: |
| - | For details about namespaces see [[doku> | + | For details about namespaces, see [[doku> |
| - | Linking | + | It is also possible to link to a specific section. |
| - | This links to [[syntax# | + | This links to [[de:wiki:syntax# |
| Notes: | Notes: | ||
| - | * Links to [[syntax|existing pages]] are shown in a different style from [[nonexisting]] ones. | + | * Links to [[de:wiki:syntax|existing pages]] are displayed |
| - | * DokuWiki does not use [[wp> | + | * DokuWiki does not use [[wp> |
| - | * When a section's heading is changed, its bookmark changes, too. So don' | + | * When a section’s heading is changed, its bookmark changes |
| ==== Interwiki ==== | ==== Interwiki ==== | ||
| - | DokuWiki supports [[doku> | + | DokuWiki supports [[doku> |
| - | DokuWiki supports [[doku> | + | DokuWiki supports [[doku> |
| - | For example this is a link to Wikipedia's page about Wikis: [[wp> | + | For example, this is a link to Wikipedia’s page about wikis: [[wp> |
| - | ==== Windows | + | ==== Windows |
| - | Windows shares | + | Windows shares |
| - | Windows | + | Windows |
| Notes: | Notes: | ||
| - | * For security reasons direct browsing of windows | + | * For security reasons, direct browsing of Windows |
| - | * For Mozilla and Firefox | + | * For Mozilla and Firefox, this can be enabled |
| <?php | <?php | ||
| /** | /** | ||
| Line 95: | Line 97: | ||
| ==== Image Links ==== | ==== Image Links ==== | ||
| - | You can also use an image to link to another internal or external page by combining the syntax for links and [[# | + | You can also use an image to link to another internal or external page by combining the syntax for links and [[de: |
| [[http:// | [[http:// | ||
| Line 101: | Line 103: | ||
| [[http:// | [[http:// | ||
| - | Please note: The image formatting is the only formatting syntax accepted in link names. | + | Please note: Image formatting is the only formatting syntax accepted in link names. |
| - | The whole [[# | + | The entire |
| ===== Footnotes ===== | ===== Footnotes ===== | ||
| Line 113: | Line 115: | ||
| ===== Sectioning ===== | ===== Sectioning ===== | ||
| - | You can use up to five different levels of headlines | + | You can use up to five different levels of headings |
| - | ==== Headline | + | ==== Heading |
| - | === Headline | + | === Heading |
| - | == Headline | + | == Heading |
| - | | + | ==== Heading |
| - | === Headline | + | |
| - | == Headline | + | |
| - | By using four or more dashes, you can make a horizontal line: | + | By using four or more dashes, you can create |
| ---- | ---- | ||
| Line 129: | Line 131: | ||
| ===== Media Files ===== | ===== Media Files ===== | ||
| - | You can include external and internal [[doku> | + | You can include external and internal [[doku> |
| - | Real size: {{wiki: | + | Actual |
| - | Resize to given width: | + | Resize to a specified |
| - | Resize to given width and height((when the aspect ratio of the given width and height | + | Resize to specified |
| Resized external image: {{https:// | Resized external image: {{https:// | ||
| - | | + | |
| - | Resize to given width: | + | Resize to specified |
| - | Resize to given width and height: {{wiki: | + | Resize to specified |
| Resized external image: {{https:// | Resized external image: {{https:// | ||
| - | By using left or right whitespaces you can choose the alignment. | + | You can choose the alignment |
| - | {{ wiki: | + | {{ wiki: |
| - | {{wiki: | + | {{wiki: |
| - | {{ wiki: | + | {{ wiki: |
| - | | + | {{ wiki: |
| - | {{wiki: | + | |
| - | {{ wiki: | + | {{ wiki: |
| - | Of course, you can add a title (displayed as a tooltip by most browsers), too. | + | You can also set the alignment explicitly using a ''? |
| + | {{wiki: | ||
| + | Of course, you can add a title (displayed as a tooltip by most browsers) | ||
| {{ wiki: | {{ wiki: | ||
| Line 163: | Line 167: | ||
| {{ wiki: | {{ wiki: | ||
| - | For linking | + | To link an image to another page, see [[de: |
| ==== Supported Media Formats ==== | ==== Supported Media Formats ==== | ||
| Line 170: | Line 174: | ||
| | Image | '' | | Image | '' | ||
| - | | Video | '' | + | | Video | '' |
| | Audio | '' | | Audio | '' | ||
| | Flash | '' | | Flash | '' | ||
| - | If you specify a filename that is not a supported media format, | + | If you specify a filename that is not a supported media format, it will be displayed as a link instead. |
| By adding ''? | By adding ''? | ||
| - | | + | {{wiki: |
| {{wiki: | {{wiki: | ||
| Line 184: | Line 188: | ||
| ==== Fallback Formats ==== | ==== Fallback Formats ==== | ||
| - | Unfortunately not all browsers | + | Unfortunately, not all browsers |
| - | For example consider this embedded | + | For example, consider this embedded |
| - | {{video.mp4|A funny video}} | + | {{de:wiki:video.mp4|A funny video}} |
| - | When you upload a '' | + | When you upload a '' |
| - | + | ||
| - | Additionally DokuWiki supports a " | + | |
| + | Additionally, | ||
| ===== Lists ===== | ===== Lists ===== | ||
| - | + | DokuWiki | |
| - | Dokuwiki | + | |
| * This is a list | * This is a list | ||
| * The second item | * The second item | ||
| - | * You may have different levels | + | * You can have different levels |
| * Another item | * Another item | ||
| - | - The same list but ordered | + | - The same list, but ordered |
| - Another item | - Another item | ||
| - | - Just use indention | + | - Just use indentation |
| - | - That's it | + | - That’s it |
| < | < | ||
| Line 220: | Line 222: | ||
| </ | </ | ||
| - | Also take a look at the [[doku> | + | Also have a look at the [[doku> |
| + | ===== -to-text conversions ===== | ||
| - | ===== Text Conversions ===== | + | DokuWiki can convert certain pre-defined characters or strings into images, other text or HTML. |
| - | DokuWiki can convert certain pre-defined characters or strings into images or other text or HTML. | + | The text-to-image conversion is mainly used for smileys. The text-to-HTML conversion is used for typographical replacements, |
| - | The text to image conversion is mainly done for smileys. And the text to HTML conversion is used for typography replacements, | + | ==== Text-to-Image Conversions ==== |
| - | ==== Text to Image Conversions ==== | + | DokuWiki converts commonly used [[wp> |
| - | DokuWiki converts commonly used [[wp> | + | |
| - | + | * 8-O %% 8-O %% | |
| - | | + | * :-( %% :-( %% |
| - | * 8-O %% 8-O %% | + | * :-) %% :-) %% |
| - | * :-( %% :-( %% | + | * =) %% = ) %% |
| - | * :-) %% :-) %% | + | * :-/ %% :-/ %% |
| - | * =) %% =) %% | + | * :-\ %% :-\ %% |
| - | * :-/ %% :-/ %% | + | * :-? %% :-? %% |
| - | * :-\ %% :-\ %% | + | * :-D %% :-D %% |
| - | * :-? %% :-? %% | + | * :-P %% :-P %% |
| - | * :-D %% :-D %% | + | * :-O %% :-O %% |
| - | * :-P %% :-P %% | + | * :-X %% :-X %% |
| - | * :-O %% :-O %% | + | |
| - | * :-X %% :-X %% | + | |
| * :-| %% :-| %% | * :-| %% :-| %% | ||
| - | * ;-) %% ;-) %% | + | * ;-) %% ;-) %% |
| * ^_^ %% ^_^ %% | * ^_^ %% ^_^ %% | ||
| - | * m( %% m( %% | + | * m( %% m( %% |
| - | * :?: %% :?: %% | + | * :?: %% :?: %% |
| - | * :!: %% :!: %% | + | * :!: %% :!: %% |
| - | * LOL %% LOL %% | + | * LOL %% LOL %% |
| - | * FIXME %% FIXME %% | + | * FIXME %% FIXME %% |
| * DELETEME %% DELETEME %% | * DELETEME %% DELETEME %% | ||
| ==== Text to HTML Conversions ==== | ==== Text to HTML Conversions ==== | ||
| - | Typography: [[DokuWiki]] can convert simple text characters to their typographically correct entities. Here is an example of recognized | + | Typography: [[de: |
| - | -> <- <-> => <= <=> >> << -- --- 640x480 (c) (tm) (r) | + | -> <- < |
| "He thought ' | "He thought ' | ||
| Line 266: | Line 267: | ||
| </ | </ | ||
| - | The same can be done to produce any kind of HTML, it just needs to be added to the [[doku> | + | The same can be done to produce any kind of HTML; it simply |
| - | + | ||
| - | There are three exceptions which do not come from that pattern file: multiplication entity (640x480), ' | + | |
| + | There are three exceptions that do not originate from that pattern file: the multiplication entity (640x480), ‘single’ and “double quotes”. These can be disabled via a [[doku> | ||
| ===== Quoting ===== | ===== Quoting ===== | ||
| - | Some times you want to mark some text to show it' | + | Sometimes |
| < | < | ||
| Line 290: | Line 290: | ||
| I think we should do it | I think we should do it | ||
| - | > No we shouldn't | + | > No, we shouldn’t |
| >> Well, I say we should | >> Well, I say we should | ||
| Line 298: | Line 298: | ||
| >> Yes! | >> Yes! | ||
| - | >>> | + | >>> |
| ===== Tables ===== | ===== Tables ===== | ||
| - | DokuWiki supports a simple syntax | + | DokuWiki supports a simple syntax |
| ^ Heading 1 ^ Heading 2 ^ Heading 3 ^ | ^ Heading 1 ^ Heading 2 ^ Heading 3 ^ | ||
| | Row 1 Col 1 | Row 1 Col 2 | Row 1 Col 3 | | | Row 1 Col 1 | Row 1 Col 2 | Row 1 Col 3 | | ||
| - | | Row 2 Col 1 | some colspan (note the double pipe) || | + | | Row 2 Col 1 | some colspan (note the double pipe) || | Row 3 Col 1 | Row 3 Col 2 | Row 3 Col 3 | |
| - | | Row 3 Col 1 | Row 3 Col 2 | Row 3 Col 3 | | + | |
| - | Table rows have to start and end with a '' | + | Table rows must begin and end with a '' |
| ^ Heading 1 ^ Heading 2 ^ Heading 3 ^ | ^ Heading 1 ^ Heading 2 ^ Heading 3 ^ | ||
| | Row 1 Col 1 | Row 1 Col 2 | Row 1 Col 3 | | | Row 1 Col 1 | Row 1 Col 2 | Row 1 Col 3 | | ||
| - | | Row 2 Col 1 | some colspan (note the double pipe) || | + | | Row 2 Col 1 | some colspan (note the double pipe) || |
| | Row 3 Col 1 | Row 3 Col 2 | Row 3 Col 3 | | | Row 3 Col 1 | Row 3 Col 2 | Row 3 Col 3 | | ||
| - | To connect cells horizontally, | + | To connect cells horizontally, |
| - | Vertical | + | Vertical |
| | ^ Heading 1 ^ Heading 2 ^ | | ^ Heading 1 ^ Heading 2 ^ | ||
| ^ Heading 3 | Row 1 Col 2 | Row 1 Col 3 | | ^ Heading 3 | Row 1 Col 2 | Row 1 Col 3 | | ||
| ^ Heading 4 | no colspan this time | | | ^ Heading 4 | no colspan this time | | | ||
| - | ^ Heading 5 | Row 2 Col 2 | Row 2 Col 3 | | + | ^ Heading 5 | Row 2 Col 2 | Row 2, Column |
| - | As you can see, it' | + | As you can see, it is the cell separator |
| | ^ Heading 1 ^ Heading 2 ^ | | ^ Heading 1 ^ Heading 2 ^ | ||
| ^ Heading 3 | Row 1 Col 2 | Row 1 Col 3 | | ^ Heading 3 | Row 1 Col 2 | Row 1 Col 3 | | ||
| ^ Heading 4 | no colspan this time | | | ^ Heading 4 | no colspan this time | | | ||
| - | ^ Heading 5 | Row 2 Col 2 | Row 2 Col 3 | | + | ^ Heading 5 | Row 2 Col 2 | Row 2, Column |
| - | + | ||
| - | You can have rowspans (vertically connected cells) by adding '' | + | |
| + | You can create rowspans (vertically connected cells) by adding '' | ||
| ^ Heading 1 ^ Heading 2 ^ Heading 3 ^ | ^ Heading 1 ^ Heading 2 ^ Heading 3 ^ | ||
| | Row 1 Col 1 | this cell spans vertically | Row 1 Col 3 | | | Row 1 Col 1 | this cell spans vertically | Row 1 Col 3 | | ||
| Line 339: | Line 337: | ||
| | Row 3 Col 1 | ::: | Row 2 Col 3 | | | Row 3 Col 1 | ::: | Row 2 Col 3 | | ||
| - | Apart from the rowspan syntax | + | Apart from the rowspan syntax, these cells should not contain anything else. |
| ^ Heading 1 ^ Heading 2 ^ Heading 3 ^ | ^ Heading 1 ^ Heading 2 ^ Heading 3 ^ | ||
| Line 346: | Line 344: | ||
| | Row 3 Col 1 | ::: | Row 2 Col 3 | | | Row 3 Col 1 | ::: | Row 2 Col 3 | | ||
| - | You can align the table contents, too. Just add at least two whitespaces | + | You can also align the table contents. |
| ^ Table with alignment | ^ Table with alignment | ||
| - | | | + | | |
| - | |left | | + | |left | |
| | xxxxxxxxxxxx | xxxxxxxxxxxx | xxxxxxxxxxxx | | | xxxxxxxxxxxx | xxxxxxxxxxxx | xxxxxxxxxxxx | | ||
| Line 356: | Line 354: | ||
| ^ Table with alignment | ^ Table with alignment | ||
| - | | | + | | |
| - | |left | | + | |left | |
| | xxxxxxxxxxxx | xxxxxxxxxxxx | xxxxxxxxxxxx | | | xxxxxxxxxxxx | xxxxxxxxxxxx | xxxxxxxxxxxx | | ||
| Line 364: | Line 362: | ||
| ===== No Formatting ===== | ===== No Formatting ===== | ||
| - | If you need to display text exactly | + | If you need to display text exactly |
| < | < | ||
| This is some text which contains addresses like this: http:// | This is some text which contains addresses like this: http:// | ||
| </ | </ | ||
| - | The same is true for %%// | + | The same applies to %%// |
| < | < | ||
| This is some text which contains addresses like this: http:// | This is some text which contains addresses like this: http:// | ||
| </ | </ | ||
| - | The same is true for %%// | + | The same applies to %%// |
| - | + | ===== Code blocks | |
| - | ===== Code Blocks | + | |
| - | You can include code blocks | + | You can include code blocks |
| This is text is indented by two spaces. | This is text is indented by two spaces. | ||
| Line 390: | Line 387: | ||
| </ | </ | ||
| - | Those blocks were created | + | These blocks were created |
| - | This is text is indented by two spaces. | + | This text is indented by two spaces. |
| < | < | ||
| Line 404: | Line 401: | ||
| ==== Syntax Highlighting ==== | ==== Syntax Highlighting ==== | ||
| - | [[wiki:DokuWiki]] can highlight | + | [[wiki:dokuwiki]] can highlight |
| <code java> | <code java> | ||
| Line 436: | Line 433: | ||
| </ | </ | ||
| - | If you don' | + | If you do not want any highlighting but would like a downloadable file, specify a dash ('' |
| ===== RSS/ATOM Feed Aggregation ===== | ===== RSS/ATOM Feed Aggregation ===== | ||
| - | [[DokuWiki]] can integrate data from external XML feeds. | + | [[de: |
| ^ Parameter | ^ Parameter | ||
| - | | any number | will be used as maximum number items to show, defaults to 8 | | + | | any number | will be used as the maximum number |
| - | | reverse | + | | reverse |
| - | | author | + | | author |
| | date | show item dates | | | date | show item dates | | ||
| | description| show the item description. All HTML tags will be stripped | | | description| show the item description. All HTML tags will be stripped | | ||
| Line 450: | Line 447: | ||
| | //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). | | ||
| - | The refresh period defaults to 4 hours. Any value below 10 minutes will be treated as 10 minutes. [[wiki:DokuWiki]] will generally | + | The refresh period defaults to 4 hours. Any value below 10 minutes will be treated as 10 minutes. [[wiki:dokuwiki]] will generally |
| - | By default the feed will be sorted by date, newest items first. You can sort it by oldest first using the '' | + | By default, the feed will be sorted by date, with the newest items first. You can sort it with the oldest |
| **Example: | **Example: | ||
| Line 463: | Line 460: | ||
| ===== Control Macros ===== | ===== Control Macros ===== | ||
| - | Some syntax | + | Some syntax |
| ^ Macro ^ Description | | ^ Macro ^ Description | | ||
| | %%~~NOTOC~~%% | | %%~~NOTOC~~%% | ||
| - | | %%~~NOCACHE~~%% | DokuWiki caches all output by default. Sometimes this might not be wanted | + | | %%~~NOCACHE~~%% | DokuWiki caches all output by default. Sometimes this may not be desired |
| ===== Syntax Plugins ===== | ===== Syntax Plugins ===== | ||
| - | DokuWiki's syntax can be extended by [[doku> | + | DokuWiki’s syntax can be extended by [[doku> |
| ~~INFO: | ~~INFO: | ||
en/wiki/syntax.1707379326.txt.gz · Last modified: by 127.0.0.1
