Template:Item: Difference between revisions
From Mediawiki1
Jump to navigationJump to search
m (moved Template:Item to Template:Get) |
No edit summary |
||
Line 1: | Line 1: | ||
{{#replace:{{#explode:{{{1}}}|,|{{{2}}}}}|\|}}<noinclude> | <includeonly>{{#replace:{{#explode:{{{1}}}|,|{{{2}}}}}|\|}}</includeonly><noinclude> | ||
Gets an item from a list. The first parameter is the list - a string containing items separated by commas. The second parameter is the zero-based index of the item. | |||
Example: '''<nowiki>{{ | Example: '''<nowiki>{{get|a,b,c|1}}</nowiki>''' results in '''b'''.</noinclude> |
Revision as of 06:28, 15 March 2012
Gets an item from a list. The first parameter is the list - a string containing items separated by commas. The second parameter is the zero-based index of the item.
Example: {{get|a,b,c|1}} results in b.