Template:navigation: Difference between revisions

From Thesaurus Inscriptionum Raeticarum
Jump to navigationJump to search
No edit summary
 
No edit summary
 
Line 11: Line 11:
{{navigation|namespace}}
{{navigation|namespace}}


</noinclude><includeonly><div class="navigation-line">{{#vardefine: input | {{{1|}}} }}{{#ifeq: {{#var: input }} || {{#vardefine: input | {{#show: {{FULLPAGENAME}}|?Category# }} }} }}{{#ifeq: {{#var: input }} | namespace | '''{{NAMESPACE}} Pages:'''<br>{{#ask:[[{{NAMESPACE}}:+]][[Modification date::>0]]|format=list|sep= &#73;&nbsp;|limit=1000|searchlabel= &#91;full list&#93;}} | '''{{#var: input }} Pages:'''<br>{{#ask: [[Category:{{#var: input }}]]|format=list|sep= &#73;&nbsp;|limit=1000|searchlabel= &#91;full list&#93;}}[[Category:{{#var: input }}]] }}</div></includeonly>
</noinclude><includeonly><div class="navigation-line">{{#vardefine: input | {{{1|}}} }}{{#ifeq: {{#var: input }} || {{#vardefine: input | {{#show: {{FULLPAGENAME}}|?Category# }} }} }}{{#ifeq: {{#var: input }} | namespace | '''{{NAMESPACE}} Pages:'''<br>{{#ask:[[{{NAMESPACE}}:+]][[Modification date::>0]]|format=list|sep=&#32;&#73;&#32;|limit=1000|searchlabel= &#91;full list&#93;}} | '''{{#var: input }} Pages:'''<br>{{#ask: [[Category:{{#var: input }}]]|format=list|sep=&#32;&#73;&#32;|limit=1000|searchlabel= &#91;full list&#93;}}[[Category:{{#var: input }}]] }}</div></includeonly>

Latest revision as of 16:42, 21 July 2013

This navigation template displays a list of all pages within the given parameter. Values other than "namespace" will be interpretated as a category.

Examples

{{navigation|Navigation Module}} defines this page as belonging zu the Category:Navigation Module and displays a list of all pages belonging to the same category:

If no parameter is defined, i.e. {{navigation}}, the template will try to take the page's category instead. But this will not work for pages with more than one category since they can not be separated automatically.

{{navigation|namespace}} displays a list of all pages belonging to the same namespace: