Difference between revisions of "Πρότυπο:First item of a comma separated list"

From protonation
Jump to navigation Jump to search
(Νέα σελίδα με '{{template}}<includeonly><onlyinclude>{{#sub:{{{1|}}}|0|{{#pos:{{{1|}}}|,}} }}</onlyinclude></includeonly>')
 
Line 1: Line 1:
{{template}}<includeonly><onlyinclude>{{#sub:{{{1|}}}|0|{{#pos:{{{1|}}}|,}} }}</onlyinclude></includeonly>
+
{{Template
 +
|Uses MediaWiki extension=StringFunctions
 +
}}
 +
<includeonly><onlyinclude>{{#sub:{{{1|}}}|0|{{#pos:{{{1|}}}|,}} }}</onlyinclude></includeonly>

Revision as of 02:52, 24 May 2020


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


Returns the first item of a comma separated list.

Use

{{first item of a comma separated list|string}}

Example

{{first item of a comma separated list|foo, bar, boo}}

Result:

foo

See also