Difference between revisions of "Template:Navbar"

From Self-sufficiency
Jump to: navigation, search
m
m (4 revisions from wikipedia:Template:Navbar)
 
(148 intermediate revisions by 38 users not shown)
Line 1: Line 1:
<includeonly>{{
+
<includeonly><div class="noprint plainlinks hlist navbar" style="{{{style|}}}"><!--
#if:{{{nodiv|}}}|&nbsp;<span class="noprint plainlinksneverexpand" style="white-space: nowrap; font-size:xx-small;">|<div class="noprint plainlinksneverexpand" id="Tnavbar" style="background-color: transparent; padding: 0; font-size:xx-small; color:#000000; white-space: nowrap;">}}
+
{{#if:{{{mini|}}}||This box:}}[{{fullurl:Template:{{{1}}}}} <span style="color:#002bb8;" title="View this template.">{{
+
#if:{{{mini|}}}|v|view}}</span>]{{
+
#if:{{{mini|}}}|&middot;|&nbsp;&bull;&nbsp;}}[{{fullurl:Template_talk:{{{1}}}}} <span style="color:#002bb8;" title="Discussion about this template.">{{
+
#if:{{{mini|}}}|d|talk}}</span>]{{
+
#if:{{{mini|}}}|&middot;|&nbsp;&bull;&nbsp;}}[{{fullurl:Template:{{{1}}}|action=edit}} <span style="color:#002bb8;" title="You can edit this template. Please use the preview button before saving.">{{
+
#if:{{{mini|}}}|e|edit}}</span>]
+
{{#if:{{{nodiv|}}}|</span>&nbsp;|</div>}}</includeonly><noinclude>
+
==Usage==
+
Copyable empty example:
+
<nowiki>{{Tnavbar|Name of Template|mini= |nodiv= }}</nowiki> inside  a given [[Wikipedia:Navigational templates|template]] to adds '''view''' &bull;  '''talk''' &bull;  '''edit''' navigational functionality.
+
  
<nowiki>{{Tnavbar|Tnavbar}}</nowiki> gives {{Tnavbar|Tnavbar}}
+
-->{{#if:{{{mini|}}}{{{plain|}}}|<!--nothing-->|<!--else:
 +
--><span style="word-spacing:0;{{{fontstyle|}}}">{{{text|This box:}}} </span>}}<!--
  
==Note to editors==
+
-->{{#if:{{{brackets|}}}|<span style="margin-right:-0.125em;{{{fontstyle|}}}">&#91;</span>}}<!--
This template is likely represented across <span class="plainlinks">[http://en.wikipedia.org/w/index.php?title=Special:Whatlinkshere/Template:Tnavbar&limit=4000&from=0 hundreds of pages (if not thousands)]</span>; please tread lightly when editing here.
+
  
==Examples / See also==
+
--><ul><!--
<pre>{{Tnavbar|Name of Template|mini= |nodiv= }}</pre>
+
--><li class="nv-view">[[{{transclude|{{{1}}}}}|<span style="{{{fontstyle|}}}" title="View this template"><!--
 +
-->{{#if:{{{mini|}}}|v|view}}</span>]]</li><!--
  
=== Required parameters ===
+
--><li class="nv-talk">[[{{TALKPAGENAME:{{transclude|{{{1}}}}}}}|<span style="{{{fontstyle|}}}" title="Discuss this template"><!--
*<nowiki>{{Tnavbar|Name of Template}}</nowiki> the template name is required.
+
-->{{#if:{{{mini|}}}|d|talk}}</span>]]</li><!--
  
=== Optional parameters ===
+
-->{{#if:{{{noedit|}}}|<!--nothing-->|<!--else:
{| class="wikitable"
+
--><li class="nv-edit">[{{fullurl:{{transclude|{{{1}}}}}|action=edit}} <span style="{{{fontstyle|}}}" title="Edit this template"><!--
! Optional parameter !! colspan=2 | Produces...
+
-->{{#if:{{{mini|}}}|e|edit}}</span>]</li>}}<!--
|-
+
--></ul><!--
|Divides into a separate section: <nowiki>{{Tnavbar|Tnavbar|mini=1}}</nowiki> like so. || → || Divides into a separate section: {{Tnavbar|Tnavbar|mini=1}} like so.
+
|-
+
|<nowiki>{{Tnavbar|Tnavbar|nodiv=1}}</nowiki> Good for "blending" into text. || → || {{Tnavbar|Tnavbar|nodiv=1}} Good for "blending" into text.
+
|-
+
|<nowiki>{{Tnavbar|Tnavbar|mini=1|nodiv=1}}</nowiki> Good for "blending" into text. || → || {{Tnavbar|Tnavbar|mini=1|nodiv=1}} Good for "blending" into text.
+
|}
+
  
[[cs:Šablona:Tnavbar]]
+
-->{{#if:{{{brackets|}}}|<span style="margin-left:-0.125em;{{{fontstyle|}}}">&#93;</span>}}<!--
[[Category:Internal link templates|{{PAGENAME}}]]</noinclude>
+
 
 +
--></div></includeonly><noinclude>
 +
 
 +
{{documentation}}
 +
</noinclude>

Latest revision as of 11:08, 21 December 2011