Difference between revisions of "Template:Navbox"
From BG-pedia
5432
m |
m |
||
(13 intermediate revisions by the same user 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. | ||
− | -->{{#switch:{{{border|{{{1|}}}}}}|subgroup|child=</div>|none=|#default=<table class="navbox {{{bodyclass|}}}" cellspacing="0" <!-- | + | -->{{#switch:{{{border|{{{1|}}}}}}|subgroup|child=</div>|none=|#default= |
+ | <table width=100% class="navbox {{{bodyclass|}}}" cellspacing="0" <!-- | ||
-->style="{{{bodystyle|}}};{{{style|}}}"><tr><td style="padding:2px;">}}<!-- | -->style="{{{bodystyle|}}};{{{style|}}}"><tr><td style="padding:2px;">}}<!-- | ||
− | --><table cellspacing="0" class="nowraplinks {{#if:{{{title|}}}|{{#switch:{{{state|}}}|plain|off=|<!-- | + | --> |
− | -->#default=collapsible {{#if:{{{state|}}}|{{{state}}}| | + | <table cellspacing="0" class="nowraplinks {{#if:{{{title|}}}|{{#switch:{{{state|}}}|plain|off=|<!-- |
+ | -->#default=mw-collapsible {{#if:{{{state|}}}|{{{state}}}|mw-collapsed}}}}}} {{#switch:{{{border|{{{1|}}}}}}|<!-- | ||
-->subgroup|child|none=navbox-subgroup" style="width:100%;{{{bodystyle|}}};{{{style|}}}|<!-- | -->subgroup|child|none=navbox-subgroup" style="width:100%;{{{bodystyle|}}};{{{style|}}}|<!-- | ||
-->#default=" style="width:100%;background:transparent;color:inherit}};{{{innerstyle|}}};"><!-- | -->#default=" style="width:100%;background:transparent;color:inherit}};{{{innerstyle|}}};"><!-- | ||
+ | |||
---Title and Navbar--- | ---Title and Navbar--- | ||
Line 28: | Line 31: | ||
-->{{#ifeq:{{{state|}}}|plain|<span style="float:right;width:6em;"> </span>}}}}<!-- | -->{{#ifeq:{{{state|}}}|plain|<span style="float:right;width:6em;"> </span>}}}}<!-- | ||
− | --><span class="{{{titleclass|}}}" style="font-size:{{#switch:{{{border|{{{1|}}}}}}|subgroup|child|none=100|#default= | + | --><span class="{{{titleclass|}}}" style="font-size:{{#switch:{{{border|{{{1|}}}}}}|subgroup|child|none=100|#default=95}}%;"><!-- |
-->{{{title}}}</span></th></tr>}}<!-- | -->{{{title}}}</span></th></tr>}}<!-- | ||
Line 257: | Line 260: | ||
--><noinclude> | --><noinclude> | ||
− | {{documentation}} | + | <!--{{documentation}}--> |
<!-- Add categories and interwikis to the /doc subpage, not here! --> | <!-- Add categories and interwikis to the /doc subpage, not here! --> | ||
</noinclude> | </noinclude> |
Latest revision as of 21:43, 10 March 2021
|