922 lines
58 KiB
HTML
922 lines
58 KiB
HTML
<!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&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&tseed=9f8c736612cdfa4b90c19d6f18baa041"/>
|
||
<!--[if gte IE 9]><!-->
|
||
<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};
|
||
/*!]]>*/</script>
|
||
<script src="/lib/exe/jquery.php?tseed=f0349b609f9b91a485af8fd8ecd4aea4" defer="defer">/*<![CDATA[*/
|
||
/*!]]>*/</script>
|
||
<script src="/lib/exe/js.php?t=sprintdoc&tseed=9f8c736612cdfa4b90c19d6f18baa041&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{"target":"section","name":"Formatting Syntax","hid":"formatting_syntax","codeblockOffset":0,"secid":1,"range":"1-472"} -->
|
||
<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 ''monospaced'' texts.
|
||
Of course you can **__//''combine''//__** all these.</pre>
|
||
|
||
<p>
|
||
You can use <sub>subscript</sub> and <sup>superscript</sup>, too.
|
||
</p>
|
||
<pre class="code">You can use <sub>subscript</sub> and <sup>superscript</sup>, too.</pre>
|
||
|
||
<p>
|
||
You can mark something as <del>deleted</del> as well.
|
||
</p>
|
||
<pre class="code">You can mark something as <del>deleted</del> 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{"target":"section","name":"Basic Text Formatting","hid":"basic_text_formatting","codeblockOffset":0,"secid":2,"range":"473-1609"} -->
|
||
<h2 class="sectionedit3" id="links">Links</h2>
|
||
<div class="level2">
|
||
|
||
<p>
|
||
DokuWiki supports multiple ways of creating links.
|
||
</p>
|
||
|
||
</div>
|
||
<!-- EDIT{"target":"section","name":"Links","hid":"links","codeblockOffset":0,"secid":3,"range":"1610-1680"} -->
|
||
<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:andi@splitbrain.org" class="mail" title="andi@splitbrain.org">andi@splitbrain.org</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: <andi@splitbrain.org> are recognized, too.</pre>
|
||
|
||
</div>
|
||
<!-- EDIT{"target":"section","name":"External","hid":"external","codeblockOffset":0,"secid":4,"range":"1681-2271"} -->
|
||
<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's enabled.</div>
|
||
</li>
|
||
<li class="level1"><div class="li"> When a section's heading is changed, its bookmark changes, too. So don't rely on section linking too much.</div>
|
||
</li>
|
||
</ul>
|
||
|
||
</div>
|
||
<!-- EDIT{"target":"section","name":"Internal","hid":"internal","codeblockOffset":0,"secid":5,"range":"2272-3506"} -->
|
||
<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'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>Interwiki]] links. These are quick links to other Wikis.
|
||
For example this is a link to Wikipedia's page about Wikis: [[wp>Wiki]].</pre>
|
||
|
||
</div>
|
||
<!-- EDIT{"target":"section","name":"Interwiki","hid":"interwiki","codeblockOffset":0,"secid":6,"range":"3507-3843"} -->
|
||
<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"><?php
|
||
/**
|
||
* Customization of the english language file
|
||
* Copy only the strings that needs to be modified
|
||
*/
|
||
$lang['js']['nosmblinks'] = '';</pre>
|
||
</dd></dl>
|
||
</div>
|
||
</li>
|
||
</ul>
|
||
|
||
</div>
|
||
<!-- EDIT{"target":"section","name":"Windows Shares","hid":"windows_shares","codeblockOffset":0,"secid":7,"range":"3844-4916"} -->
|
||
<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{"target":"section","name":"Image Links","hid":"image_links","codeblockOffset":1,"secid":8,"range":"4917-5462"} -->
|
||
<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{"target":"section","name":"Footnotes","hid":"footnotes","codeblockOffset":1,"secid":9,"range":"5463-5637"} -->
|
||
<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{"target":"section","name":"Sectioning","hid":"sectioning","codeblockOffset":1,"secid":10,"range":"5638-5924"} -->
|
||
<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{"target":"section","name":"Headline Level 3","hid":"headline_level_3","codeblockOffset":1,"secid":11,"range":"5925-6151"} -->
|
||
<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&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&h=50&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&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&h=50&tok=f5fe8d&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{"target":"section","name":"Media Files","hid":"media_files","codeblockOffset":1,"secid":12,"range":"6152-7518"} -->
|
||
<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{"target":"table","name":"","hid":"table","secid":14,"range":"7612-7767"} -->
|
||
<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{"target":"section","name":"Supported Media Formats","hid":"supported_media_formats","codeblockOffset":1,"secid":13,"range":"7519-8072"} -->
|
||
<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{"target":"section","name":"Fallback Formats","hid":"fallback_formats","codeblockOffset":1,"secid":15,"range":"8073-8803"} -->
|
||
<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'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'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{"target":"section","name":"Lists","hid":"lists","codeblockOffset":1,"secid":16,"range":"8804-9463"} -->
|
||
<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{"target":"section","name":"Text Conversions","hid":"text_conversions","codeblockOffset":2,"secid":17,"range":"9464-9768"} -->
|
||
<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{"target":"section","name":"Text to Image Conversions","hid":"text_to_image_conversions","codeblockOffset":2,"secid":18,"range":"9769-10444"} -->
|
||
<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×480 © ™ ®
|
||
„He thought 'It's a man's world'…“
|
||
</p>
|
||
<pre class="code">-> <- <-> => <= <=> >> << -- --- 640x480 (c) (tm) (r)
|
||
"He thought 'It's a man's world'..."</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×480), 'single' 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{"target":"section","name":"Text to HTML Conversions","hid":"text_to_html_conversions","codeblockOffset":2,"secid":19,"range":"10445-11152"} -->
|
||
<h2 class="sectionedit20" id="quoting">Quoting</h2>
|
||
<div class="level2">
|
||
|
||
<p>
|
||
Some times you want to mark some text to show it's a reply or comment. You can use the following syntax:
|
||
</p>
|
||
<pre class="code">I think we should do it
|
||
|
||
> No we shouldn't
|
||
|
||
>> Well, I say we should
|
||
|
||
> Really?
|
||
|
||
>> Yes!
|
||
|
||
>>> Then lets do it!</pre>
|
||
|
||
<p>
|
||
I think we should do it
|
||
</p>
|
||
<blockquote><div class="no">
|
||
No we shouldn'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{"target":"section","name":"Quoting","hid":"quoting","codeblockOffset":3,"secid":20,"range":"11153-11518"} -->
|
||
<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{"target":"table","name":"","hid":"table1","secid":22,"range":"11592-11823"} -->
|
||
<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{"target":"table","name":"","hid":"table2","secid":23,"range":"12343-12586"} -->
|
||
<p>
|
||
As you can see, it'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{"target":"table","name":"","hid":"table3","secid":24,"range":"13065-13340"} -->
|
||
<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{"target":"table","name":"","hid":"table4","secid":25,"range":"13949-14136"} -->
|
||
<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{"target":"section","name":"Tables","hid":"tables","codeblockOffset":4,"secid":21,"range":"11519-14415"} -->
|
||
<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><nowiki></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"><nowiki>
|
||
This is some text which contains addresses like this: http://www.splitbrain.org and **formatting**, but nothing is done with it.
|
||
</nowiki>
|
||
The same is true for %%//__this__ text// with a smiley ;-)%%.</pre>
|
||
|
||
</div>
|
||
<!-- EDIT{"target":"section","name":"No Formatting","hid":"no_formatting","codeblockOffset":4,"secid":26,"range":"14416-15071"} -->
|
||
<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><code></code> or <code><file></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 <-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"><code>
|
||
This is preformatted code all spaces are preserved: like <-this
|
||
</code></pre>
|
||
<pre class="code"><file>
|
||
This is pretty much the same, but you could use it to show that you quoted a file.
|
||
</file></pre>
|
||
|
||
</div>
|
||
<!-- EDIT{"target":"section","name":"Code Blocks","hid":"code_blocks","codeblockOffset":4,"secid":27,"range":"15072-15813"} -->
|
||
<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><code java></code> or <code><file java></code>.
|
||
</p>
|
||
<pre class="code java"><span class="co3">/**
|
||
* The HelloWorldApp class implements an application that
|
||
* simply displays "Hello World!" to the standard output.
|
||
*/</span>
|
||
<span class="kw1">class</span> HelloWorldApp <span class="br0">{</span>
|
||
<span class="kw1">public</span> <span class="kw1">static</span> <span class="kw4">void</span> main<span class="br0">(</span><a href="http://www.google.com/search?hl=en&q=allinurl%3Adocs.oracle.com+javase+docs+api+string"><span class="kw3">String</span></a><span class="br0">[</span><span class="br0">]</span> args<span class="br0">)</span> <span class="br0">{</span>
|
||
<a href="http://www.google.com/search?hl=en&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">(</span><span class="st0">"Hello World!"</span><span class="br0">)</span><span class="sy0">;</span> <span class="co1">//Display the string.</span>
|
||
<span class="br0">}</span>
|
||
<span class="br0">}</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{"target":"section","name":"Syntax Highlighting","hid":"syntax_highlighting","codeblockOffset":6,"secid":28,"range":"15814-18599"} -->
|
||
<h3 class="sectionedit29" id="downloadable_code_blocks">Downloadable Code Blocks</h3>
|
||
<div class="level3">
|
||
|
||
<p>
|
||
When you use the <code><code></code> or <code><file></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"><file php myexample.php>
|
||
<?php echo "hello world!"; ?>
|
||
</file></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"><?php</span> <span class="kw1">echo</span> <span class="st0">"hello world!"</span><span class="sy0">;</span> <span class="sy1">?></span></pre>
|
||
</dd></dl>
|
||
|
||
<p>
|
||
If you don't want any highlighting but want a downloadable file, specify a dash (<code>-</code>) as the language code: <code><code - myfile.foo></code>.
|
||
</p>
|
||
|
||
</div>
|
||
<!-- EDIT{"target":"section","name":"Downloadable Code Blocks","hid":"downloadable_code_blocks","codeblockOffset":7,"secid":29,"range":"18600-19129"} -->
|
||
<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{"target":"table","name":"","hid":"table5","secid":31,"range":"19450-19903"} -->
|
||
<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>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&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&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&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&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&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&utm_medium=feed" rel="ugc nofollow">Comic-Con 2024: New Doctor Who Series, 'Star Trek' 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&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&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&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&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{"target":"section","name":"RSS\/ATOM Feed Aggregation","hid":"rssatom_feed_aggregation","codeblockOffset":9,"secid":30,"range":"19130-20595"} -->
|
||
<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 <php> syntax above is used), adding this macro will force DokuWiki to rerender a page on every call </td>
|
||
</tr>
|
||
</table></div>
|
||
<!-- EDIT{"target":"table","name":"","hid":"table6","secid":33,"range":"20756-21098"} -->
|
||
</div>
|
||
<!-- EDIT{"target":"section","name":"Control Macros","hid":"control_macros","codeblockOffset":9,"secid":32,"range":"20596-21099"} -->
|
||
<h2 class="sectionedit34" id="syntax_plugins">Syntax Plugins</h2>
|
||
<div class="level2">
|
||
|
||
<p>
|
||
DokuWiki'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:andi@splitbrain.org" class="mail" title="andi@splitbrain.org">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:contrib@anael.eu" class="mail" title="contrib@anael.eu">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:michael@content-space.de" class="mail" title="michael@content-space.de">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:tools@inetsoftware.de" class="mail" title="tools@inetsoftware.de">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:michael@content-space.de" class="mail" title="michael@content-space.de">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:dokuwiki@sprossenwanne.at, marg@rz.tu-clausthal.de, develop@weinmeister.org" class="mail" title="dokuwiki@sprossenwanne.at, marg@rz.tu-clausthal.de, develop@weinmeister.org">Leo Eibler, Christian Marg, Markus Gschwendt, Robert Weinmeister</a><br/>
|
||
Create a checkbox based todo list with optional user assignment (basic syntax: <todo>This is a ToDo</todo>). It can also be used as a lightweight task list management system.</div>
|
||
</li>
|
||
</ul>
|
||
|
||
</div>
|
||
<!-- EDIT{"target":"section","name":"Syntax Plugins","hid":"syntax_plugins","codeblockOffset":9,"secid":34,"range":"21100-"} --><div class="footnotes">
|
||
<div class="fn"><sup><a href="#fnt__1" id="fn__1" class="fn_bot">1)</a></sup>
|
||
<div class="content">This is a footnote</div></div>
|
||
<div class="fn"><sup><a href="#fnt__2" id="fn__2" class="fn_bot">2)</a></sup>
|
||
<div class="content">when the aspect ratio of the given width and height doesn't match that of the image, it will be cropped to the new ratio before resizing</div></div>
|
||
</div>
|
||
</div>
|
||
</body>
|
||
</html>
|