Template:Navbar/doc: Difference between revisions
Jump to navigation
Jump to search
ArrowHead294 (talk | contribs) mNo edit summary |
ArrowHead294 (talk | contribs) mNo edit summary |
||
(9 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{dochead}}{{ | {{dochead}}{{wikipedia}}{{lua}} | ||
This is a simplified version of Wikipedia's navigation bar template. | This is a simplified version of Wikipedia's navigation bar template. | ||
=== Parameters === | === Parameters === | ||
; <code>{{ | ; <code><nowiki>{{{1}}}</nowiki></code> (required) | ||
: One unnamed parameter, which is the full name of the page to link to. | : One unnamed parameter, which is the full name of the page to link to. | ||
; <code><nowiki>{{{2}}}</nowiki></code> (optional) | |||
: A second unnamed parameter. Pass in <code>mini</code> to change <code style="white-space: nowrap;">View • Talk • Edit</code> to <code style="white-space: nowrap;">V • T • E</code>. | |||
; <code>text</code> (optional) | ; <code>text</code> (optional) | ||
Line 20: | Line 23: | ||
give: | give: | ||
{{{{ROOTPAGENAME}}|{{ | {{{{ROOTPAGENAME}}|{{ARTICLEROOTPAGENAME}}}} | ||
{{{{ROOTPAGENAME}}|{{ | {{{{ROOTPAGENAME}}|{{ARTICLEROOTPAGENAME}}|text=This template:}} | ||
{{{{ROOTPAGENAME}}|12edo}} | {{{{ROOTPAGENAME}}|12edo}} | ||
Line 29: | Line 32: | ||
=== See also === | === See also === | ||
* [[:Template:Navbar table]] – | * [[:Template:Navbar table]] – used for inserting a navigation bar to a table. |
Latest revision as of 18:07, 18 March 2025
![]() |
This template uses Lua: |
This is a simplified version of Wikipedia's navigation bar template.
Parameters
{{{1}}}
(required)- One unnamed parameter, which is the full name of the page to link to.
{{{2}}}
(optional)- A second unnamed parameter. Pass in
mini
to changeView • Talk • Edit
toV • T • E
.
text
(optional)- Text preceding the navigation bar, often used to indicate the namespace.
For example:
{{navbar|Template:Navbar}} {{navbar|Template:Navbar|text=This template:}} {{navbar|12edo}} {{navbar|12edo|text=This page:}}
give:
This template: View • Talk • Edit
See also
- Template:Navbar table – used for inserting a navigation bar to a table.