Utente:FRacco/Sandbox2: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
m fix minori
prova visualizzatore
Riga 1:
<includeonly>{{#if: {{{categorizzante|}}}<!--
 
| {{Categorizzante
Qui il dato arriva già ripartito.
| P = {{{categorizzante}}}<!-- template categorizzante -->
{{{1}}} è la prima parte
<!--
{{{2}}} è la seconda parte
lo slash (/) iniziale evita di avere la prima sotto stringa con lettera iniziale maiuscola
{{{3}}} è la terza parte
-->
ecc.
| {{#titleparts:/{{{1|}}}|1|2}}
 
| {{#titleparts:{{{1|}}}|1|2}}
-->{{#if: {{{1|}}} | {{#titleparts:{{{1formattatore|noformat}}}|{{{1|3}}}}} }}<!--
-->{{#if: {{{2|}}} | {{{separatore|,&#32;}}}{{{{{formattatore|noformat}}}|{{{2}}}}} }}<!--
| {{#titleparts:{{{1|}}}|1|4}}
-->{{#if: {{{3|}}} | {{{separatore|,&#32;}}}{{{{{formattatore|noformat}}}|{{{3}}}}} }}<!--
| {{#titleparts:{{{1|}}}|1|5}}
-->{{#if: {{{4|}}} | {{{separatore|,&#32;}}}{{{{{formattatore|noformat}}}|{{{4}}}}} }}<!--
| {{#titleparts:{{{1|}}}|1|6}}
-->{{#if: {{{5|}}} | {{{separatore|,&#32;}}}{{{{{formattatore|noformat}}}|{{{5}}}}} }}<!--
| {{#titleparts:{{{1|}}}|1|7}}
-->{{#if: {{{6|}}} | {{{separatore|,&#32;}}}{{{{{formattatore|noformat}}}|{{{6}}}}} }}<!--
| {{#titleparts:{{{1|}}}|1|8}}
-->{{#if: {{{7|}}} | {{{separatore|,&#32;}}}{{{{{formattatore|noformat}}}|{{{7}}}}} }}<!--
| {{#titleparts:{{{1|}}}|1|9}}
-->{{#if: {{{8|}}} | {{{separatore|,&#32;}}}{{{{{formattatore|noformat}}}|{{{8}}}}} }}<!--
| {{#titleparts:{{{1|}}}|1|10}}
-->{{#if: {{{9|}}} | {{{separatore|,&#32;}}}{{{{{formattatore|noformat}}}|{{{9}}}}} }}<!--
| {{#titleparts:{{{1|}}}|1|11}}
-->{{#if: {{{10|}}} | {{{separatore|,&#32;}}}{{{{{formattatore|noformat}}}|{{{10}}}}} }}<!--
| {{#titleparts:{{{1|}}}|1|12}}
-->{{#if: {{{11|}}} | {{{separatore|,&#32;}}}{{{{{formattatore|noformat}}}|{{{11}}}}} }}<!--
| {{#titleparts:{{{1|}}}|1|13}}
-->{{#if: {{{12|}}} | {{{separatore|,&#32;}}}{{{{{formattatore|noformat}}}|{{{12}}}}} }}<!--
| {{#titleparts:{{{1|}}}|1|14}}
-->{{#if: {{{13|}}} | {{{separatore|,&#32;}}}{{{{{formattatore|noformat}}}|{{{13}}}}} }}<!--
| {{#titleparts:{{{1|}}}|1|15}}
-->{{#if: {{{14|}}} | {{{separatore|,&#32;}}}{{{{{formattatore|noformat}}}|{{{14}}}}} }}<!--
| {{#titleparts:{{{1|}}}|1|16}}
-->{{#if: {{{15|}}} | {{{separatore|,&#32;}}}{{{{{formattatore|noformat}}}|{{{15}}}}} }}<!--
| {{#titleparts:{{{1|}}}|1|17}}
-->{{#if: {{{16|}}} | {{{separatore|,&#32;}}}{{{{{formattatore|noformat}}}|{{{16}}}}} }}<!--
| {{#titleparts:{{{1|}}}|1|18}}
-->{{#if: {{{17|}}} | {{{separatore|,&#32;}}}{{{{{formattatore|noformat}}}|{{{17}}}}} }}<!--
| {{#titleparts:{{{1|}}}|1|19}}
-->{{#if: {{{18|}}} | {{{separatore|,&#32;}}}{{{{{formattatore|noformat}}}|{{{18}}}}} }}<!--
| {{#titleparts:{{{1|}}}|1|20}}
-->{{#if: {{{19|}}} | {{{separatore|,&#32;}}}{{{{{formattatore|noformat}}}|{{{19}}}}} }}<!--
| {{#titleparts:{{{1|}}}|1|21}}
-->{{#if: {{{20|}}} | {{{separatore|,&#32;}}}{{{{{formattatore|noformat}}}|{{{20}}}}} }}<!--
| {{#titleparts:{{{1|}}}|1|22}}
-->{{#if: {{{21|}}} | {{{separatore|,&#32;}}}{{{{{formattatore|noformat}}}|{{{21}}}}} }}<!--
| {{#titleparts:{{{1|}}}|1|23}}
-->{{#if: {{{22|}}} | {{{separatore|,&#32;}}}{{{{{formattatore|noformat}}}|{{{22}}}}} }}<!--
| {{#titleparts:{{{1|}}}|1|24}}
-->{{#if: {{{23|}}} | {{{separatore|,&#32;}}}{{{{{formattatore|noformat}}}|{{{23}}}}} }}<!--
| {{#titleparts:{{{1|}}}|1|25}}
-->{{#if: {{{24|}}} | {{{separatore|,&#32;}}}{{{{{formattatore|noformat}}}|{{{24}}}}} }}<!--
}}
-->{{#if: {{{25|}}} | {{{separatore|,&#32;}}}{{{{{formattatore|noformat}}}|{{{25}}}}}<!--
| {{Visualizzante
 
{{#if:{{{separatore|}}}|{{!}}separatore = {{{separatore}}}|}}
Dato che non è possibile che vi siano 25 o più valori, segnalo l'errore
{{#if:{{{formattatore|}}}|{{!}}formattatore = {{{formattatore}}}|}}
 
<!--
-->[[Categoria:Errori del commutatore]]}}</includeonly><noinclude>
lo slash (/) iniziale evita di avere la prima sotto stringa con lettera iniziale maiuscola
{{Avviso|testo=Questo template si occupa di leggere e visualizzare le ripartizioni di stringhe ripartite dal template {{tl|Commutatore}}.}}
-->
{{Man/Stile}}
| {{#titleparts:/{{{1|}}}|1|2}}
__NOTOC__
| {{#titleparts:{{{1|}}}|1|2}}
==Parametri avanzati==
| {{#titleparts:{{{1|}}}|1|3}}
===Separatore===
| {{#titleparts:{{{1|}}}|1|4}}
* Le stringhe vengono di norma visualizzate come elenco separato da virgole. È possibile comunque cambiare questo segno di suddivisione con qualsiasi altro carattere o con un template, come ad esempio {{tl|·}}, grazie al parametro <code>separatore</code>.
| {{#titleparts:{{{1|}}}|1|5}}
====Esempi====
| {{#titleparts:{{{1|}}}|1|6}}
<pre>
| {{#titleparts:{{{1|}}}|1|7}}
{{Visualizzatore|uno|due|tre}}
| {{#titleparts:{{{1|}}}|1|8}}
</pre>
| {{#titleparts:{{{1|}}}|1|9}}
| {{#titleparts:{{{1|}FULLPAGENAME}}|1uno|due|10tre}}
<pre>
| {{#titleparts:{{{1|}}}|1|11}}
{{Visualizzatore|separatore=&#32;-&#32;|uno|due|tre}}
| {{#titleparts:{{{1|}}}|1|12}}
</pre>
| {{#titleparts:{{{1|}}}|1|13}}
{{{{FULLPAGENAME}}|separatore=&#32;-&#32;|uno|due|tre}}
| {{#titleparts:{{{1|}}}|1|14}}
<pre>
| {{#titleparts:{{{1|}}}|1|15}}
{{Visualizzatore|separatore={{·}}|uno|due|tre}}
| {{#titleparts:{{{1|}}}|1|16}}
</pre>
| {{#titleparts:{{{1|}}}|1|17}}
{{{{FULLPAGENAME}}|separatore={{·}}|uno|due|tre}}
| {{#titleparts:{{{1|}}}|1|18}}
 
| {{#titleparts:{{{1|}}}|1|19}}
===Formattatore===
| {{#titleparts:{{{1|}}}|1|20}}
* È inoltre possibile modificare la formattazione delle stringhe, grazie al parametro <code>formattatore</code>, che dovrà essere un template tra quelli presenti nella [[:Categoria:Template formattazione testo]].
| {{#titleparts:{{{1|}}}|1|21}}
====Esempi====
| {{#titleparts:{{{1|}}}|1|22}}
<pre>
| {{#titleparts:{{{1|}}}|1|23}}
{{Visualizzatore|formattatore=wikilink|uno|due|tre}}
| {{#titleparts:{{{1|}}}|1|24}}
</pre>
| {{#titleparts:{{{1|}}}|1|25}}
{{{{FULLPAGENAME}}|formattatore=wikilink|uno|due|tre}}
}}
<pre>
}}</includeonly><noinclude>
{{Visualizzatore|formattatore=elenco puntato|uno|due|tre}}
{{Avviso|testo=Questo template si occupa in '''prima fase''' di leggere una stringa di testo e ripartirla in tante sotto stringhe grazie alla funzione parser ''titleparts'' che permette di suddividere la stringa iniziale grazie agli slash (/) interposti fra le diverse sotto stringhe.
</pre>
----
{{{{FULLPAGENAME}}|formattatore=elenco puntato|uno|due|tre}}
*<small>Il template ha un limite tecnico di massimo 25 ripartizioni possibili. Oltre questo numero la funzione parser non legge più le ripartizioni. Per maggiori dettagli consultare: {{en}} [[mw:Help:Extension:ParserFunctions#.23titleparts|Titleparts]], pagina di aiuto sulle funzioni parser disponibile su MediaWiki.</small>
<pre>
----
{{Visualizzatore|formattatore=elenco numerato|uno|due|tre}}
In '''seconfda fase''' il template si occupa di fungere da scambio per il template {{tl|Categorizzatore}} utilizzato ad esempio da {{tl|Infobox/categorie ripartite}} o il template {{tl|Visualizzatore}} utilizzato ad esempio da {{tl|Infobox/Tabella/riga comune ripartita}}.
</pre>
----
{{{{FULLPAGENAME}}|formattatore=elenco numerato|uno|due|tre}}
*Il parametro <code>'''categorizzante'''</code> viene utilizzato dal {{tl|Categorizzatore}} per capire da quale pagina o template prendere le credenziali per la categorizzazione.
{{Man/Stile fine}}
*I parametri <code>'''separatore'''</code> e <code>'''formattatore'''</code> possono essere utilizzati dal {{tl|Visualizzatore}} per personalizzare la formattazione del testo da visualizzare.}}
[[Categoria:Template con titleparts]]
</noinclude>