Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| wiki:syntax [Le 30/05/2007, 13:34] – Icônes. Ner0lph | wiki:syntax [Le 05/08/2026, 21:36] (Version actuelle) – créée - modification externe 127.0.0.1 | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| - | {{tag> | + | ====== Formatting Syntax ====== |
| - | ---- | + | [[doku> |
| - | ====== Syntaxe de mise en page ====== | + | ===== Basic Text Formatting |
| - | [[:wiki:DokuWiki]] supporte un **language de balises simple**, qui essaie de rendre les fichiers de données aussi lisibles que possible. Cette page contient toute la syntaxe possible que vous pourrez utiliser en éditant les pages. Regardez simplement le source de cette page en cliquant sur le bouton « Éditer cette page » en haut ou en bas de cette page. Si vous souhaitez essayer quelque chose, rendez-vous dans le [[playground|bac à sable]]. Les balises les plus simples sont facilement accessibles depuis les | + | DokuWiki |
| - | [[doku> | + | |
| - | ===== Mise en forme de texte basique ===== | + | DokuWiki supports **bold**, //italic//, __underlined__ and '' |
| + | Of course you can **__//'' | ||
| - | DokuWiki supporte les textes en //emphase//, **emphase forte**, __souligné__ (déconseillé) et '' | + | Note that the formatting markers have to directly enclose the text, so '' |
| - | Bien sûr, vous pouvez tous les **__//'' | + | |
| - | <code> | + | You can use <sub>subscript< |
| - | DokuWiki supporte les textes en //emphase//, **emphase forte**, | + | |
| - | __souligné__ (déconseillé) et '' | + | |
| - | Bien sûr, vous pouvez tous les **__//'' | + | |
| - | </ | + | |
| - | Vous pouvez aussi utiliser | + | You can use <sub>subscript</ |
| - | Vous pouvez aussi utiliser | + | You can mark something as <del>deleted</del> as well. |
| - | De plus, vous pouvez marquer du contenu comme <del>supprimé</ | + | You can mark something as <del>deleted</ |
| - | De plus, vous pouvez marquer du contenu comme < | + | **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. |
| - | **Les paragraphes** sont créés depuis les lignes vides. Si vous souhaitez **forcer un saut de ligne** sans paragraphe, vous pouvez utiliser deux antislashes suivis par un espace ou une fin de ligne. | + | 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. | ||
| - | Voilà du texte avec des sauts de ligne\\ remarquez que les | + | This is some text with some linebreaks\\ Note that the |
| - | deux antislashes sont seulement reconnus en fin de ligne\\ | + | two backslashes are only recognized at the end of a line\\ |
| - | ou suivis par\\ un espace ; \\cela arrive sinon. | + | or followed by\\ a whitespace |
| - | Voilà du texte avec des sauts de ligne\\ remarquez que les | + | You should use forced newlines only if really needed. |
| - | deux antislashes sont seulement reconnus en fin de ligne\\ | + | |
| - | ou suivis par\\ un espace ; \\cela arrive sinon. | + | |
| - | Vous devriez forcer des sauts de ligne uniquement si c'est réellement nécessaire. | + | ===== Links ===== |
| + | DokuWiki supports multiple ways of creating links. | ||
| - | ===== Les « tags » ===== | + | ==== External |
| + | External links are recognized automagically: | ||
| - | ==== Syntaxe ==== | + | DokuWiki supports multiple ways of creating links. External links are recognized |
| + | automagically: | ||
| + | link text as well: [[http:// | ||
| + | addresses like this one: < | ||
| + | ==== Internal ==== | ||
| - | Pour utiliser des //tags// (mots-clés) dans les pages du wiki : | + | Internal links are created by using square brackets. You can either just give a [[pagename]] or use an additional [[pagename|link text]]. |
| - | | + | |
| + | a [[pagename]] or use an additional [[pagename|link text]]. | ||
| - | À la place de « (liste des tag) », écrivez tous les //tags// qui peuvent être utilisés pour la page, séparés par une espace. Pour avoir la liste des //tags// disponibles, | + | [[doku> |
| - | [[http:// | + | |
| + | You can use [[some: | ||
| + | You can use [[some: | ||
| - | ==== Les « topics » ==== | + | For details about namespaces see [[doku> |
| - | Pour lister les pages ayant un tag utilisez cette syntaxe : | + | 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# |
| - | | + | |
| - | Si vous venez d' | + | Notes: |
| - | ===== Liens ===== | + | * Links to [[syntax|existing pages]] are shown in a different style from [[nonexisting]] ones. |
| + | * DokuWiki does not use [[wp> | ||
| + | * When a section' | ||
| - | DokuWiki propose plusieurs moyens de créer des liens. | + | ==== Interwiki ==== |
| + | DokuWiki supports [[doku> | ||
| - | ==== Externes ==== | + | DokuWiki supports [[doku> |
| + | For example this is a link to Wikipedia' | ||
| - | Les liens externes sont reconnus automatiquement : http:// | + | ==== Windows Shares ==== |
| - | Les liens externes sont reconnus automatiquement : | + | 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]]. |
| - | http:// | + | |
| - | Vous pouvez aussi donner des noms aux liens: | + | |
| - | | + | |
| - | Les adresses email telles que celle-ci : | + | |
| - | < | + | |
| + | Windows Shares like [[\\server\share|this]] are recognized, too. | ||
| - | ==== Internes ==== | + | Notes: |
| - | Les liens internes sont créés en utilisant les crochets. Vous pouvez soit juste donner un [[doku> | + | * For security reasons direct browsing of windows shares only works in Microsoft Internet Explorer per default (and only in the "local zone"). |
| - | [[doku>wiki: | + | * For Mozilla and Firefox it can be enabled through different workaround mentioned in the [[http:// |
| + | <?php | ||
| + | /** | ||
| + | * Customization of the english language file | ||
| + | * Copy only the strings that needs to be modified | ||
| + | */ | ||
| + | $lang[' | ||
| + | </ | ||
| - | Les liens internes sont créés en utilisant les crochets. | + | ==== Image Links ==== |
| - | Vous pouvez soit juste donner un [[doku> | + | |
| - | utiliser un [[doku> | + | |
| - | Les pages (// | + | |
| - | automatiquement en minuscules, | + | |
| - | les caractères spéciaux ne sont pas autorisés. | + | |
| - | Vous pouvez utiliser des [[wiki: | + | You can also use an image to link to another internal or external page by combining the syntax for links and [[# |
| - | | + | [[http:// |
| - | (// | + | |
| - | nom de page // | + | |
| - | Pour plus de détails sur les catégories (// | + | [[http:// |
| - | Les liens vers une section spécifique sont également possibles. Ajoutez simplement le nom de la section derrière un caractère dièse comme dans le HTML. | + | Please note: The image formatting is the only formatting syntax accepted in link names. |
| - | Ce lien renvoie vers [[syntax#internes|cette section]]. | + | The whole [[#images_and_other_files|image]] and [[# |
| - | Ce lien renvoie vers [[syntax# | + | ===== Footnotes ===== |
| - | Notes : | + | You can add footnotes ((This is a footnote)) by using double parentheses. |
| - | | + | |
| - | * DokuWiki n' | + | |
| - | * Lorsque le titre d'une section est modifié, alors le // | + | |
| + | ===== Sectioning ===== | ||
| - | ==== Interwiki ==== | + | 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 ''< |
| - | DokuWiki propose les liens [[doku> | + | ==== Headline Level 3 ==== |
| + | === Headline Level 4 === | ||
| + | == Headline Level 5 == | ||
| - | | + | |
| - | | + | |
| - | | + | |
| - | Wikipedia : [[wp> | + | |
| + | By using four or more dashes, you can make a horizontal line: | ||
| - | ==== Partages Windows ==== | + | ---- |
| - | Les partages Windows tels que [[\\serveur\partage|ceci]] sont également reconnus. Veuillez noter qu'ils n'ont un sens que dans un groupe | + | ===== Media Files ===== |
| - | d' | + | |
| - | Les partages Windows tels que [[\\serveur\partage|ceci]] sont également | + | You can include external and internal |
| - | reconnus. Veuillez noter qu'ils n'ont un sens que dans un groupe | + | |
| - | d' | + | |
| - | Notes : | + | Real size: |
| - | * Pour des raisons de sécurité, la navigation directe de partages Windows ne fonctionne que dans //Microsoft Internet Explorer// par défaut (et seulement dans la « local zone »). | + | Resize to given width: |
| - | * Pour //Mozilla// et // | + | |
| - | * Veuillez consulter [[bug> | + | |
| - | ==== Liens images ==== | + | Resize to given width and height((when the aspect ratio of the given width and height doesn' |
| - | Vous pouvez aussi utiliser une image afin de créer un lien vers une autre page interne ou externe en combinant les syntaxes des liens et des images (voir ci-dessous) comme ceci : | + | Resized external |
| - | | + | |
| + | Resize to given width: | ||
| + | Resize to given width and height: | ||
| + | Resized external image: {{https:// | ||
| - | [[http:// | ||
| - | NB : la mise en forme image est la seule syntaxe de mise en forme acceptée comme nom du lien. | + | By using left or right whitespaces you can choose the alignment. |
| - | ===== Notes de pied de page ===== | + | {{ wiki: |
| - | Vous pouvez ajouter des notes de pied de page ((Ceci est une note de pied de page)) en utilisant 2 doubles parenthèses. | + | {{wiki: |
| - | Vous pouvez ajouter des notes de pied de page ((Ceci est | + | {{ wiki: |
| - | une note de pied de page)) en utilisant 2 doubles | + | |
| - | parenthèses. | + | |
| - | ===== Découpage en sections ===== | + | {{ wiki: |
| + | {{wiki: | ||
| + | {{ wiki: | ||
| - | Vous pouvez utiliser jusqu'à cinq différents niveaux de titres afin de structurer votre contenu. Si vous avez plus de trois titres, une table des matières est générée automatiquement -- ceci peut être désactivé en incluant la chaîne | + | You can also set the alignment explicitly with a ''? |
| - | ==== Titre niveau 3 ==== | + | {{wiki: |
| - | === Titre niveau 4 === | + | |
| - | == Titre niveau 5 == | + | |
| - | | + | |
| - | === Titre niveau 4 === | + | |
| - | == Titre niveau 5 == | + | |
| - | En utilisant quatre tirets ou plus, vous pouvez créer une ligne horizontale : | + | Of course, you can add a title (displayed as a tooltip by most browsers), too. |
| - | ---- | + | {{ wiki: |
| + | {{ wiki: | ||
| - | ===== Images et autres fichiers ===== | + | For linking an image to another page see [[#Image Links]] above. |
| - | Vous pouvez inclure des [[doku> | + | ==== Supported Media Formats ==== |
| - | Taille réelle : | + | DokuWiki can embed the following media formats directly. |
| - | {{wiki: | + | |
| - | Redimension à une largeur donnée : | + | | Image | '' |
| - | {{wiki: | + | | Video | '' |
| + | | Audio | '' | ||
| + | | Flash | '' | ||
| - | Redimension à une largeur et une hauteur données : | + | If you specify a filename that is not a supported media format, then it will be displayed as a link instead. |
| - | {{wiki: | + | |
| - | Image externe redimensionnée : | + | By adding '' |
| - | {{http:// | + | |
| - | | + | {{wiki: |
| - | | + | |
| - | Redimension à une largeur donnée : | + | |
| - | {{wiki: | + | |
| - | Redimension à une largeur et une hauteur données : | + | |
| - | {{wiki: | + | |
| - | Image externe redimensionnée : | + | |
| - | {{http:// | + | |
| + | {{wiki: | ||
| - | En utilisant des espaces à gauche ou à droite, vous pouvez choisir l' | + | ==== Fallback Formats ==== |
| - | {{ wiki: | + | 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. |
| - | {{wiki:dokuwiki-128.png }} | + | For example consider this embedded mp4 video: |
| - | {{ wiki: | + | |
| - | {{ wiki: | + | When you upload a '' |
| - | {{wiki: | + | |
| - | {{ wiki: | + | |
| - | Bien sûr, vous pouvez aussi ajouter un titre (affiché comme une bulle d'info par la plupart des navigateurs). | + | Additionally DokuWiki supports a " |
| - | {{ wiki: | + | ===== Lists ===== |
| - | {{ wiki: | + | Dokuwiki supports ordered and unordered lists. To create a list item, indent your text by two spaces and use a '' |
| - | Si vous spécifiez un nom de fichier (externe ou interne) qui n'est pas une image ('' | + | * This is a list |
| + | * The second item | ||
| + | * You may have different levels | ||
| + | * Another item | ||
| - | ([[wiki: | + | |
| - | + | | |
| - | ===== Listes ===== | + | - Just use indention for deeper levels |
| - | + | - That's it | |
| - | DokuWiki supporte les listes ordonnées et non ordonnées. Pour créer un élément de liste, indentez votre texte par deux espaces et utilisez une « * » pour une liste non ordonnée ou un « - » pour une liste ordonnée. | + | |
| - | + | ||
| - | | + | |
| - | * Le second élément | + | |
| - | | + | |
| - | * Un autre élément | + | |
| - | + | ||
| - | | + | |
| - | - Un autre élément | + | |
| - | - Utilisez simplement l'indentation pour des niveaux plus profonds | + | |
| - | - Et voilà | + | |
| < | < | ||
| - | * Ceci est une liste | + | * This is a list |
| - | * Le second | + | * The second |
| - | * Vous pouvez avoir plusieurs niveaux | + | * You may have different levels |
| - | * Un autre élément | + | * Another item |
| - | - La même liste mais ordonnée | + | - The same list but ordered |
| - | - Un autre élément | + | - Another item |
| - | - Utilisez simplement l' | + | - Just use indention for deeper levels |
| - | - Et voilà | + | - That's it |
| </ | </ | ||
| + | Also take a look at the [[doku> | ||
| + | ===== Text Conversions ===== | ||
| + | DokuWiki can convert certain pre-defined characters or strings into images or other text or HTML. | ||
| + | The text to image conversion is mainly done for smileys. And the text to HTML conversion is used for typography replacements, | ||
| + | ==== Text to Image Conversions ==== | ||
| - | + | DokuWiki | |
| - | ===== Émoticônes (smileys) ===== | + | |
| - | + | ||
| - | DokuWiki | + | |
| * 8-) %% 8-) %% | * 8-) %% 8-) %% | ||
| Ligne 272: | Ligne 255: | ||
| * ;-) %% ;-) %% | * ;-) %% ;-) %% | ||
| * ^_^ %% ^_^ %% | * ^_^ %% ^_^ %% | ||
| + | * m( %% m( %% | ||
| * :?: %% :?: %% | * :?: %% :?: %% | ||
| * :!: %% :!: %% | * :!: %% :!: %% | ||
| Ligne 278: | Ligne 262: | ||
| * DELETEME %% DELETEME %% | * 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. | ||
| + | -> <- <-> => <= <=> >> << -- --- 640x480 (c) (tm) (r) | ||
| + | "He thought ' | ||
| + | < | ||
| + | -> <- <-> => <= <=> >> << -- --- 640x480 (c) (tm) (r) | ||
| + | "He thought ' | ||
| + | </ | ||
| - | ===== Encadrés iconifiés ===== | + | The same can be done to produce any kind of HTML, it just needs to be added to the [[doku> |
| - | Pour ajouter une icône avec un encadré, il faut ajouter deux espaces avant les fins de parenthèse « } » et commencer la ligne suivante par le caractère « > », comme dans les exemples qui suivent | + | There are three exceptions which do not come from that pattern file: multiplication entity (640x480), ' |
| - | {{icons: | + | ===== Quoting ===== |
| - | >Ceci est un exemple d'encadré iconifié avec icone_danger.png : | + | |
| + | Some times you want to mark some text to show it's a reply or comment. You can use the following syntax: | ||
| < | < | ||
| - | {{icons: | + | I think we should do it |
| - | >Ceci est un exemple d' | + | |
| - | </ | + | |
| - | {{: | + | > No we shouldn't |
| - | >Ceci est un exemple d'encadré iconifié avec icontip.png : | + | |
| - | <code> | + | >> |
| - | {{: | + | |
| - | >Ceci est un exemple d' | + | |
| - | </code> | + | |
| - | {{icons: | + | > Really? |
| - | >Ceci est un exemple d' | + | |
| - | <code> | + | >> Yes! |
| - | {{icons: | + | |
| - | >Ceci est un exemple d' | + | >>> Then lets do it! |
| </ | </ | ||
| - | [[wiki: | + | I think we should do it |
| - | ===== Typographie ===== | + | > No we shouldn' |
| - | [[DokuWiki]] peut convertir de simples caractères de texte brut en leurs entités typographiques correctes. Voici un exemple des caractères reconnus. | + | >> Well, I say we should |
| - | -> <- <-> => <= <=> >> << -- --- 640x480 (c) (tm) (r) | + | > Really? |
| - | "He thought ' | + | |
| - | <code> | + | >> |
| - | -> <- <-> => <= <=> >> << -- --- 640x480 (c) (tm) (r) | + | |
| - | "He thought ' | + | |
| - | </code> | + | |
| - | NB : Ces conversions peuvent être interdites dans le fichier de configuration. | + | >>> |
| - | ===== Citations | + | ===== Tables |
| - | Parfois vous souhaitez marquer du texte afin de montrer que c'est une réponse ou un commentaire. Vous pouvez utiliser la syntaxe suivante : | + | DokuWiki supports a simple syntax to create tables. |
| - | Je pense que nous devrions le faire | + | ^ Heading 1 ^ Heading 2 ^ Heading 3 ^ |
| - | > Non nous ne devrions pas | + | | Row 1 Col 1 | Row 1 Col 2 | Row 1 Col 3 | |
| - | >> | + | | Row 2 Col 1 | some colspan (note the double pipe) || |
| - | > Vraiment ? | + | | Row 3 Col 1 | Row 3 Col 2 | Row 3 Col 3 | |
| - | >> Oui ! | + | |
| - | >>> | + | |
| - | Je pense que nous devrions le faire | + | Table rows have to start and end with a '' |
| - | > Non nous ne devrions pas | + | |
| - | >> Eh bien, je pense que si | + | |
| - | > Vraiment ? | + | |
| - | >> Oui ! | + | |
| - | >>> | + | |
| - | ===== Tableaux ===== | + | ^ 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 | | ||
| - | DokuWiki propose une syntaxe simple pour créer des tableaux. | + | To connect cells horizontally, |
| - | ^ Titre 1 ^ Titre 2 ^ Titre 3 ^ | + | Vertical tableheaders are possible, too. |
| - | | Ligne 1 Col 1 | Ligne 1 Col 2 | Ligne 1 Col 3 | | + | |
| - | | Ligne 2 Col 1 | colonnes fusionnées (notez la double barre verticale) | + | |
| - | | Ligne 3 Col 1 | Ligne 2 Col 2 | Ligne 2 Col 3 | | + | |
| - | Les lignes de tableau doivent commencer et terminer avec un //pipe// '' | + | | ^ 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 | | ||
| - | ^ Titre 1 ^ Titre 2 ^ Titre 3 ^ | + | As you can see, it's the cell separator before a cell which decides about the formatting: |
| - | | Ligne 1 Col 1 | Ligne 1 Col 2 | Ligne 1 Col 3 | | + | |
| - | | Ligne 2 Col 1 | colonnes fusionnées (notez la double barre verticale) | + | |
| - | | Ligne 3 Col 1 | Ligne 2 Col 2 | Ligne 2 Col 3 | | + | |
| - | Pour fusionner des cellules horizontalement (//colspan//), rendez simplement la cellule suivante complètement vide comme montré ci-dessus. Assurez-vous d' | + | | ^ Heading 1 ^ Heading 2 ^ |
| + | ^ Heading 3 | Row 1 Col 2 | Row 1 Col 3 | | ||
| + | ^ Heading 4 | no colspan | ||
| + | ^ Heading 5 | Row 2 Col 2 | Row 2 Col 3 | | ||
| - | Les titres de tableau verticaux sont également possibles. | + | You can have rowspans (vertically connected cells) by adding '' |
| - | | | + | ^ Heading |
| - | ^ Titre 3 | + | | Row 1 Col 1 |
| - | ^ Titre 4 | + | | Row 2 Col 1 |
| - | ^ Titre 5 | + | | Row 3 Col 1 |
| - | Comme vous pouvez le constater, c'est le séparateur (' | + | Apart from the rowspan syntax those cells should not contain anything else. |
| - | | + | ^ Heading |
| - | | + | | Row 1 Col 1 |
| - | | + | | Row 2 Col 1 |
| - | | + | | Row 3 Col 1 |
| - | Note : les fusions verticales (// | + | 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. |
| - | Vous pouvez également aligner le contenu du tableau. Ajoutez simplement au moins deux espaces blancs à l' | + | ^ Table with alignment |
| - | + | | right| | |
| - | ^ | + | |left |
| - | | | + | |
| - | |gauche | + | |
| | xxxxxxxxxxxx | xxxxxxxxxxxx | xxxxxxxxxxxx | | | xxxxxxxxxxxx | xxxxxxxxxxxx | xxxxxxxxxxxx | | ||
| - | Voici à quoi ressemble le code source : | + | This is how it looks in the source: |
| - | ^ | + | ^ Table with alignment |
| - | | | + | | right| |
| - | |gauche | + | |left |
| | xxxxxxxxxxxx | xxxxxxxxxxxx | xxxxxxxxxxxx | | | xxxxxxxxxxxx | xxxxxxxxxxxx | xxxxxxxxxxxx | | ||
| + | Note: Vertical alignment is not supported. | ||
| - | ===== Blocs non analysés | + | ===== No Formatting |
| - | Vous pouvez inclure des blocs non analysés | + | If you need to display text exactly like it is typed (without any formatting), enclose the area either with '' |
| - | '' | + | |
| + | < | ||
| + | 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 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 '' | ||
| + | |||
| + | This is text is indented by two spaces. | ||
| < | < | ||
| - | Ceci est du code préformaté, | + | This is preformatted |
| - | | + | |
| </ | </ | ||
| < | < | ||
| - | Ceci est pratiquement la même chose, mais vous pouvez l' | + | This is pretty much the same, but you could use it to show that you quoted a file. |
| </ | </ | ||
| - | Pour laisser l' | + | Those blocks were created by this source: |
| - | < | + | This is text is indented by two spaces. |
| - | Voici du texte qui contient des adresses comme ceci : | + | |
| - | http://www.spiltbrain.org et de la **mise en forme**, mais rien ne se passe. | + | |
| - | </ | + | |
| - | Consultez le source de cette page pour voir comment utiliser ces blocs. | + | < |
| + | This is preformatted code all spaces are preserved: like <-this | ||
| + | </ | ||
| - | ===== Surlignement de syntaxe ===== | + | < |
| + | This is pretty much the same, but you could use it to show that you quoted a file. | ||
| + | </ | ||
| - | [[DokuWiki]] | + | ==== Syntax Highlighting ==== |
| - | [[http:// | + | |
| + | [[wiki:DokuWiki]] | ||
| <code java> | <code java> | ||
| /** | /** | ||
| - | | + | |
| - | | + | |
| */ | */ | ||
| class HelloWorldApp { | class HelloWorldApp { | ||
| public static void main(String[] args) { | public static void main(String[] args) { | ||
| - | System.out.println(" | + | System.out.println(" |
| } | } | ||
| } | } | ||
| </ | </ | ||
| - | Les identificateurs de langage suivants sont actuellement reconnus | + | The following language strings are currently recognized: //4cs 6502acme 6502kickass 6502tasm 68000devpac abap actionscript3 |
| + | There are additional [[doku> | ||
| - | ===== Inclure du code HTML ou PHP ===== | + | ==== Downloadable Code Blocks |
| - | Vous pouvez inclure du code HTML ou PHP pur dans vos documents en | + | When you use the '' |
| - | utilisant les tags '' | + | |
| - | < | + | < |
| - | <html> | + | <file php myexample.php> |
| - | Ceci est du <font color=" | + | <?php echo "hello world!"; ?> |
| - | </html> | + | </file> |
| </ | </ | ||
| - | <html> | + | <file php myexample.php> |
| - | Ceci est du <font color="red" | + | <?php echo "hello world!"; ?> |
| - | </html> | + | </file> |
| - | <code php> | + | If you don't want any highlighting but want a downloadable file, specify a dash ('' |
| - | < | + | |
| - | echo 'Un logo généré par PHP:'; | + | |
| - | echo '<img src="' | + | |
| - | </php> | + | |
| - | </code> | + | |
| - | < | + | ===== RSS/ATOM Feed Aggregation ===== |
| - | echo 'Un logo généré par PHP:'; | + | [[DokuWiki]] can integrate data from external XML feeds. For parsing the XML feeds, [[http:// |
| - | echo '< | + | |
| - | </php> | + | |
| - | **NB** : L' | + | ^ Parameter |
| - | configuration par défaut. Dans ce cas, le code est affiché au lieu d'être exécuté. | + | | 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. All HTML tags will be stripped | | ||
| + | | nosort | ||
| + | | //n//[dhm] | refresh period, where d=days, h=hours, m=minutes. (e.g. 12h = 12 hours). | | ||
| - | ===== Plugins de syntaxe ===== | + | The refresh period defaults to 4 hours. Any value below 10 minutes will be treated as 10 minutes. [[wiki: |
| - | La syntaxe de DokuWiki peut être étendue par des [[doku> | + | By default the feed will be sorted by date, newest items first. You can sort it by oldest first using the '' |
| - | ~~INFO:syntaxplugins~~ | + | **Example:** |
| - | ===== Traduction ===== | + | {{rss> |
| - | Cette page a été traduite par [[utilisateurs:djakoni]]. Vous pouvez trouver la version officielle | + | {{rss> |
| + | |||
| + | |||
| + | ===== Control Macros ===== | ||
| + | |||
| + | Some syntax influences how DokuWiki renders | ||
| + | |||
| + | ^ Macro ^ Description | | ||
| + | | %%~~NOTOC~~%% | ||
| + | | %%~~NOCACHE~~%% | DokuWiki caches all output by default. Sometimes this might not be wanted (eg. when the %%< | ||
| + | |||
| + | ===== Syntax Plugins ===== | ||
| + | |||
| + | DokuWiki' | ||
| + | |||
| + | ~~INFO: | ||
