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 24/11/2006, 23:07] – 81.245.247.244 | wiki:syntax [Le 05/08/2026, 21:36] (Version actuelle) – créée - modification externe 127.0.0.1 | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| - | ====== | + | ====== |
| - | [[wiki:DokuWiki]] | + | [[doku>DokuWiki]] |
| - | [[doku>wiki: | + | |
| + | ===== Basic Text Formatting ===== | ||
| - | ===== Mise en forme de texte basique ===== | + | DokuWiki supports **bold**, //italic//, __underlined__ and '' |
| - | DokuWiki | + | |
| - | Bien sûr, vous pouvez tous les **__//'' | + | Of course you can **__//'' |
| - | DokuWiki supporte les textes en **gras**, // | + | Note that the formatting markers have to directly enclose the text, so '' |
| - | Bien sûr, vous pouvez tous les **__//'' | + | |
| - | Vous pouvez aussi utiliser | + | You can use <sub>subscript</ |
| - | | + | |
| - | De plus, vous pouvez marquer du contenu comme <del>supprimé</ | + | You can mark something as <del>deleted</ |
| - | | + | |
| - | **Les paragraphes** sont créés depuis les lignes vides. Si vous souhaitez | + | **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. |
| - | 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 |
| - | | + | |
| - | | + | |
| - | | + | |
| - | Vous devriez forcer des sauts de ligne uniquement si c'est réellement nécessaire. | + | You should use forced newlines only if really needed. |
| - | ===== Liens ===== | + | ===== Links ===== |
| - | DokuWiki | + | DokuWiki |
| + | ==== External ==== | ||
| - | ==== Externes ==== | + | External links are recognized automagically: |
| - | Les liens externes sont reconnus automatiquement | + | DokuWiki supports multiple ways of creating links. External links are recognized |
| + | automagically: http:// | ||
| + | link text as well: [[http:// | ||
| + | addresses like this one: < | ||
| - | Les liens externes sont reconnus automatiquement : | + | ==== Internal ==== |
| - | http:// | + | |
| - | Vous pouvez aussi donner des noms aux liens: | + | |
| - | [[http:// | + | |
| - | Les adresses email telles que celle-ci : | + | |
| - | < | + | |
| - | ==== Internes ==== | + | Internal links are created by using square brackets. You can either just give a [[pagename]] or use an additional [[pagename|link text]]. |
| - | Les liens internes sont créés en utilisant les crochets. Vous pouvez soit juste donner un [[doku> | + | Internal links are created by using square brackets. You can either just give |
| - | [[doku> | + | a [[pagename]] |
| - | Les liens internes sont créés en utilisant les crochets. | + | [[doku> |
| - | Vous pouvez soit juste donner un [[doku>wiki: | + | |
| - | utiliser un [[doku> | + | |
| - | Les pages (// | + | |
| - | automatiquement en minuscules, | + | |
| - | les caractères spéciaux ne sont pas autorisés. | + | |
| - | Vous pouvez utiliser des [[wiki:namespaces|catégories]] (// | + | You can use [[some: |
| - | | + | |
| - | (// | + | |
| - | nom de page //pagename//. | + | |
| - | Pour plus de détails sur les catégories (//namespaces//), voir [[doku>wiki:namespaces]]. | + | For details about namespaces |
| - | Les liens vers une section | + | Linking to a specific |
| - | Ce lien renvoie vers [[syntax#internes|cette section]]. | + | This links to [[syntax#internal|this Section]]. |
| - | Ce lien renvoie vers [[syntax# | + | Notes: |
| - | Notes : | + | |
| - | + | * DokuWiki | |
| - | | + | * When a section's heading is changed, its bookmark |
| - | * DokuWiki | + | |
| - | * Lorsque le titre d'une section est modifié, alors le //bookmark// change aussi. Donc ne comptez pas trop sur les liens de section. | + | |
| ==== Interwiki ==== | ==== Interwiki ==== | ||
| - | DokuWiki | + | DokuWiki |
| - | DokuWiki | + | DokuWiki |
| - | Ce sont des liens rapides vers d' | + | |
| - | | + | |
| - | Wikipedia | + | |
| - | ==== Partages | + | ==== Windows |
| - | Les partages | + | Windows |
| - | d' | + | |
| - | | + | Windows |
| - | sont également reconnus. | + | |
| - | Notes : | + | Notes: |
| - | * Pour des raisons de sécurité, la navigation directe de partages Windows ne fonctionne que dans //Microsoft Internet Explorer// par défaut | + | * For security reasons direct browsing of windows shares only works in Microsoft Internet Explorer |
| - | * Pour //Mozilla// et //Firefox//, elle peut être mise en place dans l' | + | * For Mozilla |
| - | * Veuillez consulter | + | <?php |
| + | /** | ||
| + | * Customization of the english language file | ||
| + | * Copy only the strings that needs to be modified | ||
| + | */ | ||
| + | $lang[' | ||
| + | </ | ||
| - | ==== Liens images | + | ==== Image Links ==== |
| - | 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 : | + | You can also use an image to link to another internal or external |
| - | [[http://www.php.net|{{wiki: | + | [[http:// |
| - | [[http://www.php.net|{{wiki: | + | [[http:// |
| - | NB : la mise en forme image est la seule syntaxe de mise en forme acceptée comme nom du lien. | + | Please note: The image formatting is the only formatting syntax accepted in link names. |
| - | ===== Notes de pied de page ===== | + | The whole [[# |
| - | Vous pouvez ajouter des notes de pied de page ((Ceci est une note de pied de page)) en utilisant 2 doubles parenthèses. | + | ===== Footnotes ===== |
| - | Vous pouvez ajouter des notes de pied de page ((Ceci est | + | You can add footnotes |
| - | une note de pied de page)) en utilisant 2 doubles | + | |
| - | parenthèses. | + | |
| - | ===== Découpage en sections ===== | + | You can add footnotes ((This is a footnote)) by using double parentheses. |
| - | Vous pouvez utiliser jusqu' | + | ===== Sectioning ===== |
| - | ==== Titre niveau 3 ==== | + | 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 ''< |
| - | === Titre niveau 4 === | + | |
| - | == Titre niveau 5 == | + | |
| - | | + | ==== Headline Level 3 ==== |
| - | === Titre niveau | + | === Headline Level 4 === |
| - | == Titre niveau | + | == Headline Level 5 == |
| - | En utilisant quatre tirets ou plus, vous pouvez créer une ligne horizontale | + | ==== Headline Level 3 ==== |
| + | === Headline Level 4 === | ||
| + | == Headline Level 5 == | ||
| + | |||
| + | By using four or more dashes, you can make a horizontal line: | ||
| ---- | ---- | ||
| - | ===== Images et autres fichiers | + | ===== Media Files ===== |
| - | Vous pouvez inclure des [[doku> | + | You can include external and internal |
| - | Taille réelle | + | Real size: {{wiki: |
| - | {{wiki: | + | |
| - | Redimension à une largeur donnée | + | Resize to given width: {{wiki: |
| - | {{wiki: | + | |
| - | Redimension à une largeur et une hauteur données | + | Resize to given width and height((when the aspect ratio of the given width and height doesn' |
| - | {{wiki: | + | |
| - | Image externe redimensionnée | + | Resized external image: {{https://www.php.net/ |
| - | {{http://de3.php.net/ | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| - | En utilisant des espaces à gauche ou à droite, vous pouvez choisir l' | + | By using left or right whitespaces you can choose the alignment. |
| {{ wiki: | {{ wiki: | ||
| Ligne 176: | Ligne 159: | ||
| {{ wiki: | {{ wiki: | ||
| - | Bien sûr, vous pouvez aussi ajouter un titre (affiché comme une bulle d'info par la plupart des navigateurs). | + | You can also set the alignment explicitly with a ''? |
| - | {{ wiki: | + | {{wiki: |
| - | {{ wiki: | + | {{wiki: |
| - | Si vous spécifiez un nom de fichier | + | Of course, you can add a title (displayed as a tooltip by most browsers), too. |
| - | ===== Listes ===== | + | {{ wiki: |
| - | 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 '' | + | {{ wiki: |
| - | * Ceci est une liste | + | For linking an image to another page see [[#Image Links]] above. |
| - | * Le second élément | + | |
| - | * Vous pouvez avoir plusieurs niveaux | + | |
| - | * Un autre élément | + | |
| - | | + | ==== Supported Media Formats ==== |
| - | - Un autre élément | + | |
| - | - Utilisez simplement l' | + | DokuWiki can embed the following media formats directly. |
| - | - Et voilà | + | |
| + | | Image | '' | ||
| + | | Video | '' | ||
| + | | Audio | '' | ||
| + | | Flash | '' | ||
| + | |||
| + | If you specify a filename that is not a supported media format, then it will be displayed as a link instead. | ||
| + | |||
| + | By adding ''? | ||
| + | |||
| + | {{wiki: | ||
| + | |||
| + | {{wiki: | ||
| + | |||
| + | ==== 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. | ||
| + | |||
| + | For example consider this embedded mp4 video: | ||
| + | |||
| + | | ||
| + | |||
| + | When you upload a '' | ||
| + | |||
| + | Additionally DokuWiki supports a " | ||
| + | |||
| + | ===== Lists ===== | ||
| + | |||
| + | Dokuwiki supports ordered and unordered lists. To create a list item, indent your text by two spaces and use a '' | ||
| + | |||
| + | * This is a list | ||
| + | * The second item | ||
| + | | ||
| + | * Another item | ||
| + | |||
| + | | ||
| + | - Another item | ||
| + | - Just use indention for deeper levels | ||
| + | - That's it | ||
| < | < | ||
| - | * 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 |
| </ | </ | ||
| - | ===== Emoticônes (Smileys) ===== | + | Also take a look at the [[doku> |
| - | DokuWiki | + | ===== Text Conversions ===== |
| + | |||
| + | DokuWiki | ||
| + | |||
| + | 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 converts commonly used [[wp> | ||
| * 8-) %% 8-) %% | * 8-) %% 8-) %% | ||
| Ligne 229: | Ligne 255: | ||
| * ;-) %% ;-) %% | * ;-) %% ;-) %% | ||
| * ^_^ %% ^_^ %% | * ^_^ %% ^_^ %% | ||
| + | * m( %% m( %% | ||
| * :?: %% :?: %% | * :?: %% :?: %% | ||
| * :!: %% :!: %% | * :!: %% :!: %% | ||
| Ligne 235: | Ligne 262: | ||
| * DELETEME %% DELETEME %% | * DELETEME %% DELETEME %% | ||
| - | ===== Typographie ===== | + | ==== Text to HTML Conversions |
| - | [[DokuWiki]] | + | Typography: |
| -> <- <-> => <= <=> >> << -- --- 640x480 (c) (tm) (r) | -> <- <-> => <= <=> >> << -- --- 640x480 (c) (tm) (r) | ||
| Ligne 247: | Ligne 274: | ||
| </ | </ | ||
| - | NB : Ces conversions peuvent être interdites dans le fichier de configuration. | + | The same can be done to produce any kind of HTML, it just needs to be added to the [[doku> |
| - | ===== Citations ===== | + | There are three exceptions which do not come from that pattern file: multiplication entity (640x480), ' |
| - | Parfois vous souhaitez marquer du texte afin de montrer que c'est une réponse ou un commentaire. Vous pouvez utiliser la syntaxe suivante : | + | ===== Quoting ===== |
| - | Je pense que nous devrions le faire | + | Some times you want to mark some text to show it's a reply or comment. You can use the following syntax: |
| - | > Non nous ne devrions pas | + | |
| - | >> Eh bien, je pense que si | + | |
| - | > Vraiment ? | + | |
| - | >> Oui ! | + | |
| - | >>> | + | |
| - | Je pense que nous devrions le faire | + | < |
| - | > Non nous ne devrions pas | + | I think we should do it |
| - | >> | + | |
| - | > Vraiment | + | > No we shouldn' |
| - | >> | + | |
| - | >>> | + | >> |
| + | |||
| + | > Really? | ||
| + | |||
| + | >> | ||
| + | |||
| + | >>> | ||
| + | </ | ||
| + | |||
| + | I think we should do it | ||
| + | |||
| + | > No we shouldn' | ||
| + | |||
| + | >> Well, I say we should | ||
| + | |||
| + | > Really? | ||
| + | |||
| + | >> Yes! | ||
| + | |||
| + | >>> | ||
| + | |||
| + | ===== Tables ===== | ||
| + | |||
| + | 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 | | ||
| - | ===== Tableaux ===== | + | Table rows have to start and end with a '' |
| - | DokuWiki propose une syntaxe simple pour créer des 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 | | ||
| - | ^ Titre 1 ^ Titre 2 ^ Titre 3 ^ | + | To connect cells horizontally, |
| - | | 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// '' | + | Vertical tableheaders are possible, too. |
| - | | + | | |
| - | | + | ^ Heading |
| - | | Ligne 2 Col 1 | colonnes fusionnées (notez la double barre verticale) | + | ^ Heading 4 |
| - | | Ligne 3 Col 1 | Ligne 2 Col 2 | + | ^ Heading 5 |
| - | Pour fusionner des cellules horizontalement (// | + | As you can see, it's the cell separator before a cell which decides about the formatting: |
| - | Les titres de tableau verticaux sont également possibles. | + | | ^ 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 ^ | + | You can have rowspans (vertically connected cells) by adding '' |
| - | ^ Titre 3 | Ligne 1 Col 2 | Ligne 1 Col 3 | | + | |
| - | ^ Titre 4 | pas de fusion cette fois | | | + | |
| - | ^ Titre 5 | Ligne 2 Col 2 | Ligne 2 Col 3 | | + | |
| - | Comme vous pouvez le constater, c'est le séparateur (' | + | ^ 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 | | ||
| - | | ^ Titre 1 ^ Titre 2 ^ | + | Apart from the rowspan syntax those cells should not contain anything else. |
| - | ^ Titre 3 | Ligne 1 Col 2 | Ligne 1 Col 3 | | + | |
| - | ^ Titre 4 | pas de fusion cette fois | | | + | |
| - | ^ Titre 5 | Ligne 2 Col 2 | Ligne 2 Col 3 | | + | |
| - | Note : les fusions verticales (// | + | ^ 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 | | ||
| - | Vous pouvez également aligner le contenu du tableau. Ajoutez simplement au moins deux espaces blancs à l' | + | 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 |
| - | | | + | | right| |
| - | |gauche | + | |left |
| | 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 | | ||
| - | ===== Blocs non analysés ===== | + | Note: Vertical alignment is not supported. |
| - | Vous pouvez inclure des blocs non analysés (//non parsed//) dans vos documents soit en les indentant avec au moins deux espaces (comme utilisé dans les examples précédant) ou en utilisant les tags '' | + | ===== 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 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 |
| - | ===== Inclure du code HTML ou PHP ===== | + | There are additional [[doku> |
| - | Vous pouvez inclure du code HTML ou PHP pur dans vos documents en | + | ==== Downloadable Code Blocks ==== |
| - | utilisant les tags '' | + | |
| - | <code html4strict> | + | |
| - | < | + | |
| - | Ceci est du <font color=" | + | |
| - | </ | + | |
| - | </ | + | |
| - | <html> | + | When you use the '' |
| - | Ceci est du <font color=" | + | |
| - | </html> | + | |
| - | < | + | < |
| - | < | + | <file php myexample.php> |
| - | echo 'Un logo généré par PHP:'; | + | <?php echo "hello world!"; ?> |
| - | echo '<img src="' | + | </file> |
| - | </php> | + | |
| </ | </ | ||
| - | < | + | <file php myexample.php> |
| - | echo 'Un logo généré par PHP:'; | + | <? |
| - | echo '<img src="' | + | </ |
| - | </php> | + | |
| + | If you don't want any highlighting but want a downloadable file, specify a dash ('' | ||
| + | |||
| + | ===== 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. All HTML tags will be stripped | | ||
| + | | 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>http:// | ||
| + | |||
| + | |||
| + | ===== Control Macros ===== | ||
| + | |||
| + | Some syntax influences how DokuWiki renders a page without creating any output it self. The following control macros are availble: | ||
| - | **NB** : L' | + | ^ Macro ^ Description | |
| - | configuration par défaut. Dans ce cas, le code est affiché au lieu d' | + | | %%~~NOTOC~~%% |
| + | | %%~~NOCACHE~~%% | DokuWiki caches all output by default. Sometimes this might not be wanted (eg. when the %%< | ||
| - | ===== Plugins | + | ===== Syntax |
| - | La syntaxe de DokuWiki | + | DokuWiki's syntax can be extended by [[doku> |
| ~~INFO: | ~~INFO: | ||
| - | ===== Traduction ===== | ||
| - | Cette page a été traduite par [[utilisateurs: | ||
