Template:Get Item Count: Difference between revisions
Jump to navigation
Jump to search
m (Iritscen moved page Template:GetItemCount to Template:Get Item Count without leaving a redirect: Using spaces in name is more consistent with similar templates.) |
(+docs; +cat) |
||
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.