Template:navigation: Difference between revisions
From Thesaurus Inscriptionum Raeticarum
Jump to navigationJump to search
Martin Braun (talk | contribs) No edit summary |
Martin Braun (talk | contribs) 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= I& | </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= I |limit=1000|searchlabel= [full list]}} | '''{{#var: input }} Pages:'''<br>{{#ask: [[Category:{{#var: input }}]]|format=list|sep= I |limit=1000|searchlabel= [full list]}}[[Category:{{#var: input }}]] }}</div></includeonly> |
Latest revision as of 15: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: