This is an old revision of the document!
Sintassi
La pagina del Wiki è interamente in testo. Alcune combinazioni particolari di caratteri permettono di creare le formattazioni: liste puntate, tabelle, links ecc. Alcune sono disponibili tramite i bottoni nella pagina edit (es. il grassetto o i titoli), altre vanno scritte a mano (es. le tabelle).
Le istruzioni riportate di seguito sono tutto quello che c'è da sapere nella normalità dei casi. Le istruzioni complete (in inglese) sono qui: Sintassi avanzata.
Formattazione base del testo
Il wiki supporta grassetto, italico, sottolineato e testo monospaced. Ovviamente si possono combinare tutti.
Il wiki supporta **grassetto**, //italico//, __sottolineato__ e testo ''monospaced''. Ovviamente si possono **__//''combinare''//__** tutti.
Il testo si può anche marcare come cancellato.
Il testo si può anche marcare come <del>cancellato</del>.
I paragrafi sono creati dalle linee vuote. Se vuoi forzare un accapo si possono aggiungere due backslash seguiti da uno spazio o alla fine della linea.
Questo è del testo con alcuni accapo
Nota che i
due backslashes sono riconosciuti solo alla fine della linea
o seguiti da
uno spazio \\qui non c'è.
Questo è del testo con alcuni accapo\\ Nota che i due backslashes sono riconosciuti solo alla fine della linea\\ o seguiti da\\ uno spazio \\qui non c'è.
Accapo forzati dovrebbero essere usati solo se davvero necessari.
Links
Ci sono diversi modi di creare i link:
Esterni
I link esterni vengono riconosciuti automagicamente: http://www.google.com, www.google.com e indirizzi email tipo info@google.it
I link esterni vengono riconosciuti automagicamente: http://www.google.com, www.google.com e indirizzi email tipo info@google.it
Internal
Internal links are created by using square brackets. You can either just give a wiki:pagename or use an additional Title Text. Wiki pagenames are converted to lowercase automatically, special characters are not allowed.
Internal links are created by using square brackets. You can either just give a [[pagename]] or use an additional [[pagename|Title Text]]. Wiki pagenames are converted to lowercase automatically, special chars are not allowed.
You can use namespaces by using a colon in the pagename.
You can use [[wiki:namespaces]] by using a colon in the pagename.
For details about namespaces see wiki:namespaces.
Linking to a specific section is possible, too. Just add the section name behind a hash character as known from HTML. This links to this Section.
This links to [[syntax#internal|this Section]].
Notes:
- Links to existing pages are shown in a different style from nonexisting ones.
- DokuWiki does not use CamelCase to automatically create links by default, but this behaviour can be enabled in the wiki:config file. Hint: If DokuWiki is a link, then it's enabled.
- When a section's heading is changed, its bookmark changes, too. So don't rely on section linking too much.
Sectioning
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 ~~NOTOC~~ in the document.
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:
Immagini e files allegati
Si possono includere immagini e files sia interni che esterni tra parentesi graffe, e opzionalmente se ne può indicare la dimensione. Se il file non è un'immagine ne viene visualizzata l'icona (es. pdf, doc, xls ecc.)
Dimensioni reali: {{http://server.cone.it/logo_cone.gif}}
Ridimensionato in larghezza: {{http://server.cone.it/logo_cone.gif?120}}
Ridimensionato completamente: {{http://server.cone.it/logo_cone.gif?60x60}}
Con spazi a destra e sinistra si può scegliere l'allineamento.
{{http://server.cone.it/logo_cone.gif}}
{{http://server.cone.it/logo_cone.gif }}
{{ http://server.cone.it/logo_cone.gif}}
Lists
Dokuwiki supports ordered and unordered lists. To create a list item, indent your text by two spaces and use a * for unordered lists or a - for ordered ones.
- 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
* 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
Image Links
You can also use an image to link to another internal or external page by combining the syntax for links and images (see below) like this:
[[http://www.php.net|{{wiki:dokuwiki-128.png}}]]
Please note: The image formatting is the only formatting syntax accepted in link names.
The whole image and link syntax is supported (including image resizing, internal and external images and URLs and interwiki links).
Tabelle
DokuWiki supports a simple syntax to create tables.
| 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 2 Col 2 | Row 2 Col 3 |
Table rows have to start and end with a | for normal rows or a ^ for headers.
^ 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 2 Col 2 | Row 2 Col 3 |
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.
| 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 |
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 | no colspan this time | | ^ Heading 5 | Row 2 Col 2 | Row 2 Col 3 |
Note: Vertical spans (rowspan) are not possible.
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 |
This is how it looks in the source:
^ Table with alignment ^^^ | right| center |left | |left | right| center | | xxxxxxxxxxxx | xxxxxxxxxxxx | xxxxxxxxxxxx |
Footnotes
You can add footnotes 1) by using double parentheses.
You can add footnotes ((This is a footnote)) by using double parentheses.
Icone
:?:
:!:
FIXME
DELETEME
Segni tipografici
Il wiki converte alcuni caratteri di testo nell'equivalente tipograficamente corretto. Questo è un esempio di caratteri riconosciuti:
→ ← ↔ ⇒ ⇐ ⇔ » « – — 640×480 © ™ ® “He thought 'It's a wild world'…”
-> <- <-> => <= <=> >> << -- --- 640x480 (c) (tm) (r) "He thought 'It's a wild world'..."



