Template:Navbar/doc: Difference between revisions

ArrowHead294 (talk | contribs)
mNo edit summary
ArrowHead294 (talk | contribs)
mNo edit summary
 
(15 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{dochead}}{{Wikipedia|{{FULLROOTPAGENAME}}}}
{{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 ===
This template takes one unnamed parameter (<code>{{(((}}1{{)))}}</code>), which is the full name of the page to link to.
; <code><nowiki>{{{1}}}</nowiki></code> (required)
: 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 &bull; Talk &bull; Edit</code> to <code style="white-space: nowrap;">V &bull; T &bull; E</code>.
 
; <code>text</code> (optional)
: Text preceding the navigation bar, often used to indicate the namespace.


For example:
For example:


<blockquote class="toccolours">
<pre>
<pre style="border: none; margin: 0px 0px 0px 0px;">
{{navbar|Template:Navbar}}
{{navbar|Template:Navbar}}
{{navbar|Template:Navbar|text=This template:}}
{{navbar|Template:Navbar|text=This template:}}
Line 14: Line 20:
{{navbar|12edo|text=This page:}}
{{navbar|12edo|text=This page:}}
</pre>
</pre>
</blockquote>


give:
give:


<blockquote class="toccolours">
{{{{ROOTPAGENAME}}|{{ARTICLEROOTPAGENAME}}}}
{{{{ROOTPAGENAME}}|Template:Navbar}}


{{{{ROOTPAGENAME}}|Template:Navbar|text=This template:}}
{{{{ROOTPAGENAME}}|{{ARTICLEROOTPAGENAME}}|text=This template:}}


{{{{ROOTPAGENAME}}|12edo}}
{{{{ROOTPAGENAME}}|12edo}}


{{{{ROOTPAGENAME}}|12edo|text=This page:}}
{{{{ROOTPAGENAME}}|12edo|text=This page:}}
</blockquote>
 
=== See also ===
* [[:Template:Navbar table]] &ndash; used for inserting a navigation bar to a table.