Difference between revisions of "Template:Navbar"

From RimWorld Wiki
Jump to navigation Jump to search
(Needed to use Infobox)
 
(moved here from /doc page)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly><div class="noprint plainlinks hlist navbar {{#if:{{{mini|}}}|mini}}" style="{{{style|}}}"><!--
+
<noinclude>{{Documentation wanted}}</noinclude><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><noinclude>{{Documentation}}</noinclude>
 
 
--><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:
 
--><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>
 

Latest revision as of 22:07, 7 April 2023

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

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