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édenteDernière révisionLes deux révisions suivantes | ||
wiki:syntax [2019/05/11 12:04] – francoisa | wiki:syntax [2019/05/11 12:07] – francoisa | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | ====== | + | ====== |
+ | ~~NOTOC~~ | ||
+ | [[doku> | ||
- | [[doku> | + | ===== Mise en forme de texte basique ===== |
- | ===== Basic Text Formatting ===== | + | DokuWiki accepte les textes en **gras**, // |
- | DokuWiki supports **bold**, //italic//, __underlined__ and '' | ||
- | DokuWiki supports **bold**, //italic//, __underlined__ and '' | ||
- | Of course you can **__//'' | ||
- | </ | ||
- | You can use < | + | DokuWiki accepte les textes en **gras**, |
- | < | + | |
- | You can use < | + | |
- | </code> | + | |
- | You can mark something as <del>deleted</del> as well. | + | Vous pouvez aussi utiliser des <sub>indices</sub> et <sup>exposants</sup>. |
- | <code> | + | |
- | You can mark something as < | + | |
- | </ | + | |
- | **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. | + | Vous pouvez aussi utiliser des < |
- | 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. | + | De plus, vous pouvez marquer un passage comme < |
- | <code> | + | De plus, vous pouvez marquer un passage comme <del>supprimé</del>. |
- | 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. | + | |
- | </code> | + | |
- | You should use forced newlines only if really needed. | + | **Les paragraphes** sont créés à partir des lignes vides. Si vous souhaitez **forcer un saut de ligne** sans paragraphe, vous pouvez utiliser deux contre-obliques suivies par un espace ou une fin de ligne. |
- | ===== Links ===== | + | Voici du texte avec des sauts de ligne\\ remarquez que les |
+ | deux contre-obliques sont reconnues uniquement en fin de ligne\\ | ||
+ | ou suivies par\\ un espace ; \\ceci se produit sinon. | ||
- | DokuWiki supports multiple ways of creating links. | + | Voici du texte avec des sauts de ligne\\ remarquez que les |
+ | deux contre-obliques sont reconnues uniquement en fin de ligne\\ | ||
+ | ou suivies par\\ un espace ; \\ceci se produit sinon. | ||
- | ==== External ==== | + | Vous ne devriez forcer des sauts de ligne que si c'est vraiment nécessaire. |
- | External links are recognized automagically: | + | ===== Liens ===== |
- | - You can set the link text as well: [[http:// | + | |
- | DokuWiki supports multiple ways of creating links. External links are recognized | + | |
- | automagically: | + | |
- | link text as well: [[http:// | + | |
- | addresses like this one: < | + | |
- | </ | + | |
- | ==== Internal ==== | + | DokuWiki propose plusieurs moyens pour créer des liens. |
- | Internal links are created by using square brackets. You can either just give a [[: | + | ==== Externes ==== |
- | Internal links are created by using square brackets. You can either just give | + | |
- | a [[pagename|]] or use an additional [[pagename|link text]]. | + | |
- | </ | + | |
- | [[doku> | + | Les liens externes sont reconnus automagiquement : http:// |
- | You can use [[:some:namespaces|]] by using a colon in the pagename.< | + | Les liens externes sont reconnus automagiquement |
- | You can use [[some:namespaces|]] by using a colon in the pagename. | + | ou simplement www.google.fr - Vous pouvez aussi donner des noms aux |
- | </code> | + | liens : [[http:// |
+ | de courriel comme celle-ci : <andi@splitbrain.org> sont également reconnues. | ||
- | For details about namespaces see [[doku> | ||
- | Linking to a specific section is possible, too. Just add the section name behind a hash character as known from HTML. This links to [[: | ||
- | This links to [[syntax# | ||
- | </ | ||
- | Notes: | + | ==== Internes ==== |
- | * Links to [[: | + | Les liens internes sont créés en utilisant des crochets. Vous pouvez juste utiliser un [[nom de page]] ou utiliser un [[nom de page|texte de lien]]. |
- | * DokuWiki | + | |
- | * When a section's heading is changed, its bookmark changes, too. So don't rely on section | + | Les liens internes sont créés en utilisant des crochets. Vous pouvez juste |
+ | utiliser un [[nom de page]] ou utiliser un [[nom de page|texte de lien]]. | ||
+ | |||
+ | Les [[doku> | ||
+ | |||
+ | Vous pouvez utiliser les [[voici:des: | ||
+ | |||
+ | Vous pouvez utiliser les [[voici: | ||
+ | les deux points dans le nom de page. | ||
+ | |||
+ | Pour plus de détails sur les catégories, | ||
+ | |||
+ | Les liens vers une section spécifique d'une page sont également possibles (voir la partie [[syntax# | ||
+ | |||
+ | Ce lien renvoie vers [[syntax# | ||
+ | |||
+ | Notes : | ||
+ | |||
+ | * Les liens vers des [[syntax|pages existantes]] sont montrés dans un style différent des liens vers des pages [[inexistantes]]. | ||
+ | * Par défaut, | ||
+ | * Lorsque le titre d' | ||
==== Interwiki ==== | ==== Interwiki ==== | ||
- | DokuWiki supports | + | Les liens [[doku>fr: |
- | DokuWiki supports | + | Par exemple |
- | For example this is a link to Wikipedia' | + | |
- | </ | + | |
- | ==== Windows Shares ==== | + | Les liens [[doku> |
+ | Par exemple [[wpfr> | ||
- | Windows | + | ==== Partages |
- | Windows Shares like [[servershare|this]] are recognized, too. | + | |
- | </ | + | |
- | Notes: | + | Les partages Windows tels que [[\\serveurnt4\partage|ceci]] sont également reconnus. Veuillez noter qu'ils n'ont un sens que dans un groupe d' |
- | | + | |
- | * For Mozilla and Firefox it can be enabled through different workaround mentioned in the [[http:// | + | |
- | conf/lang/en/lang.php< | + | Notes : |
- | <?php | + | |
- | /** | + | * Pour des raisons de sécurité, la navigation directe sur partages Windows ne fonctionne que dans //Microsoft Internet Explorer// par défaut (et seulement dans la « zone locale »). |
- | * Customization of the english language file | + | * Pour //Mozilla// et // |
- | * Copy only the strings that needs to be modified | + | LANG.nosmblinks = ''; |
- | */ | + | |
- | $lang[' | + | |
</ | </ | ||
- | ==== Image Links ==== | + | ==== Liens images |
- | You can also use an image to link to another internal or external | + | 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 et autres fichiers|images]] (voir plus bas) comme ceci : |
- | [[http:// | + | |
- | </ | + | |
- | [[http:// | + | |
- | Please note: The image formatting is the only formatting syntax accepted in link names. | + | [[http://www.php.net|{{wiki: |
- | The whole [[# | + | NB : la mise en forme image est la seule syntaxe de mise en forme acceptée comme nom de lien. |
- | ===== Footnotes ===== | + | la totalité des syntaxes d' |
- | You can add footnotes ((This is a footnote)) | + | ===== Notes de pied de page ===== |
- | You can add footnotes ((This is a footnote)) by using double parentheses. | + | |
- | </ | + | |
- | ===== Sectioning ===== | + | Vous pouvez ajouter des notes de pied de page ((Ceci est une note de pied de page)) en utilisant des parenthèses doubles. |
- | 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 ''< | + | Vous pouvez ajouter des notes de pied de page ((Ceci est une note de pied de page)) en utilisant des parenthèses doubles. |
- | ==== Headline Level 3 ==== | ||
- | === Headline Level 4 === | + | ===== Découpage en sections ===== |
- | == Headline Level 5 == | + | Vous pouvez utiliser jusqu' |
+ | ''< | ||
- | < | ||
- | ==== Headline Level 3 ==== | ||
- | === Headline Level 4 === | ||
- | == Headline Level 5 == | ||
- | </ | ||
- | By using four or more dashes, you can make a horizontal line: | ||
- | ---- | + | ==== Titre niveau 3 ==== |
+ | === Titre niveau 4 === | ||
+ | == Titre niveau 5 == | ||
- | ===== Media Files ===== | + | |
+ | === Titre niveau 4 === | ||
+ | == Titre niveau 5 == | ||
- | You can include external and internal [[doku> | + | En utilisant quatre tirets ou plus, vous pouvez créer une ligne horizontale : |
- | Real size: {{: | + | ---- |
+ | \\ | ||
+ | < | ||
+ | ===== Images et autres fichiers ===== | ||
- | Resize to given width: {{:wiki: | + | Vous pouvez insérer des [[doku> |
+ | |||
+ | taille originale : {{wiki: | ||
- | Resize to given width and height((when the aspect ratio of the given width and height doesn' | + | largeur donnée |
- | Resized external | + | hauteur et largeur données((Si les proportions de l'image ne sont pas respectées, |
- | Real size: {{wiki: | + | |
- | Resize to given width: {{wiki: | + | |
- | Resize to given width and height: {{wiki: | + | |
- | Resized external image: | + | |
- | </ | + | |
- | By using left or right whitespaces you can choose the alignment. | + | Image externe redimensionnée |
- | {{ : | + | taille originale : |
+ | largeur donnée | ||
+ | hauteur et largeur données : {{wiki: | ||
+ | Image externe redimensionnée : {{http:// | ||
- | {{: | ||
- | {{ | + | Par défaut les images se placent au fil du texte, centrées verticalement. |
+ | |||
+ | Vous pouvez les aligner avec des espaces à gauche ou à droite | ||
- | < | ||
{{ wiki: | {{ wiki: | ||
+ | |||
{{wiki: | {{wiki: | ||
+ | |||
{{ wiki: | {{ wiki: | ||
- | </ | ||
- | Of course, you can add a title (displayed as a tooltip by most browsers), too. | + | {{ wiki: |
+ | {{wiki: | ||
+ | {{ wiki: | ||
- | {{ : | + | Bien sûr, vous pouvez |
- | {{ wiki: | + | |
- | </ | + | |
- | For linking an image to another page see [[# | + | {{ wiki: |
- | ==== Supported Media Formats ==== | + | {{ wiki: |
- | DokuWiki can embed the following media formats directly. | + | ------ |
- | |Image |'' | + | Les fichiers qui ne sont pas affichables (voir tableau des médias pris en charge dans la [[#Médias pris en charge|section suivante]]), sont représentés uniquement comme un lien de téléchargement. Par défaut, les images disposent d'un lien vers une page de détails. |
- | |Video |'' | + | |
- | |Audio |'' | + | |
- | |Flash |'' | + | |
- | If you specify a filename that is not a supported media format, then it will be displayed as a link instead. | + | Vous pouvez modifier ce comportement : |
- | By adding '' | + | {{wiki: |
- | {{wiki: | + | {{wiki: |
- | </code> | + | {{wiki: |
+ | [[http:// | ||
- | {{: | + | |
+ | {{wiki: | ||
+ | {{wiki: | ||
+ | [[http:// | ||
- | ==== 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. | + | Vous pouvez combiner plusieurs effets avec ''&'' |
- | For example consider this embedded mp4 video:< | + | {{wiki:dokuwiki-128.png? |
- | {{video.mp4|A funny video}} | + | {{wiki: |
- | </ | + | |
- | When you upload a '' | + | ==== Médias pris en charge ==== |
- | Additionally | + | DokuWiki |
- | ===== Lists ===== | + | ^ Image | '' |
+ | ^ Vidéo | '' | ||
+ | ^ Audio | '' | ||
+ | ^ Flash | '' | ||
- | Dokuwiki supports ordered and unordered lists. To create a list item, indent your text by two spaces and use a '' | + | Si vous indiquez un fichier dans un format non pris en charge, DokuWiki le présentera comme un lien de téléchargement. |
- | * This is a list | + | ==== Formats de repli ==== |
- | * The second item | + | |
- | * You may have different levels | + | |
- | * Another item | + | |
- | - The same list but ordered | + | Malheureusement, |
- | - Another item | + | |
- | - Just use indention for deeper levels | + | |
- | - That's it< | + | |
- | * This is a list | + | |
- | * The second item | + | |
- | * You may have different levels | + | |
- | * Another item | + | |
- | | + | Par exemple, si vous avez téléversé '' |
- | - Another item | + | |
- | - Just use indention for deeper levels | + | {{film.mp4|une vidéo sympa}} |
- | - That's it | + | |
+ | DokuWiki indiquera automatiquement les alternatives '' | ||
+ | |||
+ | De plus, DokuWiki permet d' | ||
+ | |||
+ | |||
+ | ===== Listes ===== | ||
+ | |||
+ | DokuWiki accepte 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 '' | ||
+ | |||
+ | * Ceci est une liste | ||
+ | * Le second élément | ||
+ | * Vous pouvez avoir plusieurs niveaux | ||
+ | * Un autre élément | ||
+ | |||
+ | - La même liste mais ordonnée | ||
+ | - Un autre élément | ||
+ | - Utilisez simplement l' | ||
+ | - Et voilà | ||
+ | |||
+ | < | ||
+ | * Ceci est une liste | ||
+ | * Le second élément | ||
+ | * Vous pouvez avoir plusieurs niveaux | ||
+ | * Un autre élément | ||
+ | |||
+ | - La même liste mais ordonnée | ||
+ | - Un autre élément | ||
+ | - Utilisez simplement l'indentation pour des niveaux plus profonds | ||
+ | - Et voilà | ||
</ | </ | ||
- | Also take a look at the [[doku> | + | Vous pouvez aussi consulter notre [[doku>fr:faq: |
- | ===== Text Conversions ===== | + | ===== Conversions |
- | DokuWiki | + | DokuWiki |
- | The text to image conversion is mainly done for smileys. | + | Les conversions en image sont principalement utilisée pour les émoticônes (//smileys//). Les conversions en texte ou HTML sont utilisées pour des raisons de typographie, mais peuvent également être configurées pour utiliser d' |
- | ==== Text to Image Conversions | + | ==== Emoticônes (smileys) |
- | DokuWiki | + | DokuWiki |
- | * 8-) < | + | * 8-) %% |
- | * 8-O < | + | * 8-O %% |
- | * :-( < | + | * :-( %% |
- | * :-) < | + | * :-) %% |
- | * =) < | + | * =) |
- | * :-/ < | + | * :-/ %% |
- | * :-" class= < | + | * :-\ %% |
- | * :-? < | + | * :-? %% |
- | * :-D < | + | * :-D %% |
- | * :-P < | + | * :-P %% |
- | * :-O < | + | * :-O %% |
- | * :-X < | + | * :-X %% |
- | * :-| < | + | * :-| %% |
- | *;-) < | + | * ;-) %% |
- | * ^_^ < | + | * ^_^ %% |
- | * :?: < | + | * :?: %% |
- | * :!: < | + | * :!: %% |
- | * LOL < | + | * LOL %% |
- | * FIXME < | + | * FIXME %% |
- | * DELETEME | + | * DELETEME |
- | ==== Text to HTML Conversions | + | ==== Typographie |
- | Typography: | + | [[doku>fr: |
- | → <- <→ ⇒ <= <⇒>> <<– — 640×480 © ™ ® "He thought ' | + | -> <- <-> => <= <=> >> << |
- | -> <- <-> => <= < | + | "He thought ' |
+ | |||
+ | < | ||
+ | -> <- <-> => <= <=> >> << -- --- 640x480 (c) (tm) (r) | ||
"He thought ' | "He thought ' | ||
</ | </ | ||
- | The same can be done to produce any kind of HTML, it just needs to be added to the [[doku> | + | Il est possible de faire la même chose pour n' |
- | There are three exceptions | + | Il existe trois exceptions |
- | ===== Quoting | + | ===== Citations |
- | Some times you want to mark some text to show it's a reply or comment. You can use the following syntax:< | + | Parfois vous souhaitez marquer du texte afin de montrer que c'est une réponse ou un commentaire. Vous pouvez utiliser la syntaxe suivante |
- | I think we should do it> No we shouldn' | + | |
- | >> | + | Je pense que nous devrions le faire |
+ | |||
+ | | ||
+ | |||
+ | | ||
+ | |||
+ | > Vraiment ? | ||
+ | |||
+ | >> Oui ! | ||
+ | |||
+ | >>> | ||
- | > Really? | + | Je pense que nous devrions le faire |
- | >> Yes! | + | > Non nous ne devrions pas |
- | >>> Then lets do it! | + | >> |
- | </ | + | |
- | I think we should do it | + | > Vraiment ? |
- | > No we shouldn' | + | >> Oui ! |
- | >> | + | >>> Alors faisons-le ! |
- | > Really? | + | ===== Tableaux ===== |
- | >> Yes! | + | DokuWiki propose une syntaxe simple pour créer des tableaux. |
- | >>> | + | ^ Titre 1 ^ Titre 2 ^ Titre 3 ^ |
+ | | 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 | | ||
- | ===== Tables ===== | + | Les lignes de tableau doivent commencer et se terminer avec une //barre verticale// '' |
- | DokuWiki supports a simple syntax to create tables. | + | ^ Titre 1 ^ Titre 2 ^ Titre 3 ^ |
+ | | 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 | | ||
- | ^Heading 1 ^Heading 2 ^Heading 3 | | + | Pour fusionner des cellules horizontalement, |
- | |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 | for normal rows or a ^ for headers.< | + | Les titres de tableau verticaux sont également possibles. |
- | ^ 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 | | + | |
- | </ | + | |
- | To connect cells horizontally, | + | | ^ Titre 1 ^ Titre 2 ^ |
+ | ^ 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 | | ||
- | Vertical tableheaders are possible, too. | + | Comme vous pouvez le constater, c'est le séparateur (' |
- | | ^Heading | + | |
- | ^Heading | + | ^ Titre 3 | Ligne 1 Col 2 | Ligne 1 Col 3 | |
- | ^Heading | + | ^ Titre 4 | pas de fusion cette fois | | |
- | ^Heading | + | ^ Titre 5 | Ligne 2 Col 2 | Ligne 2 Col 3 | |
- | As you can see, it's the cell separator before a cell which decides about the formatting:< | + | Vous pouvez fusionner des cellules verticalement en ajoutant |
- | | ^ Heading 1 ^ Heading 2 ^ | + | :!: Cette fonctionnalité n'est disponible que pour les versions supérieures à 2009-02-14b |
- | ^ 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 | + | ^ Titre 1 ^ Titre 2 ^ Titre 3 ^ |
+ | | Ligne 1 Col 1 | Cette cellule s'étend\\ verticalement | ||
+ | | Ligne 2 Col 1 | ::: | Ligne 2 Col 3 | | ||
+ | | Ligne 3 Col 1 | ::: | Ligne 3 Col 3 | | ||
- | ^Heading 1 ^Heading 2 ^Heading 3 | | + | Ces cellules ne doivent rien contenir d' |
- | |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 | + | | Ligne 1 Col 1 | Cette cellule s' |
- | | Row 1 Col 1 | this cell spans vertically | + | | Ligne 2 Col 1 | ::: | Ligne 2 Col 3 | |
- | | Row 2 Col 1 | ::: | Row 2 Col 3 | | + | | Ligne 3 Col 1 | ::: | Ligne 3 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 | + | Vous pouvez également aligner les contenus du tableau (uniquement horizontalement). Ajoutez simplement au moins deux espaces à l' |
- | | right | center | + | |
- | |left | right | center | + | |
- | |xxxxxxxxxxxx |xxxxxxxxxxxx |xxxxxxxxxxxx | | + | |
- | 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. | + | Voici à quoi ça ressemble dans le code source |
- | ===== No Formatting ===== | + | ^ Tableau avec alignement |
+ | | droite| | ||
+ | |gauche | ||
+ | | xxxxxxxxxxxx | xxxxxxxxxxxx | xxxxxxxxxxxx | | ||
- | If you need to display text exactly like it is typed (without any formatting), | ||
- | < | + | ===== Blocs non analysés ===== |
+ | |||
+ | Si vous avez besoin d' | ||
< | < | ||
- | This is some text which contains addresses like this: http:// | + | Voilà du texte qui contient une adresse |
+ | il est reproduit tel quel. | ||
</ | </ | ||
- | The same is true for < | + | La même chose est vraie pour %%//__ce__ texte// avec une émoticône |
- | </ | + | |
- | ===== Code Blocks ===== | + | < |
+ | Voilà du texte qui contient une adresse : http:// | ||
+ | il est reproduit tel quel. | ||
+ | </ | ||
+ | La même chose est vraie pour %%//__ce__ texte// avec une émoticône ;-)%%. | ||
+ | < | ||
- | 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 '' | ||
- | ''< | + | ===== Blocs de code ===== |
+ | |||
+ | Vous pouvez inclure des blocs non analysés dans vos documents soit en les indentant avec au moins deux espaces (comme on peut le voir dans les exemples précédents) soit en utilisant les balises | ||
+ | |||
+ | Ce texte est indenté avec deux espaces. | ||
< | < | ||
- | This is preformatted | + | Ceci est du code préformaté, |
+ | comme <- ceci | ||
</ | </ | ||
< | < | ||
- | This is pretty much the same, but you could use it to show that you quoted a file. | + | C'est pratiquement la même chose, mais vous pouvez l' |
+ | que vous avez cité un fichier. | ||
</ | </ | ||
- | Those blocks were created by this source: | + | Ce texte est indenté avec deux espaces. |
+ | |||
+ | < | ||
+ | Ceci est du code préformaté, | ||
+ | comme <- ceci | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | C'est pratiquement la même chose, mais vous pouvez l' | ||
+ | que vous avez cité un fichier. | ||
+ | </ | ||
- | < | ||
- | This is text is indented by two spaces. | ||
- | </ | ||
- | < | + | ==== Coloration syntaxique ==== |
- | '' | + | |
- | This is preformatted code all spaces are preserved: like <-this | + | |
- | '' | + | [[doku>fr: |
- | </ | + | |
- | + | ||
- | < | + | |
- | This is pretty much the same, but you could use it to show that you quoted a file. | + | |
- | </ | + | |
- | + | ||
- | ==== Syntax Highlighting ==== | + | |
- | + | ||
- | [[:wiki: | + | |
<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(" |
} | } | ||
} | } | ||
</ | </ | ||
- | The following language strings are currently recognized: //4cs 6502acme 6502kickass 6502tasm 68000devpac abap actionscript3 | + | DokuWiki reconnait les identifiants de langage suivants |
- | There are additional [[doku> | ||
- | ==== Downloadable Code Blocks ==== | + | D' |
- | When you use the '' | ||
- | <file php myexample.php> | + | |
+ | ==== Bloc de code téléchargeables ==== | ||
+ | |||
+ | |||
+ | Quand vous utilisez les balises // | ||
+ | |||
+ | <file php monexemple.php> | ||
<?php echo "hello world!"; | <?php echo "hello world!"; | ||
</ | </ | ||
- | If you don't want any highlighting but want a downloadable file, specify a dash ('' | + | |
+ | | ||
+ | | ||
- | ===== Embedding HTML and PHP ===== | + | Si vous ne voulez pas de coloration syntaxique, il suffit de fournir un tiret (-) en guise de code de langage :\\ |
+ | '' | ||
- | You can embed raw HTML or PHP code into your documents by using the ''< | + | ===== Inclure du code HTML ou PHP ===== |
- | HTML example:< | + | Vous pouvez inclure du code HTML ou PHP pur dans vos documents en utilisant les balises '' |
- | < | + | |
- | This is some <span style=" | + | exemple |
+ | |||
+ | < | ||
+ | Ceci est < | ||
</ | </ | ||
- | < | + | |
- | <p style=" | + | Quant à < |
+ | <p style=" | ||
</ | </ | ||
</ | </ | ||
- | < | + | Ceci est < |
+ | </ | ||
+ | |||
+ | Quant à < | ||
+ | <p style=" | ||
+ | </ | ||
- | PHP example: | + | exemple |
< | < | ||
<php> | <php> | ||
- | echo 'The PHP version: '; | + | echo 'Version de PHP: '; |
echo phpversion(); | echo phpversion(); | ||
- | echo ' (generated inline | + | echo ' (HTML en ligne généré)'; |
</ | </ | ||
<PHP> | <PHP> | ||
- | echo '< | + | echo '< |
echo '< | echo '< | ||
echo '</ | echo '</ | ||
Ligne 466: | Ligne 504: | ||
</ | </ | ||
- | <php> echo 'The PHP version: '; echo phpversion(); | + | <php> |
+ | echo 'Version de PHP: '; | ||
+ | echo phpversion(); | ||
+ | echo ' (HTML en ligne généré)'; | ||
+ | </ | ||
+ | <PHP> | ||
+ | echo '< | ||
+ | echo '< | ||
+ | echo '</ | ||
+ | </ | ||
- | **Please Note**: HTML and PHP embedding is disabled by default in the configuration. | + | **NB** : L' |
- | ===== RSS/ | + | ===== Agrégation de fils RSS/ATOM ===== |
- | [[:wiki: | + | [[doku>fr: |
- | ^Parameter | + | ^ Paramètre |
- | |any number | + | | tout nombre |
- | |reverse |display the last items in the feed first | | + | | reverse |
- | |author |show item authors names | | + | | author |
- | |date |show item dates | | + | | date | affiche les dates des éléments |
- | |description |show the item description. If [[doku> | + | | description | affiche les descriptions des éléments. Si [[doku>fr:config: |
- | |nosort |do not sort the items in the feed | | + | | 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 | + | La période de rafraîchissement est par défaut de 4 heures. Toute valeur inférieure à 10 minutes |
- | By default the feed will be sorted by date, newest items first. You can sort it by oldest first using the '' | + | **Exemple :** |
- | **Example: | + | |
- | {{rss> | + | |
- | </ | + | |
{{rss> | {{rss> | ||
- | ===== Control Macros ===== | ||
- | Some syntax influences how DokuWiki renders a page without creating any output it self. The following control macros are availble: | + | ===== Macros ===== |
- | ^Macro ^Description | | + | Certains mots-clef modifient la manière dont DokuWiki génère une page, sans rajouter aucun contenu. Les macros suivantes sont disponibles : |
- | |< | + | |
- | |< | + | |
- | ===== Syntax Plugins ===== | + | ^ Macro ^ Description | |
+ | | %%~~NOTOC~~%% | ||
+ | | %%~~NOCACHE~~%% | Par défaut, DokuWiki met en cache les pages qu'il génère. Parfois, ce n'est pas ce qui est voulu (par exemple quand la syntaxe %%< | ||
- | DokuWiki' | + | ===== Extensions de syntaxe ===== |
- | + | ||
- | ~~INFO: | + | |
+ | La syntaxe de DokuWiki peut être étendue par des [[doku> | ||
+ | ~~INFO: | ||