wiki:syntax
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 [29/03/2023 15:01] – cahethel | wiki:syntax [15/10/2024 08:13] (Version actuelle) – modification externe 127.0.0.1 | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | ====== | + | ====== |
- | [[doku> | + | |
- | ===== Mise en forme de texte basique ===== | + | [[doku> |
- | DokuWiki accepte les textes en **gras**, // | + | ===== Basic Text Formatting ===== |
+ | DokuWiki supports **bold**, //italic//, __underlined__ and '' | ||
- | DokuWiki | + | DokuWiki |
+ | Of course you can **__//'' | ||
- | Vous pouvez aussi utiliser des <sub>indices</ | + | You can use <sub>subscript</ |
- | | + | |
- | De plus, vous pouvez marquer un passage comme <del>supprimé</ | + | You can mark something as <del>deleted</ |
- | | + | |
- | **Les paragraphes** sont créés à partir des 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. |
- | Voici du texte avec des sauts de ligne\\ remarquez que les | + | This is some text with some linebreaks\\ Note that the |
- | deux contre-obliques sont reconnues uniquement en fin de ligne\\ | + | two backslashes are only recognized at the end of a line\\ |
- | ou suivies par\\ un espace ; \\ceci se produit sinon. | + | or followed by\\ a whitespace |
- | | + | |
- | | + | |
- | | + | |
- | Vous ne devriez forcer des sauts de ligne que si c'est vraiment nécessaire. | + | You should use forced newlines only if really needed. |
- | ===== Liens ===== | + | ===== Links ===== |
- | DokuWiki | + | DokuWiki |
- | ==== Externes | + | ==== External |
- | Les liens externes sont reconnus automatiquement | + | External links are recognized automagically: http:// |
- | | + | |
- | ou simplement | + | automagically: http:// |
- | | + | |
- | | + | |
+ | ==== Internal ==== | ||
+ | Internal links are created by using square brackets. You can either just give a [[pagename]] or use an additional [[pagename|link text]]. | ||
- | ==== 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 des crochets. Vous pouvez juste utiliser un [[nom de page]] ou utiliser un [[nom de page|texte de lien]]. | + | [[doku> |
- | Les liens internes sont créés en utilisant des crochets. Vous pouvez juste | + | You can use [[some: |
- | utiliser un [[nom de page]] ou utiliser un [[nom de page|texte de lien]]. | + | |
- | Les [[doku>fr:pagename|noms de pages wiki]] sont automatiquement convertis en minuscules ; les caractères spéciaux ne sont pas autorisés. | + | You can use [[some:namespaces]] by using a colon in the pagename. |
- | Vous pouvez utiliser les [[voici: | + | For details about namespaces see [[doku> |
- | Vous pouvez utiliser les [[voici: | + | 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 deux points dans le nom de page. | + | |
- | Pour plus de détails sur les catégories, | + | This links to [[syntax# |
- | Les liens vers une section spécifique d'une page sont également possibles (voir la partie [[syntax# | + | Notes: |
- | | + | * Links to [[syntax|existing |
- | + | * DokuWiki | |
- | Notes : | + | * When a section's heading is changed, its bookmark changes, too. So don't rely on section |
- | + | ||
- | | + | |
- | * Par défaut, | + | |
- | * 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 ==== | ||
- | Les liens [[doku>fr: | + | DokuWiki supports |
- | Par exemple [[wpfr> | + | |
- | | + | |
- | | + | |
- | ==== Partages | + | ==== Windows |
- | Les partages | + | Windows |
- | | + | Windows |
- | Notes : | + | Notes: |
- | * Pour des raisons de sécurité, la navigation directe sur 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//, sans réglages, ça ne fonctionne pas. Voir [[http:// | + | * For Mozilla |
- | LANG.nosmblinks = ''; | + | <?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 et autres fichiers|images]] (voir plus bas) 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 de lien. | + | Please note: The image formatting is the only formatting syntax accepted in link names. |
- | la totalité des syntaxes d'[[#Images et autres fichiers|image]] | + | The whole [[#images_and_other_files|image]] |
- | ===== Notes de pied de page ===== | + | ===== Footnotes |
- | 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 add footnotes |
- | | + | |
+ | ===== Sectioning ===== | ||
- | ===== Découpage en sections ===== | + | 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 utiliser jusqu' | + | ==== Headline Level 3 ==== |
- | ''< | + | === Headline Level 4 === |
+ | == Headline Level 5 == | ||
+ | ==== 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 == | + | |
- | En utilisant quatre tirets ou plus, vous pouvez créer une ligne horizontale : | + | You can include external and internal [[doku> |
- | ---- | + | Real size: {{wiki: |
- | \\ | + | |
- | < | + | |
- | ===== Images et autres fichiers ===== | + | |
- | + | ||
- | Vous pouvez insérer des [[doku> | + | |
- | + | ||
- | taille originale : | + | |
- | + | ||
- | largeur donnée | + | |
- | hauteur et largeur 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 originale | + | Resized external image: {{https://www.php.net/ |
- | largeur donnée : {{wiki: | + | |
- | hauteur et largeur 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: {{https:// | ||
- | Par défaut les images se placent au fil du texte, centrées verticalement. | ||
- | Vous pouvez les aligner avec des espaces à gauche ou à droite : | + | By using left or right whitespaces you can choose the alignment. |
{{ wiki: | {{ wiki: | ||
Ligne 162: | Ligne 157: | ||
{{ wiki: | {{ wiki: | ||
- | Bien sûr, vous pouvez | + | Of course, you can add a title (displayed as a tooltip by most browsers), too. |
- | {{ wiki: | + | {{ wiki: |
- | {{ wiki: | + | {{ wiki: |
- | ------ | + | For linking an image to another page see [[#Image Links]] above. |
- | Les fichiers qui ne sont pas affichables (voir tableau des médias pris en charge dans la [[#Médias pris en charge|section suivante]]), | + | ==== Supported Media Formats ==== |
- | Vous pouvez modifier ce comportement : | + | DokuWiki can embed the following media formats directly. |
- | {{wiki: | + | | Image | '' |
- | {{wiki: | + | | Video | '' |
- | {{wiki: | + | | Audio | '' |
- | [[http:// | + | | Flash | '' |
- | {{wiki: | + | If you specify a filename that is not a supported |
- | {{wiki: | + | |
- | {{wiki: | + | |
- | [[http:// | + | |
+ | By adding ''? | ||
- | Vous pouvez combiner plusieurs effets avec ''&'' | + | {{wiki:dokuwiki-128.png? |
- | {{wiki: | + | {{wiki: |
- | {{wiki: | + | |
- | ==== Médias pris en charge | + | ==== Fallback Formats |
- | DokuWiki peut directement présenter les 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. |
- | ^ Image | '' | + | For example consider this embedded |
- | ^ Vidéo | + | |
- | ^ Audio | '' | + | |
- | ^ Flash | '' | + | |
- | Si vous indiquez un fichier dans un format non pris en charge, DokuWiki le présentera comme un lien de téléchargement. | + | {{video.mp4|A funny video}} |
- | ==== Formats de repli ==== | + | When you upload a '' |
- | Malheureusement, | + | Additionally DokuWiki supports a " |
- | Par exemple, si vous avez téléversé '' | + | ===== Lists ===== |
- | {{film.mp4|une vidéo sympa}} | + | Dokuwiki supports ordered and unordered lists. To create a list item, indent your text by two spaces and use a '' |
- | DokuWiki indiquera automatiquement les alternatives '' | + | * This is a list |
+ | * The second item | ||
+ | * You may have different levels | ||
+ | * Another item | ||
- | De plus, DokuWiki permet d' | + | |
- | + | | |
- | + | - Just use indention for deeper levels | |
- | ===== Listes ===== | + | - That's it |
- | + | ||
- | 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 '' | + | |
- | + | ||
- | | + | |
- | * Le second élément | + | |
- | | + | |
- | * Un autre élément | + | |
- | + | ||
- | | + | |
- | - Un autre élément | + | |
- | - Utilisez simplement l'indentation pour des niveaux plus profonds | + | |
- | - Et voilà | + | |
< | < | ||
- | * Ceci est une liste | + | * This is a list |
- | * Le second | + | * The second |
- | * Vous pouvez avoir plusieurs niveaux | + | * You may have different levels |
- | * Un autre élément | + | * Another item |
- | - La même liste mais ordonnée | + | - The same list but ordered |
- | - Un autre élément | + | - Another item |
- | - Utilisez simplement l' | + | - Just use indention for deeper levels |
- | - Et voilà | + | - That's it |
</ | </ | ||
- | Vous pouvez aussi consulter notre [[doku>fr:faq: | + | Also take a look at the [[doku> |
- | ===== 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 267: | Ligne 247: | ||
* ;-) %% ;-) %% | * ;-) %% ;-) %% | ||
* ^_^ %% ^_^ %% | * ^_^ %% ^_^ %% | ||
+ | * m( %% m( %% | ||
* :?: %% :?: %% | * :?: %% :?: %% | ||
* :!: %% :!: %% | * :!: %% :!: %% | ||
Ligne 273: | Ligne 254: | ||
* DELETEME %% DELETEME %% | * DELETEME %% DELETEME %% | ||
- | ==== Typographie | + | ==== Text to HTML Conversions |
- | [[doku> | + | Typography: |
-> <- <-> => <= <=> >> << -- --- 640x480 (c) (tm) (r) | -> <- <-> => <= <=> >> << -- --- 640x480 (c) (tm) (r) | ||
Ligne 285: | Ligne 266: | ||
</ | </ | ||
- | 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> |
- | Il existe trois exceptions | + | There are three 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 | + | <code> |
- | + | I think we should do it | |
- | | + | |
- | + | ||
- | >> Eh bien, je pense que si | + | |
- | + | ||
- | > Vraiment ? | + | |
- | + | ||
- | >> Oui ! | + | |
- | + | ||
- | >>> | + | |
- | Je pense que nous devrions le faire | + | > No we shouldn' |
- | > Non nous ne devrions pas | + | >> Well, I say we should |
- | >> Eh bien, je pense que si | + | > Really? |
- | > Vraiment ? | + | >> Yes! |
- | >> | + | >>> Then lets do it! |
+ | </ | ||
- | >>> | + | I think we should do it |
- | ===== Tableaux ===== | + | > No we shouldn' |
- | DokuWiki propose une syntaxe simple pour créer des tableaux. | + | >> Well, I say we should |
- | ^ Titre 1 ^ Titre 2 ^ Titre 3 ^ | + | > Really? |
- | | 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// '' | + | >> Yes! |
- | ^ 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 | | + | |
- | Pour fusionner des cellules horizontalement, | + | ===== Tables ===== |
- | Les titres de tableau verticaux sont également possibles. | + | DokuWiki supports a simple syntax to create tables. |
- | | | + | ^ Heading |
- | ^ Titre 3 | Ligne 1 Col 2 | + | | Row 1 Col 1 | Row 1 Col 2 |
- | ^ Titre 4 | + | | Row 2 Col 1 | some colspan (note the double pipe) || |
- | ^ Titre 5 | + | | Row 3 Col 1 |
- | Comme vous pouvez le constater, c'est le séparateur (' | + | Table rows have to start and end with a '' |
- | | + | ^ Heading |
- | | + | | Row 1 Col 1 | Row 1 Col 2 |
- | | + | | Row 2 Col 1 | some colspan (note the double pipe) || |
- | | + | | Row 3 Col 1 |
- | Vous pouvez fusionner des cellules verticalement en ajoutant ::: dans les cellules sous celles avec laquelle elles doivent fusionner. | + | To connect cells horizontally, |
- | :!: Cette fonctionnalité n'est disponible que pour les versions supérieures à 2009-02-14b | + | |
- | ^ Titre 1 ^ Titre 2 ^ Titre 3 ^ | + | Vertical tableheaders are possible, too. |
- | | Ligne 1 Col 1 | Cette cellule s' | + | |
- | | 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 2 | Row 1 Col 3 | | ||
+ | ^ Heading 4 | no colspan this time | | | ||
+ | ^ Heading 5 | Row 2 Col 2 | Row 2 Col 3 | | ||
- | ^ Titre 1 ^ Titre 2 ^ Titre 3 ^ | + | As you can see, it's the cell separator before a cell which decides about the formatting: |
- | | Ligne 1 Col 1 | Cette cellule | + | |
- | | 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 2 | Row 1 Col 3 | | ||
+ | ^ Heading 4 | no colspan this time | | | ||
+ | ^ Heading 5 | Row 2 Col 2 | Row 2 Col 3 | | ||
- | Vous pouvez également aligner les contenus du tableau | + | You can have rowspans |
- | ^ | + | ^ Heading 1 ^ Heading 2 ^ Heading 3 ^ |
- | | | + | | Row 1 Col 1 |
- | | gauche | + | | Row 2 Col 1 |
- | | xxxxxxxxxxxx | + | | Row 3 Col 1 |
- | Voici à quoi ça ressemble dans le code source : | + | Apart from the rowspan syntax those cells should not contain anything else. |
- | ^ | + | ^ Heading 1 |
- | | | + | | Row 1 Col 1 | this cell spans vertically | Row 1 Col 3 | |
- | |gauche | + | | Row 2 Col 1 |
+ | | Row 3 Col 1 | ||
+ | |||
+ | 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 | ||
+ | | | ||
+ | |left | | ||
+ | | xxxxxxxxxxxx | xxxxxxxxxxxx | xxxxxxxxxxxx | | ||
+ | |||
+ | This is how it looks in the source: | ||
+ | |||
+ | ^ Table with alignment | ||
+ | | | ||
+ | |left | right| | ||
| xxxxxxxxxxxx | xxxxxxxxxxxx | xxxxxxxxxxxx | | | xxxxxxxxxxxx | xxxxxxxxxxxx | xxxxxxxxxxxx | | ||
+ | Note: Vertical alignment is not supported. | ||
- | ===== Blocs non analysés | + | ===== No Formatting |
- | Si vous avez besoin d' | + | If you need to display text exactly like it is typed (without any formatting), enclose the area either with '' |
< | < | ||
- | Voilà du texte qui contient une adresse | + | This is some text which contains addresses like this: http:// |
- | il est reproduit tel quel. | + | |
</ | </ | ||
- | La même chose est vraie pour | + | The same is true for %%//__this__ text// with a smiley |
< | < | ||
- | | + | |
- | il est reproduit tel quel. | + | |
</ | </ | ||
- | | + | |
- | < | + | |
+ | ===== Code Blocks ===== | ||
- | ===== Blocs de code ===== | + | You can include |
- | 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 '' | + | This is text is indented by two spaces. |
- | + | ||
- | Ce texte est indenté avec deux espaces. | + | |
< | < | ||
- | Ceci est du code préformaté, | + | This is preformatted |
- | comme <- ceci | + | |
</ | </ | ||
< | < | ||
- | C'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. |
- | que vous avez cité un fichier. | + | |
</ | </ | ||
- | Ce texte est indenté avec deux espaces. | + | Those blocks were created by this source: |
- | + | ||
+ | This is text is indented by two spaces. | ||
< | < | ||
- | | + | |
- | comme <- ceci | + | |
</ | </ | ||
- | | + | |
< | < | ||
- | | + | |
- | que vous avez cité un fichier. | + | |
</ | </ | ||
+ | ==== Syntax Highlighting ==== | ||
- | ==== Coloration syntaxique ==== | + | [[wiki: |
- | + | ||
- | [[doku>fr:dokuwiki|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(" |
} | } | ||
} | } | ||
</ | </ | ||
- | DokuWiki reconnait les identifiants de langage suivants | + | The following language strings are currently recognized: //4cs 6502acme 6502kickass 6502tasm 68000devpac abap actionscript3 |
+ | There are additional [[doku> | ||
- | D' | + | ==== Downloadable Code Blocks ==== |
+ | When you use the '' | ||
- | + | < | |
- | ==== Bloc de code téléchargeables ==== | + | <file php myexample.php> |
- | + | ||
- | + | ||
- | Quand vous utilisez les balises //%%< | + | |
- | + | ||
- | <file php monexemple.php> | + | |
<?php echo "hello world!"; | <?php echo "hello world!"; | ||
</ | </ | ||
- | |||
- | <file php monexemple.php> | ||
- | <?php echo "hello world!"; | ||
- | </ | ||
- | |||
- | Si vous ne voulez pas de coloration syntaxique, il suffit de fournir un tiret (-) en guise de code de langage :\\ | ||
- | '' | ||
- | |||
- | ===== Inclure du code HTML ou PHP ===== | ||
- | |||
- | Vous pouvez inclure du code HTML ou PHP pur dans vos documents en utilisant les balises '' | ||
- | |||
- | exemple HTML : | ||
- | |||
- | < | ||
- | Ceci est < | ||
- | </ | ||
- | |||
- | Quant à < | ||
- | <p style=" | ||
- | </ | ||
</ | </ | ||
- | Ceci est <html>de l'<span style="color:red;font-size: | + | <file php myexample.php> |
- | </html> | + | <?php echo "hello world!"; |
+ | </file> | ||
- | Quant à < | + | If you don't want any highlighting but want a downloadable file, specify a dash ('' |
- | <p style=" | + | |
- | </HTML> | + | |
- | exemple PHP : | + | ===== RSS/ATOM Feed Aggregation ===== |
+ | [[DokuWiki]] can integrate data from external XML feeds. For parsing the XML feeds, [[http:// | ||
- | < | + | ^ Parameter |
- | <php> | + | | any number | will be used as maximum number items to show, defaults to 8 | |
- | echo ' | + | | reverse |
- | echo phpversion(); | + | | author |
- | echo ' (HTML en ligne généré)'; | + | | date | show item dates | |
- | </php> | + | | description| show the item description. All HTML tags will be stripped | |
- | < | + | | nosort |
- | echo '< | + | | //n//[dhm] | refresh period, where d=days, h=hours, m=minutes. (e.g. 12h = 12 hours). | |
- | echo '< | + | |
- | echo '</ | + | |
- | </ | + | |
- | </ | + | |
- | < | + | 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:DokuWiki]] to re-render the page if it is more than //refresh period// since the page was last rendered. |
- | echo ' | + | |
- | echo phpversion(); | + | |
- | echo ' (HTML en ligne généré)'; | + | |
- | </ | + | |
- | < | + | |
- | echo '< | + | |
- | echo '< | + | |
- | echo '</tr></table>'; | + | |
- | </ | + | |
- | **NB** : L' | + | By default the feed will be sorted by date, newest items first. You can sort it by oldest first using the '' |
- | ===== Agrégation de fils RSS/ATOM ===== | + | **Example:** |
- | + | ||
- | [[doku> | + | |
- | + | ||
- | ^ 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> | + | |
- | | nosort | + | |
- | | // | + | |
- | + | ||
- | La période de rafraîchissement est par défaut de 4 heures. Toute valeur inférieure à 10 minutes sera traitée comme 10 minutes. [[doku> | + | |
- | + | ||
- | **Exemple | + | |
{{rss> | {{rss> | ||
Ligne 538: | Ligne 461: | ||
- | ===== Macros ===== | + | ===== Control |
- | Certains mots-clef modifient la manière dont DokuWiki | + | Some syntax influences how DokuWiki |
^ Macro ^ Description | | ^ Macro ^ Description | | ||
- | | %%~~NOTOC~~%% | + | | %%~~NOTOC~~%% |
- | | %%~~NOCACHE~~%% | Par défaut, | + | | %%~~NOCACHE~~%% | DokuWiki |
- | + | ||
- | + | ||
- | + | ||
- | ===== Extensions de syntaxe : WRAP ===== | + | |
- | + | ||
- | Basic Syntax: | + | |
- | <WRAP classes #id width : | + | |
- | " | + | |
- | </ | + | |
- | + | ||
- | **or** | + | |
- | <block classes #id width : | + | |
- | " | + | |
- | </ | + | |
- | + | ||
- | or | + | |
- | <div classes #id width : | + | |
- | " | + | |
- | </ | + | |
- | An uppercase **%%< | + | |
- | + | ||
- | <wrap classes #id width : | + | |
- | + | ||
- | or | + | |
- | <inline classes #id width : | + | |
- | + | ||
- | or | + | |
- | <span classes #id width : | + | |
- | A lowercase **%%< | + | |
- | + | ||
- | Since version 2013-06-13 there is also a shorthand syntax (for wraps without content): | + | |
- | + | ||
- | <WRAP classes #id /> or <block classes #id /> or <div classes #id /> | + | |
- | + | ||
- | and | + | |
- | + | ||
- | <wrap classes #id /> or <inline classes #id /> or <span classes #id /> | + | |
- | + | ||
- | :!: Please note, some things **won' | + | |
- | + | ||
- | + | ||
- | ==== Classes ==== | + | |
- | + | ||
- | The following classes are currently available: | + | |
- | + | ||
- | ^ class name ^ description/ | + | |
- | ^ __columns__ -- similar to [[columns]], | + | |
- | | **'' | + | |
- | | **'' | + | |
- | | **'' | + | |
- | | **'' | + | |
- | | **'' | + | |
- | | **'' | + | |
- | ^ __widths__ -- :!: **experimental**, | + | |
- | | **'' | + | |
- | | **'' | + | |
- | | **'' | + | |
- | | **'' | + | |
- | ^ __alignments__ -- similar to [[divalign]], | + | |
- | | **'' | + | |
- | | **'' | + | |
- | | **'' | + | |
- | | **'' | + | |
- | ^ __boxes and notes__ -- similar to [[box]], [[note]], [[tip]] | + | |
- | | **'' | + | |
- | | **'' | + | |
- | | **'' | + | |
- | | **'' | + | |
- | | **'' | + | |
- | | **'' | + | |
- | | **'' | + | |
- | | **'' | + | |
- | | **'' | + | |
- | | **'' | + | |
- | | **'' | + | |
- | | **'' | + | |
- | | **'' | + | |
- | | **'' | + | |
- | ^ __marks__ -- similar to [[emphasis]], | + | |
- | | **'' | + | |
- | | **'' | + | |
- | | **'' | + | |
- | ^ __miscellaneous__ | + | |
- | | **'' | + | |
- | | **'' | + | |
- | | **'' | + | |
- | | **'' | + | |
- | | **'' | + | |
- | | **'' | + | |
- | | **'' | + | |
- | | **'' | + | |
- | | **'' | + | |
- | | **'' | + | |
- | | **'' | + | |
- | | **'' | + | |
- | | **'' | + | |
- | + | ||
- | + | ||
- | ==== Widths ==== | + | |
- | + | ||
- | You can set any valid widths on any uppercase | + | |
- | <WRAP someclass 50% anotherclass> | + | |
- | All except percentages will be reduced to have the maximum width available on smaller screens. | + | |
- | + | ||
- | You can also use the width keywords '' | + | |
- | <WRAP group> | + | |
- | <WRAP half column> | + | |
- | <WRAP half column> | + | |
- | </ | + | |
- | will result in two columns next to each other, which will wrap underneath each other on smaller screens and mobile devices. | + | |
- | + | ||
- | + | ||
- | ==== Anchor ==== | + | |
- | + | ||
- | To define an anchor, the following | + | |
- | <wrap #ankername /> | + | |
- | + | ||
- | The anchor | + | |
- | + | ||
- | ==== Languages and Text Directions ==== | + | |
- | + | ||
- | You can change the language and the direction of a container by simply | + | |
- | + | ||
- | <wrap :en>This text is explicitly marked as English.</ | + | |
- | + | ||
- | The text direction ('' | + | |
- | + | ||
- | If you like to mark a text with a different text direction than the default one, you should use divs, i.e. uppercase '' | + | |
- | + | ||
- | This makes it a better replacement of [[ltr]] (and [[lang]]). | + | |
- | + | ||
- | + | ||
- | ==== Examples ==== | + | |
- | + | ||
- | The plugin comes with an example | + | |
- | + | ||
- | {{ : | + | |
- | + | ||
- | + | ||
- | ===== Demo ===== | + | |
- | + | ||
- | You can see a demo of the plugin | + | |
- | ===== Configuration options | + | ===== Syntax Plugins |
- | ^ Option | + | DokuWiki's syntax can be extended by [[doku> |
- | |'' | + | |
- | |'' | + | |
- | |'' | + | |
- | |'' | + | |
- | |'' | + | |
- | |'' | + | |
- | |'' | + | |
+ | ~~INFO: | ||
wiki/syntax.1680102113.txt.gz · Dernière modification : 29/03/2023 15:01 de cahethel