Template:Navbar

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search
Documentation icon Documentationviewedithistorypurge

This documentation is transcluded from Template:Navbar/doc.

No description yet available.

Usage

{{navbar |1= }}

Copyable examples when inside a given template adds navbar navigational functionality:

{{navbar|{{subst:PAGENAME}}|mini=1}}
{{navbar|{{subst:PAGENAME}}|plain=1}}
{{navbar|{{subst:PAGENAME}}|mini=1|nodiv=1}}
{{navbar|{{subst:PAGENAME}}|plain=1|nodiv=1}}
{{navbar|{{subst:PAGENAME}}|fontstyle=color:green}}
The {{subst:PAGENAME}} will be substituted with the template’s name when parsed by the servers.

The miniv=1, viewplain=1 and fontcolor= parameters have been deprecated. To use the view-only version, use the {{v}} or {{view}} templates instead.

Template parameters

ParameterDescriptionDefaultStatus
1
nameName of the templateemptyrequired
plain
plain versionHide the “This box:” textemptyoptional
mini
short versionUse one-letter links instead of whole wordsemptyoptional
nodiv
inline versionUse <bdi> instead of <div> so that the template won’t have its own line in the textemptyoptional
style
box styleCSS style for the whole boxemptyoptional
fontstyle
font styleCSS style for the text, also applied to the links. Useful for setting font color as that would be overridden by default link color.emptyoptional
brackets
bracketsPut [brackets] around the linksemptyoptional
uselang
languageSet the template’s language. Not used if the template is transcluded on pages translated with the Translate extension.emptyoptional
miniv
LangSwitch Error: no defaultemptydeprecated
viewplain
LangSwitch Error: no defaultemptydeprecated
fontcolor
font colorSet the font color. Deprecated, use |fontstyle = color:<color> instead.emptydeprecated

Additional information

The template is intended to be used in the following namespaces: no namespace specified

The template is intended to be used by the following user groups: no user group specified

Example

{{navbar|navbar/doc}}

renders as:

See also

Localization

العربية | বাংলা | Dansk | Deutsch | Deutsch (Sie-Form)‎ | English | Esperanto | Español | Français | Magyar | Italiano | 日本語 | Македонски | Polski | Português | Русский | Svenska | Türkçe | Українська |

This template makes use of {{Autotranslate}} and the translate extension.

Examples

Options Parameters Produces...
Normal {{navbar|Template Name}}
No "This box:" text. {{navbar|Template Name|plain=1}}
Short version. {{navbar|Template Name|mini=1}}
Good for "blending" into text. {{navbar|Template Name|nodiv=1}} Lorem This box: view  talk  edit Ipsum
Blended, no "This box:" text. {{navbar|Template Name|plain=1|nodiv=1}} Lorem view  talk  edit Ipsum
Blended, short version. {{navbar|Template Name|mini=1|nodiv=1}} Lorem v  d  e Ipsum
For a color option. {{navbar|Template Name|fontstyle=color:green}}