Unterschiede
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 [02.07.2025 05:40] (aktuell) – Mermaid Plugin Syntax-Dokumentation hinzugefügt Jane Alesi | ||
---|---|---|---|
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 | + | |
- | <?php | + | ==== Grundlegende Bildsyntax ==== |
+ | < | ||
+ | {{wiki: | ||
+ | {{wiki: | ||
+ | {{wiki: | ||
+ | {{https:// | ||
+ | </ | ||
+ | |||
+ | **Ergebnis: | ||
+ | {{wiki: | ||
+ | {{wiki: | ||
+ | {{wiki: | ||
+ | {{https://www.php.net/images/ | ||
+ | |||
+ | ==== Bildausrichtung ==== | ||
+ | < | ||
+ | {{ wiki: | ||
+ | {{wiki: | ||
+ | {{ wiki: | ||
+ | </ | ||
+ | |||
+ | **Ergebnis: | ||
+ | |||
+ | {{ wiki: | ||
+ | |||
+ | {{wiki: | ||
+ | |||
+ | {{ wiki: | ||
+ | |||
+ | ==== Bildtitel und Alt-Text ==== | ||
+ | < | ||
+ | {{ wiki: | ||
+ | </ | ||
+ | |||
+ | **Ergebnis: | ||
+ | {{ wiki: | ||
+ | |||
+ | ==== Unterstützte Medienformate ==== | ||
+ | |||
+ | ^ Typ ^ Formate ^ | ||
+ | | **Bilder** | '' | ||
+ | | **Video** | '' | ||
+ | | **Audio** | '' | ||
+ | | **Flash** | '' | ||
+ | |||
+ | ==== Nur-Link zu Medien ==== | ||
+ | < | ||
+ | {{wiki: | ||
+ | </ | ||
+ | |||
+ | **Ergebnis: | ||
+ | {{wiki: | ||
+ | |||
+ | ==== Fallback-Formate für Videos ==== | ||
+ | Laden Sie mehrere Formate hoch (z.B. '' | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== 5. Listen ===== | ||
+ | |||
+ | ==== Ungeordnete Listen ==== | ||
+ | < | ||
+ | * Dies ist eine Liste | ||
+ | * Der zweite Punkt | ||
+ | * Sie können verschiedene Ebenen haben | ||
+ | * Noch ein Unterpunkt | ||
+ | * Ein weiterer Punkt | ||
+ | </code> | ||
+ | |||
+ | **Ergebnis: | ||
+ | * Dies ist eine Liste | ||
+ | * Der zweite Punkt | ||
+ | * Sie können verschiedene Ebenen haben | ||
+ | * Noch ein Unterpunkt | ||
+ | * Ein weiterer Punkt | ||
+ | |||
+ | ==== Geordnete Listen ==== | ||
+ | < | ||
+ | - Die gleiche Liste, aber nummeriert | ||
+ | - Ein weiterer Punkt | ||
+ | - Verwenden Sie Einrückung für tiefere Ebenen | ||
+ | - Das war' | ||
+ | - Zurück zur ersten Ebene | ||
+ | </code> | ||
+ | |||
+ | **Ergebnis: | ||
+ | - Die gleiche Liste, aber nummeriert | ||
+ | - Ein weiterer Punkt | ||
+ | - Verwenden Sie Einrückung für tiefere Ebenen | ||
+ | - Das war' | ||
+ | - Zurück zur ersten Ebene | ||
+ | |||
+ | ==== Gemischte Listen ==== | ||
+ | < | ||
+ | * Ungeordnet | ||
+ | - Geordnet | ||
+ | - Noch einer | ||
+ | * Zurück zu ungeordnet | ||
+ | </code> | ||
+ | |||
+ | **Ergebnis: | ||
+ | * Ungeordnet | ||
+ | - Geordnet | ||
+ | - Noch einer | ||
+ | * Zurück zu ungeordnet | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== 6. Tabellen ===== | ||
+ | |||
+ | ==== 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 | | ||
+ | </ | ||
+ | |||
+ | **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 | | ||
+ | |||
+ | ==== Colspan | ||
+ | <code> | ||
+ | ^ Ü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 | | ||
+ | </ | ||
+ | |||
+ | **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 | | ||
+ | |||
+ | ==== Vertikale Überschriften ==== | ||
+ | <code> | ||
+ | | ^ Überschrift 1 ^ Überschrift 2 ^ | ||
+ | ^ Überschrift 3 | Zeile 1 Sp 2 | Zeile 1 Sp 3 | | ||
+ | ^ Überschrift 4 | Zeile 2 Sp 2 | Zeile 2 Sp 3 | | ||
+ | </ | ||
+ | |||
+ | **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 | | ||
+ | |||
+ | ==== 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 | | ||
+ | </ | ||
+ | |||
+ | **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 | | ||
+ | |||
+ | ==== Tabellenausrichtung ==== | ||
+ | < | ||
+ | ^ | ||
+ | | rechts| | ||
+ | |links | ||
+ | | xxxxxxxxxxxx | xxxxxxxxxxxx | xxxxxxxxxxxx | | ||
+ | </ | ||
+ | |||
+ | **Ergebnis: | ||
+ | ^ | ||
+ | | rechts| | ||
+ | |links | ||
+ | | xxxxxxxxxxxx | xxxxxxxxxxxx | xxxxxxxxxxxx | | ||
+ | |||
+ | **Ausrichtungsregeln: | ||
+ | * **Rechtsbündig: | ||
+ | * **Linksbündig: | ||
+ | * **Zentriert: | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== 7. Code und Formatierung ===== | ||
+ | |||
+ | ==== Inline-Code ==== | ||
+ | < | ||
+ | Dies ist '' | ||
+ | </code> | ||
+ | |||
+ | **Ergebnis: | ||
+ | Dies ist '' | ||
+ | |||
+ | ==== Code-Blöcke ==== | ||
+ | **Ergebnis: | ||
+ | < | ||
+ | Dies ist vorformatierter Code, alle Leerzeichen bleiben erhalten: wie <-hier | ||
+ | </code> | ||
+ | |||
+ | ==== Datei-Blöcke ==== | ||
+ | < | ||
+ | < | ||
+ | Dies ist ziemlich dasselbe, aber Sie könnten es verwenden, um zu zeigen, dass Sie eine Datei zitiert haben. | ||
+ | </file> | ||
+ | </ | ||
+ | |||
+ | **Ergebnis: | ||
+ | < | ||
+ | Dies ist ziemlich dasselbe, aber Sie könnten es verwenden, um zu zeigen, dass Sie eine Datei zitiert haben. | ||
+ | </file> | ||
+ | |||
+ | ==== Syntax-Highlighting ==== | ||
+ | <code> | ||
+ | <code java> | ||
/** | /** | ||
- | | + | |
- | | + | |
*/ | */ | ||
- | $lang[' | + | class HelloWorldApp { |
+ | public static void main(String[] args) { | ||
+ | System.out.println(" | ||
+ | } | ||
+ | } | ||
+ | </ | ||
</ | </ | ||
- | ==== Image Links ==== | + | **Ergebnis: |
+ | <code java> | ||
+ | /** | ||
+ | * Die HelloWorldApp-Klasse implementiert eine Anwendung, die | ||
+ | * einfach "Hello World!" | ||
+ | */ | ||
+ | class HelloWorldApp { | ||
+ | public static void main(String[] args) { | ||
+ | System.out.println(" | ||
+ | } | ||
+ | } | ||
+ | </ | ||
- | You can also use an image to link to another internal or external page by combining the syntax for links and [[# | + | ==== Unterstützte Sprachen für Syntax-Highlighting ==== |
+ | '' |