Template:Navbar/nb

From Linux Web Expert

Revision as of 15:53, 5 July 2021 by imported>FuzzyBot (Updating to match new version of source page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


Denne boksen: [[Template:{{{1}}}|vis]] · [{{fullurl:{{TALKPAGENAME:Template:{{{1}}}}}}} diskuter] · [{{fullurl:Template:{{{1}}}|action=edit}} rediger]

Template documentation

General

When one of the following examples is placed inside a given template, it adds navbar navigational functionality:

{{Navbar|Navbar|mini=1}}
{{Navbar|Navbar|plain=1}}
{{Navbar|Navbar|fontstyle=color:green}}

The {{subst:PAGENAME}} will be substituted with the template's name when parsed by the servers. For example, {{Navbar|navbar/doc}} gives:

<translate> This box:</translate> <span style="" title="<translate nowrap> View this template</translate>"><translate> view</translate> · <span style="" title="<translate nowrap> Discuss this template</translate>"><translate> talk</translate> · <span style="" title="<translate nowrap> Edit this template</translate>"><translate> edit</translate>

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

  • {{Navbar}}the template name is required.

Optional parameters

Options Parameters Produces...
Basic {{Navbar|template name}} <translate> This box:</translate> <span style="" title="<translate nowrap> View this template</translate>"><translate> view</translate> · <span style="" title="<translate nowrap> Discuss this template</translate>"><translate> talk</translate> · <span style="" title="<translate nowrap> Edit this template</translate>"><translate> edit</translate>
Different text {{Navbar|template name|text=This template:}} This template: <span style="" title="<translate nowrap> View this template</translate>"><translate> view</translate> · <span style="" title="<translate nowrap> Discuss this template</translate>"><translate> talk</translate> · <span style="" title="<translate nowrap> Edit this template</translate>"><translate> edit</translate>
Without "This box:" text {{Navbar|template name|plain=1}} <span style="" title="<translate nowrap> View this template</translate>"><translate> view</translate> · <span style="" title="<translate nowrap> Discuss this template</translate>"><translate> talk</translate> · <span style="" title="<translate nowrap> Edit this template</translate>"><translate> edit</translate>
Short version {{Navbar|template name|mini=1}} <span style="" title="<translate nowrap> View this template</translate>"><translate> v</translate> · <span style="" title="<translate nowrap> Discuss this template</translate>"><translate> d</translate> · <span style="" title="<translate nowrap> Edit this template</translate>"><translate> e</translate>
With a color option {{Navbar|template name|fontstyle=color:green}} <translate> This box:</translate> <span style="color:green" title="<translate nowrap> View this template</translate>"><translate> view</translate> · <span style="color:green" title="<translate nowrap> Discuss this template</translate>"><translate> talk</translate> · <span style="color:green" title="<translate nowrap> Edit this template</translate>"><translate> edit</translate>
With brackets {{Navbar|template name|brackets=1}} <translate> This box:</translate> [<span style="" title="<translate nowrap> View this template</translate>"><translate> view</translate> · <span style="" title="<translate nowrap> Discuss this template</translate>"><translate> talk</translate> · <span style="" title="<translate nowrap> Edit this template</translate>"><translate> edit</translate>]
Custom namespace {{Navbar|namespaced template name|plain=1|brackets=1}} [<span style="" title="<translate nowrap> View this template</translate>"><translate> view</translate> · <span style="" title="<translate nowrap> Discuss this template</translate>"><translate> talk</translate> · <span style="" title="<translate nowrap> Edit this template</translate>"><translate> edit</translate>]

TemplateData

<templatedata> { "description": { "en": "Adds edit links to navboxes and other templates", "cs": "Přidá odkazy na úpravy do navboxů a dalších šablon", "tr": "Gezinti kutularına ve diğer şablonlara düzenleme bağlantıları ekler", "fr": "Ajoute des liens de modification aux boîtes de navigation et aux autres modèles" }, "format": "inline", "params": { "1": { "label": { "en": "Template name", "cs": "Název šablony", "tr": "Şablon adı", "fr": "Nom du modèle" }, "description": { "en": "The template for which to create navbar links", "cs": "Šablona, pro kterou se mají vytvářet odkazy na navigační liště", "tr": "Gezinti çubuğu bağlantılarının oluşturulacağı şablon", "fr": "Modèle pour lequel les liens de la barre de navigation seront créés." }, "autovalue": "{{subst:PAGENAME}}", "required": true, "type": "wiki-template-name" }, "text": { "label": { "en": "Text", "cs": "Text", "tr": "Metin", "fr": "Texte" }, "description": { "en": "Custom leading text", "cs": "Vlastní úvodní text", "tr": "Özel satır aralığı metni", "fr": "Texte principal personnalisé." }, "default": { "en": "This box:", "cs": "Box:", "tr": "Bu kutu:" }, "type": "line" }, "mini": { "label": { "en": "Mini?", "cs": "Mini?", "tr": "Mini mi?", "fr": "Minimal" }, "description": { "en": "Only emit “v · d · e”", "cs": "Omezené zobrazení “v · d · e”", "tr": "Yalnızca “g · t · d” yayınlar", "fr": "Affichage restreint “v · d · e”" }, "type": "boolean" }, "plain": { "label": { "en": "Plain?", "cs": "Jasné?", "tr": "Düz mü?", "fr": "Brut" }, "description": { "en": "Omit leading text", "cs": "Vynechat úvodní text", "tr": "Baştaki metni çıkar", "fr": "Affichage sans texte principal." }, "default": "{{{mini}}}", "type": "boolean" }, "brackets": { "label": { "en": "Brackets?", "cs": "Závorky?", "tr": "Parantezler mi?", "fr": "Crochets" }, "description": { "en": "Surround links with brackets", "cs": "Ohraničení článků závorkami [ ]", "tr": "Parantezli çevre bağlantıları", "fr": "Les liens seront entre crochets [ ]" }, "type": "boolean" }, "noedit": { "label": { "en": "No Edit", "cs": "Neupravovat", "tr": "Düzenleme Yok", "fr": "Sans édition" }, "description": { "en": "Omit the “Edit” link", "cs": "Vynechat odkaz “Upravit”", "tr": "“Düzenle” bağlantısını atlayın", "fr": "Le lien pour modifier n'est pas affiché." }, "type": "boolean" }, "style": { "label": { "en": "Style", "cs": "Styl", "tr": "Stil", "fr": "Style" }, "description": { "en": "The CSS style attribute", "cs": "Atribut stylu CSS", "tr": "CSS stil özelliği", "fr": "Attribut du style CSS." }, "type": "string" }, "fontstyle": { "label": { "en": "Font Style", "cs": "Styl fontu", "tr": "Yazı Tipi Stili", "fr": "Style de fonte" }, "description": { "en": "The CSS style attribute for text", "cs": "Atribut stylu CSS pro text", "tr": "Metin için CSS stil niteliği", "fr": "Attribut CSS de style pour le texte." }, "type": "string" } } } </templatedata>

Notes

Navbar is contained within a ‎<div>...‎</div> in order to accommodate a horizontal unnumbered list. This means it cannot be placed inside a ‎<span>...‎</span> or other inline element, because Tidy will 'fix' situations where it finds block elements inside inline elements.