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

From protonation
Jump to navigation Jump to search
 
(Νέα σελίδα με 'It returns the first item of a comma separated list. ==Use== <nowiki>{</nowiki>{first item of a comma separated list|''string''}} ==Example== <nowiki>{</nowiki>{fir...')
Line 1: Line 1:
Returns the first item of a comma separated list.
+
It returns the first item of a comma separated list.
  
 
==Use==
 
==Use==
Line 6: Line 6:
 
==Example==
 
==Example==
 
  <nowiki>{</nowiki>{first item of a comma separated list|foo, bar, boo}}
 
  <nowiki>{</nowiki>{first item of a comma separated list|foo, bar, boo}}
Result:
+
gives:
  
 
{{first item of a comma separated list|foo, bar, boo}}
 
{{first item of a comma separated list|foo, bar, boo}}
 
==See also==
 
*[[Meta:Create YouTube playlists on-the-fly with semantic queries]]
 

Revision as of 02:53, 24 May 2020

It 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}}

gives:

foo