Template:Navbox with columns: Difference between revisions

From Vigyanwiki
Template>Camw
(update list as well)
m (47 revisions imported from alpha:Template:Navbox_with_columns)
 
(17 intermediate revisions by 13 users not shown)
Line 3: Line 3:
Please do not edit without discussion first as this is a "VERY complex" template.
Please do not edit without discussion first as this is a "VERY complex" template.


-->{{Navbox
-->{{#invoke:Navbox|navbox
|name = {{{name|}}}
|name = {{{name|}}}
|navbar = {{{navbar|}}}
|navbar = {{{navbar|}}}
Line 11: Line 11:
|title = {{{title|}}}
|title = {{{title|}}}
|above = {{{above|}}}
|above = {{{above|}}}
|below = {{{below|}}}
|image = {{{image|}}}
|image = {{{image|}}}
|imageleft = {{{imageleft|}}}
|imageleft = {{{imageleft|}}}
|bodyclass = {{{bodyclass|}}}
|titleclass = {{{titleclass|}}}
|aboveclass = {{{aboveclass|}}}
|belowclass = {{{belowclass|}}}
|groupclass = {{{groupclass|}}}
|listclass = {{{listclass|}}}


|style = {{{style|}}}{{{bodystyle|}}}
|style = {{{style|}}}{{{bodystyle|}}}
Line 22: Line 28:
|imagestyle = {{{imagestyle|}}}
|imagestyle = {{{imagestyle|}}}
|imageleftstyle = {{{imageleftstyle|}}}
|imageleftstyle = {{{imageleftstyle|}}}
|oddstyle = {{{oddstyle|}}}
|evenstyle = {{{evenstyle|}}}
|{{#if:{{{evenodd|}}}|evenodd|void}} = {{{evenodd|}}}
|list1padding = 0px;
|list1padding = 0px;


|list1 = <!--
|list1 = <!--
  --><table cellspacing="0" class="navbox-columns-table" style="text-align:left;<!--
  --><table class="navbox-columns-table" style="border-spacing: 0px; text-align:left;<!--
  -->{{#if:{{{col1header|}}}{{{fullwidth|}}}|width:100%;<!--
  -->{{#if:{{{col1header|}}}{{{fullwidth|}}}|width:100%;<!--
  -->|width:auto;margin-left:auto;margin-right:auto;}}{{{coltablestyle|}}}"><!--
  -->|width:auto; margin-left:auto; margin-right:auto;}}{{{coltablestyle|}}}"><!--




Line 118: Line 127:


--- Main columns---
--- Main columns---
--><tr style="vertical-align:top;"><!--


-->{{#if:{{{col1|}}}|{{#if:{{{col1header|}}}|<tr style="height:2px;"><td></td></tr>}}<!--
-->{{#if:{{{col1|}}}|<!--
 
--><tr style="vertical-align:top;"><!--
-->{{#if:{{{col1header|}}}{{{col1footer|}}}{{{fullwidth|}}}|<!--
-->{{#if:{{{col1header|}}}{{{col1footer|}}}{{{fullwidth|}}}|<!--
  -->|{{#switch:{{{padding|}}}|off|0|0em|0px|0%|0;|0em;|0px;|0%;=<!--
  -->|{{#switch:{{{padding|}}}|off|0|0em|0px|0%|0;|0em;|0px;|0%;=<!--
  -->|#default=<td style="width:{{{padding|5em}}};">&nbsp;&nbsp;&nbsp;</td>}}}}<!--
  -->|#default=<td style="width:{{{padding|5em}}};">&nbsp;&nbsp;&nbsp;</td>}}}}<!--
 
--><td class="navbox-list" style="padding:0px;<!--
--><td style="padding:0px;<!--
-->{{{colstyle|}}};{{{oddcolstyle|}}};{{{col1style|}}};width:{{{col1width|{{{colwidth|10em}}}}}};"><div>
-->{{{colstyle|}}};{{{oddcolstyle|}}};{{{col1style|}}};width:{{{col1width|{{{colwidth|10em}}}}}};"><div>
{{{col1}}}
{{{col1}}}
</div></td>}}<!--
</div></td>}}<!--


-->{{#if:{{{col2|}}}|<td style="border-left:2px solid #fdfdfd;padding:0px;<!--
-->{{#if:{{{col2|}}}|<td class="navbox-list" style="border-left:2px solid #fdfdfd;padding:0px;<!--
-->{{{colstyle|}}};{{{evencolstyle|}}};{{{col2style|}}};width:{{{col2width|{{{colwidth|10em}}}}}};"><div>
-->{{{colstyle|}}};{{{evencolstyle|}}};{{{col2style|}}};width:{{{col2width|{{{colwidth|10em}}}}}};"><div>
{{{col2}}}
{{{col2}}}
</div></td>}}<!--
</div></td>}}<!--


-->{{#if:{{{col3|}}}|<td style="border-left:2px solid #fdfdfd;padding:0px;<!--
-->{{#if:{{{col3|}}}|<td class="navbox-list" style="border-left:2px solid #fdfdfd;padding:0px;<!--
-->{{{colstyle|}}};{{{oddcolstyle|}}};{{{col3style|}}};width:{{{col3width|{{{colwidth|10em}}}}}};"><div>
-->{{{colstyle|}}};{{{oddcolstyle|}}};{{{col3style|}}};width:{{{col3width|{{{colwidth|10em}}}}}};"><div>
{{{col3}}}
{{{col3}}}
</div></td>}}<!--
</div></td>}}<!--


-->{{#if:{{{col4|}}}|<td style="border-left:2px solid #fdfdfd;padding:0px;<!--
-->{{#if:{{{col4|}}}|<td class="navbox-list" style="border-left:2px solid #fdfdfd;padding:0px;<!--
-->{{{colstyle|}}};{{{evencolstyle|}}};{{{col4style|}}};width:{{{col4width|{{{colwidth|10em}}}}}};"><div>
-->{{{colstyle|}}};{{{evencolstyle|}}};{{{col4style|}}};width:{{{col4width|{{{colwidth|10em}}}}}};"><div>
{{{col4}}}
{{{col4}}}
</div></td>}}<!--
</div></td>}}<!--


-->{{#if:{{{col5|}}}|<td style="border-left:2px solid #fdfdfd;padding:0px;<!--
-->{{#if:{{{col5|}}}|<td class="navbox-list" style="border-left:2px solid #fdfdfd;padding:0px;<!--
-->{{{colstyle|}}};{{{oddcolstyle|}}};{{{col5style|}}};width:{{{col5width|{{{colwidth|10em}}}}}};"><div>
-->{{{colstyle|}}};{{{oddcolstyle|}}};{{{col5style|}}};width:{{{col5width|{{{colwidth|10em}}}}}};"><div>
{{{col5}}}
{{{col5}}}
</div></td>}}<!--
</div></td>}}<!--


-->{{#if:{{{col6|}}}|<td style="border-left:2px solid #fdfdfd;padding:0px;<!--
-->{{#if:{{{col6|}}}|<td class="navbox-list" style="border-left:2px solid #fdfdfd;padding:0px;<!--
-->{{{colstyle|}}};{{{evencolstyle|}}};{{{col6style|}}};width:{{{col6width|{{{colwidth|10em}}}}}};"><div>
-->{{{colstyle|}}};{{{evencolstyle|}}};{{{col6style|}}};width:{{{col6width|{{{colwidth|10em}}}}}};"><div>
{{{col6}}}
{{{col6}}}
</div></td>}}<!--
</div></td>}}<!--


-->{{#if:{{{col7|}}}|<td style="border-left:2px solid #fdfdfd;padding:0px;<!--
-->{{#if:{{{col7|}}}|<td class="navbox-list" style="border-left:2px solid #fdfdfd;padding:0px;<!--
-->{{{colstyle|}}};{{{oddcolstyle|}}};{{{col7style|}}};width:{{{col7width|{{{colwidth|10em}}}}}};"><div>
-->{{{colstyle|}}};{{{oddcolstyle|}}};{{{col7style|}}};width:{{{col7width|{{{colwidth|10em}}}}}};"><div>
{{{col7}}}
{{{col7}}}
</div></td>}}<!--
</div></td>}}<!--


-->{{#if:{{{col8|}}}|<td style="border-left:2px solid #fdfdfd;padding:0px;<!--
-->{{#if:{{{col8|}}}|<td class="navbox-list" style="border-left:2px solid #fdfdfd;padding:0px;<!--
-->{{{colstyle|}}};{{{evencolstyle|}}};{{{col8style|}}};width:{{{col8width|{{{colwidth|10em}}}}}};"><div>
-->{{{colstyle|}}};{{{evencolstyle|}}};{{{col8style|}}};width:{{{col8width|{{{colwidth|10em}}}}}};"><div>
{{{col8}}}
{{{col8}}}
</div></td>}}<!--
</div></td>}}<!--


-->{{#if:{{{col9|}}}|<td style="border-left:2px solid #fdfdfd;padding:0px;<!--
-->{{#if:{{{col9|}}}|<td class="navbox-list" style="border-left:2px solid #fdfdfd;padding:0px;<!--
-->{{{colstyle|}}};{{{oddcolstyle|}}};{{{col9style|}}};width:{{{col9width|{{{colwidth|10em}}}}}};"><div>
-->{{{colstyle|}}};{{{oddcolstyle|}}};{{{col9style|}}};width:{{{col9width|{{{colwidth|10em}}}}}};"><div>
{{{col9}}}
{{{col9}}}
</div></td>}}<!--
</div></td>}}<!--


-->{{#if:{{{col10|}}}|<td style="border-left:2px solid #fdfdfd;padding:0px;<!--
-->{{#if:{{{col10|}}}|<td class="navbox-list" style="border-left:2px solid #fdfdfd;padding:0px;<!--
-->{{{colstyle|}}};{{{evencolstyle|}}};{{{col10style|}}};width:{{{col10width|{{{colwidth|10em}}}}}};"><div>
-->{{{colstyle|}}};{{{evencolstyle|}}};{{{col10style|}}};width:{{{col10width|{{{colwidth|10em}}}}}};"><div>
{{{col10}}}
{{{col10}}}
</div></td>}}<!--
</div></td>}}<!--


-->{{#if:{{{col11|}}}|<td style="border-left:2px solid #fdfdfd;padding:0px;<!--
-->{{#if:{{{col11|}}}|<td class="navbox-list" style="border-left:2px solid #fdfdfd;padding:0px;<!--
-->{{{colstyle|}}};{{{oddcolstyle|}}};{{{col11style|}}};width:{{{col11width|{{{colwidth|10em}}}}}};"><div>
-->{{{colstyle|}}};{{{oddcolstyle|}}};{{{col11style|}}};width:{{{col11width|{{{colwidth|10em}}}}}};"><div>
{{{col11}}}
{{{col11}}}
</div></td>}}<!--
</div></td>}}<!--


-->{{#if:{{{col12|}}}|<td style="border-left:2px solid #fdfdfd;padding:0px;<!--
-->{{#if:{{{col12|}}}|<td class="navbox-list" style="border-left:2px solid #fdfdfd;padding:0px;<!--
-->{{{colstyle|}}};{{{evencolstyle|}}};{{{col12style|}}};width:{{{col12width|{{{colwidth|10em}}}}}};"><div>
-->{{{colstyle|}}};{{{evencolstyle|}}};{{{col12style|}}};width:{{{col12width|{{{colwidth|10em}}}}}};"><div>
{{{col12}}}
{{{col12}}}
</div></td>}}<!--
</div></td>}}<!--


-->{{#if:{{{col13|}}}|<td style="border-left:2px solid #fdfdfd;padding:0px;<!--
-->{{#if:{{{col13|}}}|<td class="navbox-list" style="border-left:2px solid #fdfdfd;padding:0px;<!--
-->{{{colstyle|}}};{{{oddcolstyle|}}};{{{col13style|}}};width:{{{col13width|{{{colwidth|10em}}}}}};"><div>
-->{{{colstyle|}}};{{{oddcolstyle|}}};{{{col13style|}}};width:{{{col13width|{{{colwidth|10em}}}}}};"><div>
{{{col13}}}
{{{col13}}}
</div></td>}}<!--
</div></td>}}<!--


-->{{#if:{{{col14|}}}|<td style="border-left:2px solid #fdfdfd;padding:0px;<!--
-->{{#if:{{{col14|}}}|<td class="navbox-list" style="border-left:2px solid #fdfdfd;padding:0px;<!--
-->{{{colstyle|}}};{{{evencolstyle|}}};{{{col14style|}}};width:{{{col14width|{{{colwidth|10em}}}}}};"><div>
-->{{{colstyle|}}};{{{evencolstyle|}}};{{{col14style|}}};width:{{{col14width|{{{colwidth|10em}}}}}};"><div>
{{{col14}}}
{{{col14}}}
</div></td>}}<!--
</div></td>}}<!--


-->{{#if:{{{col15|}}}|<td style="border-left:2px solid #fdfdfd;padding:0px;<!--
-->{{#if:{{{col15|}}}|<td class="navbox-list" style="border-left:2px solid #fdfdfd;padding:0px;<!--
-->{{{colstyle|}}};{{{oddcolstyle|}}};{{{col15style|}}};width:{{{col15width|{{{colwidth|10em}}}}}};"><div>
-->{{{colstyle|}}};{{{oddcolstyle|}}};{{{col15style|}}};width:{{{col15width|{{{colwidth|10em}}}}}};"><div>
{{{col15}}}
{{{col15}}}
</div></td>}}<!--
</div></td>}}<!--


-->{{#if:{{{col16|}}}|<td style="border-left:2px solid #fdfdfd;padding:0px;<!--
-->{{#if:{{{col16|}}}|<td class="navbox-list" style="border-left:2px solid #fdfdfd;padding:0px;<!--
-->{{{colstyle|}}};{{{evencolstyle|}}};{{{col16style|}}};width:{{{col16width|{{{colwidth|10em}}}}}};"><div>
-->{{{colstyle|}}};{{{evencolstyle|}}};{{{col16style|}}};width:{{{col16width|{{{colwidth|10em}}}}}};"><div>
{{{col16}}}
{{{col16}}}
</div></td>}}<!--
</div></td>}}<!--


-->{{#if:{{{col17|}}}|<td style="border-left:2px solid #fdfdfd;padding:0px;<!--
-->{{#if:{{{col17|}}}|<td class="navbox-list" style="border-left:2px solid #fdfdfd;padding:0px;<!--
-->{{{colstyle|}}};{{{oddcolstyle|}}};{{{col17style|}}};width:{{{col17width|{{{colwidth|10em}}}}}};"><div>
-->{{{colstyle|}}};{{{oddcolstyle|}}};{{{col17style|}}};width:{{{col17width|{{{colwidth|10em}}}}}};"><div>
{{{col17}}}
{{{col17}}}
</div></td>}}<!--
</div></td>}}<!--


-->{{#if:{{{col18|}}}|<td style="border-left:2px solid #fdfdfd;padding:0px;<!--
-->{{#if:{{{col18|}}}|<td class="navbox-list" style="border-left:2px solid #fdfdfd;padding:0px;<!--
-->{{{colstyle|}}};{{{evencolstyle|}}};{{{col18style|}}};width:{{{col18width|{{{colwidth|10em}}}}}};"><div>
-->{{{colstyle|}}};{{{evencolstyle|}}};{{{col18style|}}};width:{{{col18width|{{{colwidth|10em}}}}}};"><div>
{{{col18}}}
{{{col18}}}
</div></td>}}<!--
</div></td>}}<!--


-->{{#if:{{{col19|}}}|<td style="border-left:2px solid #fdfdfd;padding:0px;<!--
-->{{#if:{{{col19|}}}|<td class="navbox-list" style="border-left:2px solid #fdfdfd;padding:0px;<!--
-->{{{colstyle|}}};{{{oddcolstyle|}}};{{{col19style|}}};width:{{{col19width|{{{colwidth|10em}}}}}};"><div>
-->{{{colstyle|}}};{{{oddcolstyle|}}};{{{col19style|}}};width:{{{col19width|{{{colwidth|10em}}}}}};"><div>
{{{col19}}}
{{{col19}}}
</div></td>}}<!--
</div></td>}}<!--


-->{{#if:{{{col20|}}}|<td style="border-left:2px solid #fdfdfd;padding:0px;<!--
-->{{#if:{{{col20|}}}|<td class="navbox-list" style="border-left:2px solid #fdfdfd;padding:0px;<!--
-->{{{colstyle|}}};{{{evencolstyle|}}};{{{col20style|}}};width:{{{col20width|{{{colwidth|10em}}}}}};"><div>
-->{{{colstyle|}}};{{{evencolstyle|}}};{{{col20style|}}};width:{{{col20width|{{{colwidth|10em}}}}}};"><div>
{{{col20}}}
{{{col20}}}
</div></td>}}<!--
</div></td>}}<!--


--></tr><!--




Line 231: Line 240:


-->{{#if:{{{col1footer|}}}|<!--
-->{{#if:{{{col1footer|}}}|<!--
-->{{#if:{{{col1|}}}{{{col1header|}}}|<tr style="height:2px"><td></td></tr>}}<tr><!--
--><tr><!--


--><td class="navbox-abovebelow" colspan={{{col1footercolspan|1}}} style="<!--
--><td class="navbox-abovebelow" colspan={{{col1footercolspan|1}}} style="<!--
Line 293: Line 302:
  -->border-left:2px solid #fdfdfd;font-weight:bold;{{{colfooterstyle|}}};{{{col20footerstyle|}}}">{{{col20footer}}}</td>}}<!--
  -->border-left:2px solid #fdfdfd;font-weight:bold;{{{colfooterstyle|}}};{{{col20footerstyle|}}}">{{{col20footer}}}</td>}}<!--


--></tr>}}<!--
-->}}<!--


--></tr></table>
--></tr></table>{{#if:{{{col1header|}}}{{{col1|}}}{{{col1footer|}}}||[[Category:Pages using navbox columns without the first column]]}}




Line 304: Line 313:
|list4style = {{{list2style|}}}
|list4style = {{{list2style|}}}
|list5style = {{{list3style|}}}
|list5style = {{{list3style|}}}
|list6style = {{{list3style|}}}
|list6style = {{{list4style|}}}
|list7style = {{{list5style|}}}
|list7style = {{{list5style|}}}
|list8style = {{{list6style|}}}
|list8style = {{{list6style|}}}
|list9style = {{{list7style|}}}
|list9style = {{{list7style|}}}
|list10style = {{{list8style|}}}
|list11style = {{{list9style|}}}
|list12style = {{{list10style|}}}


|list3 = {{{list1|}}}
|list3 = {{{list1|}}}
Line 316: Line 328:
|list8 = {{{list6|}}}
|list8 = {{{list6|}}}
|list9 = {{{list7|}}}
|list9 = {{{list7|}}}
|list10 = {{{list8|}}}
|list11 = {{{list9|}}}
|list12 = {{{list10|}}}


|groupstyle = {{{groupstyle|}}}
|groupstyle = {{{groupstyle|}}}
Line 325: Line 340:
|group8style = {{{group6style|}}}
|group8style = {{{group6style|}}}
|group9style = {{{group7style|}}}
|group9style = {{{group7style|}}}
|group10style = {{{group8style|}}}
|group11style = {{{group9style|}}}
|group12style = {{{group10style|}}}


|group3 = {{{group1|}}}
|group3 = {{{group1|}}}
Line 333: Line 351:
|group8 = {{{group6|}}}
|group8 = {{{group6|}}}
|group9 = {{{group7|}}}
|group9 = {{{group7|}}}
|group10 = {{{group8|}}}
|group11 = {{{group9|}}}
|group12 = {{{group10|}}}
|below = {{{below|}}}


|oddstyle = {{{oddstyle|}}}
|tracking = no
|evenstyle = {{{evenstyle|}}}
|{{#if:{{{evenodd|}}}|evenodd|void}} = {{{evenodd|}}}


}}<noinclude>
}}<noinclude>

Latest revision as of 10:06, 15 January 2023

Template documentation