Difference between revisions of "Template:Navbox small"

From Robowiki
Jump to navigation Jump to search
m (should fix the missing brace issue)
m
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly>
+
<!--
; {{{title|Navigation}}}<nowiki>:</nowiki> {{NAMESPACE}}
+
 
 +
This is one of complex template, DO NOT EDIT IF YOU DON'T KNOW WHAT YOU ARE DOING.
 +
 
 +
--><includeonly>
 +
; {{{title|Navigation}}}<nowiki>:</nowiki>
 
:<!--
 
:<!--
 
-->{{if|test={{{parent|}}}|then={{ifeq|{{{parent}}}|{{PAGENAME}}|<!--nothing-->|{{ifeq|{{{parent}}}|{{FULLPAGENAME}}|<!--nothing-->|[[{{if|test={{{namespace|{{NAMESPACE}}}}}|then={{{namespace|{{NAMESPACE}}}}}:}}{{{parent}}}|{{{parent}}}]] -&nbsp;}}}}}}<!--
 
-->{{if|test={{{parent|}}}|then={{ifeq|{{{parent}}}|{{PAGENAME}}|<!--nothing-->|{{ifeq|{{{parent}}}|{{FULLPAGENAME}}|<!--nothing-->|[[{{if|test={{{namespace|{{NAMESPACE}}}}}|then={{{namespace|{{NAMESPACE}}}}}:}}{{{parent}}}|{{{parent}}}]] -&nbsp;}}}}}}<!--
Line 23: Line 27:
 
-->{{if|test={{{page19|}}}|then=&nbsp;- [[{{if|test={{{parent|}}}|then={{if|test={{{namespace|{{NAMESPACE}}}}}|then={{{namespace|{{NAMESPACE}}}}}:}}{{{parent}}}|else={{if|test={{{namespace|{{NAMESPACE}}}}}|then={{{namespace|{{NAMESPACE}}}}}:{{PAGENAME}}|else={{FULLPAGENAME}}}}}}/{{{page19}}}{{!}}{{{title19|{{{page19}}}}}}]]}}<!--
 
-->{{if|test={{{page19|}}}|then=&nbsp;- [[{{if|test={{{parent|}}}|then={{if|test={{{namespace|{{NAMESPACE}}}}}|then={{{namespace|{{NAMESPACE}}}}}:}}{{{parent}}}|else={{if|test={{{namespace|{{NAMESPACE}}}}}|then={{{namespace|{{NAMESPACE}}}}}:{{PAGENAME}}|else={{FULLPAGENAME}}}}}}/{{{page19}}}{{!}}{{{title19|{{{page19}}}}}}]]}}<!--
 
-->{{if|test={{{page20|}}}|then=&nbsp;- [[{{if|test={{{parent|}}}|then={{if|test={{{namespace|{{NAMESPACE}}}}}|then={{{namespace|{{NAMESPACE}}}}}:}}{{{parent}}}|else={{if|test={{{namespace|{{NAMESPACE}}}}}|then={{{namespace|{{NAMESPACE}}}}}:{{PAGENAME}}|else={{FULLPAGENAME}}}}}}/{{{page20}}}{{!}}{{{title20|{{{page20}}}}}}]]}}<!--
 
-->{{if|test={{{page20|}}}|then=&nbsp;- [[{{if|test={{{parent|}}}|then={{if|test={{{namespace|{{NAMESPACE}}}}}|then={{{namespace|{{NAMESPACE}}}}}:}}{{{parent}}}|else={{if|test={{{namespace|{{NAMESPACE}}}}}|then={{{namespace|{{NAMESPACE}}}}}:{{PAGENAME}}|else={{FULLPAGENAME}}}}}}/{{{page20}}}{{!}}{{{title20|{{{page20}}}}}}]]}}<!--
--></includeonly>
+
--></includeonly><noinclude>
<noinclude>
 
 
Small navigation bar. Create from style [[Voidious]] use in sub-pages link. Currently support up to 20 links.
 
Small navigation bar. Create from style [[Voidious]] use in sub-pages link. Currently support up to 20 links.
 
 
<br style="clear:both" />
 
<br style="clear:both" />
 
<div style="padding: 0px 5px 0px 5px; border: 1px solid #aaa; margin-bottom: 1ex; background-color: #EFE">
 
<div style="padding: 0px 5px 0px 5px; border: 1px solid #aaa; margin-bottom: 1ex; background-color: #EFE">

Latest revision as of 09:54, 2 May 2009

Small navigation bar. Create from style Voidious use in sub-pages link. Currently support up to 20 links.

Documentation

Usage

{{Navbox small
| title           = 
| parent          =
| namespace       = 
| page1           = 
| title1          =
| page2           =
| title2          =
...
}}

Parameters

title Title of navigation, default as 'Navigation'.
parent Parent page, omit for current page. Do not include namespace.
namespace Namespace of the page, usually this is need not to specify since it will automatically detect from current page.
pageN Suppage name, do not put the parrent page prefix.
titleN Text to show for each suppage link.

Please if anyone can write better documentation, current one is really really un-understandable (not very clear).