Jump to content
Toggle menu
  • 8 articles
  • 75 files
  • 7 users
  • 37.8K edits
Neodyland Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Navbar/doc: Difference between revisions

Template page
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:<color></nowiki> instead.
   |11d-en    = Set the font color. Deprecated, use <nowiki>|fontstyle = color:⧼color⧽</nowiki> instead.
  <!-- Using {{^(}} and {{)^}} is necessary, because TemplateData shows
    -- “<nowiki><color></nowiki>” as “&lt;color&gt;” rather than as “<color>” -->
  |11d-td-en = Set the font color. Deprecated, use <nowiki>|fontstyle = color:</nowiki>{{^(}}color{{)^}} 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:
:<tt><nowiki>{{navbar|{{subst:PAGENAME}}|mini=1}}</nowiki></tt>  
:<code><nowiki>{{navbar|{{subst:PAGENAME}}|mini=1}}</nowiki></code>  
:<tt><nowiki>{{navbar|{{subst:PAGENAME}}|plain=1}}</nowiki></tt>  
:<code><nowiki>{{navbar|{{subst:PAGENAME}}|plain=1}}</nowiki></code>  
:<tt><nowiki>{{navbar|{{subst:PAGENAME}}|mini=1|nodiv=1}}</nowiki></tt>  
:<code><nowiki>{{navbar|{{subst:PAGENAME}}|mini=1|nodiv=1}}</nowiki></code>  
:<tt><nowiki>{{navbar|{{subst:PAGENAME}}|plain=1|nodiv=1}}</nowiki></tt>  
:<code><nowiki>{{navbar|{{subst:PAGENAME}}|plain=1|nodiv=1}}</nowiki></code>  
:<tt><nowiki>{{navbar|{{subst:PAGENAME}}|fontstyle=color:green}}</nowiki></tt>  
:<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 <tt>miniv=1</tt>, <tt>viewplain=1</tt> and <tt>fontcolor=</tt> parameters have been deprecated. To use the view-only version, use the {{tlx|v}} or {{tlx|view}} templates instead.
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          =  
Cookies help us deliver our services. By using our services, you agree to our use of cookies.