Template:States: Difference between revisions

From railML 2 Wiki
Jump to navigation Jump to search
[checked revision][checked revision]
No edit summary
No edit summary
 
(12 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#vardefine:slug|{{#sub:{{SUBPAGENAME}}|0|2}}}}{{tag|{{#var:slug}}|states}}[[category:{{#var:slug}}:states]]</includeonly><noinclude>
<includeonly>{{#vardefine:slug|{{#sub:{{SUBPAGENAME}}|0|2}}}}<noinclude>
</noinclude>{{#vardefine:dim|{{#ifeq:{{#count:{{stateDim}}|{{SUBPAGENAME}}}}|0||(with length)}}}}<noinclude>
</noinclude>{{tag|{{#var:slug}}|states|{{#var:dim}}}}[[category:{{#var:slug}}:states&#32;{{#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.

Never use this template outside argument childs of Template:ElementDocu!

Arguments

This template has no arguments

Examples

{{states}}

delivers

<states> plus an entry in category:states