Template:Navbar/doc: Difference between revisions
Template page
More actions
Document `thisbox` parameter |
m Fix Linter errors. |
||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 87: | Line 87: | ||
|11 = fontcolor | |11 = fontcolor | ||
|11label = font color | |11label = font color | ||
|11d-en = Set the font color. Deprecated, use <nowiki>|fontstyle = color: | |11d-en = Set the font color. Deprecated, use <nowiki>|fontstyle = color:⧼color⧽</nowiki> instead. | ||
|11aliases = | |11aliases = | ||
|11type = string/line | |11type = string/line | ||
| Line 99: | Line 96: | ||
| 12label = Text | | 12label = Text | ||
| 12d = Custom leading text | | 12d = Custom leading text | ||
| 12def = This box | | 12def = This box | ||
| 12type = string/line | | 12type = string/line | ||
| 12stat = optional | | 12stat = optional | ||
| Line 113: | Line 110: | ||
|usage-notes = | |usage-notes = | ||
Copyable examples when inside a given [[Wikipedia:Navigation templates|template]] adds navbar navigational functionality: | Copyable examples when inside a given [[Wikipedia:Navigation templates|template]] adds navbar navigational functionality: | ||
:< | :<code><nowiki>{{navbar|{{subst:PAGENAME}}|mini=1}}</nowiki></code> | ||
:< | :<code><nowiki>{{navbar|{{subst:PAGENAME}}|plain=1}}</nowiki></code> | ||
:< | :<code><nowiki>{{navbar|{{subst:PAGENAME}}|mini=1|nodiv=1}}</nowiki></code> | ||
:< | :<code><nowiki>{{navbar|{{subst:PAGENAME}}|plain=1|nodiv=1}}</nowiki></code> | ||
:< | :<code><nowiki>{{navbar|{{subst:PAGENAME}}|fontstyle=color:green}}</nowiki></code> | ||
:The <code><nowiki>{{subst:PAGENAME}}</nowiki></code> will be substituted with the template’s name when parsed by the servers. | :The <code><nowiki>{{subst:PAGENAME}}</nowiki></code> will be substituted with the template’s name when parsed by the servers. | ||
The < | The <code>miniv=1</code>, <code>viewplain=1</code> and <code>fontcolor=</code> parameters have been deprecated. To use the view-only version, use the {{tlx|v}} or {{tlx|view}} templates instead. | ||
|shorthand = | |shorthand = | ||
|setscats = | |setscats = | ||