Difference between revisions of "Πρότυπο:Comma separated list minus first item spaces removed"

From protonation
Jump to navigation Jump to search
(Νέα σελίδα με '{{Template |Uses MediaWiki extension=StringFunctions }} <includeonly><onlyinclude>{{#replace:{{{1|}}}| |}}</onlyinclude></includeonly>')
 
 
(2 intermediate revisions by the same user not shown)
Line 2: Line 2:
 
|Uses MediaWiki extension=StringFunctions
 
|Uses MediaWiki extension=StringFunctions
 
}}
 
}}
<includeonly><onlyinclude>{{#replace:{{{1|}}}| |}}</onlyinclude></includeonly>
+
<includeonly><onlyinclude>{{#replace:{{#explode:{{{1|}}}|,|1|2}}| |}}</onlyinclude></includeonly>

Latest revision as of 04:19, 24 May 2020


Template properties [edit]
Required extensions
{{
i
}} Template documentation [edit]


Removes the first item of a comma separated list and also removes spaces between items.

Use

{{Comma separated list minus first item spaces removed|string}}

Example

{{Comma separated list minus first item spaces removed|foo, bar, boo}}

Result:

bar,boo

See also