http://opensimulator.org/index.php?title=Template:Navbar/doc&feed=atom&action=historyTemplate:Navbar/doc - Revision history2024-03-28T23:33:02ZRevision history for this page on the wikiMediaWiki 1.19.9http://opensimulator.org/index.php?title=Template:Navbar/doc&diff=26175&oldid=prevFritigern: Created page with "{{documentation subpage}} <!---PLEASE ADD METADATA TO THE <includeonly> SECTION AT THE BOTTOM OF THIS PAGE---> == Usage == ===General=== When one of the following examples is pl..."2011-10-21T09:50:34Z<p>Created page with "{{documentation subpage}} <!---PLEASE ADD METADATA TO THE <includeonly> SECTION AT THE BOTTOM OF THIS PAGE---> == Usage == ===General=== When one of the following examples is pl..."</p>
<p><b>New page</b></p><div>{{documentation subpage}}<br />
<!---PLEASE ADD METADATA TO THE <includeonly> SECTION AT THE BOTTOM OF THIS PAGE---><br />
<br />
== Usage ==<br />
===General===<br />
When one of the following examples is placed inside a given template, it adds navbar navigational functionality:<br />
:<tt><nowiki>{{navbar|{{subst:PAGENAME}}|mini=1}}</nowiki></tt> <br />
:<tt><nowiki>{{navbar|{{subst:PAGENAME}}|plain=1}}</nowiki></tt> <br />
:<tt><nowiki>{{navbar|{{subst:PAGENAME}}|fontstyle=color:green}}</nowiki></tt> <br />
<br />
The <code><nowiki>{{subst:PAGENAME}}</nowiki></code> will be substituted with the template's name when parsed by the servers. For example, <code><nowiki>{{navbar|navbar/doc}}</nowiki></code> gives:<br> {{navbar|navbar/doc}}<br />
<br />
===Font-size===<br />
Font-size is 88% when used in a navbar, and 100% when nested in a navbox.<br />
In the navbar, the weight is "normal"; when nested in navbox, it takes on the outer setting. The middot is bold.<br />
<br />
== Examples ==<br />
===Required parameters===<br />
*<code><nowiki>{{navbar|Template Name}}</nowiki></code> – the template name is required.<br />
<br />
===Optional parameters===<br />
{| class="wikitable"<br />
! Options !! Parameters !! Produces...<br />
|-<br />
| Basic || <code><nowiki>{{navbar|Template Name}}</nowiki></code> || {{navbar|navbar/doc}}<br />
|-<br />
| Different text || <code><nowiki>{{navbar|Template Name|text=This template:}}</nowiki></code> || {{navbar|navbar/doc|text=This template:}}<br />
|-<br />
| Without "This box:" text || <code><nowiki>{{navbar|Template Name|plain=1}}</nowiki></code> || {{navbar|navbar/doc|plain=1}}<br />
|-<br />
| Short version || <code><nowiki>{{navbar|Template Name|mini=1}}</nowiki></code> || {{navbar|navbar/doc|mini=1}}<br />
|-<br />
| With a color option || <code><nowiki>{{navbar|Template Name|fontstyle=color:green}}</nowiki></code> || {{navbar|navbar/doc|fontstyle=color:green}}<br />
|-<br />
| With brackets<br />
| <code><nowiki>{{navbar|Template Name|brackets=1}}</nowiki></code><br />
| {{navbar|navbar/doc|brackets=1}}<br />
|}<br />
<br />
===Deprecated parameters===<br />
The <tt>miniv=1</tt>, <tt>viewplain=1</tt>, <tt>nodiv=1</tt> and <tt>fontcolor=</tt> parameters have been deprecated. To implement the view-only version, use the {{tlx|v}} or {{tlx|view}} templates instead.<br />
<br />
== Prepackaged ==<br />
;{{tl|Tnavbar-header}}: Positions <small>v{{·}}d{{·}}e</small> on the right edge of the line, often used in non-collapsible navbox heading.<br />
;{{tl|Tnavbar-navframe}}: For use in conjunction with [[Wikipedia:NavFrame|Navframe div]]s, positions <small>v{{·}}d{{·}}e</small> opposite of the [hide]/[show] feature.<br />
;{{tl|Tnavbar-collapsible}}: For use in conjunction with [[Wikipedia: NavFrame#Collapsible tables|Collapsible tables]],floats <small>v{{·}}d{{·}}e</small> opposite of the [hide]/[show] feature.<br />
<br />
<!--- PLEASE ADD METADATA TO THE <includeonly> SECTION HERE ---><br />
<includeonly><br />
[[Category:Internal link templates]]<br />
]<br />
<br />
</includeonly></div>Fritigern