Template:Navbar/en

From Open Mower Wiki
< Template:Navbar
Revision as of 20:53, 5 July 2021 by en>FuzzyBot (Updating to match new version of source page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

<languages/> <templatestyles src="Module:Navbar/styles.css"/>{{#if:||{{#if:|{{{text}}}|This box:}} }}{{#if:|[}}[[Template:Transclude|{{#if:|v|view}}]] · [{{fullurl:{{TALKPAGENAME:Template:Transclude}}}} {{#if:|d|talk}}]{{#if:|| · [{{fullurl:Template:Transclude|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:

Template:Tlx
Template:Tlx
Template:Tlx

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"/>{{#if:||{{#if:|{{{text}}}|<translate> This box:</translate>}} }}{{#if:|[}}[[Template:Transclude|<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:Template:Transclude|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

Optional parameters

Template:(| class="wikitable" ! Options ! Parameters ! Produces... |- | Basic | Template:Tlx | <templatestyles src="Module:Navbar/styles.css"/>{{#if:||{{#if:|{{{text}}}|<translate> This box:</translate>}} }}{{#if:|[}}[[Template:Transclude|<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: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:||{{#if:This template:|This template:|<translate> This box:</translate>}} }}{{#if:|[}}[[Template:Transclude|<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: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:1||{{#if:|{{{text}}}|<translate> This box:</translate>}} }}{{#if:|[}}[[Template:Transclude|<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: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:1||{{#if:|{{{text}}}|<translate> This box:</translate>}} }}{{#if:|[}}[[Template:Transclude|<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: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:||{{#if:|{{{text}}}|<translate> This box:</translate>}} }}{{#if:|[}}[[Template:Transclude|<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: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:||{{#if:|{{{text}}}|<translate> This box:</translate>}} }}{{#if:1|[}}[[Template:Transclude|<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: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:1||{{#if:|{{{text}}}|<translate> This box:</translate>}} }}{{#if:1|[}}[[Template:Transclude|<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:Template:Transclude|action=edit}} <span style="" title="<translate nowrap> Edit this template</translate>">{{#if:|<translate> e</translate>|<translate> edit</translate>}}]}}{{#if:1|]}} |Template:)

TemplateData

Template:Navbar/doc

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:}}]] }}