Template:Navbar: Difference between revisions
m 1 revision imported |
m 1 revision imported |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 33: | Line 33: | ||
<!--T:13--> | <!--T:13--> | ||
When one of the following examples is placed inside a given [[<tvar | 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: | ||
</translate> | </translate> | ||
Line 40: | Line 40: | ||
: {{tlx|Navbar|Navbar|fontstyle{{=}}color:green}} | : {{tlx|Navbar|Navbar|fontstyle{{=}}color:green}} | ||
<translate><!--T:14--> The <tvar | <translate><!--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.</translate> | ||
<translate><!--T:15--> For example, <tvar | <translate><!--T:15--> For example, <tvar name=1>{{tlx|Navbar|navbar/doc}}</tvar> gives:</translate> | ||
{{Navbar|navbar/doc}} | {{Navbar|navbar/doc}} | ||
Line 48: | Line 48: | ||
=== Font-size === <!--T:16--> | === Font-size === <!--T:16--> | ||
</translate> | </translate> | ||
<translate><!--T:17--> Font-size is <tvar | <translate><!--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.</translate> | ||
<translate><!--T:18--> In the navbar, the weight is "<tvar | <translate><!--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.</translate> | ||
<translate><!--T:19--> The middot is bold.</translate> | <translate><!--T:19--> The middot is bold.</translate> | ||
Line 102: | Line 102: | ||
== Notes == <!--T:42--> | == Notes == <!--T:42--> | ||
</translate> | </translate> | ||
<translate><!--T:43--> Navbar is contained within a <tvar | <translate><!--T:43--> Navbar is contained within a <tvar name=1>{{tag|div}}</tvar> in order to accommodate a horizontal unnumbered list.</translate> | ||
<translate><!--T:44--> This means it cannot be placed inside a <tvar | <translate><!--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.</translate> | ||
<!--- PLEASE ADD METADATA TO THE <includeonly> SECTION HERE ---> | <!--- PLEASE ADD METADATA TO THE <includeonly> SECTION HERE ---> |
Latest revision as of 13:04, 25 June 2022
<languages/> <templatestyles src="Module:Navbar/styles.css"/> · [{{fullurl:Template:{{{1}}}|action=edit}} <span style="" title="<translate nowrap> Edit this template</translate>"><translate> edit</translate>] Lua error: Module:TNT:158: '''Missing JsonConfig extension, or not properly configured; Cannot load https://commons.wikimedia.org/wiki/Data:I18n/Documentation.tab. See https://www.mediawiki.org/wiki/Extension:JsonConfig#Supporting_Wikimedia_templates'''.
]