Differences
This shows you the differences between the selected revision and the current version of the page.
wiki:syntax 2006/03/09 22:32 | wiki:syntax 2008/08/22 08:59 current | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Formatting Syntax ====== | + | ====== Sintassi di formattazione ====== |
- | [[wiki: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 the //Edit this page// button at the top or bottom of the page. If you want to try something, just use the [[playground:playground|playground]] page. The simpler markup is easily accessible via [[doku>wiki:quickbuttons|quickbuttons]], too. | + | [[wiki:DokuWiki]] ingloba un semplice linguaggio di marcatori che cerca di rendere il file dei dati il più leggibile possibile. Questa pagina contiene ogni possibile sintassi che si possa usare nell'editing delle pagine. Semplicemente dai un'occhiata al sorgente di questo documento cliccando su //Modifica questa pagina// nella parte alta o bassa della pagina. Il modo più semplice è facilmente accessibile pure tramite [[doku>quickbuttons]] (scorciatoie da tastiera). |
- | ===== Basic text formatting ===== | + | ===== Formattazione di base del testo ===== |
- | DokuWiki supports **bold**, //italic//, __underlined__ and ''monospaced'' texts. Of course you can **__//''combine''//__** all these. | + | DokuWiki permette testi con **grassetto**, //corsivo//, |
+ | __sottolineato__ e ''monospazio''. | ||
+ | Naturalmente si possono **__//''combinare''//__** tutti assieme. | ||
- | DokuWiki supports **bold**, //italic//, __underlined__ and ''monospaced'' texts. | + | DokuWiki permette testi con **grassetto**, //corsivo//, |
- | Of course you can **__//''combine''//__** all these. | + | __sottolineato__ e ''monospazio''. |
+ | Naturalmente si possono **__//''combinare''//__** tutti assieme. | ||
- | You can use <sub>subscript</sub> and <sup>superscript</sup>, too. | + | Si può usare anche <sub>apice</sub> e <sup>pedice</sup>. |
- | You can use <sub>subscript</sub> and <sup>superscript</sup>, too. | + | Si può usare anche <sub>apice</sub> e <sup>pedice</sup>. |
- | You can mark something as <del>deleted</del> as well. | ||
- | You can mark something as <del>deleted</del> as well. | + | Si può perfino marcare qualcosa come <del>cancellato</del>. |
- | **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. | + | Si può perfino marcare qualcosa come <del>cancellato</del>. |
- | This is some text with some linebreaks\\ Note that the | + | **I paragrafi** sono creati da righe vuote. Se vuoi **forzare un "a capo"** senza creare un paragrafo, puoi usare due barre inverse (\\) seguite da uno spazio o dalla fine della riga. |
- | two backslashes are only recognized at the end of a line\\ | + | |
- | or followed by\\ a whitespace \\this happens without it. | + | |
- | This is some text with some linebreaks\\ Note that the | + | Questo è un testo con degli "a capo"\\ Nota che |
- | two backslashes are only recognized at the end of a line\\ | + | due barre inverse sono riconosciute solo alla fine di una riga\\ |
- | or followed by\\ a whitespace \\this happens without it. | + | o seguite da\\ uno spazio \\questo succede se non ce lo metti. |
- | You should use forced newlines only if really needed. | + | Questo è un testo con degli "a capo"\\ Nota che |
+ | due barre inverse sono riconosciute solo alla fine di una riga\\ | ||
+ | o seguite da\\ uno spazio \\questo succede se non ce lo metti. | ||
- | ===== Links ===== | + | Dovresti forzare un "a capo" solo se è veramente indispensabile. |
- | DokuWiki supports multiple ways of creating links. | + | \\ |
+ | E' possibile pure la **quotazione del testo | ||
+ | ** | ||
- | ==== External ==== | + | Questa è la domanda |
+ | > Risposta 1 | ||
+ | >> Risposta 2 | ||
+ | >>> Risposta 3 | ||
+ | >>>> Risposta 4 | ||
+ | >>>>> Risposta 5 | ||
- | External links are recognized automagically: http://www.google.com or simply www.google.com - You can set Linknames, too: [[http://www.google.com|This Link points to google]]. Email addresses like this one: <andi@splitbrain.org> are recognized, too. | + | Questa è la domanda |
+ | > Risposta 1 | ||
+ | >> Risposta 2 | ||
+ | >>> Risposta 3 | ||
+ | >>>> Risposta 4 | ||
+ | >>>>> Risposta 5 | ||
- | DokuWiki supports multiple ways of creating links. External links are recognized | + | ===== Collegamenti ===== |
- | automagically: http://www.google.com or simply www.google.com - You can set | + | |
- | Linknames, too: [[http://www.google.com|This Link points to google]]. Email | + | |
- | addresses like this one: <andi@splitbrain.org> are recognized, too. | + | |
- | ==== Internal ==== | + | DokuWiki implementa numerosi modi per creare collegamenti. |
- | Internal links are created by using square brackets. You can either just give a [[doku>wiki:pagename]] or use an additional [[doku>wiki:pagename|Title Text]]. Wiki pagenames are converted to lowercase automatically, special characters are not allowed. | + | ==== Esterni ==== |
- | Internal links are created by using square brackets. You can either just give | + | I collegamenti esterni sono magicamente riconosciuti da soli: |
- | a [[pagename]] or use an additional [[pagename|Title Text]]. Wiki pagenames | + | http://www.google.com o semplicemente www.google.com |
- | are converted to lowercase automatically, special chars are not allowed. | + | Si possono aggiungere anche i nomi ai collegamenti: |
+ | [[http://www.google.com|Questo collegamento porta a Google]]. | ||
+ | Sono pure riconosciuti gli indirizzi email come questo: <andi@splitbrain.org> | ||
- | You can use [[wiki:namespaces]] by using a colon in the pagename. | + | I collegamenti esterni sono magicamente riconosciuti da soli: |
+ | http://www.google.com o semplicemente www.google.com | ||
+ | Si possono aggiungere anche i nomi ai collegamenti: | ||
+ | [[http://www.google.com|Questo collegamento porta a Google]]. | ||
+ | Sono pure riconosciuti gli indirizzi email come questo: <andi@splitbrain.org> | ||
- | You can use [[wiki:namespaces]] by using a colon in the pagename. | + | ==== Interni ==== |
- | For details about namespaces see [[doku>wiki:namespaces]]. | + | I collegamenti interni sono creati usando parentesi quadre. |
+ | Potete sia fornire un [[doku>wiki:pagename]] oppure usare | ||
+ | un [[doku>wiki:pagename|Title Text]] aggiuntivo. | ||
+ | I nomi di pagina (pagenames) sono convertiti automaticamente in minuscole, | ||
+ | i caratteri speciali non sono consentiti. | ||
- | Linking to a specific section is possible, too. Just add the sectionname behind a hash character as known from HTML. This links to [[syntax#internal|this Section]]. | ||
- | This links to [[syntax#internal|this Section]]. | + | I collegamenti interni sono creati usando parentesi quadre. |
+ | Potete sia fornire un [[doku>wiki:pagename]] oppure usare | ||
+ | un [[doku>wiki:pagename|Title Text]] aggiuntivo. | ||
+ | I nomi di pagina (pagenames) sono convertiti automaticamente in minuscole, | ||
+ | i caratteri speciali non sono consentiti. | ||
- | Notes: | + | Puoi usare le [[wiki:namespaces]] (cartelle) usando i due punti. |
- | * Links to [[wiki:syntax|existing pages]] are shown in a different style from [[wiki:nonexisting]] ones. | + | |
- | * DokuWiki does not use [[wp>CamelCase]] to automatically create links by default, but this behaviour can be enabled in the [[doku>config]] file. Hint: If DokuWiki is a link, then it's enabled. | + | Puoi usare le [[wiki:namespaces]] (cartelle) usando i due punti. |
- | * When a section's heading is changed, its bookmark changes, too. So don't rely on section linking too much. | + | |
+ | |||
+ | Per informazioni sui namespaces vedi [[doku>wiki:namespaces]]. | ||
+ | |||
+ | |||
+ | E' possibile pure il collegamento ad una specifica sezione. | ||
+ | Semplicemente aggiungi il nome della sezione dopo il carattere cancelletto come avviene nell'HTML. | ||
+ | Questo è un collegamento [[sintassi#interni|a questa sezione]]. | ||
+ | |||
+ | |||
+ | Questo è un collegamento [[sintassi#interni|a questa sezione]]. | ||
+ | |||
+ | Note: | ||
+ | |||
+ | * I collegamenti con le [[wiki:sintassi|pagine esistenti]] sono mostrati in uno stile differente da quelli alle [[wiki:non esistenti]]. | ||
+ | * DokuWiki non utilizza il [[wp>CamelCase]] di default per creare automaticamente dei collegamenti, ma questa funzione può essere abilitata nel file [[doku>config]] file. Suggerimento: se DokuWiki è un collegamento, allora la funzione è abilitata. | ||
+ | * Quando il titolo di unasezione viene modificato, anche il suo bookmark cambia. Quindi non esagerare nei collegamenti alle sezioni. | ||
==== Interwiki ==== | ==== Interwiki ==== | ||
- | DokuWiki supports [[doku>wiki:interwiki|Interwiki]] links. These are quick links to other Wikis. For example this is a link to Wikipedia's page about Wikis: [[wp>Wiki]]. | + | DokuWiki riconosce i collegamenti [[doku>wiki:interwiki]]. |
+ | Questi sono collegamenti veloci ad altri Wiki. | ||
+ | Per esempio, questo è un collegamento alla pagina di Wikpedia sui Wiki: [[wp>Wiki]]. | ||
- | DokuWiki supports [[doku>wiki:interwiki|Interwiki]] links. These are quick links to other Wikis. | + | DokuWiki riconosce i collegamenti [[doku>wiki:interwiki]]. |
- | For example this is a link to Wikipedia's page about Wikis: [[wp>Wiki]]. | + | Questi sono collegamenti veloci ad altri Wiki. |
+ | Per esempio, questo è un collegamento alla pagina di Wikpedia sui Wiki: [[wp>Wiki]]. | ||
==== Windows Shares ==== | ==== Windows Shares ==== | ||
- | Windows shares like [[\\server\share|this]] are recognized, too. Please note that these only make sense in a homogenous user group like a corporate [[wp>Intranet]]. | + | Anche Windows shares come [[\\server\share|questa]] sono riconosciute. Fai attenzione che una cosa del genere ha senso solo in un gruppo omogeneo di utenti come una [[wp>Intranet]] aziendale. |
- | Windows Shares like [[\\server\share|this]] are recognized, too. | + | Anche Windows shares come[[\\server\share|questa]] sono riconosciute. |
- | Notes: | + | Nota: |
- | * For security reasons direct browsing of windows shares only works in Microsoft Internet Explorer per default (and only in the "local zone"). | + | * Per motivi di sicurezza il browsing diretto di windows shares funziona solo in Microsoft Internet Explorer. |
- | * For Mozilla and Firefox it can be enabled through the config option [[http://www.mozilla.org/quality/networking/docs/netprefs.html#file|security.checkloaduri]] but this is not recommended | + | |
- | * See [[bug>151]] for more info | + | |
- | ==== Image Links ==== | + | ==== Collegamenti tramite immagini ==== |
- | 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: | + | Puoi usare anche collegamenti con dimmagini ad altre pagine sia interne che esterne combinando la sintassi per i collegamenti con quella per le immagini (vedi in seguito) come segue: |
- | [[http://www.php.net|{{wiki:dokuwiki-128.png}}]] | + | [[http://www.php.net|{{wiki:php-powered.png}}]] |
- | [[http://www.php.net|{{wiki:dokuwiki-128.png}}]] | + | [[http://www.php.net|{{wiki:php-powered.png}}]] |
- | Please note: The image formatting is the only formatting syntax accepted in link names. | + | Nota bene: la formattazione delle immagini è l'unica formattazione ammessa nei nomi dei collegamenti. |
- | The whole [[#images_and_other_files|image]] and [[#links|link]] syntax is supported (including image resizing, internal and external images and URLs and interwiki links). | + | ===== Note a piè di pagina ===== |
- | ===== Footnotes ===== | + | Puoi inserire note a piè di pagina ((Questa è una nota a piè di pagina)) usando una doppia parentesi. |
- | You can add footnotes ((This is a footnote)) by using double parentheses. | ||
- | You can add footnotes ((This is a footnote)) by using double parentheses. | + | Puoi inserire note a piè di pagina ((Questa è una nota a piè di pagina)) usando una doppia parentesi. |
- | ===== Sectioning ===== | + | ===== Sezioni ===== |
- | 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. | + | Si possono usare fino a cinque differenti livelli di intestazione per strutturare i contenuti. Se ci sono più di tre intestazioni viene generato automaticamente un indice -- questo può essere disabilitato inserendo la stringa ''<nowiki>~~NOTOC~~</nowiki>'' nel documento. |
- | ==== Headline Level 3 ==== | + | ==== Intestazione livello 3 ==== |
- | === Headline Level 4 === | + | === Intestazione livello 4 === |
- | == Headline Level 5 == | + | == Intestazione livello 5 == |
- | ==== Headline Level 3 ==== | + | ==== Intestazione livello 3 ==== |
- | === Headline Level 4 === | + | === Intestazione livello 4 === |
- | == Headline Level 5 == | + | == Intestazione livello 5 == |
- | By using four or more dashes, you can make a horizontal line: | + | |
+ | Usando quattro lineette si fa una linea orizzontale: | ||
---- | ---- | ||
- | ===== Images and other files ===== | + | ===== Immagini ed altri files ===== |
- | You can include external and internal [[doku>images]] with curly brackets. Optionally you can specify the size of them. | + | Si possono includere immagini ([[doku>images]]) esterne ed interne usando le parentesi graffe. |
+ | Volendo si può specificare anche la loro dimensione. | ||
- | Real size: {{wiki:dokuwiki-128.png}} | + | Dimensioni reali: {{wiki:php-powered.png}} |
- | Resize to given width: {{wiki:dokuwiki-128.png?50}} | + | Ridimensionamento a larghezza data: {{wiki:php-powered.png?100}} |
- | Resize to given width and height: {{wiki:dokuwiki-128.png?200x50}} | + | Ridimensionamento a larghezza ed altezza data: {{wiki:php-powered.png?100x100}} |
- | Resized external image: {{http://de3.php.net/images/php.gif?200x50}} | + | Ridimensionamento di immagine esterna: {{http://de3.php.net/images/php.gif?100x100}} |
- | Real size: {{wiki:dokuwiki-128.png}} | + | Dimensioni reali: {{wiki:php-powered.png}} |
- | Resize to given width: {{wiki:dokuwiki-128.png?50}} | + | Ridimensionamento a larghezza data: {{wiki:php-powered.png?100}} |
- | Resize to given width and height: {{wiki:dokuwiki-128.png?200x50}} | + | Ridimensionamento a larghezza ed altezza data: {{wiki:php-powered.png?100x100}} |
- | Resized external image: {{http://de3.php.net/images/php.gif?200x50}} | + | Ridimensionamento di immagine esterna: {{http://de3.php.net/images/php.gif?100x100}} |
+ | Utilizzando gli spazi a destra o a sinistra si può scegliere l'allineamento: | ||
- | By using left or right whitespaces you can choose the alignment | + | {{ wiki:php-powered.png}} |
- | {{ wiki:dokuwiki-128.png}} | + | {{wiki:php-powered.png }} |
- | {{wiki:dokuwiki-128.png }} | + | {{ wiki:php-powered.png }} |
- | {{ wiki:dokuwiki-128.png }} | + | {{ wiki:php-powered.png}} |
+ | {{wiki:php-powered.png }} | ||
+ | {{ wiki:php-powered.png }} | ||
- | {{ wiki:dokuwiki-128.png}} | + | Naturalmente si può aggiungere anche un nome all'immagine (che viene mostrato nella maggioranza dei browsers con una scritta fluttuante) |
- | {{wiki:dokuwiki-128.png }} | + | |
- | {{ wiki:dokuwiki-128.png }} | + | |
- | Of course, you can add a title (displayed as a tooltip by most browsers), too. | + | {{ wiki:php-powered.png |Questo è il nome dell'immagine}} |
- | {{ wiki:dokuwiki-128.png |This is the caption}} | + | {{ wiki:php-powered.png |Questo è il nome dell'immagine}} |
- | {{ wiki:dokuwiki-128.png |This is the caption}} | + | Se si specifica il nome di un file (interno o esterno) che non sia una immagine(''gif,jpeg,png''), in tal caso verrà mostrato come collegamento. |
- | If you specify a filename (external or internal) that is not an image (''gif,jpeg,png''), then it will be displayed as a link instead. | + | ===== Liste ===== |
- | For linking an image to another page see [[Image Links]] above. | + | Dokuwiki utilizza liste numerate e non numerate. Per creare un elemento di una lista, occorre indentare il testo di due spazi ed usare un ''*'' per le liste non numerate e un ''-'' per quelle numerate. |
- | ===== Lists ===== | + | * Questa è una lista |
+ | * Il secondo elemento | ||
+ | * Si possono avere differenti livelli | ||
+ | * Un altro elemento | ||
- | 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. | + | - La stessa lista numerata |
- | + | - Un altro elemento | |
- | * This is a list | + | - Usa l'indentazione per livelli più profondi |
- | * The second item | + | - Ecco fatto |
- | * You may have different levels | + | |
- | * Another item | + | |
- | + | ||
- | - The same list but ordered | + | |
- | - Another item | + | |
- | - Just use indention for deeper levels | + | |
- | - That's it | + | |
<code> | <code> | ||
- | * This is a list | + | * Questa è una lista |
- | * The second item | + | * Il secondo elemento |
- | * You may have different levels | + | * Si possono avere differenti livelli |
- | * Another item | + | * Un altro elemento |
- | - The same list but ordered | + | - La stessa lista numerata |
- | - Another item | + | - Un altro elemento |
- | - Just use indention for deeper levels | + | - Usa l'indentazione per livelli più profondi |
- | - That's it | + | - Ecco fatto |
</code> | </code> | ||
- | ===== Smileys ===== | + | ===== Faccine===== |
- | DokuWiki converts commonly used [[wp>emoticon]]s to their graphical equivalents. More smileys can be placed in the ''smiley'' directory and configured in the ''conf/smileys.conf'' file. Here is an overview of Smileys included in DokuWiki. | + | DokuWiki converte gli [[wp>emoticon]]s comunemente usati nel loro equivalente grafico. Altre faccine possono essere inserite nella directory ''smiley'' e configurate nel file ''conf/smileys.conf''. Ecco un elenco delle faccine incluse in DokuWiki. |
* 8-) %% 8-) %% | * 8-) %% 8-) %% | ||
Line 211: | Line 250: | ||
* DELETEME %% DELETEME %% | * DELETEME %% DELETEME %% | ||
- | ===== Typography ===== | + | ===== Caratteri speciali===== |
- | [[DokuWiki]] can convert simple text characters to their typographically correct entities. Here is an example of recognized characters. | + | [[DokuWiki]] può convertire semplici caratteri di testo nei loro corretti equivalenti tipografici. |
+ | Ecco un esempio di caratteri riconosciuti: | ||
-> <- <-> => <= <=> >> << -- --- 640x480 (c) (tm) (r) | -> <- <-> => <= <=> >> << -- --- 640x480 (c) (tm) (r) | ||
Line 223: | Line 263: | ||
</code> | </code> | ||
- | Please note: These conversions can be turned off through a [[doku>wiki:config#typography|config option]] and a [[doku>wiki:entities|pattern file]]. | + | Attenzione: questa conversionepuò essere disabilitata nel file di configurazione. |
- | ===== Quoting ===== | + | ===== Tabelle ===== |
- | Some times you want to mark some text to show it's a reply or comment. You can use the following syntax: | + | DokuWiki ha una sintassi semplice per costruire delle tabelle. |
- | I think we should do it | + | ^ Titolo 1 ^ Titolo 2 ^ Titolo 3 ^ |
- | + | | Riga 1 Col 1 | Riga 1 Col 2 | Riga 1 Col 3 | | |
- | > No we shouldn't | + | | Riga 2 Col 1 | unione celle (nota la doppia barra) || |
- | + | | Riga 3 Col 1 | Riga 2 Col 2 | Riga 2 Col 3 | | |
- | >> Well, I say we should | + | |
- | + | ||
- | > Really? | + | |
- | + | ||
- | >> Yes! | + | |
- | + | ||
- | >>> Then lets do it! | + | |
- | I think we should do it | + | \\ |
+ | Le righe di una tavola iniziano con ''|'' per le righe normali o con ''^'' per le intestazioni. | ||
- | > No we shouldn't | + | ^ Titolo 1 ^ Titolo 2 ^ Titolo 3 ^ |
+ | | Riga 1 Col 1 | Riga 1 Col 2 | Riga 1 Col 3 | | ||
+ | | Riga 2 Col 1 | unione celle (nota la doppia barra) || | ||
+ | | Riga 3 Col 1 | Riga 2 Col 2 | Riga 2 Col 3 | | ||
- | >> Well, I say we should | ||
- | > Really? | + | Per collegare le celle in orizzontale basta lasciare completamente vuota la cella successiva come mostrato qui sopra. Accertatevi che ci sia sempre lo stesso numero di separatori! |
- | >> Yes! | + | Sono possibili anche delle intestazioni verticali nelle tabelle. |
- | >>> Then lets do it! | + | | ^ Titolo 1 ^ Titolo 2 ^ |
+ | ^ Titolo 3 | Riga 1 Col 2 | Riga 1 Col 3 | | ||
+ | ^ Titolo 4 | niente unione, stavolta | | | ||
+ | ^ Titolo 5 | Riga 2 Col 2 | Riga 2 Col 3 | | ||
+ | \\ | ||
+ | Come si può notare, è il separatore di cella che sta davanti alla cella a decidere la formattazione: | ||
- | ===== Tables ===== | + | | ^ Titolo 1 ^ Titolo 2 ^ |
+ | ^ Titolo 3 | Riga 1 Col 2 | Riga 1 Col 3 | | ||
+ | ^ Titolo 4 | niente unione, stavolta | | | ||
+ | ^ Titolo 5 | Riga 2 Col 2 | Riga 2 Col 3 | | ||
- | DokuWiki supports a simple syntax to create tables. | + | \\ |
+ | Nota: Unioni verticali di celle non sono possibili. | ||
- | ^ 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. | + | E' pure possibile allineare i contenuti della tabella. Semplicemente aggiungendo almeno due spazi dalla parte opposta del testo: aggiungendo due spazi alla sinistra per allineare a destra, due spazi a destra per allineare a sinistra e due spazi almeno da entrambe le parti per centrare il testo. |
- | ^ 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! | + | ^ Tabella allineata ^^^ |
- | + | | destra| centro |sinistra | | |
- | Vertical tableheaders are possible, too. | + | |sinistra | destra| centro | |
- | + | ||
- | | ^ 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 | | | xxxxxxxxxxxx | xxxxxxxxxxxx | xxxxxxxxxxxx | | ||
This is how it looks in the source: | This is how it looks in the source: | ||
- | ^ Table with alignment ^^^ | + | ^ Tabella allineata ^^^ |
- | | right| center |left | | + | | destra| centro |sinistra | |
- | |left | right| center | | + | |sinistra | destra| centro | |
| xxxxxxxxxxxx | xxxxxxxxxxxx | xxxxxxxxxxxx | | | xxxxxxxxxxxx | xxxxxxxxxxxx | xxxxxxxxxxxx | | ||
- | ===== Nonparsed Blocks ===== | + | ===== Blocchi di codice non analizzati ===== |
- | You can include non parsed blocks into your documents by either indenting them by at least two spaces (like used for the previous examples) or by using the tags ''code'' or ''file''. | + | Si possono includere anche blocchi di codice non analizzati nei propri documenti sia indentandoli con almeno due spazi vuoti (come è stato usato per gli esempi precedenti), sia usando i tags ''code'' o ''file''. |
<code> | <code> | ||
- | This is preformatted code all spaces are preserved: like <-this | + | Questo è un codice preformattato, tutti gli spazi sono mantenuti: come <-questo |
</code> | </code> | ||
<file> | <file> | ||
- | This is pretty much the same, but you could use it to show that you quoted a file. | + | Questo è lo stesso molto carino, ma ma si può usare per fare vedere che si sta evidenziando. |
</file> | </file> | ||
- | To let the parser ignore an area completely (ie. do no formatting on it), enclose the area either with ''nowiki'' tags or even simpler, with double percent signs ''<nowiki>%%</nowiki>''. | + | Per indicare all'analizzatore di ignorare completamente un'area (quindi di non formattarla), includere l'area con i tags ''nowiki'' o, ancora più semplice, con un doppio segno di percentuale ''<nowiki>%%</nowiki>''. |
<nowiki> | <nowiki> | ||
- | This is some text which contains addresses like this: http://www.splitbrain.org and **formatting**, but nothing is done with it. | + | Questo testo contiene collegamenti come questo: http://www.splitbrain.org e **formattazione**, ma questi non vengono interpretati. |
</nowiki> | </nowiki> | ||
- | See the source of this page to see how to use these blocks. | + | Osserva la sorgente di questa pagina per vedere come usare questi blocchi. |
- | ===== Syntax Highlighting ===== | + | ===== Evidenziare la sintassi ===== |
- | [[DokuWiki]] can highlight sourcecode, which makes it easier to read. It uses the [[http://qbnz.com/highlighter/|GeSHi]] Generic Syntax Highlighter -- so any language supported by GeSHi is supported. The syntax is the same like in the code block in the previous section, but this time the name of the used language is inserted inside the tag. Eg. ''<nowiki><code java></nowiki>''. | + | [[DokuWiki]] può evidenziare il codice sorgente, cosa che lo rende più semplice da leggere. |
+ | Utilizza il [[http://qbnz.com/highlighter/|GeSHi]] Generic Syntax Highlighter -- pertanto ogni linguaggio supportato da GeSHi è supportato. | ||
+ | La sintassi è la stessa dei blocchi di codice nella sezione precedente, ma questa volta il nome del linguaggio usato è inserito nel tag. Per esempio: ''<nowiki><code java></nowiki>''. | ||
<code java> | <code java> | ||
Line 337: | Line 356: | ||
</code> | </code> | ||
- | The following language strings are currently recognized: //actionscript, actionscript-french, ada, apache, applescript, asm, asp, autoit, bash, blitzbasic, caddcl, cadlisp, c, c_mac, cfm, cpp, csharp, css, delphi, diff, d, div, dos, eiffel, freebasic, gml, html4strict, ini, inno, java, java5, javascript, lisp, lua, matlab, mpasm, mysql, nsis, objc, ocaml, ocaml-brief, oobas, oracle8, pascal, perl, php-brief, php, python, qbasic, scheme, sdlbasic, smarty, sql, tsql, robots, ruby, vb, vbnet, vhdl, visualfoxpro, xml// | + | I seguenti linguaggi sono riconosciuti correttamente: //actionscript, ada, apache, asm, asp, bash, caddcl, cadlisp, c, c_mac, cpp, csharp, css, delphi, html4strict, java, javascript, lisp, lua, nsis, objc, oobas, pascal, perl, php-brief, php, python, qbasic, smarty, sql, vb, vbnet, visualfoxpro, xml// |
- | ===== Embedding HTML and PHP ===== | + | ===== Inclusione di HTML ePHP ===== |
- | You can embed raw HTML or PHP code into your documents by using the ''html'' or ''php'' tags like this: | + | Si possono includere righe di codice HTML o PHP nei documenti isando i tags ''html'' o ''php'' tags come nell'esempio seguente: |
<code> | <code> | ||
<html> | <html> | ||
- | This is some <font color="red" size="+1">HTML</font> | + | Questo è codice <font color="red" size="+1">HTML</font> |
</html> | </html> | ||
</code> | </code> | ||
<html> | <html> | ||
- | This is some <font color="red" size="+1">HTML</font> | + | Questo è codice <font color="red" size="+1">HTML</font> |
</html> | </html> | ||
<code> | <code> | ||
<php> | <php> | ||
- | echo 'A logo generated by PHP:'; | + | echo 'Un logo generato dal PHP:'; |
echo '<img src="' . $_SERVER['PHP_SELF'] . '?=' . php_logo_guid() . '" alt="PHP Logo !" />'; | echo '<img src="' . $_SERVER['PHP_SELF'] . '?=' . php_logo_guid() . '" alt="PHP Logo !" />'; | ||
</php> | </php> | ||
Line 360: | Line 379: | ||
<php> | <php> | ||
- | echo 'A logo generated by PHP:'; | + | echo 'Un logo generato dal PHP:'; |
echo '<img src="' . $_SERVER['PHP_SELF'] . '?=' . php_logo_guid() . '" alt="PHP Logo !" />'; | echo '<img src="' . $_SERVER['PHP_SELF'] . '?=' . php_logo_guid() . '" alt="PHP Logo !" />'; | ||
</php> | </php> | ||
- | **Please Note**: HTML and PHP embedding is disabled by default in the configuration. If disabled, the code is displayed instead of executed. | + | **Attenzione**: l'inclusione di HTML e PHP è disabilitata di default nella configurazione. Se è disabilitata, il codice viene mostrato invece di venire eseguito. |
- | + | ||
- | ===== Syntax Plugins ===== | + | |
- | + | ||
- | DokuWiki's syntax can be extended by [[doku>wiki: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: | + | |
- | + | ||
- | ~~INFO:syntaxplugins~~ | + |