Difference between revisions of "Template:Navbar/en"
en>FuzzyBot (Updating to match new version of source page) |
m (1 revision imported) |
(No difference)
|
Latest revision as of 19:09, 6 June 2022
<languages/> <templatestyles src="Module:Navbar/styles.css"/>Template:Uses TemplateStyles
{{#invoke:documentation|main|_content={{ {{#invoke:documentation|contentTitle}}}}}}{{#if:Usage
General
When one of the following examples is placed inside a given template, it adds navbar navigational functionality:
The {{subst:PAGENAME}}
will be substituted with the template's name when parsed by the servers.
For example, Template:Tlx gives:
<templatestyles src="Module:Navbar/styles.css"/> · [{{fullurl:Template:Transclude|action=edit}} <span style="" title="<translate nowrap> Edit this template</translate>">{{#if:|<translate> e</translate>|<translate> edit</translate>}}]}}{{#if:|]}}
]{{#if:||Font-size
Font-size is 88%
when used in a navbar, and 100%
when nested in a navbox.
In the navbar, the weight is "normal
"; when nested in navbox, it takes on the outer setting.
The middot is bold.
Examples
Required parameters
- Template:Tlx — the template name is required.
Optional parameters
Template:(| class="wikitable" ! Options ! Parameters ! Produces... |- | Basic | Template:Tlx | <templatestyles src="Module:Navbar/styles.css"/> ]{{#if:|| · [{{fullurl:Template:Transclude|action=edit}} <span style="" title="<translate nowrap> Edit this template</translate>">{{#if:|<translate> e</translate>|<translate> edit</translate>}}]}}{{#if:|]}} |- | Different text | Template:Tlx | <templatestyles src="Module:Navbar/styles.css"/> ]{{#if:|| · [{{fullurl:Template:Transclude|action=edit}} <span style="" title="<translate nowrap> Edit this template</translate>">{{#if:|<translate> e</translate>|<translate> edit</translate>}}]}}{{#if:|]}} |- | Without "This box:" text | Template:Tlx | <templatestyles src="Module:Navbar/styles.css"/> ]{{#if:|| · [{{fullurl:Template:Transclude|action=edit}} <span style="" title="<translate nowrap> Edit this template</translate>">{{#if:|<translate> e</translate>|<translate> edit</translate>}}]}}{{#if:|]}} |- | Short version | Template:Tlx | <templatestyles src="Module:Navbar/styles.css"/> ]{{#if:|| · [{{fullurl:Template:Transclude|action=edit}} <span style="" title="<translate nowrap> Edit this template</translate>">{{#if:1|<translate> e</translate>|<translate> edit</translate>}}]}}{{#if:|]}} |- | With a color option | Template:Tlx | <templatestyles src="Module:Navbar/styles.css"/> ]{{#if:|| · [{{fullurl:Template:Transclude|action=edit}} <span style="color:green" title="<translate nowrap> Edit this template</translate>">{{#if:|<translate> e</translate>|<translate> edit</translate>}}]}}{{#if:|]}} |- | With brackets | Template:Tlx | <templatestyles src="Module:Navbar/styles.css"/> ]{{#if:|| · [{{fullurl:Template:Transclude|action=edit}} <span style="" title="<translate nowrap> Edit this template</translate>">{{#if:|<translate> e</translate>|<translate> edit</translate>}}]}}{{#if:1|]}} |- | Custom namespace | Template:Tlx | <templatestyles src="Module:Navbar/styles.css"/> ]{{#if:|| · [{{fullurl:Template:Transclude|action=edit}} <span style="" title="<translate nowrap> Edit this template</translate>">{{#if:|<translate> e</translate>|<translate> edit</translate>}}]}}{{#if:1|]}} |Template:)
TemplateData
Notes
Navbar is contained within a Template:Tag in order to accommodate a horizontal unnumbered list. This means it cannot be placed inside a Template:Tag or other inline element, because Tidy will 'fix' situations where it finds block elements inside inline elements.| [[Category:Template documentation pages{{#translation:}}]] }}