Outils pour utilisateurs

Outils du site


wiki:syntax (lu 81509 fois)

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentes Révision précédente
Prochaine révision
Révision précédente
wiki:syntax [25-02-2007 20:23]
edmc73
wiki:syntax [09-06-2020 20:01] (Version actuelle)
Ligne 1: Ligne 1:
-[[wiki:fr:dokuwiki|Documentation en français]]+====== Formatting Syntax ======
  
 +[[doku>DokuWiki]] supports some simple markup language, which tries to make the datafiles to be as readable as possible. This page contains all possible syntax you may use when editing the pages. Simply have a look at the source of this page by pressing "Edit this page". If you want to try something, just use the [[playground:playground|playground]] page. The simpler markup is easily accessible via [[doku>toolbar|quickbuttons]], too.
  
-====== Syntaxe de mise en page ======+===== Basic Text Formatting =====
  
-[[wiki:DokuWiki]] supporte un langage de balises simplequi essaie de rendre les fichiers de données aussi lisibles que possible. Cette page contient toute la syntaxe possible que vous pouvez utiliser en éditant les pages. Regardez simplement le code source de cette page en cliquant sur le bouton //Edit this page// en haut ou en bas de cette page. Si vous souhaitez essayer quelque choserendez-vous dans le [[playground|bac à sable]]Les balises les plus simples sont facilement accessible depuis les [[doku>wiki:fr:quickbuttons|quickbuttons]], aussi.+DokuWiki supports **bold**, //italic//, __underlined__ and ''monospaced'' textsOf course you can **__//''combine''//__** all these.
  
-===== Mise en forme de texte basique =====+  DokuWiki supports **bold**, //italic//, __underlined__ and ''monospaced'' texts. 
 +  Of course you can **__//''combine''//__** all these.
  
-DokuWiki supporte les textes en **gras**, //italique//, __souligné__ et ''à espace fixe''.  +You can use <sub>subscript</sub> and <sup>superscript</sup>too.
-Bien sûr, vous pouvez tous les **__//''combiner''//__**.+
  
-  DokuWiki supporte les textes en **gras**, //italique//, __souligné__ et ''à espace fixe''.  +  You can use <sub>subscript</sub> and <sup>superscript</sup>too.
-  Bien sûr, vous pouvez tous les **__//''combiner''//__**.+
  
-Vous pouvez aussi utiliser <sub>indice</sub> et <sup>exposant</sup>.+You can mark something as <del>deleted</delas well.
  
-  Vous pouvez aussi utiliser <sub>indice</sub> et <sup>exposant</sup>.+  You can mark something as <del>deleted</delas well.
  
-De plusvous pouvez marquer du contenu comme <del>supprimé</del>.+**Paragraphs** are created from blank lines. If you want to **force a newline** without a paragraphyou can use two backslashes followed by a whitespace or the end of line.
  
-  De plus, vous pouvez marquer du contenu comme <del>supprimé</del>.+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.
  
-**Les paragraphes** sont créés depuis les lignes vides. Si vous souhaitez **forcer un saut de ligne** sans paragraphe, vous pouvez utiliser deux antislashes suivis 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.
  
-Voilà du texte avec des sauts de ligne\\ remarquez que les +You should use forced newlines only if really needed.
-deux antislashes sont seulement reconnus en fin de ligne\\ +
-ou suivis par\\ un espace ; \\cela arrive sinon+
  
-  Voilà du texte avec des sauts de ligne\\ remarquez que les +===== Links =====
-  deux antislashes sont seulement reconnus en fin de ligne\\ +
-  ou suivis par\\ un espace ; \\cela arrive sinon. +
  
-Vous devriez forcer des sauts de ligne uniquement si c'est réellement nécessaire+DokuWiki supports multiple ways of creating links.
  
-===== Liens =====+==== External ====
  
-DokuWiki propose plusieurs moyens de créer des liens+External links are recognized automagically: http://www.google.com or simply www.google.com - You can set the link text as well: [[http://www.google.com|This Link points to google]]. Email addresses like this one: <andi@splitbrain.org> are recognized, too.
  
