Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen gezeigt.
Beide Seiten, vorherige Überarbeitung Vorherige Überarbeitung | |||
wiki:syntax [19.03.2017 02:59] – auf deutsch Silke | wiki:syntax [03.06.2022 10:02] (aktuell) – Externe Bearbeitung 127.0.0.1 | ||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
- | ====== Syntax ====== | + | ====== |
- | [[doku> | + | [[doku> |
- | In den nachfolgenden Abschnitten sind die möglichen Formatierungsarten aufgelistet, | + | |
- | Ein erstes Beispiel, wie der Aufbau einer Seite aussehen kann, findest du, wenn du dir diese Seite im Quelltext-Modus anzeigen lässt. Klicke dazu auf den Button " | + | |
- | Zum Ausprobieren oder Üben kann die [[playground: | + | ===== Basic Text Formatting ===== |
+ | DokuWiki supports **bold**, //italic//, __underlined__ and '' | ||
- | ====== 1 Texte ====== | + | DokuWiki supports **bold**, //italic//, __underlined__ and '' |
- | ===== 1.1 Formatierungen ===== | + | Of course you can **__//'' |
- | DokuWiki unterstützt **fetten**, //kursiven//, __unterstrichenen__ und '' | + | You can use < |
- | | + | |
- | Natürlich kann auch alles **__//'' | + | |
- | Ebenso gibt es <sub>tiefgestellten</sub> und < | + | You can mark something as <del>deleted</del> as well. |
- | | + | |
- | Text kann als < | + | **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. |
- | Text kann als < | + | 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. | ||
- | ===== 1.2 Absätze ===== | + | 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. | ||
- | Ein Absatz wird durch eine leere Zeile erzeugt. Eine neue Zeile (Zeilenumbruch) kann durch zwei " | + | You should use forced newlines only if really needed. |
- | Dies ist ein Beispieltext mit einigen Zeilenumbrüchen.\\ Beachte: Die zwei umgekehrten Schrägstriche | + | ===== Links ===== |
- | werden nur erkannt, wenn sie am Zeilenende stehen\\ | + | |
- | oder wenn ihnen ein\\ Leerzeichen folgt.\\ So\\sieht es ohne Leerzeichen aus. | + | |
- | Dies ist ein Beispieltext mit einigen Zeilenumbrüchen.\\ Beachte: Die zwei umgekehrten Schrägstriche | + | DokuWiki supports multiple ways of creating links. |
- | werden nur erkannt, wenn sie am Zeilenende stehen\\ | + | |
- | oder wenn ihnen ein\\ Leerzeichen folgt.\\ So\\sieht es ohne Leerzeichen aus. | + | |
- | Zeilenumbrüche durch zwei " | + | ==== External ==== |
- | ===== 1.3 Überschriften ===== | + | External links are recognized automagically: |
- | Mit fünf unterschiedlichen Ebenen, getrennt durch Überschriften, | + | |
- | Die Überschriften werden mit maximal sechs " | + | |
- | Es ist __sinnvoll__, wenn immer eine Level 1 Überschrift am Anfang eines Artikels steht. | + | DokuWiki supports multiple ways of creating links. External links are recognized |
+ | automagically: | ||
+ | link text as well: [[http:// | ||
+ | addresses like this one: < | ||
- | Wenn in einer Seite mehr als drei Überschriften vorkommen, wird automatisch ein Inhaltsverzeichnis erstellt, welches alle Überschriften auflistet. | + | ==== Internal ==== |
- | Soll dieses Inhaltsverzeichnis nicht erstellt werden, muss der Befehl: ''< | + | |
- | ====== Überschrift Ebene 1 ====== | + | Internal links are created by using square brackets. You can either just give a [[pagename]] or use an additional [[pagename|link text]]. |
- | ===== Überschrift Ebene 2 ===== | + | |
- | ==== Überschrift Ebene 3 ==== | + | |
- | === Überschrift Ebene 4 === | + | |
- | == Überschrift Ebene 5 == | + | |
- | Innerhalb von Überschriften können standardmäßig keine weiteren Formatierungen vorgenommen werden! (s. [[doku> | + | Internal links are created by using square brackets. You can either just give |
+ | a [[pagename]] or use an additional [[pagename|link text]]. | ||
- | ===== 1.4 unformatierte Abschnitte ===== | + | [[doku> |
- | Um Text so anzuzeigen, wie er geschrieben wurde, egal ob er DokuWiki Formatierungen oder andere Formatierungen enthält, kann man jede | + | You can use [[some: |
- | Zeile mit zwei Leerzeichen beginnen (so wie es in dieser Seite angewendet wurde) oder einen der Bezeichner " | + | |
- | < | + | You can use [[some:namespaces]] by using a colon in the pagename. |
- | Mit " | + | |
- | </ | + | |
+ | For details about namespaces see [[doku> | ||
- | <file plain Beispiel.txt> | + | 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# |
- | Mit dem Bezeichner " | + | |
- | auf einer Seite zum Download angeboten werden. | + | |
- | </ | + | |
- | Innerhalb von " | + | This links to [[syntax#internal|this Section]]. |
- | <file perl HelloWorld.pl> | + | Notes: |
- | # | + | |
- | print "Hello World!\n"; | + | |
- | </ | + | |
- | | + | |
- | | + | |
- | | + | |
- | </ | + | |
- | Um jegliche Umwandlung durch DokuWiki abzustellen, | + | ==== Interwiki ==== |
- | <nowiki> | + | DokuWiki supports [[doku>Interwiki]] links. These are quick links to other Wikis. For example this is a link to Wikipedia' |
- | Dieser Text enthält Links wie: http://www.splitbrain.org und **Formatierungen** aber sie werden nicht umgesetzt und erscheinen als normaler Text. | + | |
- | </ | + | |
- | %%Dieser Text ist nun mit %%''< | + | DokuWiki supports [[doku> |
+ | For example this is a link to Wikipedia's page about Wikis: [[wp>Wiki]]. | ||
- | " | + | ==== Windows Shares ==== |
- | Einfach den Quelltext dieser Seite anschauen (den Knopf " | + | 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> |
- | ===== 1.5 Syntax-Hervorhebung ===== | + | Windows Shares like [[\\server\share|this]] are recognized, too. |
- | [[doku> | + | Notes: |
- | Es wird der gleiche Bezeichner wie im vorherigen Abschnitt benutzt, nur dass er nun auch den Namen der Sprache enthält: | + | |
- | ''< | + | |
- | < | + | * For security reasons direct browsing of windows shares only works in Microsoft Internet Explorer per default (and only in the "local zone" |
- | /** | + | * For Mozilla and Firefox it can be enabled through different workaround mentioned in the [[http:// |
- | | + | <?php |
- | | + | /** |
+ | | ||
+ | | ||
*/ | */ | ||
- | class HelloWorldApp { | + | $lang[' |
- | public static void main(String[] args) { | + | |
- | System.out.println(" | + | |
- | } | + | |
- | } | + | |
</ | </ | ||
- | Es werden folgende Sprachen unterstützt: | + | ==== Image Links ==== |
- | ===== 1.6 Zitat / Kommentar ===== | + | You can also use an image to link to another internal or external page by combining the syntax for links and [[# |
- | Um einen Text als Zitat oder Kommentar zu kennzeichnen, | + | |
- | | + | |
- | + | ||
- | > Nein, sollten wir nicht. | + | |
- | + | ||
- | >> Doch! | + | |
- | + | ||
- | > Wirklich? | + | |
- | + | ||
- | >> Ja! | + | |
- | + | ||
- | >>> | + | |
- | + | ||
- | >>> | + | |
- | Ich denke wir sollten es tun | + | [[http:// |
- | > Nein, sollten wir nicht. | + | Please note: The image formatting is the only formatting syntax accepted in link names. |
- | >> Doch! | + | The whole [[# |
- | > Wirklich? | + | ===== Footnotes ===== |
- | >> Ja! | + | You can add footnotes ((This is a footnote)) by using double parentheses. |
- | >>> | + | You can add footnotes ((This is a footnote)) by using double parentheses. |
- | >>> | + | ===== Sectioning |
- | + | ||
- | ===== 1.7 Escapezeichen | + | |
- | Will man verhindern, dass DokuWiki irgendwelche Formatierungen am bzw. Umwandlungen im Text vornimmt so kann man die Prozentzeichen benutzen | + | |
- | < | + | |
- | Die Ausgabe würde dann folgendermaßen aussehen %%[[wiki: | + | |
- | ===== 1.8 Fußnoten ===== | + | 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 ''< |
- | Fußnoten ((dies ist eine Fußnote)) werden durch eine doppelte runde Klammer dargestellt ((eine zweite Fußnote)). Der Text zwischen den Klammern wird an das Ende der Seite geschrieben. Die Reihenfolge und somit die Nummerierung übernimmt DokuWiki. | + | ==== Headline Level 3 ==== |
+ | === Headline Level 4 === | ||
+ | == Headline Level 5 == | ||
- | | + | |
- | | + | === Headline Level 4 === |
- | ===== 1.9 Linien | + | |
- | Aus dem englischen: Durch 4 oder mehr Bindestriche " | + | By using four or more dashes, you can make a horizontal line: |
- | ----- | + | |
+ | ---- | ||
+ | ===== Media Files ===== | ||
+ | You can include external and internal [[doku> | ||
- | ====== 2 Links ====== | + | Real size: {{wiki: |
- | Mit DokuWiki können fünf unterschiedliche Arten von Links benutzt werden: | + | Resize to given width: |
- | ===== 2.1 Extern ===== | + | Resize to given width and height((when the aspect ratio of the given width and height doesn' |
- | Externe Links (Verweise auf andere Webseiten oder Dateien) werden automatisch erkannt: http://www.google.com oder einfach www.google.com. | + | Resized external image: {{https://secure.php.net/images/php.gif? |
- | Verweise können auch hinter eigenen Begriffen versteckt werden: [[http://www.google.com|hier ist google]]. | + | |
- | E-Mail Adressen werden in spitze Klammern gesetzt: < | + | |
- | | + | |
- | | + | |
- | | + | |
+ | Resized external image: {{https:// | ||
- | ===== 2.2 Intern ===== | ||
- | Interne Links, also Verweise auf Seiten innerhalb von DokuWiki, werden in doppelten eckigen Klammern gesetzt ("Alt Gr+8" bzw. Alt Gr+9 unter Windows bzw. Wahltaste+5 und Wahltaste+6 bei Apple-Betriebssystemen): | + | By using left or right whitespaces you can choose the alignment. |
- | [[doku> | + | |
- | Ein Link kann auch hinter einem Begriff oder einer Beschreibung versteckt werden: | + | {{ wiki:dokuwiki-128.png}} |
- | [[pagename|Beschreibung für einen Link]]. | + | |
- | Interne Links werden in doppelten eckigen Klammern gesetzt: | + | {{wiki:dokuwiki-128.png }} |
- | [[pagename]] | + | |
- | + | ||
- | Ein Link kann auch hinter einem Begriff oder einer Beschreibung versteckt werden: | + | |
- | [[pagename|Beschreibung für einen Link]]. | + | |
- | Dateinamen für neue Seiten im Wiki werden automatisch in Kleinbuchstaben umgewandelt! | + | {{ wiki: |
- | Umlaute sind genauso wie Sonderzeichen nicht erlaubt! | + | |
- | Durch einen Doppelpunkt werden Namensbereiche im Wiki aufgelöst: [[doku> | + | {{ wiki:dokuwiki-128.png}} |
+ | {{wiki:dokuwiki-128.png }} | ||
+ | {{ wiki: | ||
- | Durch einen Doppelpunkt werden Namensbereiche im Wiki aufgelöst: | + | Of course, you can add a title (displayed as a tooltip by most browsers), too. |
- | Weitere Informationen zu Namensbereichen: [[doku> | + | {{ wiki:dokuwiki-128.png |This is the caption}} |
- | Die Verlinkung zu einem speziellen Abschnitt innerhalb des Dokuments (Anker) ist auch möglich. Der Abschnittsnamen wird getrennt durch ein Doppelkreuz (#) an den Seitennamen gehängt. | + | {{ wiki: |
- | Dieses Beispiel verlinkt zu [[de: | + | For linking an image to another page see [[#Image Links]] above. |
- | Dieses Beispiel verlinkt zu [[de: | + | ==== Supported Media Formats ==== |
+ | DokuWiki can embed the following media formats directly. | ||
- | Anmerkungen: | + | | Image | '' |
+ | | Video | '' | ||
+ | | Audio | '' | ||
+ | | Flash | '' | ||
- | * Links zu [[syntax|existierenden Seiten]] werden anders angezeigt als Links zu [[nicht-existierenden]] Seiten. | + | If you specify a filename that is not a supported media format, then it will be displayed as a link instead. |
- | * DokuWiki verwendet standardmäßig keine [[wpde> | + | |
- | * Ändert sich eine Überschrift im Zieldokument, | + | |
- | * Anker werden klein geschrieben, | + | |
- | ===== 2.3 Interwiki ===== | + | By adding ''? |
- | DokuWiki unterstützt auch Links in andere Wikis, sogenannte [[doku> | + | {{wiki:dokuwiki-128.png? |
- | Ein Link zur Wikipedia Seite über Wikis: | + | |
- | DokuWiki unterstützt auch Links in andere Wikis, sogenannte [[doku> | + | {{wiki:dokuwiki-128.png? |
- | Ein Link zur Wikipedia Seite über Wikis: | + | |
- | * wp https:// | + | |
- | * wpde https://de.wikipedia.org/ | + | |
- | * larpwiki | + | |
- | * doku https:// | + | |
- | Beispiele: | + | ==== Fallback Formats ==== |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
+ | 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. | ||
- | ===== 2.4 Bilder als Links ===== | + | For example consider this embedded mp4 video: |
- | Bilder können für einen Link auf eine interne oder externe Datei verwendet werden. Dazu wird die Syntax zur Anzeige von Links einfach mit der zur Anzeige von Bildern (siehe unten) kombiniert: | + | {{video.mp4|A funny video}} |
- | | + | When you upload a '' |
- | [[http:// | + | Additionally DokuWiki supports a " |
- | Bitte beachte: Bildformatierungen sind die einzigen Formatierungen, | + | ===== Lists ===== |
- | ====== 3 Bilder und andere Dateien ====== | + | Dokuwiki supports ordered and unordered lists. To create a list item, indent your text by two spaces and use a '' |
- | ===== 3.1 Bilder im DokuWiki speichern ===== | + | * This is a list |
+ | * The second item | ||
+ | * You may have different levels | ||
+ | * Another item | ||
- | Um Bilder im DokuWiki speichern zu dürfen, muss der Benutzer die entsprechende Berechtigung besitzen ([[de: | + | - The same list but ordered |
+ | - Another item | ||
+ | - Just use indention for deeper levels | ||
+ | - That's it | ||
- | ===== 3.2 Größe von Bildern | + | < |
- | Mit geschweiften Klammern können sowohl externe als auch interne [[doku> | + | * This is a list |
+ | * The second item | ||
+ | * You may have different levels | ||
+ | * Another item | ||
- | Originalgröße: | + | - The same list but ordered |
+ | - Another item | ||
+ | - Just use indention for deeper levels | ||
+ | - That's it | ||
+ | </ | ||
- | Eine Breite vorgeben: | + | Also take a look at the [[doku> |
- | Breite und Höhe vorgeben: | + | ===== Text Conversions ===== |
- | Größe für externe Bilder vorgeben: | + | DokuWiki can convert certain pre-defined characters or strings into images |
- | Originalgröße: | + | The text to image conversion is mainly done for smileys. And the text to HTML conversion is used for typography replacements, |
- | Eine Breite vorgeben: | + | |
- | Breite und Höhe vorgeben: | + | |
- | Größe für externe Bilder vorgeben: | + | |
- | ===== 3.3 Ausrichten von Bildern | + | ==== Text to Image Conversions |
- | Mit Leerzeichen zur Rechten und/oder Linken innerhalb der Klammern kann ein Bild horizontal ausgerichtet werden (Links, Zentriert, Rechts). | + | |
- | {{ :dobran_k.gif|Rechts}} | + | DokuWiki converts commonly used [[wp> |
- | {{:dobran_k.gif | + | * 8-) %% 8-) %% |
+ | * 8-O %% 8-O %% | ||
+ | * :-( %% :-( %% | ||
+ | * :-) %% :-) %% | ||
+ | * =) %% =) %% | ||
+ | * :-/ %% :-/ %% | ||
+ | * :-\ %% :-\ %% | ||
+ | * :-? %% :-? %% | ||
+ | * :-D %% :-D %% | ||
+ | * :-P %% :-P %% | ||
+ | * :-O %% :-O %% | ||
+ | * :-X %% :-X %% | ||
+ | * :-| %% :-| %% | ||
+ | * ;-) %% ;-) %% | ||
+ | * ^_^ %% ^_^ %% | ||
+ | * m( %% m( %% | ||
+ | * :?: %% :?: %% | ||
+ | * :!: %% :!: %% | ||
+ | * LOL %% LOL %% | ||
+ | * FIXME %% FIXME %% | ||
+ | * DELETEME %% DELETEME %% | ||
- | {{ : | + | ==== Text to HTML Conversions ==== |
- | + | Typography: [[DokuWiki]] can convert simple text characters to their typographically correct entities. Here is an example of recognized characters. | |
- | {{:dobran_k.gif }} | + | |
- | {{ : | + | |
- | {{ :dobran_k.gif}} | + | |
- | Bei Ausrichtung und der Verwendung eines Titels sollte man drauf achten, dass der Titel nach dem Leerzeichen kommt: | + | -> <- < |
- | + | "He thought ' | |
- | {{: | + | |
- | {{ : | + | |
- | {{ : | + | |
- | + | ||
- | ===== 3.4 Tooltips ===== | + | |
- | Auch Titel, in den meisten Browsern als Tooltip angezeigt, können angegeben werden. | + | |
- | {{ :dobran_k.gif |Dies ist ein Titel}} | + | < |
+ | -> <- <-> => <= <=> >> << -- --- 640x480 (c) (tm) (r) | ||
+ | "He thought ' | ||
+ | </ | ||
- | {{ : | + | The same can be done to produce any kind of HTML, it just needs to be added to the [[doku> |
- | ===== 3.5 Dateidownload ===== | + | There are three exceptions which do not come from that pattern file: multiplication entity (640x480), ' |
- | Wenn eine Datei angegeben wird, die kein Bild ('' | + | ===== Quoting ===== |
- | {{ : | + | Some times you want to mark some text to show it's a reply or comment. You can use the following syntax: |
- | < | + | |
- | ===== 3.6 Automatische Verlinkung ===== | + | < |
+ | I think we should do it | ||
- | Bilder werden automatisch mit einer Verlinkung zur Ihren [[wpde>Metadaten]] erstellt - Bsp.: {{: | + | > No we shouldn' |
- | Dieses Verhalten kann über die Option ? | + | >> Well, I say we should |
- | {{: | + | > Really? |
- | {{: | + | |
- | Außerdem kann mit ?direct das Bild, z.Bsp. als Vollansicht, | + | >> Yes! |
- | {{: | + | >>> |
- | | + | </ |
- | ====== 4 Listen ====== | + | I think we should do it |
- | DokuWiki kennt unsortierte und nummerierte Listen. Um einen Listeneintrag zu erzeugen, beginne eine Zeile mit zwei Leerzeichen. Diesen Leerzeichen folgt dann ein " | + | > No we shouldn' |
- | * Dies ist ein Eintrag einer unsortierten Liste | + | >> Well, I say we should |
- | * Ein zweiter Eintrag | + | |
- | * Unterschiedliche Ebenen einer Liste durch Hinzufügen von weiteren zwei Leerzeichen | + | |
- | * Noch ein Eintrag | + | |
- | - Dies ist ein Eintrag einer nummerierte Liste | + | > Really? |
- | - Ein zweiter Eintrag | + | |
- | - Unterschiedliche Ebenen einer Liste durch Hinzufügen von weiteren zwei Leerzeichen | + | |
- | - Noch ein Eintrag | + | |
- | <code> | + | >> Yes! |
- | * Dies ist ein Eintrag einer unsortierten Liste | + | |
- | * Ein zweiter Eintrag | + | |
- | * Unterschiedliche Ebenen einer Liste durch Hinzufügen von weiteren zwei Leerzeichen | + | |
- | * Noch ein Eintrag | + | |
- | - Dies ist ein Eintrag einer nummerierte Liste | + | >>> |
- | | + | |
- | | + | ===== Tables ===== |
- | - Noch ein Eintrag | + | |
- | </ | + | DokuWiki supports a simple syntax to create tables. |
+ | |||
+ | ^ 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 | | ||
+ | |||
+ | Table rows have to start and end with a '' | ||
+ | |||
+ | | ||
+ | | Row 1 Col 1 | Row 1 Col 2 | Row 1 Col 3 | | ||
+ | | ||
+ | | Row 3 Col 1 | Row 3 Col 2 | Row 3 Col 3 | | ||
+ | |||
+ | To connect cells horizontally, | ||
+ | |||
+ | Vertical tableheaders are possible, too. | ||
+ | |||
+ | | ^ 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 | | ||
+ | |||
+ | As you can see, it's the cell separator before a cell which decides about the formatting: | ||
+ | |||
+ | | ^ 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 | | ||
+ | |||
+ | You can have rowspans (vertically connected cells) by adding '' | ||
+ | |||
+ | ^ 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 | | ||
+ | |||
+ | Apart from the rowspan syntax those cells should not contain anything else. | ||
+ | |||
+ | ^ 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 | | ||
+ | |||
+ | 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. | ||
+ | |||
+ | ^ Table with alignment | ||
+ | | | ||
+ | |left | | ||
+ | | xxxxxxxxxxxx | xxxxxxxxxxxx | xxxxxxxxxxxx | | ||
+ | |||
+ | This is how it looks in the source: | ||
+ | |||
+ | ^ Table with alignment | ||
+ | | | ||
+ | |left | | ||
+ | | xxxxxxxxxxxx | xxxxxxxxxxxx | xxxxxxxxxxxx | | ||
+ | |||
+ | Note: Vertical alignment is not supported. | ||
+ | |||
+ | ===== No Formatting ===== | ||
+ | |||
+ | If you need to display text exactly like it is typed (without any formatting), | ||
+ | |||
+ | < | ||
+ | This is some text which contains addresses like this: http:// | ||
+ | </ | ||
+ | The same is true for %%// | ||
+ | |||
+ | | ||
+ | This is some text which contains addresses like this: http:// | ||
+ | </ | ||
+ | The same is true for %%// | ||
+ | |||
+ | ===== Code Blocks ===== | ||
+ | |||
+ | You can include | ||
- | ====== 5 Tabellen ====== | + | This is text is indented by two spaces. |
- | [[https:// | + | |
- | Mit DokuWiki können Tabellen ganz einfach erstellt werden: | + | |
< | < | ||
- | {| title=" | + | This is preformatted code all spaces are preserved: like <-this |
- | |+// | + | |
- | ! style=" | + | |
- | ! style=" | + | |
- | ! style=" | + | |
- | |- | + | |
- | |Zeile 1, Spalte 1 | + | |
- | |Zeile 2, Spalte 1 | + | |
- | |Zeile 3, Spalte 1 | + | |
- | |- | + | |
- | |colspan=" | + | |
- | |- | + | |
- | |rowspan=" | + | |
- | |Zeile 3, Spalte 2 | + | |
- | |Zeile 3, Spalte 3 | + | |
- | |- | + | |
- | |Zeile 4, Spalte 2 | + | |
- | |Zeile 4, Spalte 2 | + | |
- | |- | + | |
- | |Zeile 5, Spalte 1 | + | |
- | | style=" | + | |
- | | style=" | + | |
- | |} | + | |
</ | </ | ||
- | ergibt: | ||
- | {| title=" | ||
- | |+// | ||
- | ! style=" | ||
- | ! style=" | ||
- | ! style=" | ||
- | |- | ||
- | |Zeile 1, Spalte 1 | ||
- | |Zeile 2, Spalte 1 | ||
- | |Zeile 3, Spalte 1 | ||
- | |- | ||
- | |colspan=" | ||
- | |- | ||
- | |rowspan=" | ||
- | |Zeile 3, Spalte 2 | ||
- | |Zeile 3, Spalte 3 | ||
- | |- | ||
- | |Zeile 4, Spalte 2 | ||
- | |Zeile 4, Spalte 2 | ||
- | |- | ||
- | |Zeile 5, Spalte 1 | ||
- | | style=" | ||
- | | style=" | ||
- | |} | ||
- | | Hinweis zu dem senkrechten Balken-Zeichen: | + | <file> |
+ | This is pretty much the same, but you could use it to show that you quoted a file. | ||
+ | </ | ||
- | ====== 6 sonstige Formatierungen ====== | + | Those blocks were created by this source: |
- | ===== 6.1 horizontale Linie ===== | + | This is text is indented by two spaces. |
- | Mit vier aufeinander folgenden Minuszeichen (alleine in einer Zeile) kann eine horizontale Linie erzeugt werden: | + | |
- | ---- | + | |
- | < | + | |
+ | < | ||
+ | This is preformatted code all spaces are preserved: like <-this | ||
+ | </ | ||
- | ===== 6.2 Smileys ===== | + | < |
+ | This is pretty much the same, but you could use it to show that you quoted a file. | ||
+ | </ | ||
- | DokuWiki verwandelt oft genutzte [[wpde> | + | ==== Syntax Highlighting ==== |
- | Weitere Smiley-Grafiken können im Ordner " | + | |
- | Hier ist nun eine Übersicht der standardmäßig in DokuWiki enthaltenen Smileys: | + | |
- | ^ 8-) ^ 8-O ^ | + | [[wiki:DokuWiki]] can highlight sourcecode, which makes it easier to read. It uses the [[http:// |
- | | %% 8-) %% | %% 8-O %% | %% :-( %% | %% :-) %% | %% =) | + | |
- | ===== 6.3 Typografie ===== | + | <code java> |
+ | /** | ||
+ | * The HelloWorldApp class implements an application that | ||
+ | * simply displays "Hello World!" | ||
+ | */ | ||
+ | class HelloWorldApp { | ||
+ | public static void main(String[] args) { | ||
+ | System.out.println(" | ||
+ | } | ||
+ | } | ||
+ | </ | ||
- | [[doku> | + | The following language strings are currently recognized: //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// |
- | Hier eine Liste aller Zeichen, die DokuWiki kennt: | + | |
- | -> <- <-> => <= <=> >> << -- --- 640x480 (c) (tm) (r) | + | There are additional [[doku>syntax_highlighting|advanced options]] available for syntax highlighting, |
- | "He thought | + | |
+ | ==== Downloadable Code Blocks ==== | ||
+ | |||
+ | When you use the '' | ||
< | < | ||
- | -> <- <-> => <= <=> >> << -- --- 640x480 (c) (tm) (r) | + | <file php myexample.php> |
- | "He thought ' | + | <?php echo "hello world!"; ?> |
+ | </ | ||
</ | </ | ||
- | Bitte beachtet: Diese Umwandlungen können in der Konfigurationsdatei abgestellt werden | + | <file php myexample.php> |
+ | <?php echo "hello world!"; | ||
+ | </ | ||
- | ===== 6.4 HTML und PHP einbinden ===== | + | If you don't want any highlighting but want a downloadable file, specify a dash ('' |
- | In einer Seite kann sowohl HTML als auch PHP direkt benutzt werden. | ||
- | < | + | ===== Embedding |
- | This is some <font color=" | + | |
- | </html> | + | You can embed raw HTML or PHP code into your documents by using the '' |
+ | |||
+ | HTML example: | ||
< | < | ||
< | < | ||
- | This is some <font color="red" | + | This is some <span style="color:red;font-size:150%;">inline |
</ | </ | ||
+ | < | ||
+ | <p style=" | ||
+ | </ | ||
</ | </ | ||
+ | |||
+ | < | ||
+ | This is some <span style=" | ||
+ | </ | ||
+ | < | ||
+ | <p style=" | ||
+ | </ | ||
+ | |||
+ | PHP example: | ||
< | < | ||
<php> | <php> | ||
- | echo 'A logo generated by PHP:'; | + | echo 'The PHP version: '; |
- | echo '<img src="' | + | echo phpversion(); |
+ | echo ' (generated inline HTML)'; | ||
</ | </ | ||
+ | <PHP> | ||
+ | echo '< | ||
+ | echo '< | ||
+ | echo '</ | ||
+ | </ | ||
</ | </ | ||
- | < | ||
<php> | <php> | ||
- | echo 'A logo generated by PHP:'; | + | echo 'The PHP version: '; |
- | echo '<img src="' | + | echo phpversion(); |
+ | echo ' (inline HTML)'; | ||
</ | </ | ||
- | </ | + | < |
+ | echo '< | ||
+ | echo '< | ||
+ | echo '</ | ||
+ | </ | ||
+ | |||
+ | **Please Note**: HTML and PHP embedding is disabled by default in the configuration. If disabled, the code is displayed instead of executed. | ||
+ | |||
+ | ===== RSS/ATOM Feed Aggregation ===== | ||
+ | [[DokuWiki]] can integrate data from external XML feeds. For parsing the XML feeds, [[http:// | ||
+ | |||
+ | ^ Parameter | ||
+ | | any number | will be used as maximum number items to show, defaults to 8 | | ||
+ | | reverse | ||
+ | | author | ||
+ | | date | show item dates | | ||
+ | | description| show the item description. If [[doku>config: | ||
+ | | nosort | ||
+ | | //n//[dhm] | refresh period, where d=days, h=hours, m=minutes. (e.g. 12h = 12 hours). | | ||
+ | |||
+ | The refresh period defaults to 4 hours. Any value below 10 minutes will be treated as 10 minutes. [[wiki: | ||
+ | |||
+ | By default the feed will be sorted by date, newest items first. You can sort it by oldest first using the '' | ||
+ | |||
+ | **Example: | ||
+ | |||
+ | {{rss> | ||
+ | |||
+ | {{rss> | ||
- | **Achtung**: | + | ===== Control Macros ===== |
- | **Achtung**: Das Einbinden von HTML und PHP auf einer Seite im Internet ist gewöhnlich ein schweres Sicherheitsrisiko! Diese Funktion ist nur für das Intranet gedacht! | + | Some syntax influences how DokuWiki renders a page without creating any output it self. The following control macros are availble: |
- | ====== 7 Kontroll-Makros ====== | + | ^ Macro ^ Description | |
+ | | %%~~NOTOC~~%% | ||
+ | | %%~~NOCACHE~~%% | DokuWiki caches all output by default. Sometimes this might not be wanted (eg. when the %%< | ||
- | Einige | + | ===== Syntax |
- | ^ Makro ^ Beschreibung ^ | + | DokuWiki' |
- | | %%~~NOTOC~~%% | + | |
- | | %%~~NOCACHE~~%% | Alle Seiten werden aus Performancegründen zwischengespeichert. Unter bestimmten Umständen ist dieses Verhalten aber nicht gewollt. Beim Einfügen dieses Makros wird DokuWiki | + | |
+ | ~~INFO: | ||