wiki:syntax

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.

Full english version

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.

Ci sono diversi modi di creare i link:

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 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.

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 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:


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:

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}}

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
  1. The same list but ordered
  2. Another item
    1. Just use indention for deeper levels
  3. 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

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 |

Si possono aggiungere note a piè di pagina 1) usando doppie parentesi.

Si possono aggiungere note a piè di pagina ((riferimento a Zen and The Art of War)) usando doppie parentesi.
  • :?: :?:
  • :!: :!:
  • FIXME FIXME
  • DELETEME DELETEME

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'..."

1)
riferimento a Zen and The Art of War
  • wiki/syntax.1194953140.txt.gz
  • Last modified: 2021/12/02 22:55
  • (external edit)