Difference between revisions of "Template:Tnavbar"

From CWCki
Jump to navigation Jump to search
m (Removed documentation.)
(Added usage, recategorized as a link template.)
Line 9: Line 9:
-->[[Template:{{{1}}}|<span title="View this template" style="{{{fontstyle|}}};{{#if:{{{fontcolor|}}}|color:{{{fontcolor}}};}}">{{#if:{{{viewplain|}}}|view|v}}</span>]]|<!--else:
-->[[Template:{{{1}}}|<span title="View this template" style="{{{fontstyle|}}};{{#if:{{{fontcolor|}}}|color:{{{fontcolor}}};}}">{{#if:{{{viewplain|}}}|view|v}}</span>]]|<!--else:
-->[[Template:{{{1}}}|<span title="View this template" style="{{{fontstyle|}}};{{#if:{{{fontcolor|}}}|color:{{{fontcolor}}};}}">{{#if:{{{mini|}}}|v|view}}</span>]]&nbsp;<span style="font-size:80%;">•</span>&nbsp;[[Template talk:{{{1}}}|<span style="color:#002bb8;{{{fontstyle|}}};{{#if:{{{fontcolor|}}}|color:{{{fontcolor}}};}}" title="Discussion about this template">{{#if:{{{mini|}}}|d|talk}}</span>]]&nbsp;<span style="font-size:80%;">•</span>&nbsp;[{{fullurl:{{ns:10}}:{{{1}}}|action=edit}} <span style="color:#002bb8;{{{fontstyle|}}};{{#if:{{{fontcolor|}}}|color:{{{fontcolor}}};}}" title="You can edit this template. Please use the preview button before saving.">{{#if:{{{mini|}}}|e|edit}}</span>]<!--
-->[[Template:{{{1}}}|<span title="View this template" style="{{{fontstyle|}}};{{#if:{{{fontcolor|}}}|color:{{{fontcolor}}};}}">{{#if:{{{mini|}}}|v|view}}</span>]]&nbsp;<span style="font-size:80%;">•</span>&nbsp;[[Template talk:{{{1}}}|<span style="color:#002bb8;{{{fontstyle|}}};{{#if:{{{fontcolor|}}}|color:{{{fontcolor}}};}}" title="Discussion about this template">{{#if:{{{mini|}}}|d|talk}}</span>]]&nbsp;<span style="font-size:80%;">•</span>&nbsp;[{{fullurl:{{ns:10}}:{{{1}}}|action=edit}} <span style="color:#002bb8;{{{fontstyle|}}};{{#if:{{{fontcolor|}}}|color:{{{fontcolor}}};}}" title="You can edit this template. Please use the preview button before saving.">{{#if:{{{mini|}}}|e|edit}}</span>]<!--
-->}} </span>&nbsp;<noinclude>
-->}} </span>&nbsp;<noinclude>{{Usage|1=This is a link template used to add navigational functionality to a navigational template.  By using the template in a navbox, that navbox will display links to view, edit, or discuss the article in which it appears. The format for using this template is as follows:<br />
 
<pre>{{Tnavbar|{{subst:PAGENAME}}|mini=1}}</pre>
   
- Displays:
    {{Tnavbar|Tnavbar|mini=1}}
 
 
<pre>{{Tnavbar|{{subst:PAGENAME}}|plain=1}}</pre>
 
- Displays:
    {{Tnavbar|Tnavbar|plain=1}}
 
 
<pre>{{Tnavbar|{{subst:PAGENAME}}|mini=1|nodiv=1}}</pre>
 
- Displays:
    {{Tnavbar|Tnavbar|mini=1|nodiv=1}}
 
<pre>{{Tnavbar|{{subst:PAGENAME}}|plain=1|nodiv=1}}</pre>
 
- Displays:
    {{Tnavbar|Tnavbar|plain=1|nodiv=1}}
 
<pre>{{Tnavbar|{{subst:PAGENAME}}|fontstyle=color:green}} </pre>
 
- Displays:
    {{Tnavbar|Tnavbar|fontstyle=color:green}}
}}
 
[[Category:Templates|{{PAGENAME}}]]</noinclude>
[[Category:Templates|{{PAGENAME}}]]</noinclude>
</noinclude>

Revision as of 21:07, 3 December 2010

This box: [[Template:{{{1}}}|view]]  [[Template talk:{{{1}}}|talk]]  [{{fullurl:Template:{{{1}}}|action=edit}} edit]  

Usage

These usage notes will not be included in articles bearing this template.

This is a link template used to add navigational functionality to a navigational template. By using the template in a navbox, that navbox will display links to view, edit, or discuss the article in which it appears. The format for using this template is as follows:

{{Tnavbar|{{subst:PAGENAME}}|mini=1}}

- Displays:

   v  d  e  


{{Tnavbar|{{subst:PAGENAME}}|plain=1}}

- Displays:

   view  talk  edit  


{{Tnavbar|{{subst:PAGENAME}}|mini=1|nodiv=1}}

- Displays:

   v  d  e  
{{Tnavbar|{{subst:PAGENAME}}|plain=1|nodiv=1}}

- Displays:

   view  talk  edit  
{{Tnavbar|{{subst:PAGENAME}}|fontstyle=color:green}} 

- Displays:

   This box: view  talk  edit