Template:Navbox with columns: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
mNo edit summary
m (This revision and previous are available under: CC BY-SA 3.0. See list of authors in previous history below.)
 
Line 1: Line 1:
Places a navbox with structured columns on a wiki page. See also [[Template:Navbox]] and [[Template:Navbox with collapsible groups]].


;Usage
:style=  (Optional) add style to the outer table
:class=  (Optional) add class to the outer and inner navbox tables
:state= [none|plain|off,hide|coll|collapsed] - 'none' disables collapsing, 'hide' starts as collapsed.
See [[Template:Navbox with columns/doc]] for more instructions and examples.<!-- high volume template, please don't integrate docs -->
[[Category:Navigation templates| ]]
----
;Template
<onlyinclude><includeonly>{{Navbox<!--
-->|class={{{class|}}}<!--
-->|name={{{name|}}}<!--
-->|navbar={{{navbar|}}}<!--
-->|state={{{state|}}}<!--
-->|border={{{border|{{{1|}}}}}}<!--
-->|title={{{title|}}}<!--
-->|above={{{above|}}}<!--
-->|below={{{below|}}}<!--
-->|image={{{image|}}}<!--
-->|imageleft={{{imageleft|}}}<!--
-->|style={{{style|}}}{{{bodystyle|}}}<!--
-->|basestyle={{{basestyle|}}}<!--
-->|titlestyle={{{titlestyle|}}}<!--
-->|abovestyle={{{abovestyle|}}}<!--
-->|belowstyle={{{belowstyle|}}}<!--
-->|imagestyle={{{imagestyle|}}}<!--
-->|imageleftstyle={{{imageleftstyle|}}}<!--
-->|list1padding = 0px;<!--
-->|list1=<!--
--><table cellspacing="0" class="navbox-columns-table {{{class|}}}" style="text-align:left;<!--
-->{{#if:{{{col1header|}}}{{{fullwidth|}}}|width:100%;<!--
-->|width:auto;margin-left:auto;margin-right:auto;}}{{{coltablestyle|}}}"><!--
    HEADER
-->{{#if:{{{col1header|}}}|<tr><!--
-->{{#if:{{{col1header|}}}|<td class="navbox-abovebelow" <!--
-->colspan={{{col1headercolspan|1}}} style="<!--
-->{{{colheaderstyle|}}}{{{col1headerstyle|}}}">'''{{{col1header|}}}'''</td>}}<!--
-->{{#if:{{{col2header|}}}|<td class="navbox-abovebelow navbox-list" <!--
-->colspan={{{col2headercolspan|1}}} style="<!--
-->{{{colheaderstyle|}}}{{{col2headerstyle|}}}">'''{{{col2header|}}}'''</td>}}<!--
-->{{#if:{{{col3header|}}}|<td class="navbox-abovebelow navbox-list" <!--
-->colspan={{{col3headercolspan|1}}} style="<!--
-->{{{colheaderstyle|}}}{{{col3headerstyle|}}}">'''{{{col3header|}}}'''</td>}}<!--
-->{{#if:{{{col4header|}}}|<td class="navbox-abovebelow navbox-list" <!--
-->colspan={{{col4headercolspan|1}}} style="<!--
-->{{{colheaderstyle|}}}{{{col4headerstyle|}}}">'''{{{col4header|}}}'''</td>}}<!--
-->{{#if:{{{col5header|}}}|<td class="navbox-abovebelow navbox-list" <!--
-->colspan={{{col5headercolspan|1}}} style="<!--
-->{{{colheaderstyle|}}}{{{col5headerstyle|}}}">'''{{{col5header|}}}'''</td>}}<!--
-->{{#if:{{{col6header|}}}|<td class="navbox-abovebelow navbox-list" <!--
-->colspan={{{col6headercolspan|1}}} style="<!--
-->{{{colheaderstyle|}}}{{{col6headerstyle|}}}">'''{{{col6header|}}}'''</td>}}<!--
-->{{#if:{{{col7header|}}}|<td class="navbox-abovebelow navbox-list" <!--
-->colspan={{{col7headercolspan|1}}} style="<!--
-->{{{colheaderstyle|}}}{{{col7headerstyle|}}}">'''{{{col7header|}}}'''</td>}}<!--
-->{{#if:{{{col8header|}}}|<td class="navbox-abovebelow navbox-list" <!--
-->colspan={{{col8headercolspan|1}}} style="<!--
-->{{{colheaderstyle|}}}{{{col8headerstyle|}}}">'''{{{col8header|}}}'''</td>}}<!--
-->{{#if:{{{col9header|}}}|<td class="navbox-abovebelow navbox-list" <!--
-->colspan={{{col9headercolspan|1}}} style="<!--
-->{{{colheaderstyle|}}}{{{col9headerstyle|}}}">'''{{{col9header|}}}'''</td>}}<!--
-->{{#if:{{{col10header|}}}|<td class="navbox-abovebelow navbox-list" <!--
-->colspan={{{col10headercolspan|1}}} style="<!--
-->{{{colheaderstyle|}}}{{{col10headerstyle|}}}">'''{{{col10header|}}}'''</td>}}<!--
-->{{#if:{{{col11header|}}}|<td class="navbox-abovebelow navbox-list" <!--
-->colspan={{{col11headercolspan|1}}} style="<!--
-->{{{colheaderstyle|}}}{{{col11headerstyle|}}}">'''{{{col11header|}}}'''</td>}}<!--
-->{{#if:{{{col12header|}}}|<td class="navbox-abovebelow navbox-list" <!--
-->colspan={{{col12headercolspan|1}}} style="<!--
-->{{{colheaderstyle|}}}{{{col12headerstyle|}}}">'''{{{col12header|}}}'''</td>}}<!--
-->{{#if:{{{col13header|}}}|<td class="navbox-abovebelow navbox-list" <!--
-->colspan={{{col13headercolspan|1}}} style="<!--
-->{{{colheaderstyle|}}}{{{col13headerstyle|}}}">'''{{{col13header|}}}'''</td>}}<!--
-->{{#if:{{{col14header|}}}|<td class="navbox-abovebelow navbox-list" <!--
-->colspan={{{col14headercolspan|1}}} style="<!--
-->{{{colheaderstyle|}}}{{{col14headerstyle|}}}">'''{{{col14header|}}}'''</td>}}<!--
-->{{#if:{{{col15header|}}}|<td class="navbox-abovebelow navbox-list" <!--
-->colspan={{{col15headercolspan|1}}} style="<!--
-->{{{colheaderstyle|}}}{{{col15headerstyle|}}}">'''{{{col15header|}}}'''</td>}}<!--
-->{{#if:{{{col16header|}}}|<td class="navbox-abovebelow navbox-list" <!--
-->colspan={{{col16headercolspan|1}}} style="<!--
-->{{{colheaderstyle|}}}{{{col16headerstyle|}}}">'''{{{col16header|}}}'''</td>}}<!--
-->{{#if:{{{col17header|}}}|<td class="navbox-abovebelow navbox-list" <!--
-->colspan={{{col17headercolspan|1}}} style="<!--
-->{{{colheaderstyle|}}}{{{col17headerstyle|}}}">'''{{{col17header|}}}'''</td>}}<!--
-->{{#if:{{{col18header|}}}|<td class="navbox-abovebelow navbox-list" <!--
-->colspan={{{col18headercolspan|1}}} style="<!--
-->{{{colheaderstyle|}}}{{{col18headerstyle|}}}">'''{{{col18header|}}}'''</td>}}<!--
-->{{#if:{{{col19header|}}}|<td class="navbox-abovebelow navbox-list" <!--
-->colspan={{{col19headercolspan|1}}} style="<!--
-->{{{colheaderstyle|}}}{{{col19headerstyle|}}}">'''{{{col19header|}}}'''</td>}}<!--
-->{{#if:{{{col20header|}}}|<td class="navbox-abovebelow navbox-list" <!--
-->style="<!--
-->{{{colheaderstyle|}}}{{{col20headerstyle|}}}">'''{{{col20header|}}}'''</td>}}<!--
--></tr>}}<!--
--- Main columns---
-->{{#if:{{{col1header|}}}|<tr style="height:2px;"><td></td></tr>}}<!--
--><tr style="vertical-align:top;"><!--
-->{{#if:{{{col1header|}}}{{{col1footer|}}}{{{fullwidth|}}}|<!--
-->|{{#switch:{{{padding|}}}|off|0|0em|0px|0%|0;|0em;|0px;|0%;=<!--
-->|#default=<td style="width:{{{padding|5em}}};">&nbsp;&nbsp;&nbsp;</td>}}}}<!--
-->{{#if:{{{col1|}}}|<td style="padding:0px;<!--
-->{{{colstyle|}}};{{{oddcolstyle|}}};{{{col1style|}}};width:{{{col1width|{{{colwidth|10em}}}}}};"><div>
{{{col1}}}
</div></td>}}<!--
-->{{#if:{{{col2|}}}|<td class="navbox-list" style="padding:0px;<!--
-->{{{colstyle|}}};{{{evencolstyle|}}};{{{col2style|}}};width:{{{col2width|{{{colwidth|10em}}}}}};"><div>
{{{col2}}}
</div></td>}}<!--
-->{{#if:{{{col3|}}}|<td class="navbox-list" style="padding:0px;<!--
-->{{{colstyle|}}};{{{oddcolstyle|}}};{{{col3style|}}};width:{{{col3width|{{{colwidth|10em}}}}}};"><div>
{{{col3}}}
</div></td>}}<!--
-->{{#if:{{{col4|}}}|<td class="navbox-list" style="padding:0px;<!--
-->{{{colstyle|}}};{{{evencolstyle|}}};{{{col4style|}}};width:{{{col4width|{{{colwidth|10em}}}}}};"><div>
{{{col4}}}
</div></td>}}<!--
-->{{#if:{{{col5|}}}|<td class="navbox-list" style="padding:0px;<!--
-->{{{colstyle|}}};{{{oddcolstyle|}}};{{{col5style|}}};width:{{{col5width|{{{colwidth|10em}}}}}};"><div>
{{{col5}}}
</div></td>}}<!--
-->{{#if:{{{col6|}}}|<td class="navbox-list" style="padding:0px;<!--
-->{{{colstyle|}}};{{{evencolstyle|}}};{{{col6style|}}};width:{{{col6width|{{{colwidth|10em}}}}}};"><div>
{{{col6}}}
</div></td>}}<!--
-->{{#if:{{{col7|}}}|<td class="navbox-list" style="padding:0px;<!--
-->{{{colstyle|}}};{{{oddcolstyle|}}};{{{col7style|}}};width:{{{col7width|{{{colwidth|10em}}}}}};"><div>
{{{col7}}}
</div></td>}}<!--
-->{{#if:{{{col8|}}}|<td class="navbox-list" style="padding:0px;<!--
-->{{{colstyle|}}};{{{evencolstyle|}}};{{{col8style|}}};width:{{{col8width|{{{colwidth|10em}}}}}};"><div>
{{{col8}}}
</div></td>}}<!--
-->{{#if:{{{col9|}}}|<td class="navbox-list" style="padding:0px;<!--
-->{{{colstyle|}}};{{{oddcolstyle|}}};{{{col9style|}}};width:{{{col9width|{{{colwidth|10em}}}}}};"><div>
{{{col9}}}
</div></td>}}<!--
-->{{#if:{{{col10|}}}|<td class="navbox-list" style="padding:0px;<!--
-->{{{colstyle|}}};{{{evencolstyle|}}};{{{col10style|}}};width:{{{col10width|{{{colwidth|10em}}}}}};"><div>
{{{col10}}}
</div></td>}}<!--
-->{{#if:{{{col11|}}}|<td class="navbox-list" style="padding:0px;<!--
-->{{{colstyle|}}};{{{oddcolstyle|}}};{{{col11style|}}};width:{{{col11width|{{{colwidth|10em}}}}}};"><div>
{{{col11}}}
</div></td>}}<!--
-->{{#if:{{{col12|}}}|<td class="navbox-list" style="padding:0px;<!--
-->{{{colstyle|}}};{{{evencolstyle|}}};{{{col12style|}}};width:{{{col12width|{{{colwidth|10em}}}}}};"><div>
{{{col12}}}
</div></td>}}<!--
-->{{#if:{{{col13|}}}|<td class="navbox-list" style="padding:0px;<!--
-->{{{colstyle|}}};{{{oddcolstyle|}}};{{{col13style|}}};width:{{{col13width|{{{colwidth|10em}}}}}};"><div>
{{{col13}}}
</div></td>}}<!--
-->{{#if:{{{col14|}}}|<td class="navbox-list" style="padding:0px;<!--
-->{{{colstyle|}}};{{{evencolstyle|}}};{{{col14style|}}};width:{{{col14width|{{{colwidth|10em}}}}}};"><div>
{{{col14}}}
</div></td>}}<!--
-->{{#if:{{{col15|}}}|<td class="navbox-list" style="padding:0px;<!--
-->{{{colstyle|}}};{{{oddcolstyle|}}};{{{col15style|}}};width:{{{col15width|{{{colwidth|10em}}}}}};"><div>
{{{col15}}}
</div></td>}}<!--
-->{{#if:{{{col16|}}}|<td class="navbox-list" style="padding:0px;<!--
-->{{{colstyle|}}};{{{evencolstyle|}}};{{{col16style|}}};width:{{{col16width|{{{colwidth|10em}}}}}};"><div>
{{{col16}}}
</div></td>}}<!--
-->{{#if:{{{col17|}}}|<td class="navbox-list" style="padding:0px;<!--
-->{{{colstyle|}}};{{{oddcolstyle|}}};{{{col17style|}}};width:{{{col17width|{{{colwidth|10em}}}}}};"><div>
{{{col17}}}
</div></td>}}<!--
-->{{#if:{{{col18|}}}|<td class="navbox-list" style="padding:0px;<!--
-->{{{colstyle|}}};{{{evencolstyle|}}};{{{col18style|}}};width:{{{col18width|{{{colwidth|10em}}}}}};"><div>
{{{col18}}}
</div></td>}}<!--
-->{{#if:{{{col19|}}}|<td class="navbox-list" style="padding:0px;<!--
-->{{{colstyle|}}};{{{oddcolstyle|}}};{{{col19style|}}};width:{{{col19width|{{{colwidth|10em}}}}}};"><div>
{{{col19}}}
</div></td>}}<!--
-->{{#if:{{{col20|}}}|<td class="navbox-list" style="padding:0px;<!--
-->{{{colstyle|}}};{{{evencolstyle|}}};{{{col20style|}}};width:{{{col20width|{{{colwidth|10em}}}}}};"><div>
{{{col20}}}
</div></td>}}<!--
--- Footer row ---
-->{{#if:{{{col1footer|}}}|<!--
-->{{#if:{{{col1|}}}{{{col1header|}}}|<tr style="height:2px"><td></td></tr>}}<tr><!--
-->{{#if:{{{col1footer|}}}|<td class="navbox-abovebelow" colspan={{{col1footercolspan|1}}} style="<!--
-->{{{colfooterstyle|}}};{{{col1footerstyle|}}}">'''{{{col1footer|}}}'''</td>}}<!--
-->{{#if:{{{col2footer|}}}|<td class="navbox-abovebelow navbox-list" colspan={{{col2footercolspan|1}}} style="<!--
-->{{{colfooterstyle|}}};{{{col2footerstyle|}}}">'''{{{col2footer|}}}'''</td>}}<!--
-->{{#if:{{{col3footer|}}}|<td class="navbox-abovebelow navbox-list" colspan={{{col3footercolspan|1}}} style="<!--
-->{{{colfooterstyle|}}};{{{col3footerstyle|}}}">'''{{{col3footer|}}}'''</td>}}<!--
-->{{#if:{{{col4footer|}}}|<td class="navbox-abovebelow navbox-list" colspan={{{col4footercolspan|1}}} style="<!--
-->{{{colfooterstyle|}}};{{{col4footerstyle|}}}">'''{{{col4footer|}}}'''</td>}}<!--
-->{{#if:{{{col5footer|}}}|<td class="navbox-abovebelow navbox-list" colspan={{{col5footercolspan|1}}} style="<!--
-->{{{colfooterstyle|}}};{{{col5footerstyle|}}}">'''{{{col5footer|}}}'''</td>}}<!--
-->{{#if:{{{col6footer|}}}|<td class="navbox-abovebelow navbox-list" colspan={{{col6footercolspan|1}}} style="<!--
-->{{{colfooterstyle|}}};{{{col6footerstyle|}}}">'''{{{col6footer|}}}'''</td>}}<!--
-->{{#if:{{{col7footer|}}}|<td class="navbox-abovebelow navbox-list" colspan={{{col7footercolspan|1}}} style="<!--
-->{{{colfooterstyle|}}};{{{col7footerstyle|}}}">'''{{{col7footer|}}}'''</td>}}<!--
-->{{#if:{{{col8footer|}}}|<td class="navbox-abovebelow navbox-list" colspan={{{col8footercolspan|1}}} style="<!--
-->{{{colfooterstyle|}}};{{{col8footerstyle|}}}">'''{{{col8footer|}}}'''</td>}}<!--
-->{{#if:{{{col9footer|}}}|<td class="navbox-abovebelow navbox-list" colspan={{{col9footercolspan|1}}} style="<!--
-->{{{colfooterstyle|}}};{{{col9footerstyle|}}}">'''{{{col9footer|}}}'''</td>}}<!--
-->{{#if:{{{col10footer|}}}|<td class="navbox-abovebelow navbox-list" colspan={{{col10footercolspan|1}}} style="<!--
-->{{{colfooterstyle|}}};{{{col10footerstyle|}}}">'''{{{col10footer|}}}'''</td>}}<!--
-->{{#if:{{{col11footer|}}}|<td class="navbox-abovebelow navbox-list" colspan={{{col11footercolspan|1}}} style="<!--
-->{{{colfooterstyle|}}};{{{col11footerstyle|}}}">'''{{{col11footer|}}}'''</td>}}<!--
-->{{#if:{{{col12footer|}}}|<td class="navbox-abovebelow navbox-list" colspan={{{col12footercolspan|1}}} style="<!--
-->{{{colfooterstyle|}}};{{{col12footerstyle|}}}">'''{{{col12footer|}}}'''</td>}}<!--
-->{{#if:{{{col13footer|}}}|<td class="navbox-abovebelow navbox-list" colspan={{{col13footercolspan|1}}} style="<!--
-->{{{colfooterstyle|}}};{{{col13footerstyle|}}}">'''{{{col13footer|}}}'''</td>}}<!--
-->{{#if:{{{col14footer|}}}|<td class="navbox-abovebelow navbox-list" colspan={{{col14footercolspan|1}}} style="<!--
-->{{{colfooterstyle|}}};{{{col14footerstyle|}}}">'''{{{col14footer|}}}'''</td>}}<!--
-->{{#if:{{{col15footer|}}}|<td class="navbox-abovebelow navbox-list" colspan={{{col15footercolspan|1}}} style="<!--
-->{{{colfooterstyle|}}};{{{col15footerstyle|}}}">'''{{{col15footer|}}}'''</td>}}<!--
-->{{#if:{{{col16footer|}}}|<td class="navbox-abovebelow navbox-list" colspan={{{col16footercolspan|1}}} style="<!--
-->{{{colfooterstyle|}}};{{{col16footerstyle|}}}">'''{{{col16footer|}}}'''</td>}}<!--
-->{{#if:{{{col17footer|}}}|<td class="navbox-abovebelow navbox-list" colspan={{{col17footercolspan|1}}} style="<!--
-->{{{colfooterstyle|}}};{{{col17footerstyle|}}}">'''{{{col17footer|}}}'''</td>}}<!--
-->{{#if:{{{col18footer|}}}|<td class="navbox-abovebelow navbox-list" colspan={{{col18footercolspan|1}}} style="<!--
-->{{{colfooterstyle|}}};{{{col18footerstyle|}}}">'''{{{col18footer|}}}'''</td>}}<!--
-->{{#if:{{{col19footer|}}}|<td class="navbox-abovebelow navbox-list" colspan={{{col19footercolspan|1}}} style="<!--
-->{{{colfooterstyle|}}};{{{col19footerstyle|}}}">'''{{{col19footer|}}}'''</td>}}<!--
-->{{#if:{{{col20footer|}}}|<td class="navbox-abovebelow navbox-list" style="<!--
-->{{{colfooterstyle|}}};{{{col20footerstyle|}}}">'''{{{col20footer|}}}'''</td>}}<!--
-->}}<!--
--></tr></table>
<!--  Allow a few additional lists after columns  -->
|liststyle = {{{liststyle|}}}
|list1style = background:transparent;color:inherit;
|list3style = {{{list1style|}}}
|list4style = {{{list2style|}}}
|list5style = {{{list3style|}}}
|list6style = {{{list3style|}}}
|list7style = {{{list5style|}}}
|list8style = {{{list6style|}}}
|list3 = {{{list1|}}}
|list4 = {{{list2|}}}
|list5 = {{{list3|}}}
|list6 = {{{list4|}}}
|list7 = {{{list5|}}}
|list8 = {{{list6|}}}
}}</includeonly></onlyinclude>

Latest revision as of 05:32, 25 February 2014

Places a navbox with structured columns on a wiki page. See also Template:Navbox and Template:Navbox with collapsible groups.

Usage
style= (Optional) add style to the outer table
class= (Optional) add class to the outer and inner navbox tables
state= [none|plain|off,hide|coll|collapsed] - 'none' disables collapsing, 'hide' starts as collapsed.

See Template:Navbox with columns/doc for more instructions and examples.


Template