Patrono:V
| Iste patrono usa un modulo Lua: |
{{V}} o {{VTE}} insere un “mini-barra de navigation” con ligamines v • d • m. Pro usar in altere patronos. Equivalente a {{Navbar}} con mini = 1. Infra seque le documentation de {{Navbar}}.
Description
Insere un “barra de navigation” con ligamines Visitar • Discuter • Modificar. Pro usar in altere patronos.
| Parametro | Description | Typo | Stato | |
|---|---|---|---|---|
| Nomine | 1 | Le nomine del patrono sur le qual le ligamines debe operar (normalmente le patrono in le qual iste es inserite). Necessari pro facer le ligamines functionar correctemente. | Nomine de pagina | obligatori |
| Texto | text | Texto a inserer ante le ligamines. Essera sequite per un signo de duo punctos.
| Catena | optional |
| Simple | plain | Mitte a 1 pro remover le texto introductori.
| Numero | optional |
| Mini | mini | Mitte a 1 pro usar solmente le prime litteras del ligamines (v • d • m) e remover le texto introductori.
| Numero | optional |
| Parentheses | brackets | Mitte a 1 pro pre-/suffixar parentheses recte al insimul de ligamines.
| Numero | optional |
| Stilo de litteras | fontstyle | Stilo additional pro le litteras in syntaxe CSS.
| Catena | optional |
| Stilo del quadro | style | Stilo additional pro tote le quadro in syntaxe CSS.
| Catena | optional |
| Nomine & specifica ligamines | template | Si iste parametro es fornite, solmente le ligamine Visitar es monstrate, optionalmente sequite per le ligamines indicate per le parametros anonyme 2 usque a 6. Iste parametro reimplacia le parametro 1 (Nomine) e debe haber su valor. | Nomine de pagina | optional |
| 2 | 2 | Specifica un ligamine a monstrar. Solmente ha effecto si ‘template’ es fornite. Clave: e=modificar, t=discussion, h=historia, m=renominar, w=observar. Le parametros positional subsequente (3, 4, ...) functiona del mesme maniera pro monstrar plus ligamines.
| Catena | optional |
Como usar
General
When one of the following examples is placed inside a given template (or block of content used for selective transclusion), it adds basic navbar navigational functionality:
{{navbar|{{subst:PAGENAME}}|mini=y}}{{navbar|{{subst:PAGENAME}}|plain=y}}{{navbar|{{subst:PAGENAME}}|fontstyle=color: green; font-style: italic;}}
{{subst:PAGENAME}} will be substituted with the page name of the real location of the content when parsed by the servers. For example, {{navbar|Navbar/doc}} gives:If the page is moved or renamed the substituted text will need to be updated accordingly. Alternatively, you can use {{#invoke:params|self}} instead of {{subst:PAGENAME}} to keep track of the current location of the transcluded page:
{{navbar|{{#invoke:params|self}}|mini=...|plain=...|...}}
When used in content that is selectively transcluded but which is also used as-is in its original location, this template should be wrapped in <includeonly>...</includeonly> markup, so that it only appears when transcluded.
Font size and weight
The font-size is 88% when used in a topical navbar template or in plain text, and 100% when nested in a navbox or infobox (because those templates' text size is already reduced; the "100%" is relative to the surrounding template's own content, not that of the entire page). The |fontstyle= parameter can be used to adjust the font size as needed (e.g. to reduce font size even more when the template is used inside a block element with a large font size). Do not abuse this to make excessively small text (i.e. less than 85% of the normal page text), since that causes accessibility problems for many readers.
In a topical navbar, the weight is "normal"; when nested in a navbox or infobox, it inherits the style of the surrounding content. The middot bullets are bold for better visibility.
Block level element
The template generates block-level markup with <div>...</div> tags, and therefore, any surrounding markup cannot include <span>...</span> tags, which would cause a div-span-flip lint error.
Exemplos
Parametros obligatori
{{navbar|Template Name}}– the template name is required.
Parametros optional
| Options | Parameters | Produces... | "Shortcut" template |
|---|---|---|---|
| Basic | {{navbar|Template Name}} | ||
| Different text | {{navbar|Template Name|text=This template:}} | ||
| Without "This box:" text | {{navbar|Template Name|plain=y}} | {{view}} | |
| Short version | {{navbar|Template Name|mini=y}} | {{v}} | |
| With brackets | {{navbar|Template Name|brackets=y}} | ||
| With font styling examples (span) | {{navbar|Template Name|fontstyle=color: green; font-style: italic;}} | ||
| With whole-template styling examples (div) | {{navbar|Template Name|style=float:right; background: Beige; padding: 5px; border: 1px solid;}} | ||
| History, move, and watchlist links | {{navbar|template=Template Name|e|t|h|m|w}} |
Note that to show the history, move, and watchlist links, |template= needs to be set to the template value specifically. Individual values can be left out of this list, e.g. {{navbar|template=Template Name|h|m|w}} will only show the view, history, move, and watchlist links.
Patronos de via curte
The mini=y and plain=y parameters can be avoided by using the {{v}} or {{view}} templates, respectively, instead. They also support changing the shown links, for example only view and edit, or only view and talk:
These are some quick examples which can be copied and pasted directly inside a template with no adjustments:
| Syntax | Which produces |
|---|---|
{{v|{{subst:PAGENAME}}}}
{{v|t|template={{subst:PAGENAME}}}}
{{v|t|e|template={{subst:PAGENAME}}}}
{{v|t|e|h|template={{subst:PAGENAME}}}}
{{v|t|e|h|m|template={{subst:PAGENAME}}}}
{{v|t|e|h|m|w|template={{subst:PAGENAME}}}}
|
The same type of template only for the full text "view" style:
| Syntax | Which produces |
|---|---|
{{view|{{subst:PAGENAME}}}}
{{view|talk|template={{subst:PAGENAME}}}}
{{view|talk|edit|template={{subst:PAGENAME}}}}
{{view|talk|edit|hist|template={{subst:PAGENAME}}}}
{{view|talk|edit|hist|move|template={{subst:PAGENAME}}}}
{{view|talk|edit|hist|move|watch|template={{subst:PAGENAME}}}}
|
Adding option |d (for "discuss") equals adding |t, adding a t link (for "talk").
Notas
- Le barra de navigation es includite in un
<div>...</div>pro accommodar un lista horizontal non numerate. Isto significa que illo non pote esser placiate intra un<span>...</span>o altere elemento non bloco, perque le extension HTML Tidy corrigerera le situationes ubi illo trova elementos de bloco intra elementos in linea. - {{Tnavbar}} es un alias de iste patrono.
Vide etiam
- {{Modificar}}

