Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Beide Seiten der vorigen Revision Vorhergehende Überarbeitung Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
| wiki:syntax [21.09.2015 08:06] – ToDo erledigt: mach das nicht selbst Damian Solka | wiki:syntax [15.10.2025 05:34] (aktuell) – alte Version wiederhergestellt (10.06.2025 10:42) Michael Wegener | ||
|---|---|---|---|
| Zeile 1: | Zeile 1: | ||
| - | < | + | ====== |
| - | <todo @mw # | + | |
| - | --- // | + | |
| - | ====== | + | |
| - | [[doku>DokuWiki]] 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 | + | **Basierend auf DokuWiki |
| - | ===== Basic Text Formatting ===== | + | ---- |
| - | DokuWiki | + | ===== Systemkonfiguration ===== |
| + | * **DokuWiki | ||
| + | | ||
| + | | ||
| + | * **PHP-Kompatibilität: | ||
| - | DokuWiki supports **bold**, //italic//, __underlined__ and '' | + | ---- |
| - | Of course you can **__//'' | + | |
| - | You can use < | + | ===== 1. Grundlegende Textformatierung ===== |
| - | You can use <sub>subscript< | + | ==== Textauszeichnung ==== |
| + | <code> | ||
| + | DokuWiki unterstützt **fett**, //kursiv//, __unterstrichen__ und '' | ||
| + | Natürlich können Sie **__//'' | ||
| + | </ | ||
| - | You can mark something as < | + | **Ergebnis: |
| + | DokuWiki unterstützt **fett**, | ||
| + | Natürlich können Sie **__//'' | ||
| - | You can mark something as <del>deleted</del> as well. | + | ==== Hoch- und Tiefstellung ==== |
| + | <code> | ||
| + | Sie können < | ||
| + | Beispiel: H< | ||
| + | </ | ||
| - | **Paragraphs** are created from blank lines. If you want to **force a newline** without a paragraph, you can use two backslashes followed by a whitespace or the end of line. | + | **Ergebnis:** Sie können < |
| + | Beispiel: H< | ||
| - | This is some text with some linebreaks\\ Note that the | + | ==== Durchgestrichener Text ==== |
| - | two backslashes are only recognized at the end of a line\\ | + | < |
| - | or followed by\\ a whitespace \\this happens without it. | + | Sie können etwas als < |
| + | </ | ||
| - | This is some text with some linebreaks\\ Note that the | + | **Ergebnis: |
| - | two backslashes are only recognized at the end of a line\\ | + | |
| - | or followed by\\ a whitespace \\this happens without it. | + | |
| - | You should use forced newlines only if really needed. | + | ==== Zeilenumbrüche und Absätze ==== |
| + | < | ||
| + | Dies ist Text mit Zeilenumbrüchen\\ | ||
| + | Beachten Sie, dass die zwei Backslashes nur am Zeilenende\\ | ||
| + | oder gefolgt von\\ einem Leerzeichen erkannt werden \\dies passiert ohne. | ||
| + | </ | ||
| - | ===== Links ===== | + | **Ergebnis: |
| + | Dies ist Text mit Zeilenumbrüchen\\ | ||
| + | Beachten Sie, dass die zwei Backslashes nur am Zeilenende\\ | ||
| + | oder gefolgt von\\ einem Leerzeichen erkannt werden \\dies passiert ohne. | ||
| - | DokuWiki supports multiple ways of creating links. | + | **Wichtig: |
| - | ==== External ==== | + | ---- |
| - | External links are recognized automagically: | + | ===== 2. Überschriften und Gliederung ===== |
| - | DokuWiki supports multiple ways of creating links. External links are recognized | + | ==== Überschriftenebenen ==== |
| - | | + | < |
| - | link text as well: [[http:// | + | ====== Ebene 1 (Hauptüberschrift) ====== |
| - | | + | ===== Ebene 2 ===== |
| + | ==== Ebene 3 ==== | ||
| + | === Ebene 4 === | ||
| + | == Ebene 5 == | ||
| + | </code> | ||
| - | ==== Internal | + | **Ergebnis: |
| + | ====== | ||
| + | ===== Ebene 2 ===== | ||
| + | ==== Ebene 3 ==== | ||
| + | === Ebene 4 === | ||
| + | == Ebene 5 == | ||
| - | Internal links are created by using square brackets. You can either just give a [[pagename]] or use an additional [[pagename|link text]]. | + | ==== Automatisches Inhaltsverzeichnis ==== |
| + | * Wird automatisch bei mehr als 3 Überschriften erstellt | ||
| + | * Deaktivierung mit '' | ||
| - | Internal links are created by using square brackets. You can either just give | + | ==== Horizontale Linie ==== |
| - | a [[pagename]] or use an additional [[pagename|link text]]. | + | < |
| + | ---- | ||
| + | </ | ||
| - | [[doku> | + | **Ergebnis: |
| + | ---- | ||
| - | You can use [[some: | + | Vier oder mehr Bindestriche erzeugen eine horizontale Linie. |
| - | You can use [[some: | + | ---- |
| - | For details about namespaces see [[doku> | + | ===== 3. Links ===== |
| - | Linking to a specific section is possible, too. Just add the section name behind a hash character as known from HTML. This links to [[syntax# | + | ==== Externe Links ==== |
| + | < | ||
| + | http://www.google.com | ||
| + | [[http:// | ||
| + | [[http:// | ||
| + | < | ||
| + | </ | ||
| - | This links to [[syntax# | + | **Ergebnis: |
| + | http:// | ||
| + | [[http:// | ||
| + | [[http:// | ||
| + | < | ||
| - | Notes: | + | ==== Interne Links ==== |
| + | < | ||
| + | [[seitenname]] | ||
| + | [[seitenname|Link-Text]] | ||
| + | [[namespace:seitenname]] | ||
| + | [[syntax# | ||
| + | </ | ||
| - | | + | **Ergebnis: |
| - | * DokuWiki does not use [[wp> | + | [[seitenname]]\\ |
| - | * When a section' | + | [[seitenname|Link-Text]]\\ |
| + | [[namespace: | ||
| + | [[syntax# | ||
| - | ==== Interwiki ==== | + | ==== Interwiki-Links |
| + | < | ||
| + | [[doku> | ||
| + | [[wp> | ||
| + | </ | ||
| - | DokuWiki supports | + | **Ergebnis: |
| + | [[doku> | ||
| + | [[wp> | ||
| - | DokuWiki supports | + | ==== Windows-Freigaben ==== |
| - | For example this is a link to Wikipedia' | + | < |
| + | [[\\server\freigabe|Diese Freigabe]] | ||
| + | </code> | ||
| - | ==== Windows Shares ==== | + | **Ergebnis: |
| + | [[\\server\freigabe|Diese Freigabe]] | ||
| - | Windows shares like [[\\server\share|this]] are recognized, too. Please note that these only make sense in a homogeneous user group like a corporate [[wp>Intranet]]. | + | ==== Bild-Links ==== |
| + | < | ||
| + | [[http:// | ||
| + | </code> | ||
| - | Windows Shares like [[\\server\share|this]] are recognized, too. | + | **Ergebnis: |
| + | [[http:// | ||
| - | Notes: | + | ---- |
| - | * For security reasons direct browsing of windows shares only works in Microsoft Internet Explorer per default (and only in the "local zone"). | + | ===== 4. Bilder und Medien ===== |
| - | * For Mozilla and Firefox it can be enabled through different workaround mentioned in the [[http://kb.mozillazine.org/Links_to_local_pages_do_not_work|Mozilla Knowledge Base]]. 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 '' | + | |
| - | <?php | + | ==== Grundlegende Bildsyntax ==== |
| - | /** | + | < |
| - | * Customization of the english language file | + | {{wiki:dokuwiki-128.png}} |
| - | * Copy only the strings that needs to be modified | + | {{wiki: |
| - | */ | + | {{wiki: |
| - | $lang[' | + | {{https://www.php.net/images/php.gif?200x50}} |
| </ | </ | ||
| - | ==== Image Links ==== | + | **Ergebnis: |
| + | {{wiki: | ||
| + | {{wiki: | ||
| + | {{wiki: | ||
| + | {{https:// | ||
| - | You can also use an image to link to another internal or external page by combining the syntax for links and [[# | + | ==== Bildausrichtung ==== |
| + | < | ||
| + | {{ wiki:dokuwiki-128.png}} | ||
| + | {{wiki: | ||
| + | {{ wiki: | ||
| + | </ | ||
| - | [[http:// | + | **Ergebnis:** |
| - | [[http:// | + | {{ wiki: |
| - | Please note: The image formatting is the only formatting syntax accepted in link names. | + | {{wiki:dokuwiki-128.png }} |
| - | The whole [[# | + | {{ wiki: |
| - | ===== Footnotes ===== | + | ==== Bildtitel und Alt-Text |
| + | < | ||
| + | {{ wiki: | ||
| + | </ | ||
| - | You can add footnotes ((This is a footnote)) by using double parentheses. | + | **Ergebnis: |
| + | {{ wiki: | ||
| - | You can add footnotes ((This is a footnote)) by using double parentheses. | + | ==== Unterstützte Medienformate ==== |
| - | ===== Sectioning ===== | + | ^ Typ ^ Formate ^ |
| + | | **Bilder** | '' | ||
| + | | **Video** | '' | ||
| + | | **Audio** | '' | ||
| + | | **Flash** | '' | ||
| - | 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 ''< | + | ==== Nur-Link zu Medien |
| - | + | < | |
| - | ==== Headline Level 3 ==== | + | {{wiki: |
| - | === Headline Level 4 === | + | </ |
| - | == Headline Level 5 == | + | |
| - | ==== Headline Level 3 ==== | + | **Ergebnis: |
| - | === Headline Level 4 === | + | {{wiki: |
| - | == Headline Level 5 == | + | |
| - | By using four or more dashes, you can make a horizontal line: | + | ==== Fallback-Formate für Videos ==== |
| + | Laden Sie mehrere Formate hoch (z.B. '' | ||
| ---- | ---- | ||
| - | ===== Media Files ===== | + | ===== 5. Listen |
| - | You can include external and internal [[doku>images|images, | + | ==== Ungeordnete Listen ==== |
| + | < | ||
| + | * Dies ist eine Liste | ||
| + | * Der zweite Punkt | ||
| + | * Sie können verschiedene Ebenen haben | ||
| + | * Noch ein Unterpunkt | ||
| + | * Ein weiterer Punkt | ||
| + | </code> | ||
| - | Real size: | + | **Ergebnis:** |
| + | * Dies ist eine Liste | ||
| + | * Der zweite Punkt | ||
| + | * Sie können verschiedene Ebenen haben | ||
| + | * Noch ein Unterpunkt | ||
| + | * Ein weiterer Punkt | ||
| - | Resize to given width: | + | ==== Geordnete Listen ==== |
| + | < | ||
| + | | ||
| + | - Ein weiterer Punkt | ||
| + | - Verwenden Sie Einrückung für tiefere Ebenen | ||
| + | - Das war' | ||
| + | - Zurück zur ersten Ebene | ||
| + | </ | ||
| - | Resize to given width and height((when the aspect ratio of the given width and height doesn' | + | **Ergebnis:** |
| + | - Die gleiche Liste, aber nummeriert | ||
| + | - Ein weiterer Punkt | ||
| + | - Verwenden Sie Einrückung für tiefere Ebenen | ||
| + | - Das war' | ||
| + | | ||
| - | Resized external image: | + | ==== Gemischte Listen ==== |
| + | < | ||
| + | * Ungeordnet | ||
| + | - Geordnet | ||
| + | - Noch einer | ||
| + | * Zurück zu ungeordnet | ||
| + | </code> | ||
| - | Real size: | + | **Ergebnis:** |
| - | | + | |
| - | | + | |
| - | | + | - Noch einer |
| + | | ||
| + | ---- | ||
| - | By using left or right whitespaces you can choose the alignment. | + | ===== 6. Tabellen ===== |
| - | {{ wiki: | + | ==== Grundlegende Tabellensyntax ==== |
| + | < | ||
| + | ^ Überschrift 1 ^ Überschrift 2 ^ Überschrift 3 ^ | ||
| + | | Zeile 1 Sp 1 | Zeile 1 Sp 2 | Zeile 1 Sp 3 | | ||
| + | | Zeile 2 Sp 1 | Zeile 2 Sp 2 | Zeile 2 Sp 3 | | ||
| + | </ | ||
| - | {{wiki:dokuwiki-128.png }} | + | **Ergebnis:** |
| + | ^ Überschrift 1 ^ Überschrift 2 ^ Überschrift 3 ^ | ||
| + | | Zeile 1 Sp 1 | Zeile 1 Sp 2 | Zeile 1 Sp 3 | | ||
| + | | Zeile 2 Sp 1 | Zeile 2 Sp 2 | Zeile 2 Sp 3 | | ||
| - | {{ wiki: | + | ==== Colspan (Zellen horizontal verbinden) ==== |
| + | < | ||
| + | ^ Überschrift 1 ^ Überschrift 2 ^ Überschrift 3 ^ | ||
| + | | Zeile 1 Sp 1 | Zeile 1 Sp 2 | Zeile 1 Sp 3 | | ||
| + | | Zeile 2 Sp 1 | ein colspan (beachten Sie die doppelte Pipe) || | ||
| + | | Zeile 3 Sp 1 | Zeile 3 Sp 2 | Zeile 3 Sp 3 | | ||
| + | </ | ||
| - | {{ wiki:dokuwiki-128.png}} | + | **Ergebnis:** |
| - | | + | ^ Überschrift 1 ^ Überschrift 2 ^ Überschrift 3 ^ |
| - | | + | | Zeile 1 Sp 1 | Zeile 1 Sp 2 | Zeile 1 Sp 3 | |
| + | | Zeile 2 Sp 1 | ein colspan (beachten Sie die doppelte Pipe) || | ||
| + | | Zeile 3 Sp 1 | Zeile 3 Sp 2 | Zeile 3 Sp 3 | | ||
| - | Of course, you can add a title (displayed as a tooltip by most browsers), too. | + | ==== Vertikale Überschriften ==== |
| + | < | ||
| + | | ^ Überschrift 1 ^ Überschrift 2 ^ | ||
| + | ^ Überschrift 3 | Zeile 1 Sp 2 | Zeile 1 Sp 3 | | ||
| + | ^ Überschrift 4 | Zeile 2 Sp 2 | Zeile 2 Sp 3 | | ||
| + | </ | ||
| - | {{ wiki:dokuwiki-128.png | + | **Ergebnis:** |
| + | | ^ Überschrift 1 ^ Überschrift 2 ^ | ||
| + | ^ Überschrift 3 | Zeile 1 Sp 2 | Zeile 1 Sp 3 | | ||
| + | ^ Überschrift 4 | Zeile 2 Sp 2 | Zeile 2 Sp 3 | ||
| - | {{ wiki:dokuwiki-128.png | + | ==== Rowspan (Zellen vertikal verbinden) ==== |
| + | < | ||
| + | ^ Überschrift 1 ^ Überschrift 2 ^ Überschrift 3 ^ | ||
| + | | Zeile 1 Sp 1 | diese Zelle erstreckt sich vertikal | Zeile 1 Sp 3 | | ||
| + | | Zeile 2 Sp 1 | ::: | Zeile 2 Sp 3 | | ||
| + | | Zeile 3 Sp 1 | ::: | Zeile 3 Sp 3 | | ||
| + | </ | ||
| - | For linking an image to another page see [[#Image Links]] above. | + | **Ergebnis: |
| + | ^ Überschrift 1 ^ Überschrift 2 ^ Überschrift 3 ^ | ||
| + | | Zeile 1 Sp 1 | diese Zelle erstreckt sich vertikal | Zeile 1 Sp 3 | | ||
| + | | Zeile 2 Sp 1 | ::: | Zeile 2 Sp 3 | | ||
| + | | Zeile 3 Sp 1 | ::: | Zeile 3 Sp 3 | | ||
| - | ==== Supported Media Formats | + | ==== Tabellenausrichtung |
| + | < | ||
| + | ^ | ||
| + | | rechts| | ||
| + | |links | ||
| + | | xxxxxxxxxxxx | xxxxxxxxxxxx | xxxxxxxxxxxx | | ||
| + | </ | ||
| - | DokuWiki can embed the following media formats directly. | + | **Ergebnis: |
| + | ^ | ||
| + | | rechts| | ||
| + | |links | ||
| + | | xxxxxxxxxxxx | xxxxxxxxxxxx | xxxxxxxxxxxx | | ||
| - | | Image | '' | + | **Ausrichtungsregeln: |
| - | | Video | '' | + | * **Rechtsbündig: |
| - | | Audio | '' | + | |
| - | | Flash | '' | + | * **Zentriert: |
| - | If you specify a filename that is not a supported media format, then it will be displayed as a link instead. | + | ---- |
| - | By adding ''? | + | ===== 7. Code und Formatierung ===== |
| - | {{wiki: | + | ==== Inline-Code ==== |
| + | < | ||
| + | Dies ist '' | ||
| + | </ | ||
| - | {{wiki:dokuwiki-128.png? | + | **Ergebnis:**\\ |
| + | Dies ist '' | ||
| - | ==== Fallback Formats | + | ==== Code-Blöcke |
| + | **Ergebnis: | ||
| + | < | ||
| + | Dies ist vorformatierter Code, alle Leerzeichen bleiben erhalten: wie <-hier | ||
| + | </ | ||
| - | 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. | + | ==== Datei-Blöcke ==== |
| + | < | ||
| + | <file> | ||
| + | Dies ist ziemlich dasselbe, aber Sie könnten es verwenden, um zu zeigen, dass Sie eine Datei zitiert haben. | ||
| + | </ | ||
| + | </ | ||
| - | For example consider this embedded mp4 video: | + | **Ergebnis:** |
| + | < | ||
| + | Dies ist ziemlich dasselbe, aber Sie könnten es verwenden, um zu zeigen, dass Sie eine Datei zitiert haben. | ||
| + | </ | ||
| - | | + | ==== Syntax-Highlighting ==== |
| + | < | ||
| + | <code java> | ||
| + | /** | ||
| + | * Die HelloWorldApp-Klasse implementiert eine Anwendung, die | ||
| + | * einfach "Hello World!" | ||
| + | */ | ||
| + | class HelloWorldApp | ||
| + | public static void main(String[] args) { | ||
| + | System.out.println(" | ||
| + | | ||
| + | } | ||
| + | </ | ||
| + | </ | ||
| - | When you upload a '' | + | **Ergebnis: |
| + | <code java> | ||
| + | /** | ||
| + | * Die HelloWorldApp-Klasse implementiert eine Anwendung, die | ||
| + | * einfach "Hello World!" | ||
| + | */ | ||
| + | class HelloWorldApp { | ||
| + | public static void main(String[] args) { | ||
| + | System.out.println(" | ||
| + | } | ||
| + | } | ||
| + | </ | ||
| - | Additionally DokuWiki supports a " | + | ==== Unterstützte Sprachen für Syntax-Highlighting ==== |
| + | '' | ||