Difference between revisions of "Template:Navbar"

From WPRDC Wiki
Jump to navigation Jump to search
>Baris6161TURK
(Adding translate tags and remove unneeded deprecated information.)
>Shirayuki
(wrong markup)
Line 38: Line 38:
: {{tlx|Navbar|Navbar|fontstyle{{=}}color:green}}
: {{tlx|Navbar|Navbar|fontstyle{{=}}color:green}}


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


{{Navbar|navbar/doc}}
{{Navbar|navbar/doc}}
Line 47: Line 45:
<translate>
<translate>
=== Font-size ===
=== Font-size ===
</translate>
<translate>Font-size is <tvar|1><code>88%</code></> when used in a navbar, and <tvar|2><code>100%</code></> when nested in a navbox.</translate>
<translate>In the navbar, the weight is "<tvar|1><code>normal</code></>"; when nested in navbox, it takes on the outer setting.</translate>
<translate>The middot is bold.</translate>


Font-size is <tvar|1><code>88%</code></> when used in a navbar, and <tvar|2><code>100%</code></> when nested in a navbox.
</translate>
<translate>
In the navbar, the weight is "<tvar|1><code>normal</code></>"; when nested in navbox, it takes on the outer setting.
</translate>
<translate>
<translate>
The middot is bold.
== Examples ==
== Examples ==


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


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

Revision as of 23:10, 5 March 2021

<languages/> <translate> This box:</translate> [[Template:{{{1}}}|<span style="" title="<translate nowrap> View this template</translate>"><translate> view</translate>]] · [{{fullurl:Template talk:{{{1}}}}} <span style="" title="<translate nowrap> Discuss this template</translate>"><translate> talk</translate>] · [{{fullurl:Template:{{{1}}}|action=edit}} <span style="" title="<translate nowrap> Edit this template</translate>"><translate> edit</translate>] Lua error in Module:TNT at line 158: Missing JsonConfig extension; Cannot load https://commons.wikimedia.org/wiki/Data:I18n/Documentation.tab.[[Category:Template documentation pages{{#translation:}}]]