Difference between revisions of "Template:Navbox small"
Jump to navigation
Jump to search
m (adjust debugging tests) |
m (adjust debugging info) |
||
Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
; {{{title|Navigation}}}<nowiki>:</nowiki> | ; {{{title|Navigation}}}<nowiki>:</nowiki> | ||
− | <nowiki>"</nowiki>{{{parent}}}<nowiki>" = "</nowiki>{{PAGENAME}}<nowiki>"</nowiki> is {{ifeq|{{{parent}}}|{{PAGENAME}}|true|false}} | + | <nowiki>"</nowiki>{{{parent}}}<nowiki>" = "</nowiki>{{NAMESPACE}}:{{PAGENAME}}<nowiki>"</nowiki> is {{ifeq|{{{parent}}}|{{NAMESPACE}}:{{PAGENAME}}|true|false}} |
:<!-- | :<!-- | ||
− | -->{{if|test={{{parent|}}}|then={{ifeq|{{{parent}}}|{{PAGENAME}}|<!--nothing-->|[[{{{parent}}}]] - }} }}<!-- | + | -->{{if|test={{{parent|}}}|then={{ifeq|{{{parent}}}|{{NAMESPACE}}:{{PAGENAME}}|<!--nothing-->|[[{{{parent}}}]] - }} }}<!-- |
-->{{if|test={{{page1|}}}|then=[[{{{parent|{{PAGENAME}}}}}/{{{page1}}}{{!}}{{{title1|{{{page1}}}}}}]]}}<!-- | -->{{if|test={{{page1|}}}|then=[[{{{parent|{{PAGENAME}}}}}/{{{page1}}}{{!}}{{{title1|{{{page1}}}}}}]]}}<!-- | ||
-->{{if|test={{{page2|}}}|then= - [[{{{parent|{{PAGENAME}}}}}/{{{page2}}}{{!}}{{{title2|{{{page2}}}}}}]]}}<!-- | -->{{if|test={{{page2|}}}|then= - [[{{{parent|{{PAGENAME}}}}}/{{{page2}}}{{!}}{{{title2|{{{page2}}}}}}]]}}<!-- |
Revision as of 05:59, 26 April 2009
Small navigation bar. Create from style Voidious use in sub-pages link. Currently support up to 20 links.
Documentation
Usage
{{Infobox Robot | title = | parent = | page1 = | title1 = | page2 = | title2 = ... }}
Parameters
title | Title of navigation, default as 'Navigation'. |
parent | Parent page, omit for 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).