Template:Navbox: Difference between revisions
DansFriend (talk | contribs) mNo edit summary Tag: Manual revert |
DansFriend (talk | contribs) mNo edit summary |
||
(3 intermediate revisions by the same user not shown) | |||
Line 6: | Line 6: | ||
-->class="navbox" style="border-spacing:0;{{{bodystyle|}}};{{{style|}}}"><tr><td style="padding:2px;">}}<!-- | -->class="navbox" style="border-spacing:0;{{{bodystyle|}}};{{{style|}}}"><tr><td style="padding:2px;">}}<!-- | ||
--><table cellspacing="0" class="nowraplinks {{{bodyclass|}}} {{#if:{{{title|}}}|{{#switch:{{{state|}}}|<!-- | --><table cellspacing="0" width="100%" class="nowraplinks {{{bodyclass|}}} {{#if:{{{title|}}}|{{#switch:{{{state|}}}|<!-- | ||
-->plain|off=|#default=mw-collapsible {{#if:{{{state|}}}|{{{state}}}|mw-collapsed}}}}}} {{#switch:{{{border|{{{1|}}}}}}|<!-- | -->plain|off=|#default=mw-collapsible {{#if:{{{state|}}}|{{{state}}}|mw-collapsed}}}}}} {{#switch:{{{border|{{{1|}}}}}}|<!-- | ||
-->subgroup|child|none=navbox-subgroup" style="border-spacing:0;{{{bodystyle|}}};{{{style|}}}|<!-- | -->subgroup|child|none=navbox-subgroup" style="border-spacing:0;{{{bodystyle|}}};{{{style|}}}|<!-- | ||
Line 24: | Line 24: | ||
-->{{#ifeq:{{{navbar|}}}|off|{{#ifeq:{{{state|}}}|plain|<span style="float:right;width:6em;"> </span>}}|<!-- | -->{{#ifeq:{{{navbar|}}}|off|{{#ifeq:{{{state|}}}|plain|<span style="float:right;width:6em;"> </span>}}|<!-- | ||
-->{{#ifeq:{{{state|}}}|plain||<span style="float:left;width:6em;"> </span>}}}}|<!-- | -->{{#ifeq:{{{state|}}}|plain||<span style="float:left;width:6em;"> </span>}}}}|<!-- | ||
-->{{#if:{{{name|}}}|{{Navbar|{{{name}}}|mini=1|<!-- | |||
-->fontstyle={{{basestyle|}}};{{{titlestyle|}}};background:none transparent;border:none;}}}}<!-- | |||
-->{{#ifeq:{{{state|}}}|plain|<span style="float:right;width:6em;"> </span>}}}}<!-- | -->{{#ifeq:{{{state|}}}|plain|<span style="float:right;width:6em;"> </span>}}}}<!-- | ||
Latest revision as of 02:46, 30 October 2022
About this template
This template can be used to create navigational boxes to be placed at the end of articles.
Usage
Please remove unused (blank) parameters.
{{Navbox | name = | state = | title = | bodyclass = hlist | group1 = | list1 = | group2 = | list2 = | group3 = | list3 = }}
Example
The following code:
{{Navbox | name = | state = | title = Example | bodyclass = hlist | group1 = Example | list1 = * Example * Example | group2 = Example | list2 = * Example * Example * Example }}
Produces the following result:
|
Visit Template:Navbox/doc to edit this text! (How does this work?)