Ci-dessous, les différences entre deux révisions de la page.
Prochaine révision | Révision précédente | ||
wiki:syntax [2018/09/19 10:26] 127.0.0.1 modification externe |
wiki:syntax [2019/02/16 14:16] Amalya [Extensions de syntaxe] |
||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | ====== | + | ====== |
- | [[doku>DokuWiki]] | + | [[https:// |
- | ===== Basic Text Formatting ===== | ||
- | DokuWiki supports **bold**, //italic//, __underlined__ and '' | + | ===== Mise en forme de texte basique ===== |
- | | + | DokuWiki |
- | Of course you can **__//'' | + | |
- | You can use < | + | DokuWiki accepte les textes en **gras**, //italique//, __souligné__ et '' |
- | You can use < | + | Bien sûr, vous pouvez tous les **__//'' |
- | You can mark something as < | + | Bien sûr, vous pouvez tous les **__//'' |
- | You can mark something as <del>deleted</del> as well. | + | Vous pouvez aussi utiliser |
- | **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 < |
- | This is some text with some linebreaks\\ Note that the | + | De plus, vous pouvez marquer un passage comme < |
- | two backslashes are only recognized at the end of a line\\ | + | |
- | or followed by\\ a whitespace \\this happens without it. | + | |
- | | + | |
- | two backslashes are only recognized at the end of a line\\ | + | |
- | or followed by\\ a whitespace \\this happens without it. | + | |
- | 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 ===== |
- | | + | DokuWiki |
- | automagically: | + | |
- | link text as well: [[http:// | + | |
- | addresses like this one: < | + | |
- | ==== Internal | + | ==== Externes |
- | Internal links are created by using square brackets. You can either just give a [[pagename]] or use an additional [[pagename|link text]]. | + | Les liens externes sont reconnus « automatiquement » : http://www.google.fr ou simplement www.google.fr - Vous pouvez aussi donner des noms aux liens : [[http:// |
- | | + | |
- | | + | |
+ | liens : [[http:// | ||
+ | de courriel comme celle-ci : < | ||
- | [[doku> | ||
- | You can use [[some: | ||
- | You can use [[some: | + | ==== Internes ==== |
- | For details about namespaces see [[doku> | + | Les liens internes sont créés en utilisant les crochets. Vous pouvez soit juste donner un [[nom de page]] soit utiliser un [[: |
- | 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# | + | Les liens internes sont créés en utilisant les crochets. Vous pouvez soit |
+ | juste donner un [[nom de page]] soit utiliser un | ||
+ | [[:start|texte pour le titre]]. Les noms de pages (// | ||
+ | sont convertis automatiquement en minuscules ; les caractères spéciaux ne | ||
+ | sont pas autorisés. | ||
- | This links to [[syntax# | + | Vous pouvez utiliser des [[liste:start|catégories]] (// |
- | Notes: | + | Vous pouvez utiliser des [[liste:start|catégories]] (// |
- | * Links to [[syntax|existing pages]] are shown in a different style from [[nonexisting]] ones. | + | Pour plus de détails sur les catégories (// |
- | * DokuWiki does not use [[wp> | + | |
- | * When a section's heading is changed, its bookmark changes, too. So don't rely on section | + | Les liens vers une section spécifique sont également possibles. Ajoutez simplement le nom de la section après un caractère dièse (#) comme en HTML. Ce lien renvoie vers [[syntax#internes|cette section]]. |
+ | |||
+ | Ce lien renvoie vers [[fr: | ||
+ | |||
+ | Notes : | ||
+ | |||
+ | * Les liens vers des [[syntax|pages existantes]] sont montrés dans un style différent des liens vers des pages [[inexistantes]]. | ||
+ | * DokuWiki | ||
+ | * Lorsque le titre d'une section est modifié, alors son lien change aussi. Donc ne comptez pas trop sur les liens de section. | ||
==== Interwiki ==== | ==== Interwiki ==== | ||
- | DokuWiki | + | DokuWiki |
- | DokuWiki | + | DokuWiki |
- | | + | liens rapides vers d' |
+ | | ||
+ | |||
+ | La liste des liens interwiki disponibles se trouve [[doku> | ||
- | ==== 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. | + | ==== Liens images ==== |
- | Notes: | + | 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://www.php.net|{{wiki:dokuwiki-128.png}}]] |
- | * For Mozilla and Firefox it can be enabled through different workaround mentioned in the [[http://kb.mozillazine.org/ | + | |
- | <?php | + | |
- | /** | + | |
- | * Customization of the english language file | + | |
- | * Copy only the strings that needs to be modified | + | |
- | */ | + | |
- | $lang[' | + | |
- | </ | + | |
- | ==== Image Links ==== | + | [[http:// |
- | You can also use an image to link to another internal or external page by combining the syntax for links and [[# | + | NB : la mise en forme image est la seule syntaxe de mise en forme acceptée comme nom de lien. |
- | | + | Les syntaxes d'[[#Images et autres fichiers|image]] complète et de [[#Liens]] sont possibles (incluant le redimensionnement d' |
- | [[http:// | + | ===== Notes de pied de page ===== |
- | Please | + | Vous pouvez ajouter des notes de pied de page ((Ceci est une note de pied de page)) en utilisant des parenthèses doubles. |
- | The whole [[# | + | Vous pouvez ajouter des notes de pied de page ((Ceci est une note de pied de page)) en utilisant des parenthèses doubles. |
- | ===== Footnotes ===== | ||
- | You can add footnotes ((This is a footnote)) by using double parentheses. | + | ===== Découpage en sections ===== |
- | You can add footnotes ((This is a footnote)) by using double parentheses. | + | Vous pouvez utiliser jusqu' |
+ | ''< | ||
- | ===== Sectioning ===== | ||
- | 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 ''< | ||
- | ==== Headline Level 3 ==== | + | ==== Titre niveau |
- | === Headline Level 4 === | + | === Titre niveau |
- | == Headline Level 5 == | + | == Titre niveau |
- | ==== Headline Level 3 ==== | + | ==== Titre niveau |
- | === Headline Level 4 === | + | === Titre niveau |
- | == Headline Level 5 == | + | == Titre niveau |
- | By using four or more dashes, you can make a horizontal line: | + | En utilisant quatre tirets ou plus, vous pouvez créer une ligne horizontale |
---- | ---- | ||
+ | \\ | ||
+ | < | ||
+ | ===== Images et autres fichiers ===== | ||
- | ===== Media Files ===== | + | Vous pouvez inclure des [[doku> |
- | You can include external and internal [[doku> | + | Taille réelle : {{wiki: |
- | Real size: {{wiki: | + | Redimensionnement à une largeur donnée |
- | Resize to given width: {{wiki: | + | Redimensionnement à une largeur et une hauteur données((Si les proportions de l' |
- | Resize to given width and height((when the aspect ratio of the given width and height doesn' | + | Image externe redimensionnée |
- | Resized external image: | + | Taille réelle |
+ | Redimensionnement à une largeur donnée : | ||
+ | Redimensionnement à une largeur et une hauteur données : {{wiki: | ||
+ | Image externe redimensionnée : {{http://de3.php.net/ | ||
- | Real size: {{wiki: | ||
- | Resize to given width: | ||
- | Resize to given width and height: {{wiki: | ||
- | Resized external image: | ||
- | + | 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 157: | Ligne 156: | ||
{{ wiki: | {{ wiki: | ||
- | Of course, you can add a title (displayed as a tooltip by most browsers), too. | + | Bien sûr, vous pouvez aussi ajouter un titre (affiché comme une bulle d'aide par la plupart des navigateurs). |
- | {{ wiki: | + | {{ wiki: |
- | {{ wiki: | + | {{ wiki: |
- | For linking an image to another page see [[#Image Links]] above. | + | On peut proposer une image en téléchargement sans l' |
- | ==== Supported Media Formats ==== | + | {{ wiki: |
- | DokuWiki can embed the following media formats directly. | + | {{ wiki: |
- | | Image | '' | + | |
- | | Video | ''webm'', | + | Si vous spécifiez un nom de fichier (externe ou interne) qui n'est pas une image ('' |
- | | Audio | '' | + | |
- | | Flash | '' | + | |
- | If you specify a filename that is not a supported media format, then it will be displayed as a link instead. | + | Pour lier une image à une autre page, voir [[#Liens images]] ci-dessus. |
- | By adding ''? | + | ===== Listes ===== |
- | {{wiki: | + | 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 '' |
- | {{wiki: | + | * Ceci est une liste |
+ | * Le second élément | ||
+ | * Vous pouvez avoir plusieurs niveaux | ||
+ | * Un autre élément | ||
- | ==== Fallback Formats ==== | + | |
- | + | - Un autre élément | |
- | 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. | + | - Utilisez simplement l' |
- | + | - Et voilà | |
- | For example consider this embedded mp4 video: | + | |
- | + | ||
- | {{video.mp4|A funny 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 | + | |
- | * You may have different levels | + | |
- | * Another item | + | |
- | + | ||
- | - The same list but ordered | + | |
- | - Another item | + | |
- | - Just use indention for deeper levels | + | |
- | - That's it | + | |
< | < | ||
- | * This is a list | + | * Ceci est une liste |
- | * The second | + | * Le second |
- | * You may have different levels | + | * Vous pouvez avoir plusieurs niveaux |
- | * Another item | + | * Un autre élément |
- | - The same list but ordered | + | - La même liste mais ordonnée |
- | - Another item | + | - Un autre élément |
- | - Just use indention for deeper levels | + | - Utilisez simplement l' |
- | - That's it | + | - Et voilà |
</ | </ | ||
- | Also take a look at the [[doku>faq: | + | Vous pouvez aussi consulter notre [[https:// |
- | ===== 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-) %% 8-) %% | ||
Ligne 253: | Ligne 232: | ||
* DELETEME %% DELETEME %% | * DELETEME %% DELETEME %% | ||
- | ==== Text to HTML Conversions | + | ==== Typographie |
- | Typography: | + | [[https:// |
-> <- <-> => <= <=> >> << -- --- 640x480 (c) (tm) (r) | -> <- <-> => <= <=> >> << -- --- 640x480 (c) (tm) (r) | ||
Ligne 265: | Ligne 244: | ||
</ | </ | ||
- | The same can be done to produce any kind of HTML, it just needs to be added to the [[doku>entities|pattern file]]. | + | Il est possible de faire la même chose pour n' |
- | There are three exceptions | + | Il existe trois exceptions |
+ | ===== Citations ===== | ||
- | ===== Quoting ===== | + | Parfois vous souhaitez marquer du texte afin de montrer que c'est une réponse ou un commentaire. Vous pouvez utiliser la syntaxe suivante : |
- | Some times you want to mark some text to show it's a reply or comment. You can use the following syntax: | + | Je pense que nous devrions le faire |
+ | |||
+ | > Non nous ne devrions pas | ||
+ | |||
+ | >> Eh bien, je pense que si | ||
+ | |||
+ | > Vraiment ? | ||
+ | |||
+ | >> Oui ! | ||
+ | |||
+ | >>> | ||
- | < | + | Je pense que nous devrions le faire |
- | I think we should do it | + | |
- | + | ||
- | > No we shouldn' | + | |
- | + | ||
- | >> Well, I say we should | + | |
- | + | ||
- | > Really? | + | |
- | + | ||
- | >> Yes! | + | |
- | + | ||
- | >>> | + | |
- | </ | + | |
- | I think we should do it | + | > Non nous ne devrions pas |
- | > No we shouldn' | + | >> Eh bien, je pense que si |
- | >> Well, I say we should | + | > Vraiment ? |
- | > Really? | + | >> Oui ! |
- | >> | + | >>> Alors faisons-le |
- | >>> | + | ===== Tableaux ===== |
- | ===== Tables ===== | + | DokuWiki propose une syntaxe simple pour créer des tableaux. |
- | 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 ^ | + | Les lignes de tableau doivent commencer et se terminer avec une //barre verticale// '' |
- | | 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 '' | + | |
+ | | 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 | | + | |
- | To connect cells horizontally, | + | Les titres de tableau verticaux sont également possibles. |
- | Vertical tableheaders are possible, too. | + | | ^ 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 | | ||
- | | ^ Heading 1 ^ Heading 2 ^ | + | Comme vous pouvez le constater, c'est le séparateur ('|' ou '^') précédant une cellule qui détermine le format : |
- | ^ Heading 3 | Row 1 Col 2 | Row 1 Col 3 | | + | |
- | ^ Heading 4 | no colspan this time | | | + | |
- | ^ Heading 5 | Row 2 Col 2 | Row 2 Col 3 | | + | |
- | As you can see, it's the cell separator before a cell which decides about the formatting: | + | | ^ 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 | | ||
- | | ^ Heading 1 ^ Heading 2 ^ | + | Vous pouvez fusionner des cellules verticalement en ajoutant ::: dans les cellules sous celles avec laquelle elles doivent fusionner. |
- | ^ Heading 3 | Row 1 Col 2 | Row 1 Col 3 | | + | :!: Cette fonctionnalité n'est disponible que pour les versions supérieures à 2009-02-14b |
- | ^ 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. | + | ^ Titre 1 ^ Titre 2 ^ Titre 3 ^ |
+ | | Ligne 1 Col 1 | Cette cellule s' | ||
+ | | Ligne 2 Col 1 | ::: | Ligne 2 Col 3 | | ||
+ | | Ligne 3 Col 1 | ::: | Ligne 3 Col 3 | | ||
- | ^ 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. | + | Vous pouvez également aligner les contenus du tableau (uniquement horizontalement). Ajoutez simplement au moins deux espaces à l' |
- | ^ Table with alignment | + | ^ |
- | | right| | + | | |
- | |left | + | |gauche |
| xxxxxxxxxxxx | xxxxxxxxxxxx | xxxxxxxxxxxx | | | xxxxxxxxxxxx | xxxxxxxxxxxx | xxxxxxxxxxxx | | ||
- | This is how it looks in the source: | + | Voici à quoi ça ressemble dans le code source : |
- | ^ Table with alignment | + | ^ |
- | | right| | + | | |
- | |left | + | |gauche |
| xxxxxxxxxxxx | xxxxxxxxxxxx | xxxxxxxxxxxx | | | xxxxxxxxxxxx | xxxxxxxxxxxx | xxxxxxxxxxxx | | ||
- | Note: Vertical alignment is not supported. | ||
- | ===== No Formatting | + | ===== Blocs non analysés |
- | If you need to display text exactly like it is typed (without any formatting), enclose the area either with '' | + | Vous pouvez inclure des blocs non analysés dans vos documents soit en les indentant avec au moins deux espaces |
- | < | ||
- | 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. | ||
< | < | ||
- | This is preformatted | + | Ceci est du code préformaté, |
</ | </ | ||
< | < | ||
- | This is pretty much the same, but you could use it to show that you quoted a file. | + | Ceci est pratiquement la même chose, mais vous pouvez l' |
</ | </ | ||
- | Those blocks were created by this source: | + | Pour laisser l' |
- | 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. | ||
+ | </ | ||
- | | + | <nowiki> |
- | This is preformatted code all spaces are preserved: like <-this | + | Voici du texte qui contient des adresses comme ceci : http:// |
- | </code> | + | </nowiki> |
- | < | + | Consultez le code source de cette page pour voir comment utiliser ces blocs. |
- | This is pretty much the same, but you could use it to show that you quoted a file. | + | |
- | </ | + | |
- | ==== Syntax Highlighting | + | ==== Coloration syntaxique |
- | [[wiki:DokuWiki]] can highlight sourcecode, which makes it easier to read. It uses the [[http:// | + | 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(" |
} | } | ||
} | } | ||
</ | </ | ||
- | The following language strings are currently recognized: //4cs 6502acme 6502kickass 6502tasm 68000devpac | + | Les identificateurs de langage suivants sont actuellement reconnus |
- | There are additional [[doku> | + | ==== Bloc de code téléchargeables ==== |
- | ==== Downloadable Code Blocks ==== | ||
- | When you use the '' | + | Quand vous utilisez les balises //%%< |
- | < | + | <file php monexemple.php> |
- | <file php myexample.php> | + | |
<?php echo "hello world!"; | <?php echo "hello world!"; | ||
</ | </ | ||
- | </ | ||
- | <file php myexample.php> | + | |
- | <?php echo "hello world!"; | + | <?php echo "hello world!"; |
- | </ | + | </ |
- | If you don't want any highlighting but want a downloadable file, specify a dash ('' | + | Si vous ne voulez pas de coloration syntaxique, il suffit de fournir un tiret (-) en guise de code de langage:\\ |
+ | %%<code - monfichier.toto>%%. | ||
+ | ===== Agrégation de fils RSS/ATOM ===== | ||
+ | [[https:// | ||
- | ===== Embedding | + | ^ Paramètre |
+ | | tout nombre | sera utilisé comme le nombre maximum d' | ||
+ | | reverse | ||
+ | | author | ||
+ | | date | affiche les dates des éléments | | ||
+ | | description | affiche les descriptions des éléments. Si [[doku> | ||
+ | | // | ||
- | You can embed raw HTML or PHP code into your documents by using the ''%%<html>%%'' | + | La durée de rafraîchissement est par défaut de 4 heures. Toute valeur inférieure à 10 minutes sera traitée comme 10 minutes. [[https:// |
+ | |||
+ | **Exemple :** | ||
+ | |||
+ | {{rss>http:// | ||
+ | |||
+ | {{rss>http:// | ||
- | HTML example: | + | ===== Inclure du code HTML ou PHP ===== |
+ | Vous pouvez inclure du code HTML ou PHP pur dans vos documents en utilisant les balises '' | ||
< | < | ||
< | < | ||
- | This is some <span style="color:red;font-size:150%;">inline | + | Ceci est du <font color="red" |
</ | </ | ||
- | < | ||
- | <p style=" | ||
- | </ | ||
</ | </ | ||
< | < | ||
- | This is some <span style="color:red;font-size:150%;">inline | + | Ceci est du <font color="red" |
</ | </ | ||
- | < | ||
- | <p style=" | ||
- | </ | ||
- | |||
- | PHP example: | ||
< | < | ||
<php> | <php> | ||
- | echo 'The PHP version: '; | + | echo 'Un logo produit par PHP :'; |
- | echo phpversion(); | + | echo '<img src="' |
- | echo ' (generated inline HTML)'; | + | |
</ | </ | ||
- | <PHP> | ||
- | echo '< | ||
- | echo '< | ||
- | echo '</ | ||
- | </ | ||
</ | </ | ||
<php> | <php> | ||
- | echo 'The PHP version: '; | + | echo 'Un logo produit par PHP :'; |
- | echo phpversion(); | + | echo '<img src="' |
- | echo ' (inline HTML)'; | + | |
</ | </ | ||
- | <PHP> | ||
- | echo '< | ||
- | echo '< | ||
- | echo '</ | ||
- | </ | ||
- | **Please Note**: HTML and PHP embedding is disabled by default in the configuration. | + | **NB** : L' |
- | ===== RSS/ATOM Feed Aggregation | + | ===== Macros |
- | [[DokuWiki]] can integrate data from external XML feeds. For parsing the XML feeds, [[http:// | + | |
- | ^ Parameter | + | Certains mot-clef modifient la manière dont DokuWiki génère une page, sans rajouter aucun contenu. Les macros suivantes sont disponibles |
- | | any number | will be used as maximum number items to show, defaults to 8 | | + | |
- | | reverse | + | |
- | | author | + | |
- | | date | show item dates | | + | |
- | | description| show the item description. If [[doku> | + | |
- | | 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: | + | ^ Macro ^ Description | |
+ | | %%~~NOTOC~~%% | ||
+ | | %%~~NOCACHE~~%% | Par défaut, | ||
- | By default the feed will be sorted by date, newest items first. You can sort it by oldest first using the '' | + | ===== Extensions de syntaxe ===== |
- | **Example:** | + | La syntaxe de DokuWiki peut être étendue par des [[doku> |
- | {{rss> | + | ~~INFO:syntaxplugins~~ |
- | {{rss> | ||
- | ===== Control Macros ===== | + | {{tag>Wiki Syntaxe}} |
- | + | ||
- | 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 %%<php>%% syntax above is used), adding this macro will force DokuWiki to rerender a page on every call | | + | |
- | + | ||
- | ===== Syntax Plugins ===== | + | |
- | + | ||
- | DokuWiki' | + | |
- | + | ||
- | ~~INFO: | + |