Template:States: Difference between revisions
Jump to navigation
Jump to search
[checked revision] | [checked revision] |
No edit summary |
No edit summary |
||
(8 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{#vardefine:slug|{{#sub:{{SUBPAGENAME}}|0|2}}}} | <includeonly>{{#vardefine:slug|{{#sub:{{SUBPAGENAME}}|0|2}}}}<noinclude> | ||
{{#vardefine:dim|{{# | </noinclude>{{#vardefine:dim|{{#ifeq:{{#count:{{stateDim}}|{{SUBPAGENAME}}}}|0||(with length)}}}}<noinclude> | ||
{{tag|{{#var:slug}}|states{{#var:dim}}}}[[category:{{#var:slug}}:states{{#var:dim}}]]</includeonly><noinclude> | </noinclude>{{tag|{{#var:slug}}|states|{{#var:dim}}}}[[category:{{#var:slug}}:states {{#var:dim}}]]</includeonly><noinclude> | ||
==Usage== | ==Usage== | ||
This template produces {{IS:Tag|states}} AND lists the pages in [[:category:states]]. If applied for all pages having a child ''states'', it should fill a complete list of elements that have this child. | This template produces {{IS:Tag|states}} AND lists the pages in [[:category:states]]. If applied for all pages having a child ''states'', it should fill a complete list of elements that have this child. |
Latest revision as of 16:58, 13 March 2022
Usage
This template produces <states> AND lists the pages in category:states. If applied for all pages having a child states, it should fill a complete list of elements that have this child.
|
Arguments
This template has no arguments
Examples
{{states}}
delivers
<states> plus an entry in category:states