Difference between revisions of "Template:First word/doc"

From blackwiki
Jump to navigation Jump to search
(sl:Predloga:First word)
imported>DePiep
Line 4: Line 4:
 
=== Usage ===
 
=== Usage ===
  
Returns first word of the first parameter. Words are delimited by spaces only.
+
Returns first word of the first parameter. Words are delimited by spaces only. The parameter should ''not'' have whitespace.
  
 
=== Examples ===
 
=== Examples ===

Revision as of 14:23, 16 August 2012

Usage

Returns first word of the first parameter. Words are delimited by spaces only. The parameter should not have whitespace.

Examples

  • {{first word|Foo bar baz}} → Foo
  • {{first word|Foo}} → Foo
  • {{first word|Foo-bar-baz}} → Foo-bar-baz

See also

Template:String templates see also