Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende Überarbeitung | ||
wiki:syntax [2009/08/27 16:30] – cg301 | wiki:syntax [2022/09/12 11:21] (aktuell) – Externe Bearbeitung 127.0.0.1 | ||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
- | ====== | + | ====== |
- | ====== 1 Texte ====== | + | [[doku> |
- | ===== 1.1 Formatierungen | + | ===== Basic Text Formatting |
- | DokuWiki | + | DokuWiki |
- | DokuWiki | + | DokuWiki |
- | | + | |
- | Ebenso gibt es <sub>tiefgestellten</ | + | You can use <sub>subscript</ |
- | | + | |
- | Text kann als gelöscht | + | You can mark something as < |
- | | + | |
- | ===== 1.2 Absätze ===== | + | **Paragraphs** are created from blank lines. If you want to **force a newline** without a paragraph, you can use two backslashes |
- | Ein Absatz wird durch eine leere Zeile erzeugt. \\ | + | |
- | < | + | |
- | Dies ist ein Beispieltext mit einigen Zeilenumbrüchen.\\ Beachte: Die zwei umgekehrten Schrägstriche | + | This is some text with some linebreaks\\ Note that the |
- | werden nur erkannt, wenn sie am Zeilenende stehen\\ | + | two backslashes are only recognized at the end of a line\\ |
- | oder wenn ihnen ein\\ Leerzeichen folgt.\\ So\\sieht es ohne Leerzeichen aus. | + | or followed by\\ a whitespace |
- | | + | |
- | | + | |
- | | + | |
- | Zeilenumbrüche durch zwei " | + | You should use forced newlines only if really needed. |
- | ===== 1.3 Überschriften | + | ===== Links ===== |
- | Mit fünf unterschiedlichen Ebenen, getrennt durch Überschriften, | + | |
- | Die Überschriften werden mit maximal sechs " | + | |
- | Es ist __sinnvoll__, | + | DokuWiki supports multiple ways of creating links. |
- | Wenn in einer Seite mehr als 3 Überschriften vorkommen, wird automatisch ein Inhaltsverzeichnis erstellt, welches alle Überschriften auflistet.\\ | + | ==== External ==== |
- | Soll dieses Inhaltsverzeichnis nicht erstellt werden, muß der Befehl: ''< | + | |
- | ====== Überschrift Ebene 1 ====== | + | External links are recognized automagically: |
- | ===== Überschrift Ebene 2 ===== | + | |
- | ==== Überschrift Ebene 3 ==== | + | |
- | === Überschrift Ebene 4 === | + | |
- | == Überschrift Ebene 5 == | + | |
- | Innerhalb von Überschriften können keine weiteren Formatierungen vorgenommen werden! | + | DokuWiki supports multiple ways of creating links. External links are recognized |
+ | automagically: | ||
+ | link text as well: [[http:// | ||
+ | addresses like this one: < | ||
+ | ==== Internal ==== | ||
+ | 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 ===== | + | Internal links are created by using square brackets. You can either just give |
+ | a [[pagename]] or use an additional [[pagename|link text]]. | ||
- | Um Text so anzuzeigen, wie er geschrieben wurde, egal ob er DokuWiki Formatierungen oder andere Formatierungen enthält, kann man jede | + | [[doku> |
- | 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 " | + | |
- | </ | + | |
- | < | + | You can use [[some:namespaces]] by using a colon in the pagename. |
- | Mit " | + | |
- | Vielleicht um Zitate zu kennzeichnen oder ähnliches. | + | |
- | </ | + | |
- | Um jegliche Umwandlung durch DokuWiki abzustellen, | + | For details about namespaces see [[doku>namespaces]]. |
- | < | + | 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# |
- | Dieser Text enthält links wie: http://www.splitbrain.org und **Formatierungen** aber sie werden nicht umgesetzt und erscheinen als normaler Text. | + | |
- | </ | + | |
- | Einfach den Quelltext dieser Seite anschauen (den Knopf " | + | This links to [[syntax# |
- | ===== 1.5 Syntax-Hervorhebung ===== | + | Notes: |
- | [[DokuWiki]] | + | * Links to [[syntax|existing pages]] are shown in a different style from [[nonexisting]] ones. |
- | Es wird der gleiche Bezeichner wie im vorherigen Abschnitt benutzt, nur dass er nun auch den Namen der Sprache enthält: | + | * DokuWiki |
- | ''< | + | * When a section' |
- | < | + | ==== Interwiki ==== |
- | /** | + | |
- | | + | DokuWiki supports [[doku> |
- | | + | |
+ | DokuWiki supports [[doku> | ||
+ | For example this is a link to Wikipedia' | ||
+ | |||
+ | ==== Windows Shares ==== | ||
+ | |||
+ | 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> | ||
+ | |||
+ | Windows Shares like [[\\server\share|this]] are recognized, too. | ||
+ | |||
+ | Notes: | ||
+ | |||
+ | * 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 kennzeichen, | + | |
- | | + | |
- | + | ||
- | > 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 ===== |
- | + | ||
- | ====== 2 Links ====== | + | 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 ''< |
- | Mit DokuWiki können | + | ==== Headline Level 3 ==== |
+ | === Headline Level 4 === | ||
+ | == Headline Level 5 == | ||
- | ===== 2.1 Extern | + | |
+ | === Headline Level 4 === | ||
+ | == Headline Level 5 == | ||
- | Externe Links (Verweise auf andere Webseiten oder Dateien) werden automatisch erkannt: http:// | + | By using four or more dashes, you can make a horizontal line: |
- | Verweise können auch hinter eigenen Begriffen versteckt werden: [[http:// | + | |
- | E-mail Adressen werden in spitze Klammern gesetzt: < | + | |
- | Externe Links werden automatisch erkannt: http:// | + | ---- |
- | Verweise können auch hinter eigenen Begriffen versteckt werden: [[http:// | + | |
- | E-mail Adressen werden in spitze Klammern gesetzt: < | + | |
- | ===== 2.2 Intern | + | ===== Media Files ===== |
- | Interne Links, also Verweise auf Seiten innerhalb von DokuWiki, werden in doppelten eckigen Klammern gesetzt(" | + | You can include external and internal |
- | [[doku>pagename]]\\ | + | |
- | Ein Link kann auch hinter einem Begriff oder einer Beschreibung versteckt werden:\\ | + | Real size: |
- | [[doku> | + | |
- | Interne Links werden in doppelten eckigen Klammern gesetzt: | + | Resize to given width: |
- | [[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!\\ | + | Resize to given width and height((when the aspect ratio of the given width and height doesn' |
- | Umlaute sind genauso wie Sonderzeichen nicht erlaubt! | + | |
- | Durch einen Doppelpunkt werden Namensbereiche im Wiki aufgelöst: [[de:namespaces]] | + | Resized external image: {{https:// |
- | | + | |
+ | Resize to given width: | ||
+ | Resize to given width and height: {{wiki: | ||
+ | Resized external image: {{https:// | ||
- | Weitere Informationen zu Namensbereichen: | ||
- | Anmerkungen: | + | By using left or right whitespaces you can choose the alignment. |
- | * Links zu [[syntax|existierenden Seiten]] werden anders angezeigt als Links zu [[nicht-existierenden]] Seiten. | + | {{ wiki: |
- | * DokuWiki verwendet standardmäßig keine [[wp> | + | |
- | ===== 2.3 Interwiki ===== | + | {{wiki: |
- | DokuWiki unterstützt auch Links in andere Wikis, sogenannte [[doku> | + | {{ wiki:dokuwiki-128.png }} |
- | Ein Link zur Wikipedia Seite über Wikis: | + | |
- | | + | |
- | | + | |
+ | {{ wiki: | ||
- | ===== 2.4 Windows-Freigaben ===== | + | Of course, you can add a title (displayed as a tooltip by most browsers), too. |
- | DokuWiki kennt auch Links auf Windows-Freigaben: [[\\server\freigabe|freigegebener-Ordner]]. \\ | + | {{ wiki:dokuwiki-128.png |This is the caption}} |
- | Dies ist allerdings nur in einer homogenen Benutzergruppe sinnvoll (siehe [[wp> | + | |
- | | + | |
- | Hinweis: | + | For linking an image to another page see [[#Image Links]] above. |
- | * Aus Sicherheitsgründen funktioniert direktes Navigieren durch die Freigaben standardmäßig nur mit dem Internet Explorer (und das nur in der " | + | |
- | * Für Mozilla und Firefox kann es durch die Option | + | |
- | * Opera ingnoriert als Sicherheitsfeature seit [[http:// | + | |
- | * Für weitere Informationen siehe: [[bug> | + | |
- | ===== 2.5 Bilder als Links ===== | + | ==== Supported Media Formats |
- | 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: | + | DokuWiki can embed the following media formats directly. |
- | | + | | Image | '' |
+ | | Video | '' | ||
+ | | Audio | '' | ||
+ | | Flash | '' | ||
- | [[http:// | + | If you specify a filename that is not a supported media format, then it will be displayed as a link instead. |
- | Bitte beachte: Bildformatierungen sind die einzigen Formatierungen, | + | By adding ''? |
- | ====== 3 Bilder und andere Dateien ====== | + | {{wiki: |
- | ===== 3.1 Bilder per Dialogfeld einbauen ===== | + | {{wiki: |
- | Das Hochladen von Bildern muss in der Konfigurationsdatei eingeschaltet sein. Zusätzlich kann der Seitenbetreiber diese Funktion per [[acl|ACL]] beschränken. Zum Hochladen ist mindestens die Berechtigung " | + | |
- | FIXME | + | |
- | ===== 3.2 Größe von Bildern | + | ==== Fallback Formats |
- | Mit geschweiften Klammern können sowohl externe als auch interne [[doku> | + | |
- | Original Größe: | + | 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. |
- | Eine Breite vorgeben: | + | For example consider this embedded mp4 video: |
- | Breite und Höhe vorgeben: | + | |
- | Größe für externe Bilder vorgeben: | + | When you upload a '' |
- | Original Größe: | + | Additionally DokuWiki supports a " |
- | Eine Breite vorgeben: | + | |
- | Breite und Höhe vorgeben: | + | |
- | Größe für externe Bilder vorgeben: | + | |
- | ===== 3.3 Ausrichten von Bildern | + | ===== Lists ===== |
- | Mit Leerzeichen zur Rechten und/oder Linken innerhalb der Klammern kann ein Bild horizontal ausgerichtet werden(links, | + | |
- | {{ wiki: | + | Dokuwiki supports ordered and unordered lists. To create a list item, indent your text by two spaces and use a '' |
- | {{wiki: | + | * This is a list |
+ | * The second item | ||
+ | * You may have different levels | ||
+ | * Another item | ||
- | {{ wiki: | + | |
+ | - Another item | ||
+ | - Just use indention for deeper levels | ||
+ | - That's it | ||
- | {{ wiki: | + | < |
- | | + | |
- | | + | |
+ | * You may have different levels | ||
+ | * Another item | ||
- | bei Ausrichtung und der Verwendung eines Titels sollte man drauf achten dass der Titel nach dem Leerzeichen kommt | + | - The same list but ordered |
- | | + | - Another item |
- | | + | - Just use indention for deeper levels |
- | | + | - That's it |
+ | </ | ||
- | ===== 3.4 Tooltips ===== | + | Also take a look at the [[doku> |
- | Auch Titel, in den meisten Browsern als Tooltip angezeigt, können angegeben werden. | + | |
- | {{ wiki: | + | ===== Text Conversions ===== |
- | {{ wiki: | + | DokuWiki can convert certain pre-defined characters or strings into images or other text or HTML. |
- | ===== 3.5 Dateidownload ===== | + | The text to image conversion is mainly done for smileys. And the text to HTML conversion is used for typography replacements, |
- | Wenn eine Datei angegeben wird, die kein Bild ('' | + | ==== Text to Image Conversions ==== |
- | {{ wiki: | + | DokuWiki converts commonly used [[wp> |
- | ===== 3.6 Automatische Verlinkung ===== | + | * 8-) %% 8-) %% |
+ | * 8-O %% 8-O %% | ||
+ | * :-( %% :-( %% | ||
+ | * :-) %% :-) %% | ||
+ | * =) %% | ||
+ | * :-/ %% :-/ %% | ||
+ | * :-\ %% :-\ %% | ||
+ | * :-? %% :-? %% | ||
+ | * :-D %% :-D %% | ||
+ | * :-P %% :-P %% | ||
+ | * :-O %% :-O %% | ||
+ | * :-X %% :-X %% | ||
+ | * :-| %% :-| %% | ||
+ | * ;-) %% ;-) %% | ||
+ | * ^_^ %% ^_^ %% | ||
+ | * m( %% m( %% | ||
+ | * :?: %% :?: %% | ||
+ | * :!: %% :!: %% | ||
+ | * LOL %% LOL %% | ||
+ | * FIXME %% FIXME %% | ||
+ | * DELETEME %% DELETEME %% | ||
- | Bilder werden automatisch mit einer Verlinkung zur Ihren [[wp> | + | ==== Text to HTML Conversions ==== |
- | Dieses Verhalten kann über die Option ? | + | Typography: |
- | {{wiki: | + | -> <- <-> => <= <=> >> << -- --- 640x480 (c) (tm) (r) |
- | {{wiki: | + | "He thought ' |
- | Ausserdem kann mit ?direct das Bild, z.Bsp. als Vollansicht, | + | < |
+ | -> <- <-> => <= <=> >> << -- --- 640x480 (c) (tm) (r) | ||
+ | "He thought ' | ||
+ | </ | ||
- | {{wiki: | + | The same can be done to produce any kind of HTML, it just needs to be added to the [[doku> |
- | {{wiki: | + | |
- | ====== 4 Listen ====== | + | There are three exceptions which do not come from that pattern file: multiplication entity (640x480), ' |
- | DokuWiki kennt unsortierte und nummerierte Listen. Um einen Listeneintrag zu erzeugen, beginne eine Zeile mit 2 Leerzeichen. Diesen Leerzeichen folgt dann ein " | + | ===== Quoting ===== |
- | * Dies ist ein Eintrag einer unsortierten Liste | + | Some times you want to mark some text to show it's a reply or comment. You can use the following syntax: |
- | * Ein zweiter Eintrag | + | |
- | * Unterschiedliche Ebenen einer Liste durch Hinzufügen von weiteren 2 Leerzeichen | + | |
- | * Noch ein Eintrag | + | |
- | + | ||
- | - Dies ist ein Eintrag einer nummerierte Liste | + | |
- | - Ein zweiter Eintrag | + | |
- | - Unterschiedliche Ebenen einer Liste durch Hinzufügen von weiteren 2 Leerzeichen | + | |
- | - Noch ein Eintrag | + | |
< | < | ||
- | * Dies ist ein Eintrag einer unsortierten Liste | + | I think we should do it |
- | * Ein zweiter Eintrag | + | |
- | * Unterschiedliche Ebenen einer Liste durch Hinzufügen von weiteren 2 Leerzeichen | + | > No we shouldn' |
- | * Noch ein Eintrag | + | |
+ | >> Well, I say we should | ||
+ | |||
+ | > Really? | ||
+ | |||
+ | >> Yes! | ||
- | - Dies ist ein Eintrag einer nummerierte Liste | + | >>> |
- | - Ein zweiter Eintrag | + | |
- | - Unterschiedliche Ebenen einer Liste durch Hinzufügen von weiteren 2 Leerzeichen | + | |
- | - Noch ein Eintrag | + | |
</ | </ | ||
- | ====== 5 Tabellen ====== | ||
- | Mit DokuWiki können Tabellen ganz einfach erstellt werden: | + | I think we should do it |
- | ^ hervorgehoben | + | > No we shouldn' |
- | | Zeile 1 Spalte 1 | Zeile 1 Spalte 2 | Zeile 1 Spalte 3 | | + | |
- | | Zeile 2 Spalte 1 | doppelte Spaltenbreite (beachte den doppelten senkrechten Strich) || | + | |
- | | Zeile 3 Spalte 1 | Zeile2 Spalte 2 | Zeile 2 Spalte 3 | | + | |
- | Felder einer Tabelle starten mit " | + | >> Well, I say we should |
- | ^ hervorgehoben | + | > Really? |
- | | Zeile 1 Spalte 1 | Zeile 1 Spalte 2 | Zeile 1 Spalte 3 | | + | |
- | | Zeile 2 Spalte 1 | doppelte Spaltenbreite (beachte den doppelten senkrechten Strich) || | + | |
- | | Zeile 3 Spalte 1 | Zeile2 Spalte 2 | Zeile 2 Spalte 3 | | + | |
- | Zellen über mehrere Spalten werden erzeugt, wenn man, wie oben gezeigt, am Ende einer solchen Spalte soviele " | + | >> Yes! |
- | Kurz gesagt: Alle Zeilen einer Tabelle müssen die gleiche Anzahl an Feldtrennern " | + | |
- | Hervorgehobene Felder in Vertikaler Ausrichtung sind auch möglich. | + | >>> |
- | | ^ hervorgehoben 1 ^ hervorgehoben 2 ^ | + | ===== Tables ===== |
- | ^ hervorgehoben 3 | Zeile 1 Spalte 2 | Zeile 1 Spalte 3 | | + | |
- | ^ hervorgehoben 4 | Zeile 2 Spalte 2 | | | + | |
- | ^ hervorgehoben 5 | Zeile 3 Spalte 2 | Zeile 3 Spalte 3 | | + | |
- | Wie wir sehen, entscheidet der Feldtrenner (" | + | DokuWiki supports a simple syntax to create tables. |
- | | | + | ^ Heading |
- | ^ hervorgehoben 3 | + | | Row 1 Col 1 |
- | ^ hervorgehoben 4 | + | | Row 2 Col 1 | some colspan (note the double pipe) || |
- | ^ hervorgehoben 5 | + | | Row 3 Col 1 |
- | Anmerkung: Felder über mehrere Zeilen werden nicht unterstützt. | + | Table rows have to start and end with a '' |
- | | + | |
- | | + | | 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 | |
- | ^ | + | To connect cells horizontally, |
- | | | + | |
- | |Links | | + | Vertical tableheaders are possible, too. |
+ | |||
+ | | | ||
+ | ^ Heading 3 | Row 1 Col 2 | Row 1 Col 3 | | ||
+ | ^ Heading 4 | no colspan this time | | | ||
+ | ^ Heading 5 | ||
+ | |||
+ | As you can see, it's the cell separator before a cell which decides about the formatting: | ||
+ | |||
+ | | ^ Heading 1 ^ Heading 2 ^ | ||
+ | ^ Heading 3 | ||
+ | ^ Heading 4 | ||
+ | ^ 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 | | | xxxxxxxxxxxx | xxxxxxxxxxxx | xxxxxxxxxxxx | | ||
- | So sieht die Formatierung aus: | + | This is how it looks in the source: |
- | ^ | + | ^ Table with alignment |
- | | | + | | right| |
- | |Links | | + | |left | |
| xxxxxxxxxxxx | xxxxxxxxxxxx | xxxxxxxxxxxx | | | xxxxxxxxxxxx | xxxxxxxxxxxx | xxxxxxxxxxxx | | ||
- | |Hinweis zu dem senkrechten Balken-Zeichen: dieses Zeichen ist auf einer PC-Tastatur erreichbar über die Taste "<" | + | Note: Vertical alignment is not supported. |
- | ====== 6 sonstige Formatierungen ====== | + | ===== No Formatting |
- | ===== 6.1 Fußnoten ===== | + | If you need to display text exactly like it is typed (without any formatting), |
- | 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. | + | < |
+ | This is some text which contains addresses like this: http://www.splitbrain.org and **formatting**, | ||
+ | </ | ||
+ | The same is true for %%// | ||
- | | + | |
+ | This is some text which contains addresses like this: http:// | ||
+ | </ | ||
+ | The same is true for %%// | ||
- | ===== 6.2 horizontale Linie ===== | + | ===== Code Blocks |
- | Mit 4 aufeinander folgenden Minuszeichen (alleine in einer Zeile) kann eine horizontale Linie erzeugt werden: | + | |
- | ---- | + | |
- | < | + | |
- | ===== 6.3 Smileys ===== | + | 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 '' |
- | Dokuwiki verwandelt oft genutzte [[wp> | + | This is text is indented by two spaces. |
- | Weitere Smiley-Grafiken können im Ordner " | + | |
- | Hier ist nun eine Übersicht der standardmäßig in DokuWiki enthaltenen Smileys: | + | |
- | ^ 8-) ^ 8-O ^ | + | < |
- | | %% 8-) %% | %% 8-O %% | %% :-( %% | %% :-) %% | %% =) | + | This is preformatted code all spaces are preserved: like <-this |
+ | </code> | ||
- | ===== 6.4 Typografie ===== | + | < |
+ | This is pretty much the same, but you could use it to show that you quoted a file. | ||
+ | </ | ||
- | [[DokuWiki]] kann einfache Textzeichen in ihre typografischen Entsprechungen umwandeln.\\ | + | Those blocks were created by this source: |
- | Hier eine Liste aller Zeichen, die DokuWiki kennt: | + | |
- | -> <- <-> => <= <=> >> << -- --- 640x480 (c) (tm) (r) | + | This is text is indented by two spaces. |
- | "He thought | + | |
+ | <code> | ||
+ | This is preformatted code all spaces are preserved: like | ||
+ | | ||
+ | |||
+ | <file> | ||
+ | This is pretty much the same, but you could use it to show that you quoted a file. | ||
+ | | ||
+ | |||
+ | ==== Syntax Highlighting ==== | ||
+ | |||
+ | [[wiki: | ||
+ | |||
+ | <code java> | ||
+ | /** | ||
+ | * The HelloWorldApp class implements an application that | ||
+ | * simply displays "Hello World!" | ||
+ | */ | ||
+ | class HelloWorldApp { | ||
+ | public static void main(String[] args) { | ||
+ | System.out.println(" | ||
+ | } | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | 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// | ||
+ | |||
+ | There are additional [[doku> | ||
+ | |||
+ | ==== 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.5 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=" | ||
+ | </ | ||
</ | </ | ||
- | Oder hier PHP: | + | < |
+ | This is some <span style=" | ||
+ | </ | ||
+ | < | ||
+ | <p style=" | ||
+ | </ | ||
- | < | + | PHP example: |
- | echo 'A logo generated by PHP:'; | + | |
- | echo '< | + | |
- | </ | + | |
< | < | ||
<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 '</ | ||
+ | </ | ||
</ | </ | ||
- | **Achtung**: | + | < |
+ | echo ' | ||
+ | echo phpversion(); | ||
+ | echo ' | ||
+ | </ | ||
+ | < | ||
+ | echo '< | ||
+ | echo '< | ||
+ | echo '</ | ||
+ | </ | ||
- | **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! | + | **Please Note**: HTML and PHP embedding is disabled by default in the configuration. If disabled, the code is displayed instead of executed. |
- | ====== 8 Kontroll Makros ====== | + | ===== RSS/ATOM Feed Aggregation |
+ | [[DokuWiki]] can integrate data from external XML feeds. For parsing the XML feeds, [[http:// | ||
- | Manche Syntax Befehle beeinflussen wie Dokuwiki eine Seite bei jedem Aufruf ausgibt. Die folgenden Kontroll Makros sind verfügbar: | + | ^ Parameter |
- | ^Macro^ Description^ | + | | any number |
- | |%%~~NOTOC~~%%|Wenn dieses Makro im in eine Seite eingebunden ist, wird das [[:toc|Table of Content]] nicht erstellt.| | + | | reverse |
- | |%%~~NOCACHE~~%%|Dokuwiki Seiten werden standardgemäß | + | | author |
- | ====== 7 Syntax-Plugins ====== | + | | date | show item dates | |
- | DokuWikis Syntax kann durch [[doku> | + | | description| show the item description. If [[doku> |
+ | | nosort | ||
+ | | //n//[dhm] | refresh period, where d=days, h=hours, m=minutes. (e.g. 12h = 12 hours). | | ||
- | ~~INFO:syntaxplugins~~ | + | The refresh period defaults to 4 hours. Any value below 10 minutes will be treated as 10 minutes. [[wiki:DokuWiki]] 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 [[wiki: |
- | ====== Backgroundinfos zu dieser Seite====== | + | By default the feed will be sorted by date, newest items first. You can sort it by oldest first using the '' |
- | Diese Seite ist eine Übersetzung der [[http:// | + | |
- | Sie ist keine wortgleiche Übersetzung. Einige Beschreibungen sind etwas ausführlicher ausgefallen. Fachbegriffe werden nur dort verwendet, wo eine Umschreibung mehr Verwirrung stiftet als nützt.\\ | + | |
- | Ähnliches gilt auch für Begriffe, die dem Englischen entspringen, | + | |
- | Der Übersetzer ist sich selbst nicht sicher, ob er lieber den Begriff " | + | |
- | An einigen Stellen befindet sich ein FIXME - hier gibt es etwas, was im Sinne des Übersetzers noch nicht gut umgesetzt wurde. | + | **Example: |
- | | + | |
- | * euer Sebastian Koch => mr_snede *at* web ~dot~ de | + | |
+ | |||
+ | {{rss> | ||
+ | |||
+ | |||
+ | ===== Control Macros ===== | ||
+ | |||
+ | Some syntax influences how DokuWiki renders a page without creating any output it self. The following control macros are availble: | ||
+ | |||
+ | ^ Macro ^ Description | | ||
+ | | %%~~NOTOC~~%% | ||
+ | | %%~~NOCACHE~~%% | DokuWiki caches all output by default. Sometimes this might not be wanted (eg. when the %%< | ||
+ | |||
+ | ===== Syntax Plugins ===== | ||
+ | |||
+ | DokuWiki' | ||
+ | |||
+ | ~~INFO: | ||
- | Seite grundlegend überarbeitet von --- // |