Difference between revisions of "Template:Navbar"

From RimWorld Wiki
Jump to navigation Jump to search
(Needed to use Infobox)
 
(Imported from https://help.gamepedia.com/Gamepedia_Help_Wiki)
Line 1: Line 1:
<includeonly><div class="noprint plainlinks hlist navbar {{#if:{{{mini|}}}|mini}}" style="{{{style|}}}"><!--
+
<onlyinclude><includeonly><!--
  
-->{{#if:{{{mini|}}}{{{plain|}}}|<!--nothing-->|<!--else:
+
--><div class="navbar plainlinks"><!--
--><span style="word-spacing:0;{{{fontstyle|}}}">{{{text|This box:}}} </span>}}<!--
+
-->[{{fullurl:{{ns:Template}}:{{{1}}}}} <span class="nv-view" title="View this template" style="{{{fontstyle|}}}">v</span>]<!--
 +
-->&middot;<!--
 +
-->[{{fullurl:{{ns:Template talk}}:{{{1}}}}} <span class="nv-talk" title="Discuss this template" style="{{{fontstyle|}}}">t</span>]<!--
 +
-->&middot;<!--
 +
-->[{{fullurl:{{ns:Template}}:{{{1}}}|action=edit}} <span class="nv-edit" title="Edit this template" style="{{{fontstyle|}}}">e</span>]<!--
 +
--></div><!--
  
-->{{#if:{{{brackets|}}}|<span style="margin-right:-0.125em;{{{fontstyle|}}}">&#91;</span>}}<!--
+
--></includeonly></onlyinclude>
 
+
{{documentation}}
--><ul><!--
 
--><li class="nv-view">[[{{transclude|{{{1}}}}}|<span title="View this template" <!--
 
-->style="{{{fontstyle|}}}">{{#if:{{{mini|}}}|v|view}}</span>]]</li><!--
 
 
 
--><li class="nv-talk">[[{{TALKPAGENAME:{{transclude|{{{1}}}}}}}|<span title="Discuss this template" <!--
 
-->style="{{{fontstyle|}}}">{{#if:{{{mini|}}}|t|talk}}</span>]]</li><!--
 
  
-->{{#if:{{{noedit|}}}|<!--nothing-->|<!--else:
+
[[Category:Navigation templates| ]]
--><li class="nv-edit">[{{fullurl:{{transclude|{{{1}}}}}|action=edit}} <span title="Edit this template" <!--
 
-->style="{{{fontstyle|}}}">{{#if:{{{mini|}}}|e|edit}}</span>]</li>}}<!--
 
--></ul><!--
 
 
 
-->{{#if:{{{brackets|}}}|<span style="margin-left:-0.125em;{{{fontstyle|}}}">&#93;</span>}}<!--
 
 
 
--></div></includeonly><noinclude>
 
 
 
{{documentation}}
 
</noinclude>
 

Revision as of 19:46, 12 July 2019

Documentation icon Template documentation[view] [edit] [history] [purge]

Adds view/discuss/edit navigational functionality to other templates. Used in {{Navbox}}.