Template:Navbox: differenze tra le versioni

Da wikiort.

(richiamo al Tnavbar, vedi disc.)
(miglioro default state, interlink su wikidata, commenti eccessivi)
Riga 1: Riga 1:
<includeonly><table class="navbox collapsible {{{state|autocollapse}}} nowraplinks noprint" style="margin:auto; width:100%; clear:both; border: 1px solid #aaa; padding: 2px; {{{style|}}}{{{bodystyle|}}}"><!--
+
<includeonly><table class="navbox collapsible {{#if:{{{state|}}}|{{{state}}}|autocollapse}} nowraplinks noprint" style="margin:auto; width:100%; clear:both; border: 1px solid #aaa; padding: 2px; {{{style|}}}{{{bodystyle|}}}"><tr><!--
----------------------------------------------------------------------------------------------------------------------------
+
----------------------------------------------------- Barra del titolo  
--><tr><!--
+
----------------------------------------------------- Barra del titolo -----------------------------------------------------
+
 
--><th colspan="{{#if:{{{image|}}}<!--
 
--><th colspan="{{#if:{{{image|}}}<!--
--------------->| 3<!--
+
-->| 3<!--
--------------->| 2<!--
+
-->| 2<!--
--------------->}}" style="text-align:center; width:100%; background:#ccf; font-size:90%; {{{titlestyle|}}}"><!--
+
-->}}" style="text-align:center; width:100%; background:#ccf; font-size:90%; {{{titlestyle|}}}"><!--
---------------------------------------------------------- V.D.M. ----------------------------------------------------------
+
---------------------------------------------------------- V.D.M.  
 
