Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente | ||
|
wiki:syntax [2019/02/16 14:15] Amalya [Inclure du code HTML ou PHP] |
wiki:syntax [2020/07/04 09:43] (Version actuelle) |
||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| - | ====== | + | ====== |
| - | [[https:// | + | [[doku>DokuWiki]] |
| + | ===== Basic Text Formatting ===== | ||
| - | ===== Mise en forme de texte basique ===== | + | DokuWiki supports **bold**, //italic//, __underlined__ and '' |
| - | DokuWiki | + | |
| + | Of course you can **__//'' | ||
| - | DokuWiki accepte les textes en **gras**, //italique//, __souligné__ et '' | + | You can use < |
| - | Bien sûr, vous pouvez tous les **__//'' | + | You can use < |
| - | Bien sûr, vous pouvez tous les **__//'' | + | You can mark something as < |
| - | Vous pouvez aussi utiliser | + | 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. |
| - | De plus, vous pouvez marquer un passage comme < | + | 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. | ||
| - | | + | |
| + | two backslashes are only recognized at the end of a line\\ | ||
| + | or followed by\\ a whitespace \\this happens without it. | ||
| - | **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. | + | You should use forced newlines only if really needed. |
| - | Voici du texte avec des sauts de ligne\\ remarquez que les | + | ===== Links ===== |
| - | deux contre-obliques sont reconnues uniquement en fin de ligne\\ | + | |
| - | ou suivies par\\ un espace ; \\ceci se produit sinon. | + | |
| - | Voici du texte avec des sauts de ligne\\ remarquez que les | + | DokuWiki supports multiple ways of creating links. |
| - | deux contre-obliques sont reconnues uniquement en fin de ligne\\ | + | |
| - | ou suivies par\\ un espace ; \\ceci se produit sinon. | + | |
| - | Vous ne devriez forcer des sauts de ligne que si c'est vraiment nécessaire. | + | ==== External ==== |
| - | ===== Liens ===== | + | External links are recognized automagically: |
| - | DokuWiki | + | |
| + | automagically: | ||
| + | link text as well: [[http:// | ||
| + | addresses like this one: < | ||
| - | ==== Externes | + | ==== Internal |
| - | Les liens externes sont reconnus « automatiquement » : http://www.google.fr ou simplement www.google.fr - Vous pouvez aussi donner des noms aux liens : [[http:// | + | Internal links are created by using square brackets. You can either just give a [[pagename]] or use an additional [[pagename|link text]]. |
| - | | + | |
| - | | + | |
| - | liens : [[http:// | + | |
| - | de courriel comme celle-ci : < | + | |
| + | [[doku> | ||
| + | You can use [[some: | ||
| - | ==== Internes ==== | + | You can use [[some: |
| - | Les liens internes sont créés en utilisant les crochets. Vous pouvez soit juste donner un [[nom de page]] soit utiliser un [[: | + | For details about namespaces see [[doku> |
| - | Les liens internes sont créés en utilisant les crochets. Vous pouvez soit | + | 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# |
| - | 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. | + | |
| - | Vous pouvez utiliser des [[liste:start|catégories]] (// | + | This links to [[syntax# |
| - | Vous pouvez utiliser des [[liste:start|catégories]] (// | + | Notes: |
| - | Pour plus de détails sur les catégories (// | + | * Links to [[syntax|existing pages]] are shown in a different style from [[nonexisting]] ones. |
| - | + | * DokuWiki does not use [[wp> | |
| - | 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]]. | + | * When a section's heading is changed, its bookmark changes, too. So don't rely on 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> | ||
| - | ==== Liens images ==== | + | Windows Shares like [[\\server\share|this]] are recognized, too. |
| - | 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 : | + | Notes: |
| - | [[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[' | ||
| + | </ | ||
| - | [[http:// | + | ==== Image Links ==== |
| - | NB : la mise en forme image est la seule syntaxe de mise en forme acceptée comme nom de lien. | + | You can also use an image to link to another internal or external page by combining the syntax for links and [[# |
| - | Les syntaxes d'[[#Images et autres fichiers|image]] complète et de [[#Liens]] sont possibles (incluant le redimensionnement d' | + | |
| - | ===== Notes de pied de page ===== | + | [[http:// |
| - | Vous pouvez ajouter des notes de pied de page ((Ceci est une note de pied de page)) en utilisant des parenthèses doubles. | + | 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 [[# |
| + | ===== Footnotes ===== | ||
| - | ===== Découpage en sections ===== | + | You can add footnotes ((This is a footnote)) by using double parentheses. |
| - | Vous pouvez utiliser jusqu' | + | You can add footnotes ((This is a footnote)) by using double parentheses. |
| - | ''< | + | |
| + | ===== 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 ''< | ||
| - | ==== Titre niveau | + | ==== 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 == |
| - | En utilisant quatre tirets ou plus, vous pouvez créer une ligne horizontale | + | By using four or more dashes, you can make a horizontal line: |
| ---- | ---- | ||
| - | \\ | ||
| - | < | ||
| - | ===== Images et autres fichiers ===== | ||
| - | Vous pouvez inclure des [[doku> | + | ===== Media Files ===== |
| - | Taille réelle : {{wiki: | + | You can include external and internal [[doku> |
| - | Redimensionnement à une largeur donnée | + | Real size: {{wiki: |
| - | Redimensionnement à une largeur et une hauteur données((Si les proportions de l' | + | Resize to given width: {{wiki: |
| - | Image externe redimensionnée | + | Resize to given width and height((when the aspect ratio of the given width and height doesn' |
| - | Taille réelle | + | Resized external image: {{https://secure.php.net/ |
| - | Redimensionnement à une largeur donnée : | + | |
| - | Redimensionnement à une largeur et une hauteur données : {{wiki: | + | |
| - | Image externe redimensionnée : | + | |
| + | Real size: {{wiki: | ||
| + | Resize to given width: | ||
| + | Resize to given width and height: {{wiki: | ||
| + | Resized external image: {{https:// | ||
| - | 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 156: | Ligne 157: | ||
| {{ wiki: | {{ wiki: | ||
| - | Bien sûr, vous pouvez aussi ajouter un titre (affiché comme une bulle d'aide par la plupart des navigateurs). | + | Of course, you can add a title (displayed as a tooltip by most browsers), too. |
| - | {{ wiki: | + | {{ wiki: |
| - | {{ wiki: | + | {{ wiki: |
| - | On peut proposer une image en téléchargement sans l' | + | For linking an image to another page see [[#Image Links]] above. |
| - | {{ wiki: | + | ==== Supported Media Formats ==== |
| - | {{ wiki: | + | DokuWiki |
| - | + | | Image | '' | |
| - | Si vous spécifiez un nom de fichier (externe ou interne) qui n'est pas une image ('' | + | | Video | ''webm'', |
| + | | Audio | '' | ||
| + | | Flash | '' | ||
| - | Pour lier une image à une autre page, voir [[#Liens images]] ci-dessus. | + | If you specify a filename that is not a supported media format, then it will be displayed as a link instead. |
| - | ===== Listes ===== | + | By adding ''? |
| - | 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 | + | {{wiki: |
| - | * Le second élément | + | |
| - | * Vous pouvez avoir plusieurs niveaux | + | |
| - | * Un autre élément | + | |
| - | | + | ==== Fallback Formats ==== |
| - | - Un autre élément | + | |
| - | - Utilisez simplement l' | + | 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. |
| - | - 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 | ||
| < | < | ||
| - | * 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 |
| </ | </ | ||
| - | Vous pouvez aussi consulter notre [[https:// | + | Also take a look at the [[doku>faq: |
| - | ===== Conversions | + | ===== Text Conversions ===== |
| - | DokuWiki | + | DokuWiki |
| - | 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' | + | The text to image conversion is mainly done for smileys. |
| - | ==== Emoticônes (smileys) | + | ==== Text to Image Conversions |
| - | DokuWiki | + | DokuWiki |
| * 8-) %% 8-) %% | * 8-) %% 8-) %% | ||
| Ligne 232: | Ligne 253: | ||
| * DELETEME %% DELETEME %% | * DELETEME %% DELETEME %% | ||
| - | ==== Typographie | + | ==== Text to HTML Conversions |
| - | [[https:// | + | Typography: |
| -> <- <-> => <= <=> >> << -- --- 640x480 (c) (tm) (r) | -> <- <-> => <= <=> >> << -- --- 640x480 (c) (tm) (r) | ||
| Ligne 244: | Ligne 265: | ||
| </ | </ | ||
| - | Il est possible de faire la même chose pour n' | + | The same can be done to produce any kind of HTML, it just needs to be added to the [[doku>entities|pattern file]]. |
| - | Il existe trois exceptions | + | There are three exceptions |
| - | ===== Citations ===== | + | |
| - | 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 | + | < |
| + | I think we should do it | ||
| + | |||
| + | > No we shouldn' | ||
| + | |||
| + | >> Well, I say we should | ||
| + | |||
| + | > Really? | ||
| + | |||
| + | >> Yes! | ||
| + | |||
| + | >>> | ||
| + | </ | ||
| - | > Non nous ne devrions pas | + | I think we should do it |
| - | >> Eh bien, je pense que si | + | > No we shouldn' |
| - | > Vraiment ? | + | >> Well, I say we should |
| - | >> Oui ! | + | > Really? |
| - | >>> Alors faisons-le | + | >> |
| - | ===== Tableaux ===== | + | >>> |
| - | DokuWiki propose une syntaxe simple pour créer des tableaux. | + | ===== Tables ===== |
| - | ^ Titre 1 ^ Titre 2 ^ Titre 3 ^ | + | DokuWiki supports a simple syntax to create tables. |
| - | | 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 se terminer avec une //barre verticale// '' | + | ^ 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 | | ||
| - | | + | 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 | | + | |
| - | Pour fusionner des cellules horizontalement, | + | ^ 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 | | ||
| - | Les titres de tableau verticaux sont également possibles. | + | To connect cells horizontally, |
| - | | ^ Titre 1 ^ Titre 2 ^ | + | Vertical tableheaders are possible, too. |
| - | ^ 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 ('|' ou '^') précédant une cellule qui détermine le format : | + | | ^ 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 ^ | + | As you can see, it's the cell separator before a cell which decides about the formatting: |
| - | ^ 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 | | + | |
| - | Vous pouvez fusionner des cellules verticalement en ajoutant ::: dans les cellules sous celles avec laquelle elles doivent fusionner. | + | | ^ 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 | | ||
| - | ^ Titre 1 ^ Titre 2 ^ Titre 3 ^ | + | You can have rowspans (vertically connected cells) by adding |
| - | | 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 | | + | |
| - | Ces cellules ne doivent rien contenir d' | + | ^ 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 ^ Titre 3 ^ | + | Apart from the rowspan syntax those cells should not contain anything else. |
| - | | 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 | | ||
| - | Vous pouvez également aligner les contenus du tableau (uniquement horizontalement). Ajoutez simplement au moins deux espaces à 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 ça ressemble dans 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 dans vos documents soit en les indentant avec au moins deux espaces | + | 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. | + | |
| - | </ | + | |
| - | <nowiki> | + | |
| - | Voici du texte qui contient des adresses comme ceci : http:// | + | This is preformatted code all spaces are preserved: like <-this |
| - | </nowiki> | + | </code> |
| - | 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. | ||
| + | </ | ||
| - | ==== Coloration syntaxique | + | ==== Syntax Highlighting |
| - | DokuWiki | + | [[wiki:DokuWiki]] can highlight sourcecode, which makes it easier to read. It uses the [[http:// |
| <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 |
| - | ==== Bloc de code téléchargeables ==== | + | There are additional [[doku> |
| + | ==== Downloadable Code Blocks ==== | ||
| - | Quand vous utilisez les balises //%%< | + | When you use the '' |
| - | <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!"; |
| - | </ | + | </ |
| - | Si vous ne voulez pas de coloration syntaxique, il suffit de fournir un tiret (-) en guise de code de langage:\\ | + | If you don't want any highlighting but want a downloadable file, specify a dash ('' |
| - | %%<code - monfichier.toto>%%. | + | |
| - | ===== Agrégation de fils RSS/ATOM ===== | ||
| - | [[https:// | ||
| - | ^ Paramètre | + | ===== Embedding |
| - | | 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> | + | |
| - | | // | + | |
| - | 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:// | + | You can embed raw HTML or PHP code into your documents by using the ''%%<html>%%'' |
| - | + | ||
| - | **Exemple :** | + | |
| - | + | ||
| - | {{rss>http:// | + | |
| - | + | ||
| - | {{rss>http:// | + | |
| - | ===== Inclure du code HTML ou PHP ===== | + | HTML example: |
| - | Vous pouvez inclure du code HTML ou PHP pur dans vos documents en utilisant les balises '' | ||
| < | < | ||
| < | < | ||
| - | Ceci est du <font color="red" | + | This is some <span style="color:red;font-size:150%;">inline |
| </ | </ | ||
| + | < | ||
| + | <p style=" | ||
| + | </ | ||
| </ | </ | ||
| < | < | ||
| - | Ceci est du <font color="red" | + | This is some <span style="color:red;font-size:150%;">inline |
| </ | </ | ||
| + | < | ||
| + | <p style=" | ||
| + | </ | ||
| + | |||
| + | PHP example: | ||
| < | < | ||
| <php> | <php> | ||
| - | echo 'Un logo produit par PHP :'; | + | echo 'The PHP version: '; |
| - | echo '<img src="' | + | echo phpversion(); |
| + | echo ' (generated inline HTML)'; | ||
| </ | </ | ||
| + | <PHP> | ||
| + | echo '< | ||
| + | echo '< | ||
| + | echo '</ | ||
| + | </ | ||
| </ | </ | ||
| <php> | <php> | ||
| - | echo 'Un logo produit par PHP :'; | + | echo 'The PHP version: '; |
| - | echo '<img src="' | + | echo phpversion(); |
| + | echo ' (inline HTML)'; | ||
| </ | </ | ||
| + | <PHP> | ||
| + | echo '< | ||
| + | echo '< | ||
| + | echo '</ | ||
| + | </ | ||
| - | **NB** : L' | + | **Please Note**: HTML and PHP embedding is disabled by default in the configuration. |
| - | ===== Macros | + | ===== RSS/ATOM Feed Aggregation |
| + | [[DokuWiki]] can integrate data from external XML feeds. For parsing the XML feeds, [[http:// | ||
| - | Certains mot-clef modifient la manière dont DokuWiki | + | ^ 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. 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:DokuWiki]] will generally try to supply a cached version of a page, obviously this is inappropriate when the page contains dynamic external content. The parameter tells [[wiki: | ||
| + | |||
| + | By default the feed will be sorted by date, newest items first. You can sort it by oldest first using the '' | ||
| + | |||
| + | **Example: | ||
| + | |||
| + | {{rss> | ||
| + | |||
| + | {{rss> | ||
| + | |||
| + | |||
| + | ===== Control Macros ===== | ||
| + | |||
| + | Some syntax influences how DokuWiki renders a page without creating any output it self. The following control | ||
| ^ Macro ^ Description | | ^ Macro ^ Description | | ||
| - | | %%~~NOTOC~~%% | + | | %%~~NOTOC~~%% |
| - | | %%~~NOCACHE~~%% | Par défaut, | + | | %%~~NOCACHE~~%% | DokuWiki |
| - | ===== Extensions de syntaxe | + | ===== Syntax Plugins |
| - | La syntaxe de DokuWiki | + | DokuWiki's syntax can be extended by [[doku> |
| ~~INFO: | ~~INFO: | ||
| - | Pour avoir une description de la syntaxe utilisable propre à chaque plugin, dans votre langue, reportez-vous à la page sur la [[fr: | ||
| - | |||
| - | {{tag> | ||