easterhegg-eh20-website/wiki_siteexport/_export/xhtml/wiki/syntax.xhtml

922 lines
58 KiB
HTML
Raw Normal View History

2024-07-28 18:18:04 +02:00
<!DOCTYPE html>
<html lang="de" dir="ltr">
<head>
<meta charset="utf-8" />
<title>wiki:syntax</title>
<meta name="generator" content="DokuWiki"/>
<meta name="robots" content="noindex,nofollow"/>
<meta name="keywords" content="wiki,syntax"/>
<link rel="search" type="application/opensearchdescription+xml" href="/lib/exe/opensearch.php" title="EH20 - Back to root"/>
<link rel="start" href="/"/>
<link rel="contents" href="/wiki/syntax?do=index" title="Übersicht"/>
<link rel="manifest" href="/lib/exe/manifest.php"/>
<link rel="alternate" type="application/rss+xml" title="Letzte Änderungen" href="/feed.php"/>
<link rel="alternate" type="application/rss+xml" title="Aktueller Namensraum" href="/feed.php?mode=list&amp;ns=wiki"/>
<link rel="alternate" type="text/html" title="HTML Klartext" href="/_export/xhtml/wiki/syntax"/>
<link rel="alternate" type="text/plain" title="Wiki Markup" href="/_export/raw/wiki/syntax"/>
<link rel="canonical" href="http://hetzner-01.h.jtbx.de:8444/wiki/syntax"/>
<link rel="stylesheet" href="/lib/exe/css.php?t=sprintdoc&amp;tseed=9f8c736612cdfa4b90c19d6f18baa041"/>
<!--[if gte IE 9]><!-->
2024-07-28 18:29:35 +02:00
<script >/*<![CDATA[*/var NS='wiki';var SIG=" --- \/\/[[]] 2024\/07\/28 13:43\/\/";var JSINFO = {"id":"wiki:syntax","namespace":"wiki","ACT":"export_xhtml","useHeadingNavigation":0,"useHeadingContent":0};
2024-07-28 18:18:04 +02:00
/*!]]>*/</script>
<script src="/lib/exe/jquery.php?tseed=f0349b609f9b91a485af8fd8ecd4aea4" defer="defer">/*<![CDATA[*/
/*!]]>*/</script>
<script src="/lib/exe/js.php?t=sprintdoc&amp;tseed=9f8c736612cdfa4b90c19d6f18baa041&amp;template=sprintdoc" defer="defer">/*<![CDATA[*/
/*!]]>*/</script>
<!--<![endif]-->
</head>
<body>
<div class="dokuwiki export">
<!-- TOC START -->
<div id="dw__toc" class="dw__toc">
<h3 class="toggle">Inhaltsverzeichnis</h3>
<div>
<ul class="toc">
<li class="level1"><div class="li"><a href="#formatting_syntax">Formatting Syntax</a></div>
<ul class="toc">
<li class="level2"><div class="li"><a href="#basic_text_formatting">Basic Text Formatting</a></div></li>
<li class="level2"><div class="li"><a href="#links">Links</a></div>
<ul class="toc">
<li class="level3"><div class="li"><a href="#external">External</a></div></li>
<li class="level3"><div class="li"><a href="#internal">Internal</a></div></li>
<li class="level3"><div class="li"><a href="#interwiki">Interwiki</a></div></li>
<li class="level3"><div class="li"><a href="#windows_shares">Windows Shares</a></div></li>
<li class="level3"><div class="li"><a href="#image_links">Image Links</a></div></li>
</ul>
</li>
<li class="level2"><div class="li"><a href="#footnotes">Footnotes</a></div></li>
<li class="level2"><div class="li"><a href="#sectioning">Sectioning</a></div>
<ul class="toc">
<li class="level3"><div class="li"><a href="#headline_level_3">Headline Level 3</a></div></li>
</ul>
</li>
<li class="level2"><div class="li"><a href="#media_files">Media Files</a></div>
<ul class="toc">
<li class="level3"><div class="li"><a href="#supported_media_formats">Supported Media Formats</a></div></li>
<li class="level3"><div class="li"><a href="#fallback_formats">Fallback Formats</a></div></li>
</ul>
</li>
<li class="level2"><div class="li"><a href="#lists">Lists</a></div></li>
<li class="level2"><div class="li"><a href="#text_conversions">Text Conversions</a></div>
<ul class="toc">
<li class="level3"><div class="li"><a href="#text_to_image_conversions">Text to Image Conversions</a></div></li>
<li class="level3"><div class="li"><a href="#text_to_html_conversions">Text to HTML Conversions</a></div></li>
</ul>
</li>
<li class="level2"><div class="li"><a href="#quoting">Quoting</a></div></li>
<li class="level2"><div class="li"><a href="#tables">Tables</a></div></li>
<li class="level2"><div class="li"><a href="#no_formatting">No Formatting</a></div></li>
<li class="level2"><div class="li"><a href="#code_blocks">Code Blocks</a></div>
<ul class="toc">
<li class="level3"><div class="li"><a href="#syntax_highlighting">Syntax Highlighting</a></div></li>
<li class="level3"><div class="li"><a href="#downloadable_code_blocks">Downloadable Code Blocks</a></div></li>
</ul>
</li>
<li class="level2"><div class="li"><a href="#rssatom_feed_aggregation">RSS/ATOM Feed Aggregation</a></div></li>
<li class="level2"><div class="li"><a href="#control_macros">Control Macros</a></div></li>
<li class="level2"><div class="li"><a href="#syntax_plugins">Syntax Plugins</a></div></li>
</ul></li>
</ul>
</div>
</div>
<!-- TOC END -->
<h1 class="sectionedit1" id="formatting_syntax">Formatting Syntax</h1>
<div class="level1">
<p>
<a href="https://www.dokuwiki.org/DokuWiki" class="interwiki iw_doku" title="https://www.dokuwiki.org/DokuWiki">DokuWiki</a> supports some simple markup language, which tries to make the datafiles to be as readable as possible. This page contains all possible syntax you may use when editing the pages. Simply have a look at the source of this page by pressing „Edit this page“. If you want to try something, just use the <a href="/playground/playground" class="wikilink1" title="playground:playground" data-wiki-id="playground:playground">playground</a> page. The simpler markup is easily accessible via <a href="https://www.dokuwiki.org/toolbar" class="interwiki iw_doku" title="https://www.dokuwiki.org/toolbar">quickbuttons</a>, too.
</p>
</div>
<!-- EDIT{&quot;target&quot;:&quot;section&quot;,&quot;name&quot;:&quot;Formatting Syntax&quot;,&quot;hid&quot;:&quot;formatting_syntax&quot;,&quot;codeblockOffset&quot;:0,&quot;secid&quot;:1,&quot;range&quot;:&quot;1-472&quot;} -->
<h2 class="sectionedit2" id="basic_text_formatting">Basic Text Formatting</h2>
<div class="level2">
<p>
DokuWiki supports <strong>bold</strong>, <em>italic</em>, <em class="u">underlined</em> and <code>monospaced</code> texts. Of course you can <strong><em class="u"><em><code>combine</code></em></em></strong> all these.
</p>
<pre class="code">DokuWiki supports **bold**, //italic//, __underlined__ and &#039;&#039;monospaced&#039;&#039; texts.
Of course you can **__//&#039;&#039;combine&#039;&#039;//__** all these.</pre>
<p>
You can use <sub>subscript</sub> and <sup>superscript</sup>, too.
</p>
<pre class="code">You can use &lt;sub&gt;subscript&lt;/sub&gt; and &lt;sup&gt;superscript&lt;/sup&gt;, too.</pre>
<p>
You can mark something as <del>deleted</del> as well.
</p>
<pre class="code">You can mark something as &lt;del&gt;deleted&lt;/del&gt; as well.</pre>
<p>
<strong>Paragraphs</strong> are created from blank lines. If you want to <strong>force a newline</strong> without a paragraph, you can use two backslashes followed by a whitespace or the end of line.
</p>
<p>
This is some text with some linebreaks<br/>
Note that the
two backslashes are only recognized at the end of a line<br/>
or followed by<br/>
a whitespace \\this happens without it.
</p>
<pre class="code">This is some text with some linebreaks\\ Note that the
two backslashes are only recognized at the end of a line\\
or followed by\\ a whitespace \\this happens without it.</pre>
<p>
You should use forced newlines only if really needed.
</p>
</div>
<!-- EDIT{&quot;target&quot;:&quot;section&quot;,&quot;name&quot;:&quot;Basic Text Formatting&quot;,&quot;hid&quot;:&quot;basic_text_formatting&quot;,&quot;codeblockOffset&quot;:0,&quot;secid&quot;:2,&quot;range&quot;:&quot;473-1609&quot;} -->
<h2 class="sectionedit3" id="links">Links</h2>
<div class="level2">
<p>
DokuWiki supports multiple ways of creating links.
</p>
</div>
<!-- EDIT{&quot;target&quot;:&quot;section&quot;,&quot;name&quot;:&quot;Links&quot;,&quot;hid&quot;:&quot;links&quot;,&quot;codeblockOffset&quot;:0,&quot;secid&quot;:3,&quot;range&quot;:&quot;1610-1680&quot;} -->
<h3 class="sectionedit4" id="external">External</h3>
<div class="level3">
<p>
External links are recognized automagically: <a href="http://www.google.com" class="urlextern" title="http://www.google.com" rel="ugc nofollow">http://www.google.com</a> or simply <a href="http://www.google.com" class="urlextern" title="http://www.google.com" rel="ugc nofollow">www.google.com</a> - You can set the link text as well: <a href="http://www.google.com" class="urlextern" title="http://www.google.com" rel="ugc nofollow">This Link points to google</a>. Email addresses like this one: <a href="mailto:&#97;&#110;&#100;&#105;&#64;&#115;&#112;&#108;&#105;&#116;&#98;&#114;&#97;&#105;&#110;&#46;&#111;&#114;&#103;" class="mail" title="&#97;&#110;&#100;&#105;&#64;&#115;&#112;&#108;&#105;&#116;&#98;&#114;&#97;&#105;&#110;&#46;&#111;&#114;&#103;">&#97;&#110;&#100;&#105;&#64;&#115;&#112;&#108;&#105;&#116;&#98;&#114;&#97;&#105;&#110;&#46;&#111;&#114;&#103;</a> are recognized, too.
</p>
<pre class="code">DokuWiki supports multiple ways of creating links. External links are recognized
automagically: http://www.google.com or simply www.google.com - You can set
link text as well: [[http://www.google.com|This Link points to google]]. Email
addresses like this one: &lt;andi@splitbrain.org&gt; are recognized, too.</pre>
</div>
<!-- EDIT{&quot;target&quot;:&quot;section&quot;,&quot;name&quot;:&quot;External&quot;,&quot;hid&quot;:&quot;external&quot;,&quot;codeblockOffset&quot;:0,&quot;secid&quot;:4,&quot;range&quot;:&quot;1681-2271&quot;} -->
<h3 class="sectionedit5" id="internal">Internal</h3>
<div class="level3">
<p>
Internal links are created by using square brackets. You can either just give a <a href="/wiki/pagename" class="wikilink2" title="wiki:pagename" rel="nofollow" data-wiki-id="wiki:pagename">pagename</a> or use an additional <a href="/wiki/pagename" class="wikilink2" title="wiki:pagename" rel="nofollow" data-wiki-id="wiki:pagename">link text</a>.
</p>
<pre class="code">Internal links are created by using square brackets. You can either just give
a [[pagename]] or use an additional [[pagename|link text]].</pre>
<p>
<a href="https://www.dokuwiki.org/pagename" class="interwiki iw_doku" title="https://www.dokuwiki.org/pagename">Wiki pagenames</a> are converted to lowercase automatically, special characters are not allowed.
</p>
<p>
You can use <a href="/some/namespaces" class="wikilink2" title="some:namespaces" rel="nofollow" data-wiki-id="some:namespaces">namespaces</a> by using a colon in the pagename.
</p>
<pre class="code">You can use [[some:namespaces]] by using a colon in the pagename.</pre>
<p>
For details about namespaces see <a href="https://www.dokuwiki.org/namespaces" class="interwiki iw_doku" title="https://www.dokuwiki.org/namespaces">namespaces</a>.
</p>
<p>
Linking to a specific section is possible, too. Just add the section name behind a hash character as known from <abbr title="HyperText Markup Language">HTML</abbr>. This links to <a href="/wiki/syntax#internal" class="wikilink1" title="wiki:syntax" data-wiki-id="wiki:syntax">this Section</a>.
</p>
<pre class="code">This links to [[syntax#internal|this Section]].</pre>
<p>
Notes:
</p>
<ul>
<li class="level1"><div class="li"> Links to <a href="/wiki/syntax" class="wikilink1" title="wiki:syntax" data-wiki-id="wiki:syntax">existing pages</a> are shown in a different style from <a href="/wiki/nonexisting" class="wikilink2" title="wiki:nonexisting" rel="nofollow" data-wiki-id="wiki:nonexisting">nonexisting</a> ones.</div>
</li>
<li class="level1"><div class="li"> DokuWiki does not use <a href="https://en.wikipedia.org/wiki/CamelCase" class="interwiki iw_wp" title="https://en.wikipedia.org/wiki/CamelCase">CamelCase</a> to automatically create links by default, but this behavior can be enabled in the <a href="https://www.dokuwiki.org/config" class="interwiki iw_doku" title="https://www.dokuwiki.org/config">config</a> file. Hint: If DokuWiki is a link, then it&#039;s enabled.</div>
</li>
<li class="level1"><div class="li"> When a section&#039;s heading is changed, its bookmark changes, too. So don&#039;t rely on section linking too much.</div>
</li>
</ul>
</div>
<!-- EDIT{&quot;target&quot;:&quot;section&quot;,&quot;name&quot;:&quot;Internal&quot;,&quot;hid&quot;:&quot;internal&quot;,&quot;codeblockOffset&quot;:0,&quot;secid&quot;:5,&quot;range&quot;:&quot;2272-3506&quot;} -->
<h3 class="sectionedit6" id="interwiki">Interwiki</h3>
<div class="level3">
<p>
DokuWiki supports <a href="https://www.dokuwiki.org/Interwiki" class="interwiki iw_doku" title="https://www.dokuwiki.org/Interwiki">Interwiki</a> links. These are quick links to other Wikis. For example this is a link to Wikipedia&#039;s page about Wikis: <a href="https://en.wikipedia.org/wiki/Wiki" class="interwiki iw_wp" title="https://en.wikipedia.org/wiki/Wiki">Wiki</a>.
</p>
<pre class="code">DokuWiki supports [[doku&gt;Interwiki]] links. These are quick links to other Wikis.
For example this is a link to Wikipedia&#039;s page about Wikis: [[wp&gt;Wiki]].</pre>
</div>
<!-- EDIT{&quot;target&quot;:&quot;section&quot;,&quot;name&quot;:&quot;Interwiki&quot;,&quot;hid&quot;:&quot;interwiki&quot;,&quot;codeblockOffset&quot;:0,&quot;secid&quot;:6,&quot;range&quot;:&quot;3507-3843&quot;} -->
<h3 class="sectionedit7" id="windows_shares">Windows Shares</h3>
<div class="level3">
<p>
Windows shares like <a href="file://///server/share" class="windows" title="\\server\share">this</a> are recognized, too. Please note that these only make sense in a homogeneous user group like a corporate <a href="https://en.wikipedia.org/wiki/Intranet" class="interwiki iw_wp" title="https://en.wikipedia.org/wiki/Intranet">Intranet</a>.
</p>
<pre class="code">Windows Shares like [[\\server\share|this]] are recognized, too.</pre>
<p>
Notes:
</p>
<ul>
<li class="level1"><div class="li"> For security reasons direct browsing of windows shares only works in Microsoft Internet Explorer per default (and only in the „local zone“).</div>
</li>
<li class="level1"><div class="li"> For Mozilla and Firefox it can be enabled through different workaround mentioned in the <a href="http://kb.mozillazine.org/Links_to_local_pages_do_not_work" class="urlextern" title="http://kb.mozillazine.org/Links_to_local_pages_do_not_work" rel="ugc nofollow">Mozilla Knowledge Base</a>. However, there will still be a JavaScript warning about trying to open a Windows Share. To remove this warning (for all users), put the following line in <code>conf/lang/en/lang.php</code> (more details at <a href="https://www.dokuwiki.org/localization#changing_some_localized_texts_and_strings_in_your_installation" class="interwiki iw_doku" title="https://www.dokuwiki.org/localization#changing_some_localized_texts_and_strings_in_your_installation">localization</a>): <dl class="code">
<dt><a href="/_export/code/wiki/syntax?codeblock=0" title="Schnipsel herunterladen" class="mediafile mf_php">conf/lang/en/lang.php</a></dt>
<dd><pre class="code">&lt;?php
/**
* Customization of the english language file
* Copy only the strings that needs to be modified
*/
$lang[&#039;js&#039;][&#039;nosmblinks&#039;] = &#039;&#039;;</pre>
</dd></dl>
</div>
</li>
</ul>
</div>
<!-- EDIT{&quot;target&quot;:&quot;section&quot;,&quot;name&quot;:&quot;Windows Shares&quot;,&quot;hid&quot;:&quot;windows_shares&quot;,&quot;codeblockOffset&quot;:0,&quot;secid&quot;:7,&quot;range&quot;:&quot;3844-4916&quot;} -->
<h3 class="sectionedit8" id="image_links">Image Links</h3>
<div class="level3">
<p>
You can also use an image to link to another internal or external page by combining the syntax for links and <a href="#images_and_other_files" title="wiki:syntax ↵" class="wikilink1">images</a> (see below) like this:
</p>
<pre class="code">[[http://php.net|{{wiki:dokuwiki-128.png}}]]</pre>
<p>
<a href="http://php.net" class="media" title="http://php.net" rel="ugc nofollow"><img src="/_media/wiki/dokuwiki-128.png" class="media" loading="lazy" alt="" /></a>
</p>
<p>
Please note: The image formatting is the only formatting syntax accepted in link names.
</p>
<p>
The whole <a href="#images_and_other_files" title="wiki:syntax ↵" class="wikilink1">image</a> and <a href="#links" title="wiki:syntax ↵" class="wikilink1">link</a> syntax is supported (including image resizing, internal and external images and URLs and interwiki links).
</p>
</div>
<!-- EDIT{&quot;target&quot;:&quot;section&quot;,&quot;name&quot;:&quot;Image Links&quot;,&quot;hid&quot;:&quot;image_links&quot;,&quot;codeblockOffset&quot;:1,&quot;secid&quot;:8,&quot;range&quot;:&quot;4917-5462&quot;} -->
<h2 class="sectionedit9" id="footnotes">Footnotes</h2>
<div class="level2">
<p>
You can add footnotes <sup><a href="#fn__1" id="fnt__1" class="fn_top">1)</a></sup> by using double parentheses.
</p>
<pre class="code">You can add footnotes ((This is a footnote)) by using double parentheses.</pre>
</div>
<!-- EDIT{&quot;target&quot;:&quot;section&quot;,&quot;name&quot;:&quot;Footnotes&quot;,&quot;hid&quot;:&quot;footnotes&quot;,&quot;codeblockOffset&quot;:1,&quot;secid&quot;:9,&quot;range&quot;:&quot;5463-5637&quot;} -->
<h2 class="sectionedit10" id="sectioning">Sectioning</h2>
<div class="level2">
<p>
You can use up to five different levels of headlines to structure your content. If you have more than three headlines, a table of contents is generated automatically this can be disabled by including the string <code>~~NOTOC~~</code> in the document.
</p>
</div>
<!-- EDIT{&quot;target&quot;:&quot;section&quot;,&quot;name&quot;:&quot;Sectioning&quot;,&quot;hid&quot;:&quot;sectioning&quot;,&quot;codeblockOffset&quot;:1,&quot;secid&quot;:10,&quot;range&quot;:&quot;5638-5924&quot;} -->
<h3 class="sectionedit11" id="headline_level_3">Headline Level 3</h3>
<div class="level3">
</div>
<h4 id="headline_level_4">Headline Level 4</h4>
<div class="level4">
</div>
<h5 id="headline_level_5">Headline Level 5</h5>
<div class="level5">
<pre class="code">==== Headline Level 3 ====
=== Headline Level 4 ===
== Headline Level 5 ==</pre>
<p>
By using four or more dashes, you can make a horizontal line:
</p>
<hr />
</div>
<!-- EDIT{&quot;target&quot;:&quot;section&quot;,&quot;name&quot;:&quot;Headline Level 3&quot;,&quot;hid&quot;:&quot;headline_level_3&quot;,&quot;codeblockOffset&quot;:1,&quot;secid&quot;:11,&quot;range&quot;:&quot;5925-6151&quot;} -->
<h2 class="sectionedit12" id="media_files">Media Files</h2>
<div class="level2">
<p>
You can include external and internal <a href="https://www.dokuwiki.org/images" class="interwiki iw_doku" title="https://www.dokuwiki.org/images">images, videos and audio files</a> with curly brackets. Optionally you can specify the size of them.
</p>
<p>
Real size: <a href="/_detail/wiki/dokuwiki-128.png?id=wiki%3Asyntax" class="media" title="wiki:dokuwiki-128.png"><img src="/_media/wiki/dokuwiki-128.png" class="media" loading="lazy" alt="" /></a>
</p>
<p>
Resize to given width: <a href="/_detail/wiki/dokuwiki-128.png?id=wiki%3Asyntax" class="media" title="wiki:dokuwiki-128.png"><img src="/_media/wiki/dokuwiki-128.png?w=50&amp;tok=18100d" class="media" loading="lazy" alt="" width="50" /></a>
</p>
<p>
Resize to given width and height<sup><a href="#fn__2" id="fnt__2" class="fn_top">2)</a></sup>: <a href="/_detail/wiki/dokuwiki-128.png?id=wiki%3Asyntax" class="media" title="wiki:dokuwiki-128.png"><img src="/_media/wiki/dokuwiki-128.png?w=200&amp;h=50&amp;tok=237720" class="media" loading="lazy" alt="" width="200" height="50" /></a>
</p>
<p>
Resized external image:           <a href="/lib/exe/fetch.php?tok=9cb4be&amp;media=https%3A%2F%2Fwww.php.net%2Fimages%2Fphp.gif" class="media" title="https://www.php.net/images/php.gif"><img src="/lib/exe/fetch.php?w=200&amp;h=50&amp;tok=f5fe8d&amp;media=https%3A%2F%2Fwww.php.net%2Fimages%2Fphp.gif" class="media" loading="lazy" alt="" width="200" height="50" /></a>
</p>
<pre class="code">Real size: {{wiki:dokuwiki-128.png}}
Resize to given width: {{wiki:dokuwiki-128.png?50}}
Resize to given width and height: {{wiki:dokuwiki-128.png?200x50}}
Resized external image:           {{https://www.php.net/images/php.gif?200x50}}</pre>
<p>
By using left or right whitespaces you can choose the alignment.
</p>
<p>
<a href="/_detail/wiki/dokuwiki-128.png?id=wiki%3Asyntax" class="media" title="wiki:dokuwiki-128.png"><img src="/_media/wiki/dokuwiki-128.png" class="mediaright" loading="lazy" alt="" /></a>
</p>
<p>
<a href="/_detail/wiki/dokuwiki-128.png?id=wiki%3Asyntax" class="media" title="wiki:dokuwiki-128.png"><img src="/_media/wiki/dokuwiki-128.png" class="medialeft" loading="lazy" alt="" /></a>
</p>
<p>
<a href="/_detail/wiki/dokuwiki-128.png?id=wiki%3Asyntax" class="media" title="wiki:dokuwiki-128.png"><img src="/_media/wiki/dokuwiki-128.png" class="mediacenter" loading="lazy" alt="" /></a>
</p>
<pre class="code">{{ wiki:dokuwiki-128.png}}
{{wiki:dokuwiki-128.png }}
{{ wiki:dokuwiki-128.png }}</pre>
<p>
Of course, you can add a title (displayed as a tooltip by most browsers), too.
</p>
<p>
<a href="/_detail/wiki/dokuwiki-128.png?id=wiki%3Asyntax" class="media" title="wiki:dokuwiki-128.png"><img src="/_media/wiki/dokuwiki-128.png" class="mediacenter" loading="lazy" title="This is the caption" alt="This is the caption" /></a>
</p>
<pre class="code">{{ wiki:dokuwiki-128.png |This is the caption}}</pre>
<p>
For linking an image to another page see <a href="#image_links" title="wiki:syntax ↵" class="wikilink1">Image Links</a> above.
</p>
</div>
<!-- EDIT{&quot;target&quot;:&quot;section&quot;,&quot;name&quot;:&quot;Media Files&quot;,&quot;hid&quot;:&quot;media_files&quot;,&quot;codeblockOffset&quot;:1,&quot;secid&quot;:12,&quot;range&quot;:&quot;6152-7518&quot;} -->
<h3 class="sectionedit13" id="supported_media_formats">Supported Media Formats</h3>
<div class="level3">
<p>
DokuWiki can embed the following media formats directly.
</p>
<div class="table sectionedit14"><table class="inline">
<tr class="row0">
<td class="col0"> Image </td><td class="col1 leftalign"> <code>gif</code>, <code>jpg</code>, <code>png</code> </td>
</tr>
<tr class="row1">
<td class="col0"> Video </td><td class="col1"> <code>webm</code>, <code>ogv</code>, <code>mp4</code> </td>
</tr>
<tr class="row2">
<td class="col0"> Audio </td><td class="col1 leftalign"> <code>ogg</code>, <code>mp3</code>, <code>wav</code> </td>
</tr>
<tr class="row3">
<td class="col0"> Flash </td><td class="col1 leftalign"> <code>swf</code> </td>
</tr>
</table></div>
<!-- EDIT{&quot;target&quot;:&quot;table&quot;,&quot;name&quot;:&quot;&quot;,&quot;hid&quot;:&quot;table&quot;,&quot;secid&quot;:14,&quot;range&quot;:&quot;7612-7767&quot;} -->
<p>
If you specify a filename that is not a supported media format, then it will be displayed as a link instead.
</p>
<p>
By adding <code>?linkonly</code> you provide a link to the media without displaying it inline
</p>
<pre class="code">{{wiki:dokuwiki-128.png?linkonly}}</pre>
<p>
<a href="/_media/wiki/dokuwiki-128.png" class="media mediafile mf_png" title="wiki:dokuwiki-128.png (27.2 KB)">dokuwiki-128.png</a> This is just a link to the image.
</p>
</div>
<!-- EDIT{&quot;target&quot;:&quot;section&quot;,&quot;name&quot;:&quot;Supported Media Formats&quot;,&quot;hid&quot;:&quot;supported_media_formats&quot;,&quot;codeblockOffset&quot;:1,&quot;secid&quot;:13,&quot;range&quot;:&quot;7519-8072&quot;} -->
<h3 class="sectionedit15" id="fallback_formats">Fallback Formats</h3>
<div class="level3">
<p>
Unfortunately not all browsers understand all video and audio formats. To mitigate the problem, you can upload your file in different formats for maximum browser compatibility.
</p>
<p>
For example consider this embedded mp4 video:
</p>
<pre class="code">{{video.mp4|A funny video}}</pre>
<p>
When you upload a <code>video.webm</code> and <code>video.ogv</code> next to the referenced <code>video.mp4</code>, DokuWiki will automatically add them as alternatives so that one of the three files is understood by your browser.
</p>
<p>
Additionally DokuWiki supports a „poster“ image which will be shown before the video has started. That image needs to have the same filename as the video and be either a jpg or png file. In the example above a <code>video.jpg</code> file would work.
</p>
</div>
<!-- EDIT{&quot;target&quot;:&quot;section&quot;,&quot;name&quot;:&quot;Fallback Formats&quot;,&quot;hid&quot;:&quot;fallback_formats&quot;,&quot;codeblockOffset&quot;:1,&quot;secid&quot;:15,&quot;range&quot;:&quot;8073-8803&quot;} -->
<h2 class="sectionedit16" id="lists">Lists</h2>
<div class="level2">
<p>
Dokuwiki supports ordered and unordered lists. To create a list item, indent your text by two spaces and use a <code>*</code> for unordered lists or a <code>-</code> for ordered ones.
</p>
<ul>
<li class="level1"><div class="li"> This is a list</div>
</li>
<li class="level1 node"><div class="li"> The second item</div>
<ul>
<li class="level2"><div class="li"> You may have different levels</div>
</li>
</ul>
</li>
<li class="level1"><div class="li"> Another item</div>
</li>
</ul>
<ol>
<li class="level1"><div class="li"> The same list but ordered</div>
</li>
<li class="level1 node"><div class="li"> Another item</div>
<ol>
<li class="level2"><div class="li"> Just use indention for deeper levels</div>
</li>
</ol>
</li>
<li class="level1"><div class="li"> That&#039;s it</div>
</li>
</ol>
<pre class="code"> * This is a list
* The second item
* You may have different levels
* Another item
- The same list but ordered
- Another item
- Just use indention for deeper levels
- That&#039;s it</pre>
<p>
Also take a look at the <a href="https://www.dokuwiki.org/faq%3Alists" class="interwiki iw_doku" title="https://www.dokuwiki.org/faq%3Alists">FAQ on list items</a>.
</p>
</div>
<!-- EDIT{&quot;target&quot;:&quot;section&quot;,&quot;name&quot;:&quot;Lists&quot;,&quot;hid&quot;:&quot;lists&quot;,&quot;codeblockOffset&quot;:1,&quot;secid&quot;:16,&quot;range&quot;:&quot;8804-9463&quot;} -->
<h2 class="sectionedit17" id="text_conversions">Text Conversions</h2>
<div class="level2">
<p>
DokuWiki can convert certain pre-defined characters or strings into images or other text or <abbr title="HyperText Markup Language">HTML</abbr>.
</p>
<p>
The text to image conversion is mainly done for smileys. And the text to <abbr title="HyperText Markup Language">HTML</abbr> conversion is used for typography replacements, but can be configured to use other <abbr title="HyperText Markup Language">HTML</abbr> as well.
</p>
</div>
<!-- EDIT{&quot;target&quot;:&quot;section&quot;,&quot;name&quot;:&quot;Text Conversions&quot;,&quot;hid&quot;:&quot;text_conversions&quot;,&quot;codeblockOffset&quot;:2,&quot;secid&quot;:17,&quot;range&quot;:&quot;9464-9768&quot;} -->
<h3 class="sectionedit18" id="text_to_image_conversions">Text to Image Conversions</h3>
<div class="level3">
<p>
DokuWiki converts commonly used <a href="https://en.wikipedia.org/wiki/emoticon" class="interwiki iw_wp" title="https://en.wikipedia.org/wiki/emoticon">emoticon</a>s to their graphical equivalents. Those <a href="https://www.dokuwiki.org/Smileys" class="interwiki iw_doku" title="https://www.dokuwiki.org/Smileys">Smileys</a> and other images can be configured and extended. Here is an overview of Smileys included in DokuWiki:
</p>
<ul>
<li class="level1"><div class="li"> <img src="/lib/images/smileys/cool.svg" class="icon smiley" alt="8-)" /> 8-) </div>
</li>
<li class="level1"><div class="li"> <img src="/lib/images/smileys/eek.svg" class="icon smiley" alt="8-O" /> 8-O </div>
</li>
<li class="level1"><div class="li"> <img src="/lib/images/smileys/sad.svg" class="icon smiley" alt=":-(" /> :-( </div>
</li>
<li class="level1"><div class="li"> <img src="/lib/images/smileys/smile.svg" class="icon smiley" alt=":-)" /> :-) </div>
</li>
<li class="level1"><div class="li"> <img src="/lib/images/smileys/smile2.svg" class="icon smiley" alt="=)" /> =) </div>
</li>
<li class="level1"><div class="li"> <img src="/lib/images/smileys/doubt.svg" class="icon smiley" alt=":-/" /> :-/ </div>
</li>
<li class="level1"><div class="li"> <img src="/lib/images/smileys/doubt2.svg" class="icon smiley" alt=":-\" /> :-\ </div>
</li>
<li class="level1"><div class="li"> <img src="/lib/images/smileys/confused.svg" class="icon smiley" alt=":-?" /> :-? </div>
</li>
<li class="level1"><div class="li"> <img src="/lib/images/smileys/biggrin.svg" class="icon smiley" alt=":-D" /> :-D </div>
</li>
<li class="level1"><div class="li"> <img src="/lib/images/smileys/razz.svg" class="icon smiley" alt=":-P" /> :-P </div>
</li>
<li class="level1"><div class="li"> <img src="/lib/images/smileys/surprised.svg" class="icon smiley" alt=":-O" /> :-O </div>
</li>
<li class="level1"><div class="li"> <img src="/lib/images/smileys/silenced.svg" class="icon smiley" alt=":-X" /> :-X </div>
</li>
<li class="level1"><div class="li"> <img src="/lib/images/smileys/neutral.svg" class="icon smiley" alt=":-|" /> :-| </div>
</li>
<li class="level1"><div class="li"> <img src="/lib/images/smileys/wink.svg" class="icon smiley" alt=";-)" /> ;-) </div>
</li>
<li class="level1"><div class="li"> <img src="/lib/images/smileys/fun.svg" class="icon smiley" alt="^_^" /> ^_^ </div>
</li>
<li class="level1"><div class="li"> <img src="/lib/images/smileys/facepalm.svg" class="icon smiley" alt="m(" /> m( </div>
</li>
<li class="level1"><div class="li"> <img src="/lib/images/smileys/question.svg" class="icon smiley" alt=":?:" /> :?: </div>
</li>
<li class="level1"><div class="li"> <img src="/lib/images/smileys/exclaim.svg" class="icon smiley" alt=":!:" /> :!: </div>
</li>
<li class="level1"><div class="li"> <img src="/lib/images/smileys/lol.svg" class="icon smiley" alt="LOL" /> LOL </div>
</li>
<li class="level1"><div class="li"> <img src="/lib/images/smileys/fixme.svg" class="icon smiley" alt="FIXME" /> FIXME </div>
</li>
<li class="level1"><div class="li"> <img src="/lib/images/smileys/deleteme.svg" class="icon smiley" alt="DELETEME" /> DELETEME </div>
</li>
</ul>
</div>
<!-- EDIT{&quot;target&quot;:&quot;section&quot;,&quot;name&quot;:&quot;Text to Image Conversions&quot;,&quot;hid&quot;:&quot;text_to_image_conversions&quot;,&quot;codeblockOffset&quot;:2,&quot;secid&quot;:18,&quot;range&quot;:&quot;9769-10444&quot;} -->
<h3 class="sectionedit19" id="text_to_html_conversions">Text to HTML Conversions</h3>
<div class="level3">
<p>
Typography: <a href="/wiki/dokuwiki" class="wikilink1" title="wiki:dokuwiki" data-wiki-id="wiki:dokuwiki">DokuWiki</a> can convert simple text characters to their typographically correct entities. Here is an example of recognized characters.
</p>
<p>
→ ← ↔ ⇒ ⇐ ⇔ » « — 640&times;480 © ™ ®
„He thought &#039;It&#039;s a man&#039;s world&#039;…“
</p>
<pre class="code">-&gt; &lt;- &lt;-&gt; =&gt; &lt;= &lt;=&gt; &gt;&gt; &lt;&lt; -- --- 640x480 (c) (tm) (r)
&quot;He thought &#039;It&#039;s a man&#039;s world&#039;...&quot;</pre>
<p>
The same can be done to produce any kind of <abbr title="HyperText Markup Language">HTML</abbr>, it just needs to be added to the <a href="https://www.dokuwiki.org/entities" class="interwiki iw_doku" title="https://www.dokuwiki.org/entities">pattern file</a>.
</p>
<p>
There are three exceptions which do not come from that pattern file: multiplication entity (640&times;480), &#039;single&#039; and „double quotes“. They can be turned off through a <a href="https://www.dokuwiki.org/config%3Atypography" class="interwiki iw_doku" title="https://www.dokuwiki.org/config%3Atypography">config option</a>.
</p>
</div>
<!-- EDIT{&quot;target&quot;:&quot;section&quot;,&quot;name&quot;:&quot;Text to HTML Conversions&quot;,&quot;hid&quot;:&quot;text_to_html_conversions&quot;,&quot;codeblockOffset&quot;:2,&quot;secid&quot;:19,&quot;range&quot;:&quot;10445-11152&quot;} -->
<h2 class="sectionedit20" id="quoting">Quoting</h2>
<div class="level2">
<p>
Some times you want to mark some text to show it&#039;s a reply or comment. You can use the following syntax:
</p>
<pre class="code">I think we should do it
&gt; No we shouldn&#039;t
&gt;&gt; Well, I say we should
&gt; Really?
&gt;&gt; Yes!
&gt;&gt;&gt; Then lets do it!</pre>
<p>
I think we should do it
</p>
<blockquote><div class="no">
No we shouldn&#039;t</div></blockquote>
<blockquote><div class="no">
<blockquote><div class="no">
Well, I say we should</div></blockquote>
</div></blockquote>
<blockquote><div class="no">
Really?</div></blockquote>
<blockquote><div class="no">
<blockquote><div class="no">
Yes!</div></blockquote>
</div></blockquote>
<blockquote><div class="no">
<blockquote><div class="no">
<blockquote><div class="no">
Then lets do it!</div></blockquote>
</div></blockquote>
</div></blockquote>
</div>
<!-- EDIT{&quot;target&quot;:&quot;section&quot;,&quot;name&quot;:&quot;Quoting&quot;,&quot;hid&quot;:&quot;quoting&quot;,&quot;codeblockOffset&quot;:3,&quot;secid&quot;:20,&quot;range&quot;:&quot;11153-11518&quot;} -->
<h2 class="sectionedit21" id="tables">Tables</h2>
<div class="level2">
<p>
DokuWiki supports a simple syntax to create tables.
</p>
<div class="table sectionedit22"><table class="inline">
<thead>
<tr class="row0">
<th class="col0 leftalign"> Heading 1 </th><th class="col1 leftalign"> Heading 2 </th><th class="col2 leftalign"> Heading 3 </th>
</tr>
</thead>
<tr class="row1">
<td class="col0 leftalign"> Row 1 Col 1 </td><td class="col1 leftalign"> Row 1 Col 2 </td><td class="col2 leftalign"> Row 1 Col 3 </td>
</tr>
<tr class="row2">
<td class="col0 leftalign"> Row 2 Col 1 </td><td class="col1" colspan="2"> some colspan (note the double pipe) </td>
</tr>
<tr class="row3">
<td class="col0 leftalign"> Row 3 Col 1 </td><td class="col1 leftalign"> Row 3 Col 2 </td><td class="col2 leftalign"> Row 3 Col 3 </td>
</tr>
</table></div>
<!-- EDIT{&quot;target&quot;:&quot;table&quot;,&quot;name&quot;:&quot;&quot;,&quot;hid&quot;:&quot;table1&quot;,&quot;secid&quot;:22,&quot;range&quot;:&quot;11592-11823&quot;} -->
<p>
Table rows have to start and end with a <code>|</code> for normal rows or a <code>^</code> for headers.
</p>
<pre class="code">^ Heading 1 ^ Heading 2 ^ Heading 3 ^
| Row 1 Col 1 | Row 1 Col 2 | Row 1 Col 3 |
| Row 2 Col 1 | some colspan (note the double pipe) ||
| Row 3 Col 1 | Row 3 Col 2 | Row 3 Col 3 |</pre>
<p>
To connect cells horizontally, just make the next cell completely empty as shown above. Be sure to have always the same amount of cell separators!
</p>
<p>
Vertical tableheaders are possible, too.
</p>
<div class="table sectionedit23"><table class="inline">
<thead>
<tr class="row0">
<td class="col0 leftalign"> </td><th class="col1 leftalign"> Heading 1 </th><th class="col2 leftalign"> Heading 2 </th>
</tr>
</thead>
<tr class="row1">
<th class="col0 leftalign"> Heading 3 </th><td class="col1 leftalign"> Row 1 Col 2 </td><td class="col2 leftalign"> Row 1 Col 3 </td>
</tr>
<tr class="row2">
<th class="col0 leftalign"> Heading 4 </th><td class="col1"> no colspan this time </td><td class="col2 leftalign"> </td>
</tr>
<tr class="row3">
<th class="col0 leftalign"> Heading 5 </th><td class="col1 leftalign"> Row 2 Col 2 </td><td class="col2 leftalign"> Row 2 Col 3 </td>
</tr>
</table></div>
<!-- EDIT{&quot;target&quot;:&quot;table&quot;,&quot;name&quot;:&quot;&quot;,&quot;hid&quot;:&quot;table2&quot;,&quot;secid&quot;:23,&quot;range&quot;:&quot;12343-12586&quot;} -->
<p>
As you can see, it&#039;s the cell separator before a cell which decides about the formatting:
</p>
<pre class="code">| ^ Heading 1 ^ Heading 2 ^
^ Heading 3 | Row 1 Col 2 | Row 1 Col 3 |
^ Heading 4 | no colspan this time | |
^ Heading 5 | Row 2 Col 2 | Row 2 Col 3 |</pre>
<p>
You can have rowspans (vertically connected cells) by adding <code>:::</code> into the cells below the one to which they should connect.
</p>
<div class="table sectionedit24"><table class="inline">
<thead>
<tr class="row0">
<th class="col0 leftalign"> Heading 1 </th><th class="col1 leftalign"> Heading 2 </th><th class="col2 leftalign"> Heading 3 </th>
</tr>
</thead>
<tr class="row1">
<td class="col0 leftalign"> Row 1 Col 1 </td><td class="col1" rowspan="3"> this cell spans vertically </td><td class="col2 leftalign"> Row 1 Col 3 </td>
</tr>
<tr class="row2">
<td class="col0 leftalign"> Row 2 Col 1 </td><td class="col1 leftalign"> Row 2 Col 3 </td>
</tr>
<tr class="row3">
<td class="col0 leftalign"> Row 3 Col 1 </td><td class="col1 leftalign"> Row 2 Col 3 </td>
</tr>
</table></div>
<!-- EDIT{&quot;target&quot;:&quot;table&quot;,&quot;name&quot;:&quot;&quot;,&quot;hid&quot;:&quot;table3&quot;,&quot;secid&quot;:24,&quot;range&quot;:&quot;13065-13340&quot;} -->
<p>
Apart from the rowspan syntax those cells should not contain anything else.
</p>
<pre class="code">^ Heading 1 ^ Heading 2 ^ Heading 3 ^
| Row 1 Col 1 | this cell spans vertically | Row 1 Col 3 |
| Row 2 Col 1 | ::: | Row 2 Col 3 |
| Row 3 Col 1 | ::: | Row 2 Col 3 |</pre>
<p>
You can align the table contents, too. Just add at least two whitespaces at the opposite end of your text: Add two spaces on the left to align right, two spaces on the right to align left and two spaces at least at both ends for centered text.
</p>
<div class="table sectionedit25"><table class="inline">
<thead>
<tr class="row0">
<th class="col0 centeralign" colspan="3"> Table with alignment </th>
</tr>
</thead>
<tr class="row1">
<td class="col0 rightalign"> right</td><td class="col1 centeralign"> center </td><td class="col2 leftalign">left </td>
</tr>
<tr class="row2">
<td class="col0 leftalign">left </td><td class="col1 rightalign"> right</td><td class="col2 centeralign"> center </td>
</tr>
<tr class="row3">
<td class="col0"> xxxxxxxxxxxx </td><td class="col1"> xxxxxxxxxxxx </td><td class="col2"> xxxxxxxxxxxx </td>
</tr>
</table></div>
<!-- EDIT{&quot;target&quot;:&quot;table&quot;,&quot;name&quot;:&quot;&quot;,&quot;hid&quot;:&quot;table4&quot;,&quot;secid&quot;:25,&quot;range&quot;:&quot;13949-14136&quot;} -->
<p>
This is how it looks in the source:
</p>
<pre class="code">^ Table with alignment ^^^
| right| center |left |
|left | right| center |
| xxxxxxxxxxxx | xxxxxxxxxxxx | xxxxxxxxxxxx |</pre>
<p>
Note: Vertical alignment is not supported.
</p>
</div>
<!-- EDIT{&quot;target&quot;:&quot;section&quot;,&quot;name&quot;:&quot;Tables&quot;,&quot;hid&quot;:&quot;tables&quot;,&quot;codeblockOffset&quot;:4,&quot;secid&quot;:21,&quot;range&quot;:&quot;11519-14415&quot;} -->
<h2 class="sectionedit26" id="no_formatting">No Formatting</h2>
<div class="level2">
<p>
If you need to display text exactly like it is typed (without any formatting), enclose the area either with <code>&lt;nowiki&gt;</code> tags or even simpler, with double percent signs <code>%%</code>.
</p>
<p>
This is some text which contains addresses like this: http://www.splitbrain.org and **formatting**, but nothing is done with it.
The same is true for //__this__ text// with a smiley ;-).
</p>
<pre class="code">&lt;nowiki&gt;
This is some text which contains addresses like this: http://www.splitbrain.org and **formatting**, but nothing is done with it.
&lt;/nowiki&gt;
The same is true for %%//__this__ text// with a smiley ;-)%%.</pre>
</div>
<!-- EDIT{&quot;target&quot;:&quot;section&quot;,&quot;name&quot;:&quot;No Formatting&quot;,&quot;hid&quot;:&quot;no_formatting&quot;,&quot;codeblockOffset&quot;:4,&quot;secid&quot;:26,&quot;range&quot;:&quot;14416-15071&quot;} -->
<h2 class="sectionedit27" id="code_blocks">Code Blocks</h2>
<div class="level2">
<p>
You can include code blocks into your documents by either indenting them by at least two spaces (like used for the previous examples) or by using the tags <code>&lt;code&gt;</code> or <code>&lt;file&gt;</code>.
</p>
<pre class="code">This is text is indented by two spaces.</pre>
<pre class="code">This is preformatted code all spaces are preserved: like &lt;-this</pre>
<pre class="file">This is pretty much the same, but you could use it to show that you quoted a file.</pre>
<p>
Those blocks were created by this source:
</p>
<pre class="code"> This is text is indented by two spaces.</pre>
<pre class="code">&lt;code&gt;
This is preformatted code all spaces are preserved: like &lt;-this
&lt;/code&gt;</pre>
<pre class="code">&lt;file&gt;
This is pretty much the same, but you could use it to show that you quoted a file.
&lt;/file&gt;</pre>
</div>
<!-- EDIT{&quot;target&quot;:&quot;section&quot;,&quot;name&quot;:&quot;Code Blocks&quot;,&quot;hid&quot;:&quot;code_blocks&quot;,&quot;codeblockOffset&quot;:4,&quot;secid&quot;:27,&quot;range&quot;:&quot;15072-15813&quot;} -->
<h3 class="sectionedit28" id="syntax_highlighting">Syntax Highlighting</h3>
<div class="level3">
<p>
<a href="/wiki/dokuwiki" class="wikilink1" title="wiki:dokuwiki" data-wiki-id="wiki:dokuwiki">DokuWiki</a> can highlight sourcecode, which makes it easier to read. It uses the <a href="http://qbnz.com/highlighter/" class="urlextern" title="http://qbnz.com/highlighter/" rel="ugc nofollow">GeSHi</a> Generic Syntax Highlighter so any language supported by GeSHi is supported. The syntax uses the same code and file blocks described in the previous section, but this time the name of the language syntax to be highlighted is included inside the tag, e.g. <code>&lt;code java&gt;</code> or <code>&lt;file java&gt;</code>.
</p>
<pre class="code java"><span class="co3">/**
* The HelloWorldApp class implements an application that
* simply displays &quot;Hello World!&quot; to the standard output.
*/</span>
<span class="kw1">class</span> HelloWorldApp <span class="br0">&#123;</span>
<span class="kw1">public</span> <span class="kw1">static</span> <span class="kw4">void</span> main<span class="br0">&#40;</span><a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Adocs.oracle.com+javase+docs+api+string"><span class="kw3">String</span></a><span class="br0">&#91;</span><span class="br0">&#93;</span> args<span class="br0">&#41;</span> <span class="br0">&#123;</span>
<a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Adocs.oracle.com+javase+docs+api+system"><span class="kw3">System</span></a>.<span class="me1">out</span>.<span class="me1">println</span><span class="br0">&#40;</span><span class="st0">&quot;Hello World!&quot;</span><span class="br0">&#41;</span><span class="sy0">;</span> <span class="co1">//Display the string.</span>
<span class="br0">&#125;</span>
<span class="br0">&#125;</span></pre>
<p>
The following language strings are currently recognized: <em>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 roff rpmspec rsplus ruby rust sas sass scala scheme scilab scl sdlbasic smalltalk smarty spark sparql sql sshconfig 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 wolfram xbasic xml xojo xorg_conf xpp yaml z80 zxbasic</em>
</p>
<p>
There are additional <a href="https://www.dokuwiki.org/syntax_highlighting" class="interwiki iw_doku" title="https://www.dokuwiki.org/syntax_highlighting">advanced options</a> available for syntax highlighting, such as highlighting lines or adding line numbers.
</p>
</div>
<!-- EDIT{&quot;target&quot;:&quot;section&quot;,&quot;name&quot;:&quot;Syntax Highlighting&quot;,&quot;hid&quot;:&quot;syntax_highlighting&quot;,&quot;codeblockOffset&quot;:6,&quot;secid&quot;:28,&quot;range&quot;:&quot;15814-18599&quot;} -->
<h3 class="sectionedit29" id="downloadable_code_blocks">Downloadable Code Blocks</h3>
<div class="level3">
<p>
When you use the <code>&lt;code&gt;</code> or <code>&lt;file&gt;</code> syntax as above, you might want to make the shown code available for download as well. You can do this by specifying a file name after language code like this:
</p>
<pre class="code">&lt;file php myexample.php&gt;
&lt;?php echo &quot;hello world!&quot;; ?&gt;
&lt;/file&gt;</pre>
<dl class="file">
<dt><a href="/_export/code/wiki/syntax?codeblock=8" title="Schnipsel herunterladen" class="mediafile mf_php">myexample.php</a></dt>
<dd><pre class="code file php"><span class="kw2">&lt;?php</span> <span class="kw1">echo</span> <span class="st0">&quot;hello world!&quot;</span><span class="sy0">;</span> <span class="sy1">?&gt;</span></pre>
</dd></dl>
<p>
If you don&#039;t want any highlighting but want a downloadable file, specify a dash (<code>-</code>) as the language code: <code>&lt;code - myfile.foo&gt;</code>.
</p>
</div>
<!-- EDIT{&quot;target&quot;:&quot;section&quot;,&quot;name&quot;:&quot;Downloadable Code Blocks&quot;,&quot;hid&quot;:&quot;downloadable_code_blocks&quot;,&quot;codeblockOffset&quot;:7,&quot;secid&quot;:29,&quot;range&quot;:&quot;18600-19129&quot;} -->
<h2 class="sectionedit30" id="rssatom_feed_aggregation">RSS/ATOM Feed Aggregation</h2>
<div class="level2">
<p>
<a href="/wiki/dokuwiki" class="wikilink1" title="wiki:dokuwiki" data-wiki-id="wiki:dokuwiki">DokuWiki</a> can integrate data from external XML feeds. For parsing the XML feeds, <a href="http://simplepie.org/" class="urlextern" title="http://simplepie.org/" rel="ugc nofollow">SimplePie</a> is used. All formats understood by SimplePie can be used in DokuWiki as well. You can influence the rendering by multiple additional space separated parameters:
</p>
<div class="table sectionedit31"><table class="inline">
<thead>
<tr class="row0">
<th class="col0 leftalign"> Parameter </th><th class="col1"> Description </th>
</tr>
</thead>
<tr class="row1">
<td class="col0"> any number </td><td class="col1"> will be used as maximum number items to show, defaults to 8 </td>
</tr>
<tr class="row2">
<td class="col0 leftalign"> reverse </td><td class="col1"> display the last items in the feed first </td>
</tr>
<tr class="row3">
<td class="col0 leftalign"> author </td><td class="col1"> show item authors names </td>
</tr>
<tr class="row4">
<td class="col0 leftalign"> date </td><td class="col1"> show item dates </td>
</tr>
<tr class="row5">
<td class="col0"> description</td><td class="col1"> show the item description. All <abbr title="HyperText Markup Language">HTML</abbr> tags will be stripped </td>
</tr>
<tr class="row6">
<td class="col0 leftalign"> nosort </td><td class="col1"> do not sort the items in the feed </td>
</tr>
<tr class="row7">
<td class="col0"> <em>n</em>[dhm] </td><td class="col1"> refresh period, where d=days, h=hours, m=minutes. (e.g. 12h = 12 hours). </td>
</tr>
</table></div>
<!-- EDIT{&quot;target&quot;:&quot;table&quot;,&quot;name&quot;:&quot;&quot;,&quot;hid&quot;:&quot;table5&quot;,&quot;secid&quot;:31,&quot;range&quot;:&quot;19450-19903&quot;} -->
<p>
The refresh period defaults to 4 hours. Any value below 10 minutes will be treated as 10 minutes. <a href="/wiki/dokuwiki" class="wikilink1" title="wiki:dokuwiki" data-wiki-id="wiki:dokuwiki">DokuWiki</a> will generally try to supply a cached version of a page, obviously this is inappropriate when the page contains dynamic external content. The parameter tells <a href="/wiki/dokuwiki" class="wikilink1" title="wiki:dokuwiki" data-wiki-id="wiki:dokuwiki">DokuWiki</a> to re-render the page if it is more than <em>refresh period</em> since the page was last rendered.
</p>
<p>
By default the feed will be sorted by date, newest items first. You can sort it by oldest first using the <code>reverse</code> parameter, or display the feed as is with <code>nosort</code>.
</p>
<p>
<strong>Example:</strong>
</p>
<pre class="code">{{rss&gt;http://slashdot.org/index.rss 5 author date 1h }}</pre>
<ul class="rss"><li><div class="li"><a href="https://politics.slashdot.org/story/24/07/28/0447203/edward-snowden-skeptical-of-politicians-at-bitcoin-conference---and-public-ledgers?utm_source=rss1.0mainlinkanon&amp;utm_medium=feed" class="urlextern" title="https://politics.slashdot.org/story/24/07/28/0447203/edward-snowden-skeptical-of-politicians-at-bitcoin-conference---and-public-ledgers?utm_source=rss1.0mainlinkanon&amp;utm_medium=feed" rel="ugc nofollow">Edward Snowden Skeptical of Politicians at Bitcoin Conference - and Public Ledgers</a> von EditorDavid (2024/07/28 11:34)</div></li><li><div class="li"><a href="https://news.slashdot.org/story/24/07/28/0213209/what-is-the-future-of-open-source-ai?utm_source=rss1.0mainlinkanon&amp;utm_medium=feed" class="urlextern" title="https://news.slashdot.org/story/24/07/28/0213209/what-is-the-future-of-open-source-ai?utm_source=rss1.0mainlinkanon&amp;utm_medium=feed" rel="ugc nofollow">What Is the Future of Open Source AI?</a> von EditorDavid (2024/07/28 07:34)</div></li><li><div class="li"><a href="https://entertainment.slashdot.org/story/24/07/28/036220/comic-con-2024-new-doctor-who-series-star-trek-movie-keanu-reeves-and-a-red-hulk?utm_source=rss1.0mainlinkanon&amp;utm_medium=feed" class="urlextern" title="https://entertainment.slashdot.org/story/24/07/28/036220/comic-con-2024-new-doctor-who-series-star-trek-movie-keanu-reeves-and-a-red-hulk?utm_source=rss1.0mainlinkanon&amp;utm_medium=feed" rel="ugc nofollow">Comic-Con 2024: New Doctor Who Series, &#039;Star Trek&#039; Movie, Keanu Reeves, and a Red Hulk</a> von EditorDavid (2024/07/28 04:34)</div></li><li><div class="li"><a href="https://science.slashdot.org/story/24/07/28/0119234/sharks-near-brazil-test-positive-for-cocaine?utm_source=rss1.0mainlinkanon&amp;utm_medium=feed" class="urlextern" title="https://science.slashdot.org/story/24/07/28/0119234/sharks-near-brazil-test-positive-for-cocaine?utm_source=rss1.0mainlinkanon&amp;utm_medium=feed" rel="ugc nofollow">Sharks Near Brazil Test Positive For Cocaine</a> von EditorDavid (2024/07/28 02:34)</div></li><li><div class="li"><a href="https://hardware.slashdot.org/story/24/07/28/0057247/lz4-compression-algorithm-gets-multi-threaded-update?utm_source=rss1.0mainlinkanon&amp;utm_medium=feed" class="urlextern" title="https://hardware.slashdot.org/story/24/07/28/0057247/lz4-compression-algorithm-gets-multi-threaded-update?utm_source=rss1.0mainlinkanon&amp;utm_medium=feed" rel="ugc nofollow">LZ4 Compression Algorithm Gets Multi-Threaded Update</a> von EditorDavid (2024/07/28 01:01)</div></li></ul>
</div>
<!-- EDIT{&quot;target&quot;:&quot;section&quot;,&quot;name&quot;:&quot;RSS\/ATOM Feed Aggregation&quot;,&quot;hid&quot;:&quot;rssatom_feed_aggregation&quot;,&quot;codeblockOffset&quot;:9,&quot;secid&quot;:30,&quot;range&quot;:&quot;19130-20595&quot;} -->
<h2 class="sectionedit32" id="control_macros">Control Macros</h2>
<div class="level2">
<p>
Some syntax influences how DokuWiki renders a page without creating any output it self. The following control macros are availble:
</p>
<div class="table sectionedit33"><table class="inline">
<thead>
<tr class="row0">
<th class="col0 leftalign"> Macro </th><th class="col1"> Description </th>
</tr>
</thead>
<tr class="row1">
<td class="col0 leftalign"> ~~NOTOC~~ </td><td class="col1"> If this macro is found on the page, no table of contents will be created </td>
</tr>
<tr class="row2">
<td class="col0"> ~~NOCACHE~~ </td><td class="col1"> DokuWiki caches all output by default. Sometimes this might not be wanted (eg. when the &lt;php&gt; syntax above is used), adding this macro will force DokuWiki to rerender a page on every call </td>
</tr>
</table></div>
<!-- EDIT{&quot;target&quot;:&quot;table&quot;,&quot;name&quot;:&quot;&quot;,&quot;hid&quot;:&quot;table6&quot;,&quot;secid&quot;:33,&quot;range&quot;:&quot;20756-21098&quot;} -->
</div>
<!-- EDIT{&quot;target&quot;:&quot;section&quot;,&quot;name&quot;:&quot;Control Macros&quot;,&quot;hid&quot;:&quot;control_macros&quot;,&quot;codeblockOffset&quot;:9,&quot;secid&quot;:32,&quot;range&quot;:&quot;20596-21099&quot;} -->
<h2 class="sectionedit34" id="syntax_plugins">Syntax Plugins</h2>
<div class="level2">
<p>
DokuWiki&#039;s syntax can be extended by <a href="https://www.dokuwiki.org/plugins" class="interwiki iw_doku" title="https://www.dokuwiki.org/plugins">Plugins</a>. How the installed plugins are used is described on their appropriate description pages. The following syntax plugins are available in this particular DokuWiki installation:
</p>
<ul>
<li class="level1"><div class="li"><a href="http://dokuwiki.org/plugin:info" class="urlextern" title="http://dokuwiki.org/plugin:info" rel="ugc nofollow">Info Plugin</a> <em>2020-06-04</em> von <a href="mailto:&#97;&#110;&#100;&#105;&#64;&#115;&#112;&#108;&#105;&#116;&#98;&#114;&#97;&#105;&#110;&#46;&#111;&#114;&#103;" class="mail" title="&#97;&#110;&#100;&#105;&#64;&#115;&#112;&#108;&#105;&#116;&#98;&#114;&#97;&#105;&#110;&#46;&#111;&#114;&#103;">Andreas Gohr</a><br/>
Displays information about various DokuWiki internals</div>
</li>
<li class="level1"><div class="li"><a href="https://www.dokuwiki.org/plugin:note" class="urlextern" title="https://www.dokuwiki.org/plugin:note" rel="ugc nofollow">Note Plugin</a> <em>2024-04-15</em> von <a href="mailto:&#99;&#111;&#110;&#116;&#114;&#105;&#98;&#64;&#97;&#110;&#97;&#101;&#108;&#46;&#101;&#117;" class="mail" title="&#99;&#111;&#110;&#116;&#114;&#105;&#98;&#64;&#97;&#110;&#97;&#101;&#108;&#46;&#101;&#117;">Anael Mobilia</a><br/>
Add Note/Important/Tip/Warning Capability (DIV+CSS box)</div>
</li>
<li class="level1"><div class="li"><a href="https://www.dokuwiki.org/plugin:pagelist" class="urlextern" title="https://www.dokuwiki.org/plugin:pagelist" rel="ugc nofollow">Pagelist Plugin</a> <em>2023-08-27</em> von <a href="mailto:&#109;&#105;&#99;&#104;&#97;&#101;&#108;&#64;&#99;&#111;&#110;&#116;&#101;&#110;&#116;&#45;&#115;&#112;&#97;&#99;&#101;&#46;&#100;&#101;" class="mail" title="&#109;&#105;&#99;&#104;&#97;&#101;&#108;&#64;&#99;&#111;&#110;&#116;&#101;&#110;&#116;&#45;&#115;&#112;&#97;&#99;&#101;&#46;&#100;&#101;">Matthias Schulte, Michael Hamann, Michael Klier, Gina Haeussge</a><br/>
Lists pages in a nice formatted way</div>
</li>
<li class="level1"><div class="li"><a href="https://www.dokuwiki.org/plugin:siteexport" class="urlextern" title="https://www.dokuwiki.org/plugin:siteexport" rel="ugc nofollow">Site Export</a> <em>2023-07-07</em> von <a href="mailto:&#116;&#111;&#111;&#108;&#115;&#64;&#105;&#110;&#101;&#116;&#115;&#111;&#102;&#116;&#119;&#97;&#114;&#101;&#46;&#100;&#101;" class="mail" title="&#116;&#111;&#111;&#108;&#115;&#64;&#105;&#110;&#101;&#116;&#115;&#111;&#102;&#116;&#119;&#97;&#114;&#101;&#46;&#100;&#101;">i-net software</a><br/>
exports the dokuwiki site in the given format</div>
</li>
<li class="level1"><div class="li"><a href="https://www.dokuwiki.org/plugin:tag" class="urlextern" title="https://www.dokuwiki.org/plugin:tag" rel="ugc nofollow">Tag Plugin</a> <em>2023-10-17</em> von <a href="mailto:&#109;&#105;&#99;&#104;&#97;&#101;&#108;&#64;&#99;&#111;&#110;&#116;&#101;&#110;&#116;&#45;&#115;&#112;&#97;&#99;&#101;&#46;&#100;&#101;" class="mail" title="&#109;&#105;&#99;&#104;&#97;&#101;&#108;&#64;&#99;&#111;&#110;&#116;&#101;&#110;&#116;&#45;&#115;&#112;&#97;&#99;&#101;&#46;&#100;&#101;">Michael Hamann, Gina Häussge, Christopher Smith, Michael Klier, Esther Brunner</a><br/>
tag wiki pages</div>
</li>
<li class="level1"><div class="li"><a href="https://www.dokuwiki.org/plugin:todo" class="urlextern" title="https://www.dokuwiki.org/plugin:todo" rel="ugc nofollow">ToDo</a> <em>2024-05-10</em> von <a href="mailto:&#100;&#111;&#107;&#117;&#119;&#105;&#107;&#105;&#64;&#115;&#112;&#114;&#111;&#115;&#115;&#101;&#110;&#119;&#97;&#110;&#110;&#101;&#46;&#97;&#116;&#44;&#32;&#109;&#97;&#114;&#103;&#64;&#114;&#122;&#46;&#116;&#117;&#45;&#99;&#108;&#97;&#117;&#115;&#116;&#104;&#97;&#108;&#46;&#100;&#101;&#44;&#32;&#100;&#101;&#118;&#101;&#108;&#111;&#112;&#64;&#119;&#101;&#105;&#110;&#109;&#101;&#105;&#115;&#116;&#101;&#114;&#46;&#111;&#114;&#103;" class="mail" title="&#100;&#111;&#107;&#117;&#119;&#105;&#107;&#105;&#64;&#115;&#112;&#114;&#111;&#115;&#115;&#101;&#110;&#119;&#97;&#110;&#110;&#101;&#46;&#97;&#116;&#44;&#32;&#109;&#97;&#114;&#103;&#64;&#114;&#122;&#46;&#116;&#117;&#45;&#99;&#108;&#97;&#117;&#115;&#116;&#104;&#97;&#108;&#46;&#100;&#101;&#44;&#32;&#100;&#101;&#118;&#101;&#108;&#111;&#112;&#64;&#119;&#101;&#105;&#110;&#109;&#101;&#105;&#115;&#116;&#101;&#114;&#46;&#111;&#114;&#103;">Leo Eibler, Christian Marg, Markus Gschwendt, Robert Weinmeister</a><br/>
Create a checkbox based todo list with optional user assignment (basic syntax: &lt;todo&gt;This is a ToDo&lt;/todo&gt;). It can also be used as a lightweight task list management system.</div>
</li>
</ul>
</div>
<!-- EDIT{&quot;target&quot;:&quot;section&quot;,&quot;name&quot;:&quot;Syntax Plugins&quot;,&quot;hid&quot;:&quot;syntax_plugins&quot;,&quot;codeblockOffset&quot;:9,&quot;secid&quot;:34,&quot;range&quot;:&quot;21100-&quot;} --><div class="footnotes">
2024-07-28 18:29:35 +02:00
<div class="fn"><sup><a href="#fnt__1" id="fn__1" class="fn_bot">1)</a></sup>
2024-07-28 18:18:04 +02:00
<div class="content">This is a footnote</div></div>
2024-07-28 18:29:35 +02:00
<div class="fn"><sup><a href="#fnt__2" id="fn__2" class="fn_bot">2)</a></sup>
2024-07-28 18:18:04 +02:00
<div class="content">when the aspect ratio of the given width and height doesn&#039;t match that of the image, it will be cropped to the new ratio before resizing</div></div>
</div>
</div>
</body>
</html>