Template:Get Item Count: Difference between revisions
Jump to navigation
Jump to search
(Created page with "{{#explode:{{:{{{1}}}}}|,|0}}") |
(+docs; +cat) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
{{#explode:{{:{{{1}}}}}|,|0}} | <includeonly>{{#explode:{{:{{{1}}}}}|,|0}}</includeonly><noinclude> | ||
This template is written for a very specific purpose: it simply returns the first item in a comma-separated list which is passed in as an unnamed parameter. This is needed in order to use the [[Template:Foreach|Foreach]] template, as explained on that page. | |||
[[Category:Utility templates]]</noinclude> |
Latest revision as of 04:25, 13 December 2015
This template is written for a very specific purpose: it simply returns the first item in a comma-separated list which is passed in as an unnamed parameter. This is needed in order to use the Foreach template, as explained on that page.