Template

Navbar/old/doc

From Dogcraft Wiki

(Domino moved page Template:Navbar/old/doc to Template:Navbar/doc: doc stays)
Tag: New redirect
 
(Removed redirect to Template:Navbar/doc)
Tag: Removed redirect
 
Line 1: Line 1:
#REDIRECT [[Template:Navbar/doc]]
Copyable examples when inside a given [[:Category:Navigation templates|template]] adds navbar navigational functionality:
== Usage ==
:<tt><nowiki>{{navbar/old|{{subst:PAGENAME}}|mini=1}}</nowiki></tt>
:<tt><nowiki>{{navbar/old|{{subst:PAGENAME}}|plain=1}}</nowiki></tt>
:<tt><nowiki>{{navbar/old|{{subst:PAGENAME}}|mini=1|nodiv=1}}</nowiki></tt>
:<tt><nowiki>{{navbar/old|{{subst:PAGENAME}}|plain=1|nodiv=1}}</nowiki></tt>
:<tt><nowiki>{{navbar/old|{{subst:PAGENAME}}|fontstyle=color:green}}</nowiki></tt>
 
:The <code><nowiki>{{subst:PAGENAME}}</nowiki></code> will be substituted with the template's name when parsed by the servers.
:<nowiki>{{navbar/old|navbar/doc}}</nowiki> gives: {{navbar/old|navbar/doc}}
 
== Examples ==
=== Required parameters ===
*<code><nowiki>{{navbar/old|Name of Template}}</nowiki></code> the template name is required.
 
=== Optional parameters ===
{|
! Options !! Parameters !! Produces...
|-
| Normal || <code><nowiki>{{navbar/old|Template Name}}</nowiki></code> || {{navbar/old|navbar/doc}}
|-
| No "This box:" text. || <code><nowiki>{{navbar/old|Template Name|plain=1}}</nowiki></code> || {{navbar/old|navbar/doc|plain=1}}
|-
| Short version. || <code><nowiki>{{navbar/old|Template Name|mini=1}}</nowiki></code> || {{navbar/old|navbar/doc|mini=1}}
|-
| Good for "blending" into text. || <code><nowiki>{{navbar/old|Template Name|nodiv=1}}</nowiki></code> || Lorem {{navbar/old|navbar/doc|nodiv=1}} Ipsum
|-
|Blended, no "This box:" text. || <code><nowiki>{{navbar/old|Template Name|plain=1|nodiv=1}}</nowiki></code> || Lorem {{navbar/old|navbar/doc|plain=1|nodiv=1}} Ipsum
|-
|Blended, short version. || <code><nowiki>{{navbar/old|Template Name|mini=1|nodiv=1}}</nowiki></code> || Lorem {{navbar/old|navbar/doc|mini=1|nodiv=1}} Ipsum
|-
| For a color option. || <code><nowiki>{{navbar/old|Template Name|fontstyle=color:green}}</nowiki></code> || {{navbar/old|navbar/doc|fontstyle=color:green}}
|-
| With brackets.
| <code><nowiki>{{navbar/old|Template Name|brackets=1}}</nowiki></code>
| {{navbar/old|navbar/doc|brackets=1}}
|}
<includeonly>[[Category:Navigation templates|{{PAGENAME}}]]</includeonly>
<noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude>

Latest revision as of 00:13, 21 April 2023

Copyable examples when inside a given template adds navbar navigational functionality:

Usage

{{navbar/old|{{subst:PAGENAME}}|mini=1}}
{{navbar/old|{{subst:PAGENAME}}|plain=1}}
{{navbar/old|{{subst:PAGENAME}}|mini=1|nodiv=1}}
{{navbar/old|{{subst:PAGENAME}}|plain=1|nodiv=1}}
{{navbar/old|{{subst:PAGENAME}}|fontstyle=color:green}}
The {{subst:PAGENAME}} will be substituted with the template's name when parsed by the servers.
{{navbar/old|navbar/doc}} gives:

Examples

Required parameters

  • {{navbar/old|Name of Template}} the template name is required.

Optional parameters

Options Parameters Produces...
Normal {{navbar/old|Template Name}}
No "This box:" text. {{navbar/old|Template Name|plain=1}}
Short version. {{navbar/old|Template Name|mini=1}}
Good for "blending" into text. {{navbar/old|Template Name|nodiv=1}} Lorem  This box: view  talk  edit  Ipsum
Blended, no "This box:" text. {{navbar/old|Template Name|plain=1|nodiv=1}} Lorem  view  talk  edit  Ipsum
Blended, short version. {{navbar/old|Template Name|mini=1|nodiv=1}} Lorem  v  d  e  Ipsum
For a color option. {{navbar/old|Template Name|fontstyle=color:green}}
With brackets. {{navbar/old|Template Name|brackets=1}}