Template:First word/doc: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
sl:Predloga:First word
meta>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