Template:Navbar/doc: Difference between revisions
From Zoophilia Wiki
Jump to navigationJump to search
meta>Edokter copyedit |
meta>Edokter →Examples: update |
||
Line 29: | Line 29: | ||
| Short version. || <code><nowiki>{{navbar|Template Name|mini=1}}</nowiki></code> || {{navbar|navbar/doc|mini=1}} | | Short version. || <code><nowiki>{{navbar|Template Name|mini=1}}</nowiki></code> || {{navbar|navbar/doc|mini=1}} | ||
|- | |- | ||
| | | "Blending" into text. || <code><nowiki>{{navbar|Template Name}}</nowiki></code> || Lorem {{navbar|navbar/doc}} Ipsum | ||
|- | |- | ||
|Blended, no "This box:" text. || <code><nowiki>{{navbar|Template Name|plain | | Blended, no "This box:" text. || <code><nowiki>{{navbar|Template Name|plain=1}}</nowiki></code> || Lorem {{navbar|navbar/doc|plain=1}} Ipsum | ||
|- | |- | ||
|Blended, short version. || <code><nowiki>{{navbar|Template Name|mini | | Blended, short version. || <code><nowiki>{{navbar|Template Name|mini=1}}</nowiki></code> || Lorem {{navbar|navbar/doc|mini=1}} Ipsum | ||
|- | |- | ||
| For a color option. || <code><nowiki>{{navbar|Template Name|fontstyle=color:green}}</nowiki></code> || {{navbar|navbar/doc|fontstyle=color:green}} | | For a color option. || <code><nowiki>{{navbar|Template Name|fontstyle=color:green}}</nowiki></code> || {{navbar|navbar/doc|fontstyle=color:green}} | ||
Line 43: | Line 43: | ||
===Deprecated parameters=== | ===Deprecated parameters=== | ||
The <tt>miniv=1</tt>, <tt>viewplain=1</tt> and <tt> | The <tt>miniv=1</tt>, <tt>viewplain=1</tt>, <tt>fontcolor=</tt> and <tt>nodiv=</tt> parameters have been deprecated. To use the view-only version, use the {{tlx|v}} or {{tlx|view}} templates instead. | ||
== Prepackaged == | == Prepackaged == |
Revision as of 00:08, 7 January 2011
This is a documentation subpage for Template:Navbar. It may contain usage information, categories and other content that is not part of the original template page. |
This template is used on 9,110,000+ pages, or roughly 133872% of all pages. To avoid major disruption and server load, any changes should be tested in the template's /sandbox or /testcases subpages, or in your own user subpage. The tested changes can be added to this page in a single edit. Consider discussing changes on the talk page before implementing them. |
Usage
General
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.
{{navbar|navbar/doc}} gives:
Examples
Required parameters
{{navbar|Name of Template}}
the template name is required.
Optional parameters
Options | Parameters | Produces... |
---|---|---|
Normal | {{navbar|Template Name}} |
|
No "This box:" text. | {{navbar|Template Name|plain=1}} |
|
Short version. | {{navbar|Template Name|mini=1}} |
|
"Blending" into text. | {{navbar|Template Name}} |
Lorem | Ipsum
Blended, no "This box:" text. | {{navbar|Template Name|plain=1}} |
Lorem | Ipsum
Blended, short version. | {{navbar|Template Name|mini=1}} |
Lorem | Ipsum
For a color option. | {{navbar|Template Name|fontstyle=color:green}} |
|
With brackets. | {{navbar|Template Name|brackets=1}}
|
Deprecated parameters
The miniv=1, viewplain=1, fontcolor= and nodiv= parameters have been deprecated. To use the view-only version, use the {{v}}
or {{view}}
templates instead.
Prepackaged
- {{Tnavbar-header}}
- Positions v • d • e on the right edge of the line, often used in non-collapsible navbox heading.
- {{Tnavbar-navframe}}
- For use in conjunction with Navframe divs, positions v • d • e opposite of the [hide]/[show] feature.
- {{Tnavbar-collapsible}}
- For use in conjunction with Collapsible tables,floats v • d • e opposite of the [hide]/[show] feature.
See also
[
] Compare different edit templates:- {{Ed}} —– plain-style edit link surrounded by <small> tags, specifically for templates only
- {{Ed right}} —– plain-style edit link surrounded by <small> tags and aligned to right of page, specifically for templates only
- {{Edit}} —– plain-style edit link, applicable to all Wikipedia namespaces
- {{Edit section}} —– edit link surrounded by <div> tags by default which can specify which section to edit on a page, applicable to all Wikipedia namespaces
- {{Edit sup}} —– plain-style edit link surrounded by <sup> tags, applicable to all Wikipedia namespaces
- {{Edit sub}} —– plain-style edit link surrounded by <sub> tags, applicable to all Wikipedia namespaces
- {{Vedit}} —– plain-style edit link which edit with the Wikipedia:VisualEditor, applicable to all Wikipedia namespaces
Templates with view, talk and edit links:
- {{Navbar}} —– navigation bar with configurable caption and view·talk·edit links, specifically for templates only
- {{View}} —– navbar-style view·talk·edit links, specifically for templates only
- {{VTE}} & {{V}} —– navbar-style V·T·E links (i.e. view·talk·edit links in short forms), specifically for templates only
Template:Navigational templates