Template:Navbar: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
m 5 revisions imported |
||
| (3 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly>< | <includeonly><div class="noprint plainlinks hlist navbar {{#if:{{{mini|}}}|mini}}" style="{{{style|}}}"><!-- | ||
-->{{#if:{{{mini|}}}{{{plain|}}}|<!--nothing-->|<!--else: | -->{{#if:{{{mini|}}}{{{plain|}}}|<!--nothing-->|<!--else: | ||
--><span style="{{{fontstyle|}}}">{{{text|This box:}}} </span>}}<!-- | --><span style="word-spacing:0;{{{fontstyle|}}}">{{{text|This box:}}} </span>}}<!-- | ||
-->{{#if:{{{brackets|}}}|<span style="{{{fontstyle|}}}">[</span>}}<!-- | -->{{#if:{{{brackets|}}}|<span style="margin-right:-0.125em;{{{fontstyle|}}}">[</span>}}<!-- | ||
-->< | --><ul><!-- | ||
-->[[{{ | --><li class="nv-view">[[{{xclude|{{{1}}}}}|<span title="View this template" <!-- | ||
-->style="{{{fontstyle|}}}">{{#if:{{{mini|}}}|v|view}}</span>]]</li><!-- | |||
--> | |||
-->{{#if:{{{noedit|}}}|<!--nothing-->|<!--else: | -->{{#if:{{{noedit|}}}|<!--nothing-->|<!--else: | ||
-->< | --><li class="nv-edit">[{{fullurl:{{xclude|{{{1}}}}}|action=edit}} <span title="Edit this template" <!-- | ||
-->style="{{{fontstyle|}}}">{{#if:{{{mini|}}}|e|edit}}</span>]</li>}}<!-- | |||
-->{{#if:{{{mini|}}}|e|edit}}</span>]}}<!-- | --></ul><!-- | ||
--></ | |||
-->{{#if:{{{brackets|}}}|<span style="{{{fontstyle|}}}">]</span>}}<!-- | -->{{#if:{{{brackets|}}}|<span style="margin-left:-0.125em;{{{fontstyle|}}}">]</span>}}<!-- | ||
--></ | --></div></includeonly><noinclude> | ||
{{documentation}} | {{documentation}} | ||
[[Category:Backend templates]] | [[Category:Backend templates]] | ||
</noinclude> | </noinclude> | ||
Latest revision as of 02:47, 19 February 2026
Examples
[edit]Required parameters
[edit]{{navbar|Name of Template}}the template name is required.
Optional parameters
[edit]| Options | Parameters | Produces... |
|---|---|---|
| Normal | {{navbar|Template Name}} |
|
| No "This box:" text. | {{navbar|Template Name|plain=1}} |
|
| Short version. | {{navbar|Template Name|mini=1}} |
|
| Good for "blending" into text. | {{navbar|Template Name|nodiv=1}} |
Lorem Ipsum |
| Blended, no "This box:" text. | {{navbar|Template Name|plain=1|nodiv=1}} |
Lorem Ipsum |
| Blended, short version. | {{navbar|Template Name|mini=1|nodiv=1}} |
Lorem Ipsum |
| For a color option. | {{navbar|Template Name|fontstyle=color:green}} |
|
| With brackets. | {{navbar|Template Name|brackets=1}}
|