Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente | ||
wiki:syntax [19-10-2009 17:20] 111110101011 Traduction française |
wiki:syntax [09-06-2020 20:01] (Version actuelle) |
||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | ====== | + | ====== |
- | [[DokuWiki]] | + | [[doku>DokuWiki]] |
+ | ===== Basic Text Formatting ===== | ||
- | ===== Mise en forme de texte basique ===== | + | DokuWiki supports **bold**, //italic//, __underlined__ and '' |
- | DokuWiki | + | |
+ | Of course you can **__//'' | ||
- | DokuWiki accepte les textes en **gras**, //italique//, __souligné__ et '' | + | You can use < |
- | Bien sûr, vous pouvez tous les **__//'' | + | You can use < |
- | Bien sûr, vous pouvez tous les **__//'' | + | You can mark something as < |
- | Vous pouvez aussi utiliser | + | You can mark something as <del>deleted</del> as well. |
- | Vous pouvez aussi utiliser < | + | **Paragraphs** are created from blank lines. If you want to **force a newline** without a paragraph, you can use two backslashes followed by a whitespace or the end of line. |
- | De plus, vous pouvez marquer un passage comme < | + | This is some text with some linebreaks\\ Note that the |
+ | two backslashes are only recognized at the end of a line\\ | ||
+ | or followed by\\ a whitespace \\this happens without it. | ||
- | | + | |
+ | two backslashes are only recognized at the end of a line\\ | ||
+ | or followed by\\ a whitespace \\this happens without it. | ||
- | **Les paragraphes** sont créés à partir des lignes vides. Si vous souhaitez **forcer un saut de ligne** sans paragraphe, vous pouvez utiliser deux contre-obliques suivies par un espace ou une fin de ligne. | + | You should use forced newlines only if really needed. |
- | Voici du texte avec des sauts de ligne\\ remarquez que les | + | ===== Links ===== |
- | deux contre-obliques sont reconnues uniquement en fin de ligne\\ | + | |
- | ou suivies par\\ un espace ; \\ceci se produit sinon. | + | |
- | Voici du texte avec des sauts de ligne\\ remarquez que les | + | DokuWiki supports multiple ways of creating links. |
- | deux contre-obliques sont reconnues uniquement en fin de ligne\\ | + | |
- | ou suivies par\\ un espace ; \\ceci se produit sinon. | + | |
- | Vous ne devriez forcer des sauts de ligne que si c'est vraiment nécessaire. | + | ==== External ==== |
- | ===== Liens ===== | + | External links are recognized automagically: |
- | DokuWiki | + | |
+ | automagically: | ||
+ | link text as well: [[http:// | ||
+ | addresses like this one: < | ||
- | ==== Externes | + | ==== Internal |
- | Les liens externes sont reconnus « automagiquement » : http://www.google.fr ou simplement www.google.fr - Vous pouvez aussi donner des noms aux liens : [[http:// | + | Internal links are created by using square brackets. You can either just give a [[pagename]] or use an additional [[pagename|link text]]. |
- | | + | |
- | | + | |
- | liens : [[http:// | + | |
- | de courriel comme celle-ci : < | + | |
- | ==== Internes ==== | + | [[doku> |
- | Les liens internes sont créés en utilisant les crochets. Vous pouvez soit juste donner un [[doku>fr:pagename|nom de page]] soit utiliser un [[doku> | + | You can use [[some:namespaces]] by using a colon in the pagename. |
- | | + | |
- | juste donner un [[nom de page]] soit utiliser un | + | |
- | [[nom de page|texte pour le titre]]. Les noms de pages (// | + | |
- | sont convertis automatiquement en minuscules ; les caractères spéciaux ne | + | |
- | sont pas autorisés. | + | |
- | Vous pouvez utiliser des [[doku>fr: | + | For details about namespaces see [[doku>namespaces]]. |
- | Vous pouvez utiliser des [[catégories]] (// | + | 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# |
- | Pour plus de détails sur les catégories (// | + | This links to [[syntax# |
- | Les liens vers une section spécifique sont également possibles. Ajoutez simplement le nom de la section après un caractère dièse (#) comme en HTML. Ce lien renvoie vers [[syntax# | + | Notes: |
- | | + | |
+ | * DokuWiki does not use [[wp> | ||
+ | * When a section' | ||
- | Notes : | + | ==== Interwiki ==== |
- | * Les liens vers des [[syntax|pages existantes]] sont montrés dans un style différent des liens vers des pages [[inexistantes]]. | + | DokuWiki supports |
- | * DokuWiki n'utilise pas la syntaxe | + | |
- | * Lorsque le titre d'une section est modifié, alors son lien change aussi. Donc ne comptez pas trop sur les liens de section. | + | |
- | ==== Interwiki | + | DokuWiki supports [[doku>Interwiki]] links. These are quick links to other Wikis. |
+ | For example this is a link to Wikipedia' | ||
- | DokuWiki propose les liens [[doku> | + | ==== Windows Shares ==== |
- | DokuWiki propose les liens [[doku> | + | Windows shares like [[\\server\share|this]] are recognized, too. Please note that these only make sense in a homogeneous user group like a corporate |
- | liens rapides vers d' | + | |
- | définition des Wikis dans Wikipedia en français : [[wp>fr: | + | |
+ | Windows Shares like [[\\server\share|this]] are recognized, too. | ||
+ | Notes: | ||
- | ==== Partages | + | * For security reasons direct browsing of windows shares only works in Microsoft Internet Explorer per default (and only in the "local zone" |
+ | * For Mozilla and Firefox it can be enabled through different workaround mentioned in the [[http:// | ||
+ | <?php | ||
+ | /** | ||
+ | * Customization of the english language file | ||
+ | * Copy only the strings that needs to be modified | ||
+ | */ | ||
+ | $lang[' | ||
+ | </ | ||
- | Les partages Windows tels que [[\\serveurnt4\partage|ceci]] sont également reconnus. Veuillez noter qu'ils n'ont un sens que dans un groupe d' | + | ==== Image Links ==== |
- | Les partages Windows tels que [[\\serveur\partage|ceci]] sont également reconnus. | + | You can also use an image to link to another internal or external page by combining the syntax for links and [[# |
- | Notes : | + | [[http:// |
- | * Pour des raisons de sécurité, la navigation directe sur partages Windows ne fonctionne que dans //Microsoft Internet Explorer// par défaut (et seulement dans la « zone locale »). | + | [[http://php.net|{{wiki: |
- | * Pour //Mozilla// et // | + | |
- | * Je viens de tester en passant la valeur à " | + | |
- | * Veuillez consulter [[dokubug> | + | |
+ | Please note: The image formatting is the only formatting syntax accepted in link names. | ||
- | ==== Liens images | + | The whole [[# |
- | 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 : | + | ===== Footnotes ===== |
- | [[http:// | + | You can add footnotes ((This is a footnote)) by using double parentheses. |
- | [[http:// | + | You can add footnotes ((This is a footnote)) by using double parentheses. |
- | NB : la mise en forme image est la seule syntaxe de mise en forme acceptée comme nom de lien. | + | ===== Sectioning ===== |
- | Les syntaxes d'[[#Images et autres fichiers|image]] complète et de [[#Liens]] sont possibles (incluant le redimensionnement d'image, les images internes et externes, les URL et les liens interwikis). | + | 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 |
- | ===== Notes de pied de page ===== | + | ==== Headline Level 3 ==== |
+ | === Headline Level 4 === | ||
+ | == Headline Level 5 == | ||
- | Vous pouvez ajouter des notes de pied de page ((Ceci est une note de pied de page)) en utilisant des parenthèses doubles. | + | ==== Headline Level 3 ==== |
+ | === Headline Level 4 === | ||
+ | == Headline Level 5 == | ||
- | Vous pouvez ajouter des notes de pied de page ((Ceci est une note de pied de page)) en utilisant des parenthèses doubles. | + | By using four or more dashes, you can make a horizontal line: |
+ | ---- | ||
- | ===== Découpage en sections | + | ===== Media Files ===== |
- | Vous pouvez utiliser jusqu' | + | You can include external and internal [[doku> |
- | ''< | + | |
+ | Real size: {{wiki: | ||
+ | Resize to given width: | ||
- | ==== Titre niveau 3 ==== | + | Resize to given width and height((when the aspect ratio of the given width and height doesn' |
- | === Titre niveau 4 === | + | |
- | == Titre niveau 5 == | + | |
- | ==== Titre niveau 3 ==== | + | Resized external image: {{https:// |
- | === Titre niveau 4 === | + | |
- | == Titre niveau 5 == | + | |
- | En utilisant quatre tirets ou plus, vous pouvez créer une ligne horizontale | + | Real size: |
+ | Resize to given width: | ||
+ | Resize to given width and height: {{wiki: | ||
+ | Resized external image: {{https:// | ||
- | ---- | ||
+ | By using left or right whitespaces you can choose the alignment. | ||
- | ===== Images et autres fichiers ===== | + | {{ wiki: |
- | Vous pouvez inclure des [[doku> | + | {{wiki:dokuwiki-128.png }} |
- | Taille réelle : | + | {{ wiki: |
- | Redimensionnement à une largeur donnée | + | {{ wiki:dokuwiki-128.png}} |
+ | {{wiki: | ||
+ | | ||
- | Redimensionnement à une largeur et une hauteur données((Si les proportions de l' | + | Of course, you can add a title (displayed as a tooltip by most browsers), too. |
- | Image externe redimensionnée : {{http:// | + | {{ wiki:dokuwiki-128.png |This is the caption}} |
- | | + | {{ wiki: |
- | Redimensionnement à une largeur donnée : | + | |
- | Redimensionnement à une largeur et une hauteur données : {{wiki: | + | |
- | Image externe redimensionnée : | + | |
+ | For linking an image to another page see [[#Image Links]] above. | ||
- | En utilisant des espaces à gauche ou à droite, vous pouvez choisir l' | + | ==== Supported Media Formats ==== |
- | {{ wiki: | + | DokuWiki can embed the following media formats directly. |
- | {{wiki: | + | | Image | '' |
+ | | Video | '' | ||
+ | | Audio | '' | ||
+ | | Flash | '' | ||
- | {{ wiki: | + | If you specify a filename that is not a supported media format, then it will be displayed as a link instead. |
- | {{ wiki: | + | By adding ''? |
- | {{wiki: | + | |
- | {{ wiki: | + | |
- | Bien sûr, vous pouvez aussi ajouter un titre (affiché comme une bulle d'aide par la plupart des navigateurs). | + | {{wiki: |
- | {{ wiki: | + | {{wiki: |
- | {{ wiki: | + | ==== Fallback Formats ==== |
- | Si vous spécifiez un nom de fichier (externe ou interne) qui n'est pas une image ('' | + | 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. |
- | Pour lier une image à une autre page, voir [[#Liens images]] ci-dessus. | + | For example consider this embedded mp4 video: |
- | ===== Listes ===== | + | {{video.mp4|A funny video}} |
- | 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 '' | + | When you upload a '' |
- | * Ceci est une liste | + | Additionally DokuWiki supports a " |
- | * Le second élément | + | |
- | * Vous pouvez avoir plusieurs niveaux | + | |
- | * Un autre élément | + | |
- | | + | ===== Lists ===== |
- | - Un autre élément | + | |
- | - Utilisez simplement l' | + | Dokuwiki supports ordered and unordered lists. To create a list item, indent your text by two spaces and use a '' |
- | - Et voilà | + | |
+ | * This is a list | ||
+ | * The second item | ||
+ | * You may have different levels | ||
+ | * Another item | ||
+ | |||
+ | - The same list but ordered | ||
+ | - Another item | ||
+ | - Just use indention for deeper levels | ||
+ | - That's it | ||
< | < | ||
- | * Ceci est une liste | + | * This is a list |
- | * Le second | + | * The second |
- | * Vous pouvez avoir plusieurs niveaux | + | * You may have different levels |
- | * Un autre élément | + | * Another item |
- | - La même liste mais ordonnée | + | - The same list but ordered |
- | - Un autre élément | + | - Another item |
- | - Utilisez simplement l' | + | - Just use indention for deeper levels |
- | - Et voilà | + | - That's it |
</ | </ | ||
+ | Also take a look at the [[doku> | ||
+ | |||
+ | ===== 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, | ||
- | ===== Emoticônes (smileys) ===== | + | ==== Text to Image Conversions |
- | DokuWiki | + | DokuWiki |
* 8-) %% 8-) %% | * 8-) %% 8-) %% | ||
Ligne 228: | Ligne 253: | ||
* DELETEME %% DELETEME %% | * DELETEME %% DELETEME %% | ||
- | ===== Typographie ===== | + | ==== Text to HTML Conversions |
- | [[DokuWiki]] | + | Typography: |
-> <- <-> => <= <=> >> << -- --- 640x480 (c) (tm) (r) | -> <- <-> => <= <=> >> << -- --- 640x480 (c) (tm) (r) | ||
Ligne 240: | Ligne 265: | ||
</ | </ | ||
- | NB : Ces conversions peuvent être désactivées par une option dans le fichier de configuration ou un fichiers de motifs. | + | The same can be done to produce any kind of HTML, it just needs to be added to the [[doku> |
- | ===== Citations ===== | + | There are three exceptions which do not come from that pattern file: multiplication entity (640x480), ' |
- | Parfois vous souhaitez marquer du texte afin de montrer que c'est une réponse ou un commentaire. Vous pouvez utiliser la syntaxe suivante : | + | ===== Quoting ===== |
- | Je pense que nous devrions le faire | + | Some times you want to mark some text to show it's a reply or comment. You can use the following syntax: |
- | + | ||
- | > Non nous ne devrions pas | + | |
- | + | ||
- | >> Eh bien, je pense que si | + | |
- | + | ||
- | > Vraiment ? | + | |
- | + | ||
- | >> Oui ! | + | |
- | + | ||
- | >>> | + | |
- | Je pense que nous devrions le faire | + | < |
+ | I think we should do it | ||
- | > Non nous ne devrions pas | + | > No we shouldn' |
- | >> | + | >> |
- | > Vraiment | + | > Really? |
- | >> | + | >> |
- | >>> | + | >>> |
+ | </ | ||
- | ===== Tableaux ===== | + | I think we should do it |
- | DokuWiki propose une syntaxe simple pour créer des tableaux. | + | > No we shouldn' |
- | ^ Titre 1 ^ Titre 2 ^ Titre 3 ^ | + | >> Well, I say we should |
- | | 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// '' | + | > Really? |
- | ^ Titre 1 ^ Titre 2 ^ Titre 3 ^ | + | >> Yes! |
- | | 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, | + | >>> |
- | Les titres de tableau verticaux sont également possibles. | + | ===== Tables ===== |
- | | ^ Titre 1 ^ Titre 2 ^ | + | DokuWiki supports a simple syntax to create tables. |
- | ^ 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 (' | + | ^ Heading 1 ^ Heading 2 ^ Heading 3 ^ |
+ | | Row 1 Col 1 | Row 1 Col 2 | Row 1 Col 3 | | ||
+ | | Row 2 Col 1 | some colspan (note the double pipe) || | ||
+ | | Row 3 Col 1 | Row 3 Col 2 | Row 3 Col 3 | | ||
- | | + | Table rows have to start and end with a '' |
- | ^ 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 | | + | |
- | NB : les fusions verticales ne sont pas possibles. | + | ^ 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 | | ||
- | Vous pouvez également aligner les contenus du tableau. Ajoutez simplement au moins deux espaces à l' | + | To connect cells horizontally, just make the next cell completely empty as shown above. Be sure to have always the same amount of cell separators! |
- | ^ | + | Vertical tableheaders are possible, too. |
- | | | + | |
- | |gauche | + | | |
+ | ^ Heading 3 | Row 1 Col 2 | Row 1 Col 3 | | ||
+ | ^ Heading 4 | no colspan this time | | | ||
+ | ^ Heading 5 | ||
+ | |||
+ | As you can see, it's the cell separator before a cell which decides about the formatting: | ||
+ | |||
+ | | ^ Heading 1 ^ Heading 2 ^ | ||
+ | ^ Heading 3 | Row 1 Col 2 | Row 1 Col 3 | | ||
+ | ^ Heading 4 | ||
+ | ^ Heading 5 | Row 2 Col 2 | Row 2 Col 3 | | ||
+ | |||
+ | You can have rowspans (vertically connected cells) by adding '' | ||
+ | |||
+ | ^ 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 | | ||
+ | |||
+ | 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 | ||
+ | | | ||
+ | |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 | | ||
- | ===== Blocs non analysés ===== | + | Note: Vertical alignment is not supported. |
- | 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 '' | + | ===== No Formatting ===== |
+ | If you need to display text exactly like it is typed (without any formatting), | ||
+ | |||
+ | < | ||
+ | This is some text which contains addresses like this: http:// | ||
+ | </ | ||
+ | The same is true for %%// | ||
+ | |||
+ | < | ||
+ | This is some text which contains addresses like this: http:// | ||
+ | </ | ||
+ | The same is true for %%// | ||
+ | |||
+ | ===== Code Blocks ===== | ||
+ | |||
+ | You can include code blocks into your documents by either indenting them by at least two spaces (like used for the previous examples) or by using the tags '' | ||
+ | |||
+ | This is text is indented by two spaces. | ||
< | < | ||
- | Ceci est du code préformaté, | + | This is preformatted |
</ | </ | ||
< | < | ||
- | Ceci est pratiquement la même chose, mais vous pouvez l' | + | This is pretty much the same, but you could use it to show that you quoted a file. |
</ | </ | ||
- | Pour laisser l' | + | Those blocks were created by this source: |
- | < | + | This is text is indented by two spaces. |
- | Voici du texte qui contient des adresses comme ceci : http://www.spiltbrain.org et de la **mise en forme**, mais rien ne se passe. | + | |
- | </ | + | |
- | Consultez le code source de cette page pour voir comment utiliser ces blocs. | + | <code> |
+ | This is preformatted code all spaces are preserved: like <-this | ||
+ | </ | ||
- | ===== Coloration syntaxique ===== | + | < |
+ | This is pretty much the same, but you could use it to show that you quoted a file. | ||
+ | </ | ||
- | [[DokuWiki]] | + | ==== Syntax Highlighting ==== |
+ | |||
+ | [[wiki: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(" |
} | } | ||
} | } | ||
</ | </ | ||
- | Les identificateurs de langage suivants sont actuellement reconnus | + | The following language strings are currently recognized: //4cs 6502acme 6502kickass 6502tasm 68000devpac abap actionscript3 |
+ | There are additional [[doku> | ||
+ | ==== Downloadable Code Blocks ==== | ||
+ | When you use the '' | ||
- | ===== Agrégation de fils RSS/ATOM ===== | + | < |
- | [[DokuWiki]] peut agréger les données de fils XML externes. Pour l' | + | <file php myexample.php> |
+ | <?php echo "hello world!"; | ||
+ | </file> | ||
+ | </code> | ||
- | ^ Paramètre | + | <file php myexample.php> |
- | | tout nombre | sera utilisé comme le nombre maximum d' | + | <?php echo "hello world!"; |
- | | reverse | + | </file> |
- | | author | + | |
- | | date | affiche les dates des éléments | | + | |
- | | description | affiche les descriptions des éléments. Si [[doku>config# | + | |
- | | // | + | |
- | La durée de rafraîchissement est par défaut de 4 heures. Toute valeur inférieure à 10 minutes sera traitée comme 10 minutes. [[DokuWiki]] essaiera en général de fournir une version de la page à partir du cache, évidemment, | + | If you don't want any highlighting but want a downloadable file, specify |
- | **Exemple :** | ||
- | {{rss> | + | ===== Embedding HTML and PHP ===== |
- | {{rss>http:// | + | You can embed raw HTML or PHP code into your documents by using the '' |
- | ===== Inclure du code HTML ou PHP ===== | + | HTML example: |
- | Vous pouvez inclure du code HTML ou PHP pur dans vos documents en utilisant les balises '' | ||
< | < | ||
< | < | ||
- | Ceci est du <font color="red" | + | This is some <span style="color:red;font-size:150%;">inline |
</ | </ | ||
+ | < | ||
+ | <p style=" | ||
+ | </ | ||
</ | </ | ||
< | < | ||
- | Ceci est du <font color="red" | + | This is some <span style="color:red;font-size:150%;">inline |
</ | </ | ||
+ | < | ||
+ | <p style=" | ||
+ | </ | ||
+ | |||
+ | PHP example: | ||
< | < | ||
<php> | <php> | ||
- | echo 'Un logo produit par PHP :'; | + | echo 'The PHP version: '; |
- | echo '<img src="' | + | echo phpversion(); |
+ | echo ' (generated inline HTML)'; | ||
</ | </ | ||
+ | <PHP> | ||
+ | echo '< | ||
+ | echo '< | ||
+ | echo '</ | ||
+ | </ | ||
</ | </ | ||
<php> | <php> | ||
- | echo 'Un logo produit par PHP :'; | + | echo 'The PHP version: '; |
- | echo '<img src="' | + | echo phpversion(); |
+ | echo ' (inline HTML)'; | ||
</ | </ | ||
+ | <PHP> | ||
+ | echo '< | ||
+ | echo '< | ||
+ | echo '</ | ||
+ | </ | ||
- | **NB** : L' | + | **Please Note**: HTML and PHP embedding is disabled by default in the configuration. |
- | ===== Macros | + | ===== RSS/ATOM Feed Aggregation |
+ | [[DokuWiki]] can integrate data from external XML feeds. For parsing the XML feeds, [[http:// | ||
- | Certains mot-clef modifient la manière dont DokuWiki | + | ^ Parameter |
+ | | any number | will be used as maximum number items to show, defaults to 8 | | ||
+ | | reverse | ||
+ | | author | ||
+ | | date | show item dates | | ||
+ | | description| show the item description. If [[doku> | ||
+ | | nosort | ||
+ | | //n//[dhm] | refresh period, where d=days, h=hours, m=minutes. (e.g. 12h = 12 hours). | | ||
+ | |||
+ | The refresh period defaults to 4 hours. Any value below 10 minutes will be treated as 10 minutes. [[wiki:DokuWiki]] will generally try to supply a cached version of a page, obviously this is inappropriate when the page contains dynamic external content. The parameter tells [[wiki: | ||
+ | |||
+ | By default the feed will be sorted by date, newest items first. You can sort it by oldest first using the '' | ||
+ | |||
+ | **Example: | ||
+ | |||
+ | {{rss> | ||
+ | |||
+ | {{rss> | ||
+ | |||
+ | |||
+ | ===== Control Macros ===== | ||
+ | |||
+ | Some syntax influences how DokuWiki renders a page without creating any output it self. The following control | ||
^ Macro ^ Description | | ^ Macro ^ Description | | ||
- | | %%~~NOTOC~~%% | + | | %%~~NOTOC~~%% |
- | | %%~~NOCACHE~~%% | Par défaut, | + | | %%~~NOCACHE~~%% | DokuWiki |
- | ===== Extensions de syntaxe | + | ===== Syntax Plugins |
- | La syntaxe de DokuWiki | + | DokuWiki's syntax can be extended by [[doku> |
~~INFO: | ~~INFO: | ||
+ |