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 [30/03/2023 08:23] – 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 : | + | |
- | + | ||
- | ---- | + | |
- | \\ | + | |
- | < | + | |
- | ===== Images et autres fichiers | + | |
- | Vous pouvez insérer des [[doku>fr:images|images, | + | You can include external and internal |
- | + | ||
- | taille originale : | + | |
- | largeur donnée | + | Real size: {{wiki: |
- | 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 ===== | ||
+ | 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 '' | ||
- | ===== Extensions de syntaxe : WRAP ===== | + | This is text is indented by two spaces. |
- | Basic Syntax: | + | <code> |
- | | + | This is preformatted code all spaces are preserved: like |
- | " | + | </code> |
- | </ | + | |
- | + | ||
- | **or** | + | |
- | <block classes #id width :language> | + | |
- | " | + | |
- | | + | |
- | + | ||
- | 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): | + | < |
+ | This is pretty much the same, but you could use it to show that you quoted | ||
+ | </ | ||
- | <WRAP classes #id /> or <block classes #id /> or <div classes #id /> | + | Those blocks were created by this source: |
- | and | + | This is text is indented by two spaces. |
- | <wrap classes #id /> or <inline classes #id /> or <span classes #id /> | + | <code> |
+ | This is preformatted code all spaces are preserved: like | ||
+ | | ||
- | :!: Please note, some things **won' | + | < |
+ | This is pretty much the same, but you could use it to show that you quoted a file. | ||
+ | </ | ||
+ | ==== Syntax Highlighting ==== | ||
- | ==== Classes ==== | + | [[wiki: |
- | The following classes are currently available: | + | <code java> |
+ | /** | ||
+ | | ||
+ | * simply displays "Hello World!" | ||
+ | */ | ||
+ | class HelloWorldApp { | ||
+ | public static void main(String[] args) { | ||
+ | System.out.println(" | ||
+ | } | ||
+ | } | ||
+ | </ | ||
- | ^ class name ^ description/ | + | 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 roff rpmspec rsplus ruby rust sas sass scala scheme scilab scl sdlbasic smalltalk smarty spark sparql sql sshconfig standardml stonescript swift systemverilog tclegg tcl teraterm texgraph |
- | ^ __columns__ -- similar to [[columns]], | + | |
- | | **'' | + | |
- | | **'' | + | |
- | | **'' | + | |
- | | **'' | + | |
- | | **'' | + | |
- | | **'' | + | |
- | ^ __widths__ -- :!: **experimental**, | + | |
- | | **'' | + | |
- | | **'' | + | |
- | | **'' | + | |
- | | **'' | + | |
- | ^ __alignments__ | + | |
- | | **'' | + | |
- | | **'' | + | |
- | | **'' | + | |
- | | **'' | + | |
- | ^ __boxes and notes__ -- similar to [[box]], [[note]], [[tip]] | + | |
- | | **'' | + | |
- | | **'' | + | |
- | | **'' | + | |
- | | **'' | + | |
- | | **'' | + | |
- | | **'' | + | |
- | | **'' | + | |
- | | **'' | + | |
- | | **'' | + | |
- | | **'' | + | |
- | | **'' | + | |
- | | **'' | + | |
- | | **'' | + | |
- | | **'' | + | |
- | ^ __marks__ | + | |
- | | **'' | + | |
- | | **'' | + | |
- | | **'' | + | |
- | ^ __miscellaneous__ | + | |
- | | **'' | + | |
- | | **'' | + | |
- | | **'' | + | |
- | | **'' | + | |
- | | **'' | + | |
- | | **'' | + | |
- | | **'' | + | |
- | | **'' | + | |
- | | **'' | + | |
- | | **'' | + | |
- | | **'' | + | |
- | | **'' | + | |
- | | **'' | + | |
+ | There are additional [[doku> | ||
- | ==== Widths | + | ==== Downloadable Code Blocks |
- | You can set any valid widths on any uppercase | + | When you use the '' |
- | <WRAP someclass 50% anotherclass> | + | |
- | All except percentages will be reduced | + | |
- | You can also use the width keywords '' | + | <code> |
- | | + | <file php myexample.php> |
- | <WRAP half column>...</WRAP> | + | <?php echo "hello world!"; |
- | <WRAP half column> | + | </file> |
- | </WRAP> | + | </code> |
- | 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 syntax applies: | + | |
- | | + | |
- | + | ||
- | The anchor is accessible via: ''# | + | |
- | ==== Languages and Text Directions ==== | + | <file php myexample.php> |
+ | <?php echo "hello world!"; | ||
+ | </ | ||
- | You can change the language and the direction of a container by simply adding | + | If you don't want any highlighting but want a downloadable file, specify |
- | < | + | ===== RSS/ATOM Feed Aggregation ===== |
+ | [[DokuWiki]] can integrate data from external XML feeds. For parsing the XML feeds, [[http:// | ||
- | The text direction ('' | + | ^ Parameter |
+ | | any number | will be used as maximum number items to show, defaults | ||
+ | | reverse | ||
+ | | author | ||
+ | | date | show item dates | | ||
+ | | description| show the item description. All HTML tags will be stripped | | ||
+ | | nosort | ||
+ | | //n//[dhm] | refresh period, where d=days, h=hours, m=minutes. (e.g. 12h = 12 hours). | | ||
- | If you like to mark a text with a different text direction than the default one, you should use divs, i.e. uppercase '' | + | The refresh period defaults |
- | This makes it a better replacement of [[ltr]] (and [[lang]]). | + | By default the feed will be sorted by date, newest items first. You can sort it by oldest first using the '' |
+ | **Example: | ||
- | ==== Examples ==== | + | {{rss> |
- | The plugin comes with an example page, which should explain a lot and looks like this in the default template (see below). | + | {{rss> |
- | {{ : | ||
+ | ===== Control Macros ===== | ||
- | ===== Demo ===== | + | Some syntax influences how DokuWiki renders a page without creating any output it self. The following control macros are availble: |
- | You can see a demo of the plugin | + | ^ Macro ^ Description | |
+ | | %%~~NOTOC~~%% | ||
+ | | %%~~NOCACHE~~%% | DokuWiki caches all output by default. Sometimes this might not be wanted (eg. when the %%< | ||
+ | ===== Syntax Plugins ===== | ||
+ | DokuWiki' | ||
+ | ~~INFO: | ||
wiki/syntax.1680164594.txt.gz · Dernière modification : 30/03/2023 08:23 de cahethel