Difference between revisions of "Template:Navbar"

From Pathfinder Wiki
 
m (239 revisions)
 
(115 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<includeonly>{{#if:{{{nodiv|}}}|&nbsp;<span class="noprint plainlinksneverexpand" id="Tnavbar-nodiv" 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;">}}{{#ifeq:{{{mini|}}}{{{plain|}}}|1||This box:&nbsp;}}{{#if:{{{mini|}}}|[{{fullurl:Template:{{{1}}}}} <span style="color:#002bb8;" title="View this template.">v</span>]&middot;[{{fullurl:Template_talk:{{{1}}}}} <span style="color:#002bb8;" title="Discussion about this template.">d</span>]&middot;[{{fullurl:Template:{{{1}}}|action=edit}} <span style="color:#002bb8;" title="You can edit this template. Please use the preview button before saving.">e</span>]}}{{#if:{{{mini|}}}||[{{fullurl:Template:{{{1}}}}} <span style="color:#002bb8;" title="View this template.">view</span>] • [{{fullurl:Template_talk:{{{1}}}}} <span style="color:#002bb8;" title="Discussion about this template.">talk</span>] • [{{fullurl:Template:{{{1}}}|action=edit}} <span style="color:#002bb8;" title="You can edit this template. Please use the preview button before saving.">edit</span>]}}{{#if:{{{nodiv|}}}|</span>&nbsp;|</div>}}</includeonly><noinclude>{{esoteric}}
+
<includeonly>{{#if:{{{nodiv|}}}|&nbsp;<span|<div}} class="noprint plainlinks navbar" style="background:none; padding:0; font-weight:normal;{{{fontstyle|}}}; font-size:xx-small; {{{style|}}}"><!--
==Usage==
 
Copyable empty example:
 
<nowiki>{{Tnavbar|Name of Template|mini= |nodiv= |plain= }}</nowiki> inside  a given [[Wikipedia:Navigational templates|template]] to add Tnavbar navigational functionality.
 
  
<nowiki>{{Tnavbar|Tnavbar}}</nowiki> gives: {{Tnavbar|Tnavbar}}
+
-->{{#if:{{{mini|}}}{{{plain|}}}|<!--nothing-->|<!--else:
 +
-->This box:&#32;}}<!--
  
==Note to editors==
+
-->{{#if:{{{brackets|}}}|&#91;}}<!--
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 thousands of pages]</span>; please tread lightly when editing here.  Conducting sufficient [[Template:Template sandbox|sandbox testing]] to establish the validity of edits relative to Tnavbar is '''strongly''' encouraged prior to attempting to integrate changes.
 
  
==Examples==
+
-->[[{{transclude|{{{1}}}}}|<span title="View this template" style="{{{fontstyle|}}}"><!--
<pre>{{Tnavbar|Name of Template|mini= |nodiv= |plain= }}</pre>
+
-->{{#if:{{{mini|}}}|v|view}}</span>]]<!--
  
=== Required parameters ===
+
-->&nbsp;<span style="font-size:80%;">•</span>&nbsp;[[{{TALKPAGENAME:{{transclude|{{{1}}}}}}}|<span title="Discuss this template" style="{{{fontstyle|}}}">{{#if:{{{mini|}}}|d|talk}}</span>]]<!--
*<code><nowiki>{{Tnavbar|Name of Template}}</nowiki></code> the template name is required.
 
  
=== Optional parameters ===
+
-->{{#if:{{{noedit|}}}|<!--nothing-->|<!--else:
{| class="wikitable"
+
-->&nbsp;<span style="font-size:80%;">•</span>&nbsp;[{{fullurl:{{transclude|{{{1}}}}}|action=edit}}<span title="Edit this template" style="{{{fontstyle|}}};">{{#if:{{{mini|}}}|e|edit}}</span>]<!--
! Optional parameter !! colspan=2 | Produces...
+
-->}}<!--
|-
 
|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.
 
|-
 
|<nowiki>No "This box:" text. {{Tnavbar|Tnavbar|plain=1}}</nowiki> || → ||No "This box:" text. {{Tnavbar|Tnavbar|plain=1}}
 
|-
 
|<nowiki>Blended no "This box:" text. {{Tnavbar|Tnavbar|plain=1|nodiv=1}}</nowiki> || → ||Blended no "This box:" text. {{Tnavbar|Tnavbar|plain=1|nodiv=1}}
 
|}
 
  
 +
-->{{#if:{{{brackets|}}}|]}}<!--
 +
 +
-->{{#if:{{{nodiv|}}}|<!--then:
 +
--></span>&nbsp;|<!--else:
 +
--></div>}}</includeonly><noinclude>
 +
 +
{{documentation}}
 
</noinclude>
 
</noinclude>

Latest revision as of 23:28, 22 July 2012


Template documentation[create] [purge]