Template:Navbox: Difference between revisions
mNo edit summary |
mNo edit summary |
||
Line 2: | Line 2: | ||
{{#ifexpr:{{{1}}}=0| | {{#ifexpr:{{{1}}}=0| | ||
{{!}}- | {{!}}- | ||
{{!}} style="width:200px;font-weight:bold; background-color: #eee; padding-left: 1em; padding-right: 1em;" {{!}} {{{title|title}}} | {{!}} style="width:200px;font-weight:bold; background-color: {{{titlebg|#eee}}}; padding-left: 1em; padding-right: 1em;" {{!}} {{{title|title}}} | ||
{{!}} {{{content|content}}} | {{!}} {{{content|content}}} | ||
{{{extra| | {{{extra| | ||
Line 9: | Line 9: | ||
! colspan="2" style="border: 1px solid #aaa; font-weight:bold; font-size: 110%;background-color: {{{mainbg|#ccf}}};color:#000; padding-left: 1em; padding-right: 1em;" {{!}} <span style="float:left;">{{Vde|{{{name|Navbox}}}}}</span>{{{main}}} | ! colspan="2" style="border: 1px solid #aaa; font-weight:bold; font-size: 110%;background-color: {{{mainbg|#ccf}}};color:#000; padding-left: 1em; padding-right: 1em;" {{!}} <span style="float:left;">{{Vde|{{{name|Navbox}}}}}</span>{{{main}}} | ||
{{!}}- | {{!}}- | ||
{{!}} style="width:200px;font-weight:bold; background-color: #eee; padding-left: 1em; padding-right: 1em;" {{!}} {{{title|title}}} | {{!}} style="width:200px;font-weight:bold; background-color: #{{{titlebg|#eee}}}; padding-left: 1em; padding-right: 1em;" {{!}} {{{title|title}}} | ||
{{!}} {{{content|content}}} | {{!}} {{{content|content}}} | ||
{{{extra| | {{{extra| | ||
Line 17: | Line 17: | ||
|mainbg=#ccf | |mainbg=#ccf | ||
|main=test navbox | |main=test navbox | ||
|title= | |titlebg=#00f | ||
|title=1 | |||
|content=This works fine for one row, but if you.. | |content=This works fine for one row, but if you.. | ||
|extra={{Navbox|0|title= | |extra={{Navbox|0|titlebg=#f00|title=2|content=..add another navbox template in with '0' for the first parameter.. | ||
|extra={{Navbox|0|title= | |extra={{Navbox|0|titlebg=#0f0|title=3|content=it allows you to add more.}}}}}}</pre><br><br>{{Navbox|1 | ||
|name=Navbox | |name=Navbox | ||
|mainbg=#ccf | |mainbg=#ccf | ||
Line 26: | Line 27: | ||
|title=test1 | |title=test1 | ||
|content=This works fine for one row, but if you.. | |content=This works fine for one row, but if you.. | ||
|extra={{Navbox|0|title=test2|content=..add another navbox template in with '0' for the first parameter.. | |extra={{Navbox|0|titlebg=#f00|title=test2|content=..add another navbox template in with '0' for the first parameter.. | ||
|extra={{Navbox|0|title=test3|content=it allows you to add more.}}}}}}<br><br><br><br>Navbox templates:<br> | |extra={{Navbox|0|titlebg=#0f0|title=test3|content=it allows you to add more.}}}}}}<br><br><br><br>Navbox templates:<br> | ||
* [[Template:Navbox/Consumables]] | * [[Template:Navbox/Consumables]] | ||
* [[Template:Navbox/Weapons]] | * [[Template:Navbox/Weapons]] |
Revision as of 05:14, 14 June 2011
{{Navbox|1 |name=Navbox |mainbg=#ccf |main=test navbox |titlebg=#00f |title=1 |content=This works fine for one row, but if you.. |extra={{Navbox|0|titlebg=#f00|title=2|content=..add another navbox template in with '0' for the first parameter.. |extra={{Navbox|0|titlebg=#0f0|title=3|content=it allows you to add more.}}}}}}
v • d • etest navbox | |
---|---|
test1 | This works fine for one row, but if you.. |
test2 | ..add another navbox template in with '0' for the first parameter.. |
test3 | it allows you to add more. |
Navbox templates: