Jump to content

Template:Remove first word/doc: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Created page with '{{Documentation subpage}} <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> === Usage === Returns first word of the first parameter. Words ...'
+ example of (bugged?) behavior when there is a space in the beginning of the string ("{{remove first word/any| Fôo bår bàz}}" → "", and "{{remove first word/any| a b}}" → " b")
Line 8: Line 8:
=== Examples ===
=== Examples ===


* {{tlc|remove first word/any|Fôo bår bàz}} → {{remove first word/any|Fôo bår bàz}}.
* "{{tlc|remove first word/any|Fôo bår bàz}}""{{remove first word/any|Fôo bår bàz}}".
* {{tlc|remove first word/any|Fôo}} → {{remove first word/any|Fôo}}.
* "{{tlc|remove first word/any| Fôo bår bàz }}""{{remove first word/any| Fôo bår bàz }}".
* {{tlc|remove first word/any|Fôo-bår-bàz}} → {{remove first word/any|Fôo-bår-bàz}}.
* "{{tlc|remove first word/any| a b }}""{{remove first word/any| a b }}".
* "{{tlc|remove first word/any|Fôo}}" → "{{remove first word/any|Fôo}}".
* "{{tlc|remove first word/any|Fôo-bår-bàz}}" → "{{remove first word/any|Fôo-bår-bàz}}".


=== See also ===
=== See also ===

Revision as of 13:08, 16 June 2012

Usage

Returns first word of the first parameter. Words are delimited by spaces only. Any of the characters included in {{str index/getchar}} can be included in the string.

Examples

  • "{{remove first word/any|Fôo bår bàz}}" → "bår bàz".
  • "{{remove first word/any|Fôo bår bàz}}" → "bår bàz".
  • "{{remove first word/any|a b}}" → "b".
  • "{{remove first word/any|Fôo}}" → "".
  • "{{remove first word/any|Fôo-bår-bàz}}" → "".

See also

Template:remove first word