--><div style="float:left; width: 6em; text-align:left; padding:0 10px 0 0; margin: 0px;">{{#switch:{{{navbar|}}} |plain= |#default={{Tnavbar|{{{name}}}|mini=1}}}}</div><span style="font-size:110%;"><!--
 
--><div style="float:left; width: 6em; text-align:left; padding:0 10px 0 0; margin: 0px;">{{#switch:{{{navbar|}}} |plain= |#default={{Tnavbar|{{{name}}}|mini=1}}}}</div><span style="font-size:110%;"><!--
---------------------------------------------------------- V.D.M. ----------------------------------------------------------
+
---------------------------------------------------------- Titolo  
---------------------------------------------------------- Titolo ----------------------------------------------------------
+
-->{{#if:{{{title|}}}|{{{title}}}|}}</span></th></tr><!--
-------------------------------------------->{{#if:{{{title|}}}|{{{title}}}|}}<!--------------------------------------------
+
----------------------------------------------------- Above (opzionale)  
--></span></th><!--
+
---------------------------------------------------------- Titolo ----------------------------------------------------------
+
----------------------------------------------------- Barra del titolo -----------------------------------------------------
+
-->
+
</tr><!--
+
----------------------------------------------------- Above (opzionale) ----------------------------------------------------
+
 
-->{{#if:{{{above|}}}<!--
 
-->{{#if:{{{above|}}}<!--
 
-->| <tr><td style="background:#ddf; text-align:center; font-size:90%; {{{abovestyle|}}}" colspan="{{#if:{{{image|}}}<!--
 
-->| <tr><td style="background:#ddf; text-align:center; font-size:90%; {{{abovestyle|}}}" colspan="{{#if:{{{image|}}}<!--
-------------------------------------------------------------------------------------------------->| 3<!--
+
-->| 3<!--
-------------------------------------------------------------------------------------------------->| 2<!--
+
-->| 2<!--
-------------------------------------------------------------------------------------------------->}}"><!--
+
-->}}"><!--
------------------------------------------------------>{{{above|}}}<!-------------------------------------------------------
+
-->{{{above|}}}<!--
----></td></tr><!--
+
--></td></tr><!--
 
-->}}<!--
 
-->}}<!--
----------------------------------------------------- Above (opzionale) ----------------------------------------------------
+
---------------------------------------------------------- Gruppi ---------------------------------------------------------- Lista1  
---------------------------------------------------------- Gruppi ----------------------------------------------------------
+
---------------------------------------------------------- Lista1 ----------------------------------------------------------
+
 
-->{{#if:{{{list1|}}}
 
-->{{#if:{{{list1|}}}
 
| <tr>{{#if:{{{group1|}}}
 
| <tr>{{#if:{{{group1|}}}
       | <th style="background:#ddf; white-space:nowrap; padding:0 10px; font-size:90%; {{{groupstyle|}}}; {{{group1style|}}}"><!--
+
       | <th style="background:#ddf; white-space:nowrap; padding:0 10px; font-size:90%; {{{groupstyle|}}}; {{{group1style|}}}">{{{group1}}}</th>}}<td style="width:100%; font-size:90%; text-align:{{#if:{{{group1|}}}|left|center}}; {{{liststyle|}}}; {{{oddstyle|}}}; {{{list1style|}}}" colspan="<!--
------------------------------------------------------>{{{group1}}}<!-------------------------------------------------------
+
-------></th><!--
+
----->}}<td style="width:100%; font-size:90%; text-align:{{#if:{{{group1|}}}|left|center}}; {{{liststyle|}}}; {{{oddstyle|}}}; {{{list1style|}}}" colspan="<!--
+
 
-->{{#if:{{{group1|}}}<!--
 
-->{{#if:{{{group1|}}}<!--
 
-->| 1<!--
 
-->| 1<!--
 
-->| 2<!--
 
-->| 2<!--
 
-->}}">{{{list1}}}</td><!--
 
-->}}">{{{list1}}}</td><!--
--------------------------------------------------------- Immagine ---------------------------------------------------------
+
--------------------------------------------------------- Immagine  
---->{{#if:{{{image|}}}
+
-->{{#if:{{{image|}}}
 
|<td rowspan="{{#expr:
 
|<td rowspan="{{#expr:
 
{{#if:{{{list1|}}}|1|0}}
 
{{#if:{{{list1|}}}|1|0}}
Riga 75: Riga 62:
 
---->}}</tr><!--
 
---->}}</tr><!--
 
-->}}<!--
 
-->}}<!--
---------------------------------------------------------- Lista1 ----------------------------------------------------------
+
----------------------------------------------------- Liste successive  
----------------------------------------------------- Liste successive -----------------------------------------------------
+
 
-->{{#if:{{{list2|}}}|<tr>{{#if:{{{group2|}}}|<th style="background:#ddf; white-space:nowrap; padding:0 10px; font-size:90%; {{{groupstyle|}}}; {{{group2style|}}}">{{{group2}}}</th>}}
 
-->{{#if:{{{list2|}}}|<tr>{{#if:{{{group2|}}}|<th style="background:#ddf; white-space:nowrap; padding:0 10px; font-size:90%; {{{groupstyle|}}}; {{{group2style|}}}">{{{group2}}}</th>}}
 
<td style="width:100%; font-size:90%; text-align:{{#if:{{{group2|}}}|left|center}};background:#f7f7f7; {{{liststyle|}}}; {{{evenstyle|}}}; {{{list2style|}}}" colspan="{{#if:{{{group2|}}}|1|2}}">{{{list2}}}</td></tr>}}<!--
 
<td style="width:100%; font-size:90%; text-align:{{#if:{{{group2|}}}|left|center}};background:#f7f7f7; {{{liststyle|}}}; {{{evenstyle|}}}; {{{list2style|}}}" colspan="{{#if:{{{group2|}}}|1|2}}">{{{list2}}}</td></tr>}}<!--
Riga 163: Riga 149:
 
-->{{#if:{{{list30|}}}|<tr>{{#if:{{{group30|}}}|<th style="background:#ddf; white-space:nowrap; padding:0 10px; font-size:90%; {{{groupstyle|}}}; {{{group30style|}}}">{{{group30}}}</th>}}
 
-->{{#if:{{{list30|}}}|<tr>{{#if:{{{group30|}}}|<th style="background:#ddf; white-space:nowrap; padding:0 10px; font-size:90%; {{{groupstyle|}}}; {{{group30style|}}}">{{{group30}}}</th>}}
 
<td style="width:100%; font-size:90%; text-align:{{#if:{{{group30|}}}|left|center}};background:#f7f7f7; {{{liststyle|}}}; {{{oddstyle|}}}; {{{list30style|}}}" colspan="{{#if:{{{group30|}}}|1|2}}">{{{list30}}}</td></tr>}}<!--
 
<td style="width:100%; font-size:90%; text-align:{{#if:{{{group30|}}}|left|center}};background:#f7f7f7; {{{liststyle|}}}; {{{oddstyle|}}}; {{{list30style|}}}" colspan="{{#if:{{{group30|}}}|1|2}}">{{{list30}}}</td></tr>}}<!--
-------------------------------------------------------- Fine liste --------------------------------------------------------
+
----------------------------------------------------- Below (opzionale)  
----------------------------------------------------- Below (opzionale) ----------------------------------------------------
+
 
-->{{#if:{{{below|}}}<!--
 
-->{{#if:{{{below|}}}<!--
 
-->| <tr><td style="background:#ddf; text-align:center; font-size:90%; {{{belowstyle|}}}" colspan="{{#if:{{{image|}}}<!--
 
-->| <tr><td style="background:#ddf; text-align:center; font-size:90%; {{{belowstyle|}}}" colspan="{{#if:{{{image|}}}<!--
-------------------------------------------------------------------------------------------------->| 3<!--
+
-->| 3<!--
-------------------------------------------------------------------------------------------------->| 2<!--
+
-->| 2<!--
-------------------------------------------------------------------------------------------------->}}"><!--
+
-->}}">{{{below|}}}<!--
------------------------------------------------------>{{{below|}}}<!-------------------------------------------------------
+
--></td></tr><!--
----></td></tr><!--
+
-->}}</table></includeonly><noinclude>
-->}}<!--
+
 
----------------------------------------------------------------------------------------------------------------------------
+
--></table></includeonly><noinclude>
+
 
{{protetta}}
 
{{protetta}}
 
{{template complesso}}
 
{{template complesso}}
 
{{man}}
 
{{man}}
  
[[Categoria:Template strumenti di layout|Navbox generic]]
+
[[Categoria:Sottotemplate]]
 
[[Categoria:Template di navigazione| ]]
 
[[Categoria:Template di navigazione| ]]
 
[[cy:Nodyn:Blwch llywio generig]]
 
[[en:Template:Navbox generic]]
 
[[eo:Ŝablono:Navigilo2]]
 
[[fi:Malline:Navbox generic]]
 
[[fr:Modèle:Méta palette de navigation]]
 
[[gl:Modelo:Navbox]]
 
[[id:Templat:Navbox]]
 
[[ja:Template:Navbox generic]]
 
[[lv:Veidne:Navbox generic]]
 
[[ms:Templat:Navbox generic]]
 
[[no:Mal:Navbox generic]]
 
[[pt:Predefinição:Navbox generic]]
 
[[ro:Format:Casetă de navigare de bază]]
 
[[ru:Шаблон:Навигационная таблица]]
 
[[simple:Template:Navbox generic]]
 
[[su:Citakan:Navbox generic]]
 
[[sv:Mall:Navbox generic]]
 
[[uk:Шаблон:Навігаційна таблиця]]
 
[[vi:Tiêu bản:Navbox generic]]
 
[[zh:Template:Navbox generic]]
 
 
</noinclude>
 
</noinclude>

Versione delle 09:07, 18 mag 2014

Avviso importante! Questo template ha un codice sorgente piuttosto complesso e può richiedere buona conoscenza delle funzioni parser.

Per favore, tenta di modificarlo solo se sei certo di capirne la funzione e sei preparato a riparare ogni conseguente danno collaterale nel caso in cui i risultati fossero diversi da quanto avevi in mente. Tutti gli esperimenti devono essere prima condotti in una pagina di prova.

Info Istruzioni per l'uso
Le istruzioni che seguono sono contenute nella sottopagina Template:Navbox/man (modifica·cronologia)

Template:/man