Difference between revisions of "Template:Navbox small"
Jump to navigation
Jump to search
(introducing new parameter, namespace) |
(try to fix the parent {{NAMESPACE}} wit subst:) |
||
Line 2: | Line 2: | ||
; {{{title|Navigation}}}<nowiki>:</nowiki> {{NAMESPACE}} | ; {{{title|Navigation}}}<nowiki>:</nowiki> {{NAMESPACE}} | ||
:<!-- | :<!-- | ||
− | -->{{if|test={{{parent|}}}|then={{ifeq|{{{parent}}}|{{PAGENAME}}|<!--nothing-->|{{ifeq|{{{parent}}}|{{FULLPAGENAME}}|<!--nothing-->|[[{{if|test={{{namespace|{{NAMESPACE}}}}}|then={{{namespace| | + | -->{{if|test={{{parent|}}}|then={{ifeq|{{{parent}}}|{{PAGENAME}}|<!--nothing-->|{{ifeq|{{{parent}}}|{{FULLPAGENAME}}|<!--nothing-->|[[{{if|test={{{namespace|{{NAMESPACE}}}}}|then={{{namespace|Template}}}:}}{{{parent}}}|{{{parent}}}]] - }}}}}}<!-- |
-->{{if|test={{{page1|}}}|then=[[{{{parent|{{if|test={{namespace|}}|then={{namespace}}:{{PAGENAME}}|else={{FULLPAGENAME}}}}}}}/{{{page1}}}{{!}}{{{title1|{{{page1}}}}}}]]}}<!-- | -->{{if|test={{{page1|}}}|then=[[{{{parent|{{if|test={{namespace|}}|then={{namespace}}:{{PAGENAME}}|else={{FULLPAGENAME}}}}}}}/{{{page1}}}{{!}}{{{title1|{{{page1}}}}}}]]}}<!-- | ||
− | -->{{if|test={{{page2|}}}|then= - [[{{{parent|{{if|test={{namespace|}}|then={{namespace}}:{{PAGENAME}}|else={{FULLPAGENAME}}}}}}}/{{{page2}}}{{!}}{{{ | + | -->{{if|test={{{page2|}}}|then= - [[{{{parent|{{if|test={{namespace|}}|then={{namespace}}:{{PAGENAME}}|else={{FULLPAGENAME}}}}}}}/{{{page2}}}{{!}}{{{title1|{{{page2}}}}}}]]}}<!-- |
− | -->{{if|test={{{page3|}}}|then= - [[{{{parent|{{if|test={{namespace|}}|then={{namespace}}:{{PAGENAME}}|else={{FULLPAGENAME}}}}}}}/{{{page3}}}{{!}}{{{ | + | -->{{if|test={{{page3|}}}|then= - [[{{{parent|{{if|test={{namespace|}}|then={{namespace}}:{{PAGENAME}}|else={{FULLPAGENAME}}}}}}}/{{{page3}}}{{!}}{{{title1|{{{page3}}}}}}]]}}<!-- |
− | -->{{if|test={{{page4|}}}|then= - [[{{{parent|{{if|test={{namespace|}}|then={{namespace}}:{{PAGENAME}}|else={{FULLPAGENAME}}}}}}}/{{{page4}}}{{!}}{{{ | + | -->{{if|test={{{page4|}}}|then= - [[{{{parent|{{if|test={{namespace|}}|then={{namespace}}:{{PAGENAME}}|else={{FULLPAGENAME}}}}}}}/{{{page4}}}{{!}}{{{title1|{{{page4}}}}}}]]}}<!-- |
− | -->{{if|test={{{page5|}}}|then= - [[{{{parent|{{if|test={{namespace|}}|then={{namespace}}:{{PAGENAME}}|else={{FULLPAGENAME}}}}}}}/{{{page5}}}{{!}}{{{ | + | -->{{if|test={{{page5|}}}|then= - [[{{{parent|{{if|test={{namespace|}}|then={{namespace}}:{{PAGENAME}}|else={{FULLPAGENAME}}}}}}}/{{{page5}}}{{!}}{{{title1|{{{page5}}}}}}]]}}<!-- |
− | -->{{if|test={{{page6|}}}|then= - [[{{{parent|{{if|test={{namespace|}}|then={{namespace}}:{{PAGENAME}}|else={{FULLPAGENAME}}}}}}}/{{{page6}}}{{!}}{{{ | + | -->{{if|test={{{page6|}}}|then= - [[{{{parent|{{if|test={{namespace|}}|then={{namespace}}:{{PAGENAME}}|else={{FULLPAGENAME}}}}}}}/{{{page6}}}{{!}}{{{title1|{{{page6}}}}}}]]}}<!-- |
− | -->{{if|test={{{page7|}}}|then= - [[{{{parent|{{if|test={{namespace|}}|then={{namespace}}:{{PAGENAME}}|else={{FULLPAGENAME}}}}}}}/{{{page7}}}{{!}}{{{ | + | -->{{if|test={{{page7|}}}|then= - [[{{{parent|{{if|test={{namespace|}}|then={{namespace}}:{{PAGENAME}}|else={{FULLPAGENAME}}}}}}}/{{{page7}}}{{!}}{{{title1|{{{page7}}}}}}]]}}<!-- |
− | -->{{if|test={{{page8|}}}|then= - [[{{{parent|{{if|test={{namespace|}}|then={{namespace}}:{{PAGENAME}}|else={{FULLPAGENAME}}}}}}}/{{{page8}}}{{!}}{{{ | + | -->{{if|test={{{page8|}}}|then= - [[{{{parent|{{if|test={{namespace|}}|then={{namespace}}:{{PAGENAME}}|else={{FULLPAGENAME}}}}}}}/{{{page8}}}{{!}}{{{title1|{{{page8}}}}}}]]}}<!-- |
− | -->{{if|test={{{page9|}}}|then= - [[{{{parent|{{if|test={{namespace|}}|then={{namespace}}:{{PAGENAME}}|else={{FULLPAGENAME}}}}}}}/{{{page9}}}{{!}}{{{ | + | -->{{if|test={{{page9|}}}|then= - [[{{{parent|{{if|test={{namespace|}}|then={{namespace}}:{{PAGENAME}}|else={{FULLPAGENAME}}}}}}}/{{{page9}}}{{!}}{{{title1|{{{page9}}}}}}]]}}<!-- |
− | -->{{if|test={{{page10|}}}|then= - [[{{{parent|{{if|test={{namespace|}}|then={{namespace}}:{{PAGENAME}}|else={{FULLPAGENAME}}}}}}}/{{{page10}}}{{!}}{{{ | + | -->{{if|test={{{page10|}}}|then= - [[{{{parent|{{if|test={{namespace|}}|then={{namespace}}:{{PAGENAME}}|else={{FULLPAGENAME}}}}}}}/{{{page10}}}{{!}}{{{title1|{{{page10}}}}}}]]}}<!-- |
− | -->{{if|test={{{page11|}}}|then= - [[{{{parent|{{if|test={{namespace|}}|then={{namespace}}:{{PAGENAME}}|else={{FULLPAGENAME}}}}}}}/{{{page11}}}{{!}}{{{ | + | -->{{if|test={{{page11|}}}|then= - [[{{{parent|{{if|test={{namespace|}}|then={{namespace}}:{{PAGENAME}}|else={{FULLPAGENAME}}}}}}}/{{{page11}}}{{!}}{{{title1|{{{page11}}}}}}]]}}<!-- |
− | -->{{if|test={{{page12|}}}|then= - [[{{{parent|{{if|test={{namespace|}}|then={{namespace}}:{{PAGENAME}}|else={{FULLPAGENAME}}}}}}}/{{{page12}}}{{!}}{{{ | + | -->{{if|test={{{page12|}}}|then= - [[{{{parent|{{if|test={{namespace|}}|then={{namespace}}:{{PAGENAME}}|else={{FULLPAGENAME}}}}}}}/{{{page12}}}{{!}}{{{title1|{{{page12}}}}}}]]}}<!-- |
− | -->{{if|test={{{page13|}}}|then= - [[{{{parent|{{if|test={{namespace|}}|then={{namespace}}:{{PAGENAME}}|else={{FULLPAGENAME}}}}}}}/{{{page13}}}{{!}}{{{ | + | -->{{if|test={{{page13|}}}|then= - [[{{{parent|{{if|test={{namespace|}}|then={{namespace}}:{{PAGENAME}}|else={{FULLPAGENAME}}}}}}}/{{{page13}}}{{!}}{{{title1|{{{page13}}}}}}]]}}<!-- |
− | -->{{if|test={{{page14|}}}|then= - [[{{{parent|{{if|test={{namespace|}}|then={{namespace}}:{{PAGENAME}}|else={{FULLPAGENAME}}}}}}}/{{{page14}}}{{!}}{{{ | + | -->{{if|test={{{page14|}}}|then= - [[{{{parent|{{if|test={{namespace|}}|then={{namespace}}:{{PAGENAME}}|else={{FULLPAGENAME}}}}}}}/{{{page14}}}{{!}}{{{title1|{{{page14}}}}}}]]}}<!-- |
− | -->{{if|test={{{page15|}}}|then= - [[{{{parent|{{if|test={{namespace|}}|then={{namespace}}:{{PAGENAME}}|else={{FULLPAGENAME}}}}}}}/{{{page15}}}{{!}}{{{ | + | -->{{if|test={{{page15|}}}|then= - [[{{{parent|{{if|test={{namespace|}}|then={{namespace}}:{{PAGENAME}}|else={{FULLPAGENAME}}}}}}}/{{{page15}}}{{!}}{{{title1|{{{page15}}}}}}]]}}<!-- |
− | -->{{if|test={{{page16|}}}|then= - [[{{{parent|{{if|test={{namespace|}}|then={{namespace}}:{{PAGENAME}}|else={{FULLPAGENAME}}}}}}}/{{{page16}}}{{!}}{{{ | + | -->{{if|test={{{page16|}}}|then= - [[{{{parent|{{if|test={{namespace|}}|then={{namespace}}:{{PAGENAME}}|else={{FULLPAGENAME}}}}}}}/{{{page16}}}{{!}}{{{title1|{{{page16}}}}}}]]}}<!-- |
− | -->{{if|test={{{page17|}}}|then= - [[{{{parent|{{if|test={{namespace|}}|then={{namespace}}:{{PAGENAME}}|else={{FULLPAGENAME}}}}}}}/{{{page17}}}{{!}}{{{ | + | -->{{if|test={{{page17|}}}|then= - [[{{{parent|{{if|test={{namespace|}}|then={{namespace}}:{{PAGENAME}}|else={{FULLPAGENAME}}}}}}}/{{{page17}}}{{!}}{{{title1|{{{page17}}}}}}]]}}<!-- |
− | -->{{if|test={{{page18|}}}|then= - [[{{{parent|{{if|test={{namespace|}}|then={{namespace}}:{{PAGENAME}}|else={{FULLPAGENAME}}}}}}}/{{{page18}}}{{!}}{{{ | + | -->{{if|test={{{page18|}}}|then= - [[{{{parent|{{if|test={{namespace|}}|then={{namespace}}:{{PAGENAME}}|else={{FULLPAGENAME}}}}}}}/{{{page18}}}{{!}}{{{title1|{{{page18}}}}}}]]}}<!-- |
− | -->{{if|test={{{page19|}}}|then= - [[{{{parent|{{if|test={{namespace|}}|then={{namespace}}:{{PAGENAME}}|else={{FULLPAGENAME}}}}}}}/{{{page19}}}{{!}}{{{ | + | -->{{if|test={{{page19|}}}|then= - [[{{{parent|{{if|test={{namespace|}}|then={{namespace}}:{{PAGENAME}}|else={{FULLPAGENAME}}}}}}}/{{{page19}}}{{!}}{{{title1|{{{page19}}}}}}]]}}<!-- |
− | -->{{if|test={{{page20|}}}|then= - [[{{{parent|{{if|test={{namespace|}}|then={{namespace}}:{{PAGENAME}}|else={{FULLPAGENAME}}}}}}}/{{{page20}}}{{!}}{{{ | + | -->{{if|test={{{page20|}}}|then= - [[{{{parent|{{if|test={{namespace|}}|then={{namespace}}:{{PAGENAME}}|else={{FULLPAGENAME}}}}}}}/{{{page20}}}{{!}}{{{title1|{{{page20}}}}}}]]}}<!-- |
--></includeonly> | --></includeonly> | ||
<noinclude> | <noinclude> |
Revision as of 08:30, 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).