Differenze
Queste sono le differenze tra la revisione selezionata e la versione attuale della pagina.
Prossima revisione | Revisione precedente | ||
wiki:syntax [15/12/2017 09:01] 127.0.0.1 modifica esterna |
wiki:syntax [22/01/2021 15:14] (versione attuale) |
||
---|---|---|---|
Linea 1: | Linea 1: | ||
- | ====== | + | ====== |
+ | [[doku> | ||
+ | ===== Basi per la Formattazione del testo ===== | ||
- | [[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: | + | DokuWiki |
- | ===== Basic Text Formatting ===== | + | DokuWiki supporta testi in **grassetto**, |
+ | Naturalmente tutti questi si possono **__//'' | ||
- | DokuWiki supports **bold**, | + | Si possono usare anche < |
- | | + | |
- | Of course you can **__//'' | + | |
- | You can use <sub>subscript</sub> and < | + | Inoltre si può contrassegnare qualcosa come <del>cancellato</del>. |
- | | + | |
- | You can mark something as < | + | I **paragrafi** sono creati da righe vuote. Se si vuole **forzare un ritorno a capo** senza un paragrafo, si possono usare due barre retroverse seguite da uno spazio bianco o dalla fine della riga. |
- | You can mark something as <del> | + | Questo è del testo con qualche interruzione di linea\\ Notare che le |
+ | due barre retroverse sono riconosciute soltanto alla fine di una linea\\ | ||
+ | oppure quando seguite da\\ uno spazio bianco \\ecco cosa succede senza di questo. | ||
- | **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. | + | Questo è del testo con qualche interruzione di linea\\ Notare che le |
+ | due barre retroverse sono riconosciute soltanto alla fine di una riga\\ | ||
+ | oppure quando seguite da\\ uno spazio bianco \\ecco cosa succede senza di questo. | ||
- | This is some text with some linebreaks\\ Note that the | + | I ritorni |
- | two backslashes are only recognized at the end of a line\\ | + | ===== Collegamenti ===== |
- | or followed by\\ a whitespace \\this happens without it. | + | |
- | This is some text with some linebreaks\\ Note that the | + | DokuWiki supporta molteplici modi per la creazione di collegamenti. |
- | two backslashes are only recognized at the end of a line\\ | + | ==== Esterni ==== |
- | or followed by\\ a whitespace \\this happens without it. | + | |
- | You should use forced newlines only if really needed. | + | I collegamenti esterni sono riconosciuti automaticamente: |
- | ===== Links ===== | + | DokuWiki supporta molteplici modi per la creazione di collegamenti. I collegamenti esterni sono riconosciuti |
+ | automaticamente: | ||
+ | anche i testi dei collegamenti: | ||
+ | ==== Interni | ||
- | DokuWiki supports multiple ways of creating links. | + | I collegamenti interni sono creati usando le parentesi quadre. Si può immettere una [[pagina]] o, in alternativa, |
- | ==== External ==== | + | I collegamenti interni sono creati usando le parentesi quadre. Si può immettere una [[pagina]] |
+ | o, in alternativa, | ||
- | External links are recognized automagically: | + | [[doku>it:pagename|I nomi delle pagine wiki]] sono convertiti automaticamente in minuscolo, i caratteri speciali non sono consentiti. |
- | DokuWiki supports multiple ways of creating links. External links are recognized | + | Si può specificare la [[manuale:categoria]] usando i due punti (:) nel nome della pagina. |
- | automagically: | + | |
- | link text as well: [[http:// | + | |
- | addresses like this one: < | + | |
- | ==== Internal ==== | + | Si può specificare la [[manuale: |
- | Internal links are created by using square brackets. You can either just give a [[pagename]] or use an additional [[pagename|link text]]. | + | Per i dettagli si veda [[doku> |
- | Internal links are created by using square brackets. You can either just give | + | È pure possibile realizzare collegamenti a una specifica sezione. È sufficiente aggiungere il nome della sezione prima del carattere //diesis// (#), come è noto dall' |
- | | + | |
- | [[doku> | + | Questo collegamento punta a [[syntax# |
- | You can use [[some:namespaces]] by using a colon in the pagename. | + | Note: |
- | | + | |
+ | * DokuWiki non usa la sintassi [[wpit> | ||
+ | * Quando l' | ||
- | For details about namespaces see [[doku> | + | ==== Interwiki ==== |
- | 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# | + | Dokuwiki supporta i collegamenti [[doku> |
- | | + | |
+ | Per esempio, questo collegamento punta alla pagina in italiano di Wikipedia riguardante i Wiki: [[wpit> | ||
- | Notes: | ||
- | * Links to [[syntax|existing pages]] are shown in a different style from [[nonexisting]] ones. | + | ==== Partizioni Windows ==== |
- | * DokuWiki does not use [[wp> | + | |
- | * When a section' | + | |
- | ==== Interwiki ==== | + | Le partizioni Windows come [[\\server\share|questa]] sono pure riconosciute. Notare che esse hanno un senso soltanto in un gruppo omogeneo di utenti come in una [[wpit> |
- | DokuWiki supports | + | Le partizioni Windows come [[\\server\share|questa]] sono pure riconosciute. |
- | DokuWiki supports [[doku> | + | Note: |
- | For example this is a link to Wikipedia' | + | |
- | ==== Windows | + | * Per ragioni di sicurezza la navigazione diretta di partizioni |
- | + | * Per Mozilla | |
- | Windows shares like [[\\server\share|this]] are recognized, too. Please note that these only make sense in a homogeneous user group like a corporate [[wp> | + | * Vedere |
- | + | ==== Collegamenti a immagini ==== | |
- | Windows Shares like [[\\server\share|this]] are recognized, too. | + | |
- | + | ||
- | Notes: | + | |
- | + | ||
- | * For security reasons direct browsing of windows shares only works in Microsoft Internet Explorer | + | |
- | * For Mozilla | + | |
- | <?php | + | |
- | /** | + | |
- | * Customization of the english language file | + | |
- | * Copy only the strings that needs to be modified | + | |
- | */ | + | |
- | $lang[' | + | |
- | </ | + | |
- | ==== Image Links ==== | + | Si può anche usare un' |
- | You can also use an image to link to another internal or external page by combining the syntax for links and [[# | + | |
- | | + | [[http://www.php.net|{{wiki: |
- | [[http://php.net|{{wiki: | + | Notare: la formattazione dell' |
- | Please note: The image formatting is the only formatting syntax accepted in link names. | + | L' |
- | The whole [[# | + | ----- |
- | ===== Footnotes ===== | ||
- | You can add footnotes ((This is a footnote)) by using double parentheses. | + | ===== Note a piè di pagina ===== |
- | You can add footnotes | + | Si possono aggiungere note a piè di pagina |
- | ===== Sectioning | + | Si possono aggiungere note a piè di pagina ((Questa è una nota a piè di pagina)) usando parentesi doppie. |
+ | ===== Suddivisione in 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 | + | Si possono usare fino a cinque differenti livelli di intestazione per strutturare il contenuto. Se si hanno più di tre intestazioni, un indice dei contenuti è generato automaticamente |
- | ==== Headline Level 3 ==== | ||
- | === Headline Level 4 === | ||
- | == Headline Level 5 == | ||
- | | + | ==== Livello di intestazione |
- | === Headline Level 4 === | + | === Livello di intestazione |
- | == Headline Level 5 == | + | == Livello di intestazione |
- | By using four or more dashes, you can make a horizontal line: | + | ==== Livello di intestazione 3 ==== |
+ | === Livello di intestazione 4 === | ||
+ | == Livello di intestazione 5 == | ||
+ | Usando quattro o più trattini, si può fare una linea orizzontale: | ||
---- | ---- | ||
+ | ===== Immagini e altri file ===== | ||
- | ===== Media Files ===== | + | Si possono includere [[doku> |
- | You can include external and internal [[doku> | + | Dimensione reale: |
- | Real size: {{wiki: | + | Ridimensionata a una larghezza data: {{wiki: |
- | Resize to given width: {{wiki: | + | Ridimensionata a larghezza e altezza date((quando il rapporto tra la larghezza e l' |
- | Resize to given width and height((when the aspect ratio of the given width and height doesn' | + | Immagine esterna ridimensionata: |
- | Resized external image: | + | Dimensione reale: |
+ | Ridimensionata a una larghezza data: {{wiki: | ||
+ | Ridimensionata a larghezza e altezza date: {{wiki: | ||
+ | Immagine esterna ridimensionata: | ||
- | Real size: {{wiki: | ||
- | Resize to given width: | ||
- | Resize to given width and height: {{wiki: | ||
- | Resized external image: | ||
- | + | Usando spazi bianchi a sinistra o a destra si può scegliere l' | |
- | By using left or right whitespaces you can choose the alignment. | + | |
{{ wiki: | {{ wiki: | ||
Linea 152: | Linea 141: | ||
{{ wiki: | {{ wiki: | ||
+ | |||
{{ wiki: | {{ wiki: | ||
Linea 157: | Linea 147: | ||
{{ wiki: | {{ wiki: | ||
- | Of course, you can add a title (displayed as a tooltip by most browsers), too. | + | Naturalmente, si può aggiungere anche un titolo |
- | {{ wiki: | + | {{ wiki: |
- | {{ wiki: | + | {{ wiki: |
- | For linking an image to another page see [[#Image Links]] above. | + | Per collegare un' |
- | ==== Supported Media Formats | + | ==== Formati multimediali supportati |
- | DokuWiki | + | DokuWiki |
- | | Image | '' | + | | Immagini |
| Video | '' | | Video | '' | ||
| Audio | '' | | Audio | '' | ||
| Flash | '' | | Flash | '' | ||
- | If you specify a filename that is not a supported media format, then it will be displayed as a link instead. | + | Se si specifica un nome file che non è un formato di file multimediale supportato, verrà visualizzato come collegamento. |
- | By adding | + | Aggiungendo |
{{wiki: | {{wiki: | ||
- | {{wiki: | + | {{wiki: |
- | ==== Fallback Formats | + | ==== Formati alternativi |
- | Unfortunately not all browsers understand all video and audio formats. To mitigate the problem, you can upload your file in different formats for maximum | + | Sfortunatamente non tutti i browser comprendono tutti i formati |
- | For example consider this embedded mp4 video: | + | Ad esempio, considera questo |
- | {{video.mp4|A funny video}} | + | {{video.mp4|Un video divertente}} |
- | When you upload a '' | + | Quando carichi "video.webm" e "video.ogv" oltre al video "video.mp4" di riferimento, DokuWiki |
- | Additionally | + | Inoltre |
- | ===== Lists ===== | ||
- | Dokuwiki supports ordered and unordered lists. To create a list item, indent your text by two spaces and use a '' | + | ===== Liste ===== |
- | | + | Dokuwiki supporta liste ordinate e non-ordinate. Per creare un elemento di una lista, indentare il testo con due spazi e usare un asterisco ('' |
- | * The second item | + | |
- | * You may have different levels | + | |
- | * Another item | + | |
- | - The same list but ordered | + | |
- | - Another item | + | * Il secondo elemento |
- | - Just use indention for deeper levels | + | * Si possono avere livelli differenti |
- | - That's it | + | * Un altro elemento |
+ | |||
+ | | ||
+ | - Un altro elemento | ||
+ | - Usare semplicemente l' | ||
+ | - È tutto | ||
< | < | ||
- | * This is a list | + | * Questa è una lista |
- | * The second item | + | * Il secondo elemento |
- | * You may have different levels | + | * Si possono avere livelli differenti |
- | * Another item | + | * Un altro elemento |
- | - The same list but ordered | + | - La stessa lista ma ordinata |
- | - Another item | + | - Un altro elemento |
- | - Just use indention for deeper levels | + | - Usare semplicemente l' |
- | - That's it | + | - È tutto |
</ | </ | ||
+ | ===== Conversioni di testo ===== | ||
- | Also take a look at the [[doku> | + | DokuWiki |
- | + | ||
- | ===== Text Conversions ===== | + | |
- | + | ||
- | DokuWiki | + | |
- | + | ||
- | The text to image conversion is mainly done for smileys. And the text to HTML conversion is used for typography replacements, | + | |
- | ==== Text to Image Conversions | + | La conversione di testo in immagini è fatta principalmente per le faccine. E la conversione del testo in formato HTML è usata per sostituzione tipografica ma può essere configurata per usare anche altro HTML. |
+ | ==== Conversioni di testo in immagini | ||
- | DokuWiki | + | DokuWiki |
* 8-) %% 8-) %% | * 8-) %% 8-) %% | ||
Linea 252: | Linea 239: | ||
* FIXME %% FIXME %% | * FIXME %% FIXME %% | ||
* DELETEME %% DELETEME %% | * DELETEME %% DELETEME %% | ||
+ | ==== Conversioni di testo in HTML ==== | ||
- | ==== Text to HTML Conversions ==== | + | [[doku> |
- | Typography: [[DokuWiki]] can convert simple text characters to their typographically correct entities. Here is an example of recognized characters. | + | -> <- <-> => <= <=> >> << -- --- 640x480 (c) (tm) (r) |
- | + | ||
- | -> <- <-> => <= <=> >> << -- --- 640x480 (c) (tm) (r) | + | |
"He thought ' | "He thought ' | ||
< | < | ||
- | -> <- <-> => <= <=> >> << -- --- 640x480 (c) (tm) (r) | + | -> <- <-> => <= <=> >> << -- --- 640x480 (c) (tm) (r) |
"He thought ' | "He thought ' | ||
</ | </ | ||
- | The same can be done to produce any kind of HTML, it just needs to be added to the [[doku> | + | La stesso può essere fatto per produrre ogni tipo di codice |
- | There are three exceptions which do not come from that pattern file: multiplication entity | + | Esistono tre eccezioni che non provengono dal pattern file: moltiplicazione di entità |
+ | ===== Citazioni ===== | ||
- | ===== Quoting ===== | + | Talvolta si vuole contrasegnare del testo per mostrare che esso è una risposta o un commento. Si può usare la sintassi seguente: |
- | Some times you want to mark some text to show it's a reply or comment. You can use the following syntax: | + | Penso che dovremmo farlo |
+ | |||
+ | > No, non dovremmo | ||
+ | |||
+ | >> Be', dico che dovremmo | ||
+ | |||
+ | > Davvero? | ||
+ | |||
+ | >> Sì! | ||
+ | |||
+ | >>> | ||
- | < | + | Penso che dovremmo farlo |
- | I think we should do it | + | |
- | > No we shouldn' | + | > No, non dovremmo |
- | >> | + | >> |
- | > Really? | + | > Davvero? |
- | >> | + | >> |
- | >>> | + | >>> |
- | </ | + | ===== Tabelle ===== |
- | I think we should do it | + | DokuWiki supporta una semplice sintasi per la creazione di tabelle. |
- | > No we shouldn' | + | ^ Intestazione 1 ^ Intestazione 2 ^ Intestazione 3 ^ |
+ | | Riga 1 Col 1 | Riga 1 Col 2 | Riga 1 Col 3 | | ||
+ | | Riga 2 Col 1 | Celle unite (notare il doppio pipe) || | ||
+ | | Riga 3 Col 1 | Riga 3 Col 2 | Riga 3 Col 3 | | ||
- | >> Well, I say we should | + | Le righe delle tabelle devono iniziare e terminare con un carattere '' |
- | > Really? | + | ^ Intestazione 1 ^ Intestazione 2 ^ Intestazione 3 ^ |
+ | | Riga 1 Col 1 | Riga 1 Col 2 | Riga 1 Col 3 | | ||
+ | | Riga 2 Col 1 | Celle unite (notare il doppio pipe) || | ||
+ | | Riga 3 Col 1 | Riga 3 Col 2 | Riga 3 Col 3 | | ||
- | >> Yes! | + | Per unire le celle orizzontalmente, |
- | >>> | + | È pure possibile realizzare intestazioni verticali di tabella. |
- | ===== Tables ===== | + | | ^ Intestazione 1 ^ Intestazione 2 ^ |
+ | ^ Intestazione 3 | Riga 1 Col 2 | Riga 1 Col 3 | | ||
+ | ^ Intestazione 4 | niente fusione questa volta | | | ||
+ | ^ Intestazione 5 | Riga 2 Col 2 | Riga 2 Col 3 | | ||
- | DokuWiki supports a simple syntax to create tables. | + | Come si può notare, è il separatore di cella prima di una cella che decide il tipo di formattazione: |
- | ^ Heading | + | | ^ Intestazione |
- | | Row 1 Col 1 | + | |
- | | Row 2 Col 1 | some colspan (note the double pipe) || | + | ^ Intestazione 4 |
- | | Row 3 Col 1 | + | ^ Intestazione 5 |
- | Table rows have to start and end with a '' | + | Si possono avere celle unite verticalmente aggiungendo |
- | | + | ^Intestazione |
- | | Row 1 Col 1 | Row 1 Col 2 | Row 1 Col 3 | | + | | Riga 1 Col 1 | questa cella è unita verticalmente |
- | | Row 2 Col 1 | some colspan (note the double pipe) || | + | | Riga 2 Col 1 | ::: |
- | | Row 3 Col 1 | Row 3 Col 2 | Row 3 Col 3 | | + | | Riga 3 Col 1 |
- | To connect cells horizontally, | + | A parte la sintassi di unione quelle celle non devono contenere niente altro. |
- | Vertical tableheaders are possible, too. | + | ^ Intestazione 1 ^ Intestazione 2 ^ Intestazione 3 ^ |
+ | | Riga 1 Col 1 | questa cella è unita verticalmente | Riga 1 Col 3 | | ||
+ | | Riga 2 Col 1 | ::: | Riga 2 Col 3 | | ||
+ | | Riga 3 Col 1 | ::: | Riga 3 Col 3 | | ||
- | | ^ 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 | + | Si può allineare anche il contenuto di una tabella. È sufficiente aggiungere almeno due spazi bianchi al lato opposto del testo: aggiungere due spazi a sinistra per allineare a destra, due spazi a destra per allineare a sinistra e almeno due spazi ad entrambi i lati per il testo centrato. |
- | | | + | ^ Tabella con allineamento |
- | | + | | |
- | ^ Heading 4 | + | |sinistra |
- | ^ Heading 5 | + | | xxxxxxxxxxxx | xxxxxxxxxxxx | xxxxxxxxxxxx |
- | You can have rowspans (vertically connected cells) by adding '' | + | Ecco come appare nel sorgente: |
- | + | ||
- | ^ 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 | | + | |
- | + | ||
- | 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 | | + | |
- | | xxxxxxxxxxxx | xxxxxxxxxxxx | xxxxxxxxxxxx | | + | |
- | This is how it looks in the source: | ||
- | ^ Table with alignment | + | ^ Tabella con allineamento |
- | | right| | + | | |
- | |left | + | |sinistra |
| xxxxxxxxxxxx | xxxxxxxxxxxx | xxxxxxxxxxxx | | | xxxxxxxxxxxx | xxxxxxxxxxxx | xxxxxxxxxxxx | | ||
- | Note: Vertical alignment is not supported. | + | Nota: l' |
+ | ===== Nessuna formattazione ===== | ||
- | ===== No Formatting ===== | + | Se avete bisogno di visualizzare il testo esattamente come è scritto |
- | + | ||
- | If you need to display text exactly like it is typed (without any formatting), enclose the area either with '' | + | |
< | < | ||
- | This is some text which contains addresses like this: http:// | + | Questo è del testo che contiene indirizzi come questo |
</ | </ | ||
- | The same is true for %%//__this__ text// with a smiley | + | Lo stesso è vero per %%//__questo__ testo// con una faccina |
< | < | ||
- | | + | |
</ | </ | ||
- | | + | |
+ | ===== Blocchi di codice ===== | ||
- | ===== Code Blocks ===== | + | È possibile includere blocchi di codice nei documenti sia indentandoli con almeno due spazi (come negli esempi precedenti), |
- | 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 '' | + | Questo testo è intentrato con due spazi. |
+ | | ||
- | This is text is indented by two spaces. | + | < |
+ | </ | ||
- | <code> | + | <file>Questo è praticamente la stessa cosa, ma si potrebbe usare per mostrare che è stato citato un file. |
- | This is preformatted code all spaces are preserved: like <-this | + | </file> |
- | </code> | + | |
- | < | ||
- | This is pretty much the same, but you could use it to show that you quoted a file. | ||
- | </ | ||
- | Those blocks were created by this source: | + | Questi blocchi sono stati creati da questi sorgenti: |
- | This is text is indented by two spaces. | + | Questo testo è indentrato con due spazi. |
< | < | ||
- | | + | |
</ | </ | ||
< | < | ||
- | | + | |
</ | </ | ||
+ | ==== Evidenziazione di sintassi ==== | ||
- | ==== Syntax Highlighting ==== | + | [[benvenuto|DokuWiki]] |
- | + | ||
- | [[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(" |
} | } | ||
} | } | ||
</ | </ | ||
- | The following language strings are currently recognized: //4cs, 6502acme, 6502kickass, | + | Le seguenti stringhe di linguaggio sono correntemente riconosciuti: //4cs, abap, actionscript-french, |
+ | ==== Blocchi di codice scaricabili ==== | ||
- | ==== Downloadable Code Blocks ==== | + | Quando si usa la sintassi |
- | + | ||
- | When you use the '' | + | |
< | < | ||
Linea 433: | Linea 413: | ||
</ | </ | ||
- | If you don't want any highlighting but want a downloadable | + | Se non si vuole un file scaricabile senza nessuna evidenziazione, specificate un trattino |
- | + | ===== Incorporare codice | |
- | + | ||
- | ===== Embedding | + | |
- | You can embed raw HTML or PHP code into your documents by using the '' | + | Potete incorporare righe di codice |
- | HTML example: | + | Esempio |
< | < | ||
< | < | ||
- | This is some <span style=" | + | Questo è <span style=" |
</ | </ | ||
< | < | ||
- | <p style=" | + | <p style=" |
</ | </ | ||
</ | </ | ||
< | < | ||
- | This is some <span style=" | + | Questo è <span style=" |
</ | </ | ||
< | < | ||
- | <p style=" | + | <p style=" |
</ | </ | ||
- | PHP example: | + | Esempio |
< | < | ||
<php> | <php> | ||
- | echo 'The PHP version: '; | + | echo 'Un logo generato da PHP:'; |
- | echo phpversion(); | + | echo '< |
- | echo ' (generated inline HTML)'; | + | echo ' |
</ | </ | ||
<PHP> | <PHP> | ||
- | echo '< | + | echo '< |
- | echo '< | + | echo '< |
echo '</ | echo '</ | ||
</ | </ | ||
Linea 474: | Linea 452: | ||
<php> | <php> | ||
- | echo 'The PHP version: '; | + | echo 'Un logo generato da PHP:'; |
- | echo phpversion(); | + | echo '< |
- | echo ' (inline HTML)'; | + | echo ' |
</ | </ | ||
<PHP> | <PHP> | ||
- | echo '< | + | echo '< |
- | echo '< | + | echo '< |
echo '</ | echo '</ | ||
</ | </ | ||
- | **Please Note**: HTML and PHP embedding is disabled by default in the configuration. If disabled, the code is displayed instead of executed. | + | **Notate bene**: l' |
+ | ===== Aggregazione di sorgenti RSS/ATOM ===== | ||
+ | [[doku> | ||
- | ===== RSS/ATOM Feed Aggregation ===== | + | ^ Parametro |
- | [[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: | + | | any number |
+ | | reverse | ||
+ | | author | ||
+ | | date | visualizza le date degli elementi | | ||
+ | | description | ||
+ | | //n//[dhm] | periodo di aggiornamento, | ||
- | ^ Parameter | + | Il periodo di aggiornamento predefinito è di 4 ore. Ogni valore al di sotto di 10 minuti sarà considerato come 10 minuti. Generalmente [[doku> |
- | | 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>config:htmlok|HTML]] is disabled all tags will be stripped | | + | |
- | | 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: | + | **Esempio:** |
- | By default the feed will be sorted by date, newest items first. You can sort it by oldest first using the '' | + | {{rss> |
- | **Example:** | + | {{rss> |
+ | ===== Macro di Controllo ===== | ||
- | {{rss> | + | Alcune sintassi influenzano come DokuWiki restituisce una pagina senza creare risultati a sé. Le seguenti macro di controllo sono disponibili: |
- | {{rss>http:// | + | ^ Macro ^ Descrizione | |
+ | | %%~~NOTOC~~%% | ||
+ | | %%~~NOCACHE~~%% | DokuWiki si serve automaticamente della memoria cache. Talvolta questo comportamento potrebbe non essere voluto (ad esempio quando è usata la sintassi %%<php>%% di cui sopra), aggiungendo questa macro si forza DokuWiki a ricaricare la pagina ad ogni richiesta| | ||
+ | ===== Moduli aggiuntivi per la sintassi ===== | ||
- | + | La sintassi di DokuWiki | |
- | ===== Control Macros ===== | + | |
- | + | ||
- | Some syntax influences how DokuWiki | + | |
- | + | ||
- | ^ Macro ^ Description | | + | |
- | | %%~~NOTOC~~%% | + | |
- | | %%~~NOCACHE~~%% | DokuWiki caches all output by default. Sometimes this might not be wanted (eg. when the %%< | + | |
- | + | ||
- | ===== Syntax Plugins ===== | + | |
- | + | ||
- | DokuWiki' | + | |
~~INFO: | ~~INFO: | ||
- |