-==== Externes ====+  DokuWiki supports multiple ways of creating links. External links are recognized 
 +  automagically: http://www.google.com or simply www.google.com - You can set 
 +  link text as well: [[http://www.google.com|This Link points to google]]. Email 
 +  addresses like this one: <andi@splitbrain.org> are recognized, too.
  
-Les liens externes sont reconnus automagiquement : http://www.google.fr ou simplement www.google.fr - Vous pouvez aussi donner des noms aux liens : [[http://www.google.fr|Ce lien pointe vers google]]. Les adresses email telles que celle-ci : <andi@splitbrain.org> sont également reconnues. +==== Internal ====
  
-  Les liens externes sont reconnus automagiquement : http://www.google.fr  +Internal links are created by using square bracketsYou can either just give a [[pagename]] or use an additional [[pagename|link text]].
-  ou simplement www.google.fr - Vous pouvez aussi donner des noms aux  +
-  liens : [[http://www.google.fr|Ce lien pointe vers google]]. Les adresses  +
-  email telles que celle-ci : <andi@splitbrain.org> sont également reconnues+
  
-==== 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 les crochets. Vous pouvez soit juste donner un [[doku>wiki:fr:pagename|nom de page]] ou utiliser un [[doku>wiki:fr:pagename|texte pour le titre]]. Les noms de pages (pagenames) wiki sont converties automatiquement en minusculesles caractères spéciaux ne sont pas autorisés+[[doku>pagename|Wiki pagenames]] are converted to lowercase automaticallyspecial characters are not allowed.
  
 +You can use [[some:namespaces]] by using a colon in the pagename.
  
-  Vous pouvez utiliser des [[wiki:fr:namespace|catégories]] (//namespaces//) ou espaces de noms en utilisant les //deux points// (:) dans le nom de page //pagename//.+  You can use [[some:namespaces]] by using a colon in the pagename.
  
 +For details about namespaces see [[doku>namespaces]].
  
-Pour plus de détails sur les catégories (//namespaces//)voir [[doku>wiki:fr:namespace|l'espace de noms]].+Linking to a specific section is possibletoo. Just add the section name behind a hash character as known from HTML. This links to [[syntax#internal|this Section]].
  
-Les liens vers une section spécifique sont également possibles. Ajoutez simplement le nom de la section après un caractère dièse (#) comme en HTML+  This links to [[syntax#internal|this Section]].
  
-Ce lien renvoie vers [[syntax#internes|cette section]].+Notes:
  
-Notes : +  Links to [[syntax|existing pages]] are shown in a different style from [[nonexisting]] ones
- +  * DokuWiki does not use [[wp>CamelCase]] to automatically create links by defaultbut this behavior can be enabled in the [[doku>config]] fileHintIf DokuWiki is a linkthen it's enabled
-  Les liens vers des [[wiki:fr:syntax|pages existantes]] sont montrés dans un style différent des pages [[wiki:fr:inexistantes]]. +  * When a section's heading is changedits bookmark changes, tooSo don't rely on section linking too much.
-  * DokuWiki n'utilise pas la syntaxe [[wp>CamelCase]] pour utiliser des liens par défautmais ce comportement peut être activé dans le fichier de [[doku>wiki:fr:config|configuration]]. Astuce si le mot DokuWiki apparaît sur cette page comme un lienalors c'est que la syntaxe CamelCase est activée.  +
-  * Lorsque le titre d'une section est modifiéalors le //bookmark// change aussiDonc ne comptez pas trop sur les  liens de section. +
  
 ==== Interwiki ==== ==== Interwiki ====
  
-DokuWiki propose les liens [[doku>wiki:fr:interwiki|Interwiki]]. Ce sont des liens rapides vers d'autres Wikis. Par exemple ceci est un lien vers la définition des Wikis dans la Wikipedia : [[wp>Wiki]].+DokuWiki supports [[doku>Interwiki]] linksThese are quick links to other Wikis. For example this is a link to Wikipedia's page about Wikis: [[wp>Wiki]].
  
-  DokuWiki propose les liens [[doku>wiki:interwiki|Interwiki]]. Ce sont des liens rapides +  DokuWiki supports [[doku>Interwiki]] linksThese are quick links to other Wikis. 
-  vers d'autres Wikis. Par exemple ceci est un lien vers la définition des Wikis dans la  +  For example this is a link to Wikipedia's page about Wikis: [[wp>Wiki]].
-  Wikipedia : [[wp>Wiki]].+
  
-==== Partages Windows ====+==== Windows Shares ====
  
-Les partages Windows tels que [[\\serveur\partage|ceci]] sont également reconnusVeuillez noter qu'ils n'ont un sens que dans une groupe d'utilisateurs homogène tels qu'un [[wp>Intranet]] d'entreprise+Windows shares like [[\\server\share|this]] are recognized, tooPlease note that these only make sense in a homogeneous user group like a corporate [[wp>Intranet]].
  
-  Les partages Windows tels que [[\\serveur\partage|ceci]] sont également reconnus.+  Windows Shares like [[\\server\share|this]] are recognized, too.
  
-Notes :+Notes:
  
-  * Pour des raisons de sécurité, la navigation directe de partages windows ne fonctionne que dans //Microsoft Internet Explorer// par défaut (et seulement dans la "local zone").  +  * For security reasons direct browsing of windows shares only works in Microsoft Internet Explorer per default (and only in the "local zone"). 
-  * Pour //Mozilla// et //Firefox//, elle peut être mise en place dans l'option de configuration [[http://www.mozilla.org/quality/networking/docs/netprefs.html#file|security.checkloaduri]] mais ceci n'est pas recommandé +  * For Mozilla and Firefox it can be enabled through different workaround mentioned in the [[http://kb.mozillazine.org/Links_to_local_pages_do_not_work|Mozilla Knowledge Base]]. However, there will still be a JavaScript warning about trying to open a Windows Share. To remove this warning (for all users), put the following line in ''conf/lang/en/lang.php'' (more details at [[doku>localization#changing_some_localized_texts_and_strings_in_your_installation|localization]]): <code - conf/lang/en/lang.php> 
-  Veuillez consulter [[bug>151]] pour plus d'informations+<?php 
 +/*
 + * Customization of the english language file 
 + * Copy only the strings that needs to be modified 
 + */ 
 +$lang['js']['nosmblinks'''; 
 +</code>
  
-=== Pour Firefox 1.5, Mozilla 1.8 et plus récent === +==== Image Links ====
-Dans les versions les plus récentes de ces navigateurs, l'option de configuration globale //security.checkloaduri// n'a plus d'effet. A la place, //checkloaduri// a été combiné avec l'interface [[http://www.mozilla.org/projects/security/components/ConfigPolicy.html|CAPS]] pour permettre une configuration //par site// des [[http://kb.mozillazine.org/Security_Policies|Polices de Sécurités]].+
  
-Pour permettre le lien vers des fichiers sur le réseau d'un Intranet, il faut ajouter les lignes suivantes au fichier [[http://kb.mozillazine.org/Editing_configuration|user.js]] situé dans votre [[http://kb.mozillazine.org/Profile|Profile]]. Si ce fichier n'existe pas, il suffit de le créer.+You can also use an image to link to another internal or external page by combining the syntax for links and [[#images_and_other_files|images]] (see below) like this:
  
-  user_pref("capability.policy.policynames", "localfilelinks"); +  [[http://php.net|{{wiki:dokuwiki-128.png}}]]
-  user_pref("capability.policy.localfilelinks.sites", "http://www.monintranet.com"); +
-  user_pref("capability.policy.localfilelinks.checkloaduri.enabled", "allAccess");+
  
-La ligne avec ''capability.policy.localfilelinks.sites'' peut avoir plusieurs site séparés par des espaces.+[[http://php.net|{{wiki:dokuwiki-128.png}}]]
  
-  user_pref("capability.policy.localfilelinks.sites","http://www.monintranet.com http://www.monintranet.net");+Please noteThe image formatting is the only formatting syntax accepted in link names.
  
-(Evidemmentvous devriez remplacer ''http://www.monintranet.com'' et ''http://www.monintranet.net'' par les sites dont vous voulez permettre le partage.)+The whole [[#images_and_other_files|image]] and [[#links|link]] syntax is supported (including image resizinginternal and external images and URLs and interwiki links).
  
-Les sites doivent être listés de la manière suivante: le protocol suivi du nom de domaine (www.monintranet.com) suivi, si nécessaire d'un numéro de port(:8080). Ils ne devraient pas contenir de / final ou tout autre partie de l'URL.+===== Footnotes =====
  
-  Les partages windows s'écrivent alors [[file:///C:\dossier\partage|ça]].+You can add footnotes ((This is a footnote)) by using double parentheses.
  
 +  You can add footnotes ((This is a footnote)) by using double parentheses.
  
 +===== Sectioning =====
  
-==== Liens images ====+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 ''<nowiki>~~NOTOC~~</nowiki>'' in the document.
  
-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 (voir ci-dessous) comme ceci :+==== Headline Level 3 ==== 
 +=== Headline Level 4 === 
 +== Headline Level 5 ==
  
-  [[http://www.php.net|{{wiki:dokuwiki-128.png}}]]+  ==== Headline Level 3 ==== 
 +  === Headline Level 4 === 
 +  == Headline Level 5 ==
  
-[[http://www.php.net|{{wiki:dokuwiki-128.png}}]]+By using four or more dashes, you can make a horizontal line:
  
-NB : la mise en forme image est la seule syntaxe de mise en forme acceptée comme nom du lien.+----
  
-===== Notes de pied de page =====+===== Media Files =====
  
-Vous pouvez ajouter des notes de pied de page ((Ceci est une note de pied de page)) en utilisant 2 doubles parenthèses.+You can include external and internal [[doku>images|images, videos and audio files]] with curly brackets. Optionally you can specify the size of them.
  
-  Vous pouvez ajouter des notes de pied de page ((Ceci est une note de pied de page)) en utilisant 2 doubles parenthèses.+Real size:                        {{wiki:dokuwiki-128.png}}
  
-===== Découpage en sections =====+Resize to given width:            {{wiki:dokuwiki-128.png?50}}
  
-Vous pouvez utiliser jusqu'à cinq différents niveaux de titres afin de structurer votre contenu. Si vous avez plus de trois titresune table des matières est générée automatiquement -- ceci peut être désactivé en incluant la chaîne  +Resize to given width and height((when the aspect ratio of the given width and height doesn't match that of the imageit will be cropped to the new ratio before resizing)): {{wiki:dokuwiki-128.png?200x50}}
-''<nowiki>~~NOTOC~~</nowiki>'' dans le document.+
  
-==== Titre niveau 3 ==== +Resized external image:           {{https://secure.php.net/images/php.gif?200x50}}
-=== Titre niveau 4 === +
-== Titre niveau 5 ==+
  
-  ==== Titre niveau 3 ==== +  Real size:                        {{wiki:dokuwiki-128.png}} 
-  === Titre niveau 4 === +  Resize to given width:            {{wiki:dokuwiki-128.png?50}} 
-  == Titre niveau 5 ==+  Resize to given width and height: {{wiki:dokuwiki-128.png?200x50}} 
 +  Resized external image:           {{https://secure.php.net/images/php.gif?200x50}}
  
-En utilisant quatre tirets ou plus, vous pouvez créer une ligne horizontale : 
  
-----+By using left or right whitespaces you can choose the alignment.
  
-===== Images et autres fichiers =====+{{ wiki:dokuwiki-128.png}}
  
-Vous pouvez inclure des [[doku>wiki:fr:images|images]] externes et internes avec des accolades. Vous pouvez spécifier leur taille (facultatif).+{{wiki:dokuwiki-128.png }}
  
-Taille réelle :                                    {{wiki:dokuwiki-128.png}}+{{ wiki:dokuwiki-128.png }}
  
-Redimension à une largeur donnée                 {{wiki:dokuwiki-128.png?50}}+  {{ wiki:dokuwiki-128.png}} 
 +  {{wiki:dokuwiki-128.png }} 
 +  {{ wiki:dokuwiki-128.png }}
  
-Redimension à une largeur et une hauteur données : {{wiki:dokuwiki-128.png?200x50}}+Of course, you can add a title (displayed as a tooltip by most browsers), too.
  
-Image externe redimensionnée :                     {{http://de3.php.net/images/php.gif?200x50}}+{{ wiki:dokuwiki-128.png |This is the caption}}
  
-  Taille réelle :                                    {{wiki:dokuwiki-128.png}} +  {{ wiki:dokuwiki-128.png |This is the caption}}
-  Redimension à une largeur donnée :                 {{wiki:dokuwiki-128.png?50}} +
-  Redimension à une largeur et une hauteur données : {{wiki:dokuwiki-128.png?200x50}} +
-  Image externe redimensionnée :                     {{http://de3.php.net/images/php.gif?200x50}}+
  
 +For linking an image to another page see [[#Image Links]] above.
  
-En utilisant des espaces à gauche ou à droite, vous pouvez choisir l'alignement+==== Supported Media Formats ====
  
-{{ wiki:dokuwiki-128.png}}+DokuWiki can embed the following media formats directly.
  
-{{wiki:dokuwiki-128.png }}+| Image | ''gif'', ''jpg'', ''png'' 
 +| Video | ''webm'', ''ogv'', ''mp4''
 +| Audio | ''ogg'', ''mp3'', ''wav'' 
 +| Flash | ''swf''                    |
  
-{{ wiki:dokuwiki-128.png }}+If you specify a filename that is not a supported media format, then it will be displayed as a link instead.
  
-  {{ wiki:dokuwiki-128.png}} +By adding ''?linkonly'' you provide a link to the media without displaying it inline 
-  {{wiki:dokuwiki-128.png }} + 
-  {{ wiki:dokuwiki-128.png }}+  {{wiki:dokuwiki-128.png?linkonly}} 
 + 
 +{{wiki:dokuwiki-128.png?linkonly}} This is just a link to the image. 
 + 
 +==== Fallback 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.
  
-Bien sûr, vous pouvez aussi ajouter un titre (affiché comme une bulle d'info par la plupart des navigateurs). +For example consider this embedded mp4 video:
  
-{{ wiki:dokuwiki-128.png |Ceci est le titre}}+  {{video.mp4|A funny video}}
  
-  {{ wiki:dokuwiki-128.png |Ceci est le titre}}+When you upload a ''video.webm'' and ''video.ogv'' next to the referenced ''video.mp4'', DokuWiki will automatically add them as alternatives so that one of the three files is understood by your browser.
  
-Si vous spécifiez un nom de fichier (externe ou interne) qui n'est pas une image (''gif,jpeg,png''), alors il sera affiché comme un lien et non comme un image+Additionally DokuWiki supports a "poster" image which will be shown before the video has started. That image needs to have the same filename as the video and be either a jpg or png file. In the example above a ''video.jpg'' file would work.
  
-===== Listes =====+===== Lists =====
  
-DokuWiki supporte les listes ordonnées et non ordonnéesPour créer un élément de listeindentez votre texte par deux espaces et utilisez une ''*'' pour une liste non ordonnée ou un ''-'' pour une liste ordonnée+Dokuwiki supports ordered and unordered listsTo create a list itemindent your text by two spaces and use a ''*'' for unordered lists or a ''-'' for ordered ones.
  
-  * Ceci est une liste +  * This is a list 
-  * Le second élément +  * The second item 
-    * 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'indentation pour des niveaux plus profonds +    - Just use indention for deeper levels 
-  - Et voilà+  - That's it
  
 <code> <code>
-  * Ceci est une liste +  * This is a list 
-  * Le second élément +  * The second item 
-    * 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'indentation pour des niveaux plus profonds +    - Just use indention for deeper levels 
-  - Et voilà+  - That's it
 </code> </code>
  
-===== Emoticônes (Smileys) =====+Also take a look at the [[doku>faq:lists|FAQ on list items]].
  
-DokuWiki transforme les [[wp>emoticon]]es généralement utilisés en leurs équivalents graphiquesPlus d'émoticônes (//smileys//) peuvent être placés dans le répertoire ''smiley'' et configurés dans le fichier ''conf/smileys.conf''. Voici une vue d'ensemble des émoticônes inclus dans DokuWiki+===== Text Conversions ===== 
 + 
 +DokuWiki can convert certain pre-defined characters or strings into images or other text or HTML. 
 + 
 +The text to image conversion is mainly done for smileys. And the text to HTML conversion is used for typography replacements, but can be configured to use other HTML as well. 
 + 
 +==== Text to Image Conversions ==== 
 + 
 +DokuWiki converts commonly used [[wp>emoticon]]s to their graphical equivalentsThose [[doku>Smileys]] and other images can be configured and extendedHere is an overview of Smileys included in DokuWiki:
  
   * 8-) %%  8-)  %%   * 8-) %%  8-)  %%
Ligne 230: Ligne 253:
   * DELETEME %% DELETEME %%   * DELETEME %% DELETEME %%
  
-===== Typographie =====+==== Text to HTML Conversions ====
  
-[[wiki:fr|DokuWiki]] peut convertir de simples caractères de texte brut en leurs entités typographiques correctesVoici un exemple des caractères reconnus+Typography: [[DokuWiki]] can convert simple text characters to their typographically correct entitiesHere is an example of recognized characters.
  
 -> <- <-> => <= <=> >> << -- --- 640x480 (c) (tm) (r) -> <- <-> => <= <=> >> << -- --- 640x480 (c) (tm) (r)
Ligne 242: Ligne 265:
 </code> </code>
  
-NB : Ces conversions peuvent être interdites dans le fichier de configuration.+The same can be done to produce any kind of HTML, it just needs to be added to the [[doku>entities|pattern file]].
  
-===== Citations =====+There are three exceptions which do not come from that pattern file: multiplication entity (640x480), 'single' and "double quotes". They can be turned off through a [[doku>config:typography|config option]].
  
-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+<code> 
 +I think we should do it
  
-  >> Eh bien, je pense que si+No we shouldn't
  
-  Vraiment ?+>> Well, I say we should
  
-  >> Oui !+Really?
  
-  >>> Alors faisons-le !+>> Yes!
  
-Je pense que nous devrions le faire+>>> Then lets do it! 
 +</code>
  
-> Non nous ne devrions pas+I think we should do it
  
->> Eh bien, je pense que si+No we shouldn't
  
-Vraiment ?+>> Well, I say we should
  
->> Oui !+Really?
  
->>> Alors faisons-le !+>> Yes!
  
-===== Tableaux =====+>>> Then lets do it!
  
-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 terminer avec un //pipe// ''|'' pour des lignes normales ou avec un ''^'' pour les titres. +^ 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        |
  
-  Titre 1         ^ Titre 2           ^ Titre 3                             ^ +Table rows have to start and end with a ''|'' for normal rows or a ''^'' for headers.
-  | 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 (//colspan//), rendez simplement la cellule suivante complètement vide comme montré ci-dessus. Assurez-vous d'avoir toujours le même nombre de séparateurs de cellules !+  ^ 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, just make the next cell completely empty as shown aboveBe sure to have always the same amount of cell separators!
  
-|              ^ 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    |+
  
-Note : les fusions verticales (//rowspan//) ne sont pas possibles. +  |              ^ 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 le contenu du tableau. Ajoutez simplement au moins deux espaces blancs à l'extrémité opposée à votre texte ajoutez deux espaces sur la gauche pour aligner à droite, deux espaces sur la droite pour aligner à gauche et deux espaces au moins à chaque extrémité pour centrer le texte+You can have rowspans (vertically connected cells) by adding ''%%:::%%'' into the cells below the one to which they should connect.
  
-^          Tableau avec alignement         ^^^ +Heading 1      ^ Heading 2                  ^ Heading 3          ^ 
-|        droite|    centré   |gauche         +| Row 1 Col 1    | this cell spans vertically | Row 1 Col 3        | 
-|gauche              droite|    centré     |+| Row 2 Col 1    | :::                        | Row 2 Col 3        | 
 +| Row 3 Col 1    | :::                        | Row 2 Col 3        | 
 + 
 +Apart from the rowspan syntax those cells should not contain anything else. 
 + 
 +  Heading 1      ^ Heading 2                  ^ Heading 3          
 +  Row 1 Col 1    | this cell spans vertically | Row 1 Col 3        | 
 +  | Row 2 Col 1    :::                        | Row 2 Col 3        
 +  Row 3 Col 1    | :::                        | Row 2 Col 3        | 
 + 
 +You can align the table contents, too. Just add at least two whitespaces at the opposite end of your text: Add two spaces on the left to align right, two spaces on the right to align left and two spaces at least at both ends for centered text. 
 + 
 +^           Table with alignment           ^^^ 
 +        right|    center    |left          | 
 +|left          |         right|    center    |
 | xxxxxxxxxxxx | xxxxxxxxxxxx | xxxxxxxxxxxx | | xxxxxxxxxxxx | xxxxxxxxxxxx | xxxxxxxxxxxx |
  
-Voici à quoi ça ressemble dans le code source :+This is how it looks in the source:
  
-  ^          Tableau avec alignement         ^^^ +  ^           Table with alignment           ^^^ 
-  |        droite|    centré   |gauche         +  |         right|    center    |left          
-  |gauche              droite|    centré     |+  |left                  right|    center    |
   | xxxxxxxxxxxx | xxxxxxxxxxxx | xxxxxxxxxxxx |   | xxxxxxxxxxxx | xxxxxxxxxxxx | xxxxxxxxxxxx |
  
-===== Blocs non analysés =====+Note: Vertical alignment is not supported. 
 + 
 +===== No Formatting ===== 
 + 
 +If you need to display text exactly like it is typed (without any formatting), enclose the area either with ''%%<nowiki>%%'' tags or even simpler, with double percent signs ''<nowiki>%%</nowiki>''
 + 
 +<nowiki> 
 +This is some text which contains addresses like this: http://www.splitbrain.org and **formatting**, but nothing is done with it. 
 +</nowiki> 
 +The same is true for %%//__this__ text// with a smiley ;-)%%. 
 + 
 +  <nowiki> 
 +  This is some text which contains addresses like this: http://www.splitbrain.org and **formatting**, but nothing is done with it. 
 +  </nowiki> 
 +  The same is true for %%//__this__ text// with a smiley ;-)%%. 
 + 
 +===== Code Blocks =====
  
-Vous pouvez inclure des blocs non analysés (//non parsed//) dans vos documents soit en les indentant avec au moins deux espaces (comme utilisé dans les exemples précédantou en utilisant les balises ''code'' ou ''file''.+You can include code blocks into your documents by either indenting them by at least two spaces (like used for the previous examplesor by using the tags ''%%<code>%%'' or ''%%<file>%%''.
  
 +  This is text is indented by two spaces.
  
 <code> <code>
-Ceci est du code préformaté, tous les espaces sont préservés comme           <-ceci+This is preformatted code all spaces are preservedlike              <-this
 </code> </code>
  
 <file> <file>
-Ceci est pratiquement la même chosemais vous pouvez l'utiliser pour montrer que vous avec cité un fichier+This is pretty much the samebut you could use it to show that you quoted a file.
 </file> </file>
  
-Pour laisser l'analyseur ignorer complètement un bloc (//ie.// ne pas faire de mise en forme dedans), encadrez ce bloc soit avec des balises ''nowiki'' ou encore plus simple, avec des doubles caractères pourcent ''<nowiki>%%</nowiki>''+Those blocks were created by this source:
- +
-<nowiki> +
-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> +
- +
-Consultez le code source de cette page pour voir comment utiliser ces blocs.  +
  
 +    This is text is indented by two spaces.
  
 +  <code>
 +  This is preformatted code all spaces are preserved: like              <-this
 +  </code>
  
 +  <file>
 +  This is pretty much the same, but you could use it to show that you quoted a file.
 +  </file>
  
-===== Surlignement de syntaxe =====+==== Syntax Highlighting ====
  
-[[wiki:DokuWiki]] peut surligner du code sourcece qui facilite sa lectureIl utilise le Generic Syntax Highlighter [[http://qbnz.com/highlighter/|GeSHi]] -- donc n'importe quel langage reconnu par GeSHi est supportéLa syntaxe est la même que dans le bloc de code dans la section précédentmais cette fois le nom du langage utilisé est insérée dans le tag. Ex : ''%%<code java>%%''.+[[wiki:DokuWiki]] can highlight sourcecodewhich makes it easier to readIt uses the [[http://qbnz.com/highlighter/|GeSHi]] Generic Syntax Highlighter -- so any language supported by GeSHi is supportedThe syntax uses the same code and file blocks described in the previous section, but this time the name of the language syntax to be highlighted is included inside the tag, e.g. ''<nowiki><code java></nowiki>'' or ''<nowiki><file java></nowiki>''.
  
 <code java> <code java>
-/**  +/** 
- La classe HelloWorldApp implemente une application qui + The HelloWorldApp class implements an application that 
- affiche simplement "Hello World!" dans la sortie standard.+ simply displays "Hello World!" to the standard output.
  */  */
 class HelloWorldApp { class HelloWorldApp {
     public static void main(String[] args) {     public static void main(String[] args) {
-        System.out.println("Hello World!"); //Affiche la chaîne.+        System.out.println("Hello World!"); //Display the string.
     }     }
 } }
 </code> </code>
  
-Les identificateurs de langage suivants sont actuellement reconnus : //actionscriptadaapacheasmaspbashcaddclcadlisp, c, c_maccppcsharpcssdelphihtml4strictjavajavascriptlispluampasmnsisobjcoobasoracle8pascalperlphp-briefphppythonqbasicsmartysql, vb, vbnetvisualfoxproxml//+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 text thinbasic tsql twig typoscript unicon upc urbi uscript vala vbnet vb vbscript vedit verilog vhdl vim visualfoxpro visualprolog whitespace whois winbatch wolfram xbasic xml xojo xorg_conf xpp yaml z80 zxbasic//
  
 +There are additional [[doku>syntax_highlighting|advanced options]] available for syntax highlighting, such as highlighting lines or adding line numbers.
  
 +==== Downloadable Code Blocks ====
  
 +When you use the ''%%<code>%%'' or ''%%<file>%%'' syntax as above, you might want to make the shown code available for download as well. You can do this by specifying a file name after language code like this:
  
-===== Inclure du code HTML ou PHP =====+<code> 
 +<file php myexample.php> 
 +<?php echo "hello world!"; ?> 
 +</file> 
 +</code> 
 + 
 +<file php myexample.php> 
 +<?php echo "hello world!"; ?> 
 +</file> 
 + 
 +If you don't want any highlighting but want a downloadable file, specify a dash (''-'') as the language code: ''%%<code - myfile.foo>%%''
 + 
 + 
 +===== Embedding HTML and PHP ===== 
 + 
 +You can embed raw HTML or PHP code into your documents by using the ''%%<html>%%'' or ''%%<php>%%'' tags. (Use uppercase tags if you need to enclose block level elements.) 
 + 
 +HTML example:
  
-Vous pouvez inclure du code HTML ou PHP pur dans vos documents en utilisant les tags ''html'' ou ''php'' comme ceci : 
 <code> <code>
 <html> <html>
-Ceci est du <font color="redsize="+1">HTML</font>+This is some <span style="color:red;font-size:150%;">inline HTML</span>
 </html> </html>
 +<HTML>
 +<p style="border:2px dashed red;">And this is some block HTML</p>
 +</HTML>
 </code> </code>
  
 <html> <html>
-Ceci est du <font color="redsize="+1">HTML</font>+This is some <span style="color:red;font-size:150%;">inline HTML</span>
 </html> </html>
 +<HTML>
 +<p style="border:2px dashed red;">And this is some block HTML</p>
 +</HTML>
 +
 +PHP example:
  
 <code> <code>
 <php> <php>
-echo 'Un logo généré par PHP:'; +echo 'The PHP version: '
-echo '<img src="' . $_SERVER['PHP_SELF'] . '?=' . php_logo_guid() . '" alt="Logo PHP !" />';+echo phpversion()
 +echo ' (generated inline HTML)';
 </php> </php>
 +<PHP>
 +echo '<table class="inline"><tr><td>The same, but inside a block level element:</td>';
 +echo '<td>'.phpversion().'</td>';
 +echo '</tr></table>';
 +</PHP>
 </code> </code>
  
 <php> <php>
-echo 'Un logo généré par PHP:'; +echo 'The PHP version: '
-echo '<img src="' . $_SERVER['PHP_SELF'] . '?=' . php_logo_guid() . '" alt="Logo PHP !" />';+echo phpversion()
 +echo ' (inline HTML)';
 </php> </php>
 +<PHP>
 +echo '<table class="inline"><tr><td>The same, but inside a block level element:</td>';
 +echo '<td>'.phpversion().'</td>';
 +echo '</tr></table>';
 +</PHP>
 +
 +**Please Note**: HTML and PHP embedding is disabled by default in the configuration. If disabled, the code is displayed instead of executed.
 +
 +===== RSS/ATOM Feed Aggregation =====
 +[[DokuWiki]] can integrate data from external XML feeds. For parsing the XML feeds, [[http://simplepie.org/|SimplePie]] is used. All formats understood by SimplePie can be used in DokuWiki as well. You can influence the rendering by multiple additional space separated parameters:
 +
 +^ Parameter  ^ Description ^
 +| any number | will be used as maximum number items to show, defaults to 8 |
 +| reverse    | display the last items in the feed first |
 +| author     | show item authors names |
 +| date       | show item dates |
 +| description| show the item description. If [[doku>config:htmlok|HTML]] is disabled all tags will be stripped |
 +| nosort     | do not sort the items in the feed |
 +| //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:DokuWiki]] to re-render the page if it is more than //refresh period// since the page was last rendered.
 +
 +By default the feed will be sorted by date, newest items first. You can sort it by oldest first using the ''reverse'' parameter, or display the feed as is with ''nosort''.
 +
 +**Example:**
 +
 +  {{rss>http://slashdot.org/index.rss 5 author date 1h }}
 +
 +{{rss>http://slashdot.org/index.rss 5 author date 1h }}
 +
 +
 +===== Control Macros =====
 +
 +Some syntax influences how DokuWiki renders a page without creating any output it self. The following control macros are availble:
  
-**NB** : L'inclusion de code HTML et PHP est impossible dans la configuration par défaut. Dans ce casle code est affiché au lieu d'être exécuté+^ Macro           ^ Description | 
 +| %%~~NOTOC~~%%   | If this macro is found on the pageno table of contents will be created | 
 +| %%~~NOCACHE~~%% | DokuWiki caches all output by defaultSometimes this might not be wanted (eg. when the %%<php>%% syntax above is used), adding this macro will force DokuWiki to rerender a page on every call |
  
 +===== Syntax Plugins =====
  
-===== Credits =====+DokuWiki's syntax can be extended by [[doku>plugins|Plugins]]. How the installed plugins are used is described on their appropriate description pages. The following syntax plugins are available in this particular DokuWiki installation:
  
-//Add your email here if you created translated or modified whole or part of this page.//+~~INFO:syntaxplugins~~
  
-  * //[[cedric@ntbf.net|Cedric Protiere]] 2005-10-11 13:46// 
-  *//[[webmaster@bdsemin.com|Philippe LAPEYRIE]]// 
wiki/syntax.1172431408.txt.gz · Dernière modification: 04-04-2013 22:05 (modification externe)