Jump to content

Template:Navbar: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 32: Line 32:


<!--T:13-->
<!--T:13-->
When one of the following examples is placed inside a given [[<tvar name=1>Special:MyLanguage/Help:Templates</tvar>|template]], it adds navbar navigational functionality:
When one of the following examples is placed inside a given [[Special:MyLanguage/Help:Templates|template]], it adds navbar navigational functionality:




Line 39: Line 39:
: {{tlx|Navbar|Navbar|fontstyle{{=}}color:green}}
: {{tlx|Navbar|Navbar|fontstyle{{=}}color:green}}


<!--T:14--> The <tvar name=1><code><nowiki>{{subst:PAGENAME}}</nowiki></code></tvar> will be substituted with the template's name when parsed by the servers.
<!--T:14--> The <code><nowiki>{{subst:PAGENAME}}</nowiki></code> will be substituted with the template's name when parsed by the servers.
<!--T:15--> For example, <tvar name=1>{{tlx|Navbar|navbar/doc}}</tvar> gives:
<!--T:15--> For example, {{tlx|Navbar|navbar/doc}} gives:


{{Navbar|navbar/doc}}
{{Navbar|navbar/doc}}
Line 47: Line 47:
=== Font-size === <!--T:16-->
=== Font-size === <!--T:16-->


<!--T:17--> Font-size is <tvar name=1><code>88%</code></tvar> when used in a navbar, and <tvar name=2><code>100%</code></tvar> when nested in a navbox.
<!--T:17--> Font-size is <code>88%</code> when used in a navbar, and <code>100%</code> when nested in a navbox.
<!--T:18--> In the navbar, the weight is "<tvar name=1><code>normal</code></tvar>"; when nested in navbox, it takes on the outer setting.
<!--T:18--> In the navbar, the weight is "<code>normal</code>"; when nested in navbox, it takes on the outer setting.
<!--T:19--> The middot is bold.
<!--T:19--> The middot is bold.


Line 101: Line 101:
== Notes == <!--T:42-->
== Notes == <!--T:42-->


<!--T:43--> Navbar is contained within a <tvar name=1>{{tag|div}}</tvar> in order to accommodate a horizontal unnumbered list.
<!--T:43--> Navbar is contained within a {{tag|div}} in order to accommodate a horizontal unnumbered list.
<!--T:44--> This means it cannot be placed inside a <tvar name=1>{{tag|span}}</tvar> or other inline element, because Tidy will 'fix' situations where it finds block elements inside inline elements.
<!--T:44--> This means it cannot be placed inside a {{tag|span}} or other inline element, because Tidy will 'fix' situations where it finds block elements inside inline elements.


<!--- PLEASE ADD METADATA TO THE <includeonly> SECTION HERE --->
<!--- PLEASE ADD METADATA TO THE <includeonly> SECTION HERE --->