Template:Item: Difference between revisions

From DBpedia Mappings
Jump to navigationJump to search
No edit summary
No edit summary
Line 1: Line 1:
<includeonly>{{#replace:{{#explode:{{{1}}}|,|{{{2}}}}}|\|}}</includeonly><noinclude>
{{#replace:{{#explode:{{{1}}}|,|{{{2}}}}}|\|}}<noinclude>
Selects an item from a list. The list is a string containing items separated by commas. It is the first parameter. The second parameter is the zero-based index of the item.
Selects an item from a list. The list is a string containing items separated by commas. It is the first parameter. The second parameter is the zero-based index of the item.


Example: <nowiki>{{item|a,b,c|1}}</nowiki> results in ''b''.</noinclude>
Example: '''<nowiki>{{item|a,b,c|1}}</nowiki>''' results in '''b'''.</noinclude>

Revision as of 07:25, 15 March 2012

Selects an item from a list. The list is a string containing items separated by commas. It is the first parameter. The second parameter is the zero-based index of the item.

Example: {{item|a,b,c|1}} results in b.