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 [22.05.2018 @ 13:00] – ancienne révision (07.04.2018 @ 11:04) restaurée + mise à jour admin@logiciel-libre.ch | wiki:syntax [02.06.2024 @ 22:30] (Version actuelle) – modification externe 127.0.0.1 | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | ====== | + | ====== |
- | [[doku>fr: | + | [[doku> |
- | ===== Mise en forme de texte basique | + | ===== Basic Text Formatting |
- | DokuWiki | + | DokuWiki |
+ | DokuWiki supports **bold**, //italic//, __underlined__ and '' | ||
+ | Of course you can **__//'' | ||
- | DokuWiki accepte les textes en **gras**, //italique//, __souligné__ et '' | + | You can use < |
- | Vous pouvez aussi utiliser des <sub>indices</ | + | You can use <sub>subscript</ |
- | Vous pouvez aussi utiliser des <sub>indices</sub> et < | + | You can mark something as <del>deleted</del> as well. |
- | De plus, vous pouvez marquer un passage comme <del>supprimé</ | + | You can mark something as <del>deleted</ |
- | De plus, vous pouvez marquer un passage comme < | + | **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. |
- | **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. | + | 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. | ||
- | 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 |
- | Voici du texte avec des sauts de ligne\\ remarquez que les | + | You should use forced newlines only if really needed. |
- | 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. | + | ===== Links ===== |
- | ===== Liens ===== | + | DokuWiki supports multiple ways of creating links. |
- | DokuWiki propose plusieurs moyens pour créer des liens. | + | ==== External ==== |
- | ==== Externes ==== | + | External links are recognized automagically: |
- | Les liens externes sont reconnus automagiquement | + | DokuWiki supports multiple ways of creating links. External links are recognized |
+ | automagically: http://www.google.com or simply | ||
+ | link text as well: [[http://www.google.com|This Link points to google]]. Email | ||
+ | addresses like this one: < | ||
- | Les liens externes sont reconnus automagiquement : https:// | + | ==== Internal ==== |
- | ou simplement www.trouvons.org - Vous pouvez aussi donner des noms aux | + | |
- | liens : [[https:// | + | |
- | de courriel comme celle-ci : < | + | |
+ | Internal links are created by using square brackets. You can either just give a [[pagename]] or use an additional [[pagename|link text]]. | ||
+ | Internal links are created by using square brackets. You can either just give | ||
+ | a [[pagename]] or use an additional [[pagename|link text]]. | ||
- | ==== Internes ==== | + | [[doku> |
- | 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]]. | + | You can use [[some: |
- | | + | |
- | utiliser un [[nom de page]] ou utiliser un [[nom de page|texte de lien]]. | + | |
- | Les [[doku>fr: | + | For details about namespaces see [[doku>namespaces]]. |
- | 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, | + | Notes: |
- | Les liens vers une section spécifique d'une page sont également possibles (voir la partie [[syntax# | + | |
- | + | * DokuWiki | |
- | Ce lien renvoie vers [[syntax# | + | * When a section's heading is changed, its bookmark changes, too. So don't rely on section |
- | + | ||
- | Notes : | + | |
- | + | ||
- | | + | |
- | * 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 163: | 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 replis ==== | + | 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 268: | Ligne 247: | ||
* ;-) %% ;-) %% | * ;-) %% ;-) %% | ||
* ^_^ %% ^_^ %% | * ^_^ %% ^_^ %% | ||
+ | * m( %% m( %% | ||
* :?: %% :?: %% | * :?: %% :?: %% | ||
* :!: %% :!: %% | * :!: %% :!: %% | ||
Ligne 274: | Ligne 254: | ||
* DELETEME %% DELETEME %% | * DELETEME %% DELETEME %% | ||
- | ==== Typographie | + | ==== Text to HTML Conversions |
- | [[doku> | + | Typography: |
-> <- <-> => <= <=> >> << -- --- 640x480 (c) (tm) (r) | -> <- <-> => <= <=> >> << -- --- 640x480 (c) (tm) (r) | ||
Ligne 286: | 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 |
- | | | + | | Row 1 Col 1 | this cell spans vertically | Row 1 Col 3 | |
- | |gauche | + | | Row 2 Col 1 | ::: | Row 2 Col 3 | |
+ | | Row 3 Col 1 | ||
+ | |||
+ | Apart from the rowspan syntax those cells should not contain anything else. | ||
+ | |||
+ | ^ Heading 1 ^ Heading 2 ^ Heading 3 ^ | ||
+ | | Row 1 Col 1 | this cell spans vertically | ||
+ | | 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. | ||
+ | |||
+ | ^ Table with alignment | ||
+ | | | ||
+ | |left | right| | ||
| 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 |
- | 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. | + | |
</ | </ | ||
- | | + | |
- | < | + | |
- | ===== Blocs de code ===== | + | ===== Code Blocks |
- | Vous pouvez inclure des blocs non analysés dans vos documents | + | You can include code blocks into your documents |
- | | + | |
< | < | ||
- | 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 actionscript ada aimms algol68 apache applescript apt_sources arm asm asp asymptote autoconf autohotkey autoit avisynth awk bascomavr bash basic4gl batch bf biblatex bibtex blitzbasic bnf boo caddcl cadlisp ceylon cfdg cfm chaiscript chapel cil c_loadrunner clojure c_mac cmake cobol coffeescript c cpp cpp-qt cpp-winapi csharp css cuesheet c_winapi dart dcl dcpu16 dcs delphi diff div dos dot d ecmascript eiffel email epc e erlang euphoria ezt f1 falcon fo fortran freebasic freeswitch fsharp gambas gdb genero genie gettext glsl gml gnuplot go groovy gwbasic haskell haxe hicest hq9plus html html4strict html5 icon idl ini inno intercal io ispfpanel java5 java javascript jcl j jquery julia kixtart klonec klonecpp kotlin latex lb ldif lisp llvm locobasic logtalk lolcode lotusformulas lotusscript lscript lsl2 lua m68k magiksf make mapbasic mathematica matlab mercury metapost mirc mk-61 mmix modula2 modula3 mpasm mxml mysql nagios netrexx newlisp nginx nimrod nsis oberon2 objc objeck ocaml-brief ocaml octave oobas oorexx oracle11 oracle8 oxygene oz parasail parigp pascal pcre perl6 perl per pf phix php-brief php pic16 pike pixelbender pli plsql postgresql postscript povray powerbuilder powershell proftpd progress prolog properties providex purebasic pycon pys60 python qbasic qml q racket rails rbs rebol reg rexx robots |
- | ==== 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 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 534: | 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 | + | ===== Syntax Plugins |
- | La syntaxe de DokuWiki | + | DokuWiki's syntax can be extended by [[doku> |
~~INFO: | ~~INFO: | ||
+ |
wiki/syntax.1526986850.txt.gz · Dernière modification : de admin@logiciel-libre.ch