MagicaVoxel Wiki
(Created page with "<onlyinclude><small><!-- -->{{#if:{{{mini|}}}{{{plain|}}}|<!--nothing-->|<!--else: --><span style="{{{fontstyle|}}}">{{#if:{{{text|}}}|{{{text}}}| This box:}} </span>}}<!-- ...")
 
m
Line 1: Line 1:
<onlyinclude><small><!--
+
<onlyinclude><div{{#if:{{{align|}}}| style="text-align: {{{2}}}"| }}><!--
   
 
-->{{#if:{{{mini|}}}{{{plain|}}}|<!--nothing-->|<!--else:
 
-->{{#if:{{{mini|}}}{{{plain|}}}|<!--nothing-->|<!--else:
Line 13: Line 13:
 
-->[{{fullurl:{{{1}}}|action=edit}} <span style="{{{fontstyle|}}}" title="Edit this subpage"><!--
 
-->[{{fullurl:{{{1}}}|action=edit}} <span style="{{{fontstyle|}}}" title="Edit this subpage"><!--
 
-->{{#if:{{{mini|}}}| e| edit}}</span>]<!--
 
-->{{#if:{{{mini|}}}| e| edit}}</span>]<!--
--></span></small></onlyinclude>
+
--></span></div></onlyinclude>
 
<noinclude>
 
<noinclude>
 
== Documentation ==
 
== Documentation ==
 
Add this template in an included page/subpage to display '''view/edit''' links in the parent page.<br>
 
Add this template in an included page/subpage to display '''view/edit''' links in the parent page.<br>
<code><nowiki><includeonly>{{NavbarSP|</nowiki>''page full name''<nowiki>|plain=1}}</includeonly></nowiki></code> - for full links<br>
+
<code>plain=1</code> option for full links<br>
<code><nowiki><includeonly>{{NavbarSP|</nowiki>''page full name''<nowiki>|mini=1}}</includeonly></nowiki></code> - for short links<br><br>
+
<code>mini=1</code> option for short links<br>
  +
<code>align=</code> complete option with either <code>left/center/right</code> for text alignement<br><br>
  +
Examples:
  +
<pre>
  +
<includeonly>{{NavbarSP|full page name|plain=1|align=left}}</includeonly>
  +
<includeonly>{{NavbarSP|full page name|mini=1|align=left}}</includeonly>
  +
<includeonly>{{NavbarSP|full page name|plain=1|align=center}}</includeonly>
  +
<includeonly>{{NavbarSP|full page name|plain=1|align=right}}</includeonly>
  +
</pre>
  +
  +
 
See also [[Template:Navbar]].
 
See also [[Template:Navbar]].
 
</noinclude>
 
</noinclude>

Revision as of 08:41, 22 April 2020

This box: [[{{{1}}}|view]] · [{{fullurl:{{{1}}}|action=edit}} edit]

Documentation

Add this template in an included page/subpage to display view/edit links in the parent page.
plain=1 option for full links
mini=1 option for short links
align= complete option with either left/center/right for text alignement

Examples:

<includeonly>{{NavbarSP|full page name|plain=1|align=left}}</includeonly>
<includeonly>{{NavbarSP|full page name|mini=1|align=left}}</includeonly>
<includeonly>{{NavbarSP|full page name|plain=1|align=center}}</includeonly>
<includeonly>{{NavbarSP|full page name|plain=1|align=right}}</includeonly>


See also Template:Navbar.