Difference between revisions of "Template:Navbar/en"
MediaWiki>FuzzyBot (Updating to match new version of source page) |
m (1 revision imported) |
(No difference)
|
Latest revision as of 14:44, 26 September 2021
<languages/> Page Template:Module:Navbar/styles.css has no content.
|#default = | = {{#ifeq: | | Template:{{{1}}} | }}
}}|{{#if:|v|view}}]] · [{{fullurl:{{TALKPAGENAME:{{#switch:
|#default = | = {{#ifeq: | | Template:{{{1}}} | }}
}}}}}} {{#if:|d|talk}}]{{#if:|| · [{{fullurl:{{#switch:
|#default = | = {{#ifeq: | | Template:{{{1}}} | }}
}}|action=edit}} {{#if:|e|edit}}]}}{{#if:|]}} {{#invoke:documentation|main|_content={{ {{#invoke:documentation|contentTitle}}}}}}{{#if:Template:Uses TemplateStyles
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:
Page Template:Module:Navbar/styles.css has no content.
|#default = Navbar/doc | = {{#ifeq: | | Template:navbar/doc | Navbar/doc }}
}}|<span style="" title="<translate nowrap> View this template</translate>">{{#if:|<translate> v</translate>|<translate> view</translate>}}]] · [[[:Template:Fullurl:]] <span style="" title="<translate nowrap> Discuss this template</translate>">{{#if:|<translate> d</translate>|<translate> talk</translate>}}]{{#if:|| · [{{fullurl:{{#switch:
|#default = Navbar/doc | = {{#ifeq: | | Template:navbar/doc | Navbar/doc }}
}}|action=edit}} <span style="" title="<translate nowrap> Edit this template</translate>">{{#if:|<translate> e</translate>|<translate> edit</translate>}}]}}{{#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 | Page Template:Module:Navbar/styles.css has no content.
|#default = Navbar/doc | = {{#ifeq: | | Template:navbar/doc | Navbar/doc }}
}}|<span style="" title="<translate nowrap> View this template</translate>">{{#if:|<translate> v</translate>|<translate> view</translate>}}]] · [[[:Template:Fullurl:]] <span style="" title="<translate nowrap> Discuss this template</translate>">{{#if:|<translate> d</translate>|<translate> talk</translate>}}]{{#if:|| · [{{fullurl:{{#switch:
|#default = Navbar/doc | = {{#ifeq: | | Template:navbar/doc | Navbar/doc }}
}}|action=edit}} <span style="" title="<translate nowrap> Edit this template</translate>">{{#if:|<translate> e</translate>|<translate> edit</translate>}}]}}{{#if:|]}} |- | Different text | Template:Tlx | Page Template:Module:Navbar/styles.css has no content.
|#default = Navbar/doc | = {{#ifeq: | | Template:navbar/doc | Navbar/doc }}
}}|<span style="" title="<translate nowrap> View this template</translate>">{{#if:|<translate> v</translate>|<translate> view</translate>}}]] · [[[:Template:Fullurl:]] <span style="" title="<translate nowrap> Discuss this template</translate>">{{#if:|<translate> d</translate>|<translate> talk</translate>}}]{{#if:|| · [{{fullurl:{{#switch:
|#default = Navbar/doc | = {{#ifeq: | | Template:navbar/doc | Navbar/doc }}
}}|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 | Page Template:Module:Navbar/styles.css has no content.
|#default = Navbar/doc | = {{#ifeq: | | Template:navbar/doc | Navbar/doc }}
}}|<span style="" title="<translate nowrap> View this template</translate>">{{#if:|<translate> v</translate>|<translate> view</translate>}}]] · [[[:Template:Fullurl:]] <span style="" title="<translate nowrap> Discuss this template</translate>">{{#if:|<translate> d</translate>|<translate> talk</translate>}}]{{#if:|| · [{{fullurl:{{#switch:
|#default = Navbar/doc | = {{#ifeq: | | Template:navbar/doc | Navbar/doc }}
}}|action=edit}} <span style="" title="<translate nowrap> Edit this template</translate>">{{#if:|<translate> e</translate>|<translate> edit</translate>}}]}}{{#if:|]}} |- | Short version | Template:Tlx | Page Template:Module:Navbar/styles.css has no content.
|#default = Navbar/doc | = {{#ifeq: | | Template:navbar/doc | Navbar/doc }}
}}|<span style="" title="<translate nowrap> View this template</translate>">{{#if:1|<translate> v</translate>|<translate> view</translate>}}]] · [[[:Template:Fullurl:]] <span style="" title="<translate nowrap> Discuss this template</translate>">{{#if:1|<translate> d</translate>|<translate> talk</translate>}}]{{#if:|| · [{{fullurl:{{#switch:
|#default = Navbar/doc | = {{#ifeq: | | Template:navbar/doc | Navbar/doc }}
}}|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 | Page Template:Module:Navbar/styles.css has no content.
|#default = Navbar/doc | = {{#ifeq: | | Template:navbar/doc | Navbar/doc }}
}}|<span style="color:green" title="<translate nowrap> View this template</translate>">{{#if:|<translate> v</translate>|<translate> view</translate>}}]] · [[[:Template:Fullurl:]] <span style="color:green" title="<translate nowrap> Discuss this template</translate>">{{#if:|<translate> d</translate>|<translate> talk</translate>}}]{{#if:|| · [{{fullurl:{{#switch:
|#default = Navbar/doc | = {{#ifeq: | | Template:navbar/doc | Navbar/doc }}
}}|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 | Page Template:Module:Navbar/styles.css has no content.
|#default = Navbar/doc | = {{#ifeq: | | Template:navbar/doc | Navbar/doc }}
}}|<span style="" title="<translate nowrap> View this template</translate>">{{#if:|<translate> v</translate>|<translate> view</translate>}}]] · [[[:Template:Fullurl:]] <span style="" title="<translate nowrap> Discuss this template</translate>">{{#if:|<translate> d</translate>|<translate> talk</translate>}}]{{#if:|| · [{{fullurl:{{#switch:
|#default = Navbar/doc | = {{#ifeq: | | Template:navbar/doc | Navbar/doc }}
}}|action=edit}} <span style="" title="<translate nowrap> Edit this template</translate>">{{#if:|<translate> e</translate>|<translate> edit</translate>}}]}}{{#if:1|]}} |- | Custom namespace | Template:Tlx | Page Template:Module:Navbar/styles.css has no content.
|#default = User:Example | = {{#ifeq: User | | Template:User:Example | Example }}
}}|<span style="" title="<translate nowrap> View this template</translate>">{{#if:|<translate> v</translate>|<translate> view</translate>}}]] · [[[:Template:Fullurl:]] <span style="" title="<translate nowrap> Discuss this template</translate>">{{#if:|<translate> d</translate>|<translate> talk</translate>}}]{{#if:|| · [{{fullurl:{{#switch: User
|#default = User:Example | = {{#ifeq: User | | Template:User:Example | Example }}
}}|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:}}]] }}