Difference between revisions of "Template:Navbar"
From Roll20 Wiki
m (1 revision) |
|||
Line 7: | Line 7: | ||
--><ul><!-- | --><ul><!-- | ||
− | --><li class="nv-view">[[{{transclude|{{{1}}}}}|<span title="View this template" <!-- | + | --><li class="nv-view" style="display:inline">[[{{transclude|{{{1}}}}}|<span title="View this template" <!-- |
-->style="{{{fontstyle|}}}">{{#if:{{{mini|}}}|v|view}}</span>]]</li><!-- | -->style="{{{fontstyle|}}}">{{#if:{{{mini|}}}|v|view}}</span>]]</li><!-- | ||
− | --><li class="nv-talk">[[{{TALKPAGENAME:{{transclude|{{{1}}}}}}}|<span title="Discuss this template" <!-- | + | --><li class="nv-talk" style="display:inline">[[{{TALKPAGENAME:{{transclude|{{{1}}}}}}}|<span title="Discuss this template" <!-- |
-->style="{{{fontstyle|}}}">{{#if:{{{mini|}}}|t|talk}}</span>]]</li><!-- | -->style="{{{fontstyle|}}}">{{#if:{{{mini|}}}|t|talk}}</span>]]</li><!-- | ||
-->{{#if:{{{noedit|}}}|<!--nothing-->|<!--else: | -->{{#if:{{{noedit|}}}|<!--nothing-->|<!--else: | ||
− | --><li class="nv-edit">[{{fullurl:{{transclude|{{{1}}}}}|action=edit}} <span title="Edit this template" <!-- | + | --><li class="nv-edit" style="display:inline">[{{fullurl:{{transclude|{{{1}}}}}|action=edit}} <span title="Edit this template" <!-- |
-->style="{{{fontstyle|}}}">{{#if:{{{mini|}}}|e|edit}}</span>]</li>}}<!-- | -->style="{{{fontstyle|}}}">{{#if:{{{mini|}}}|e|edit}}</span>]</li>}}<!-- | ||
--></ul><!-- | --></ul><!-- |
Latest revision as of 16:20, 16 January 2015
When one of the following examples is placed inside a given template, it adds navbar navigational functionality:
{{navbar|{{subst:PAGENAME}}|mini=1}}
{{navbar|{{subst:PAGENAME}}|plain=1}}
{{navbar|{{subst:PAGENAME}}|fontstyle=color:green}}
{{subst:PAGENAME}}
will be substituted with the template's name when parsed by the servers. For example, {{navbar|navbar/doc}}
gives: The above documentation is transcluded from Template:Navbar/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |