How Can We Help?
You are here:
< Back
{{{1}}}
![](https://upload.wikimedia.org/wikipedia/commons/thumb/4/43/Test_Template_Info-Icon_-_Version_%282%29.svg/50px-Test_Template_Info-Icon_-_Version_%282%29.svg.png)
This template returns the first word of the first parameter. Use |1=
for the first parameter if the string may contain an equals sign (=). By default, words are delimited by spaces, but the optional parameter |sep=
can set the separator to any character.
Usage
One parameter (space as separator):
{{First word|string}}
{{First word|1=string}}
Two parameters (user-defined character as separator):
{{First word|string|sep=character}}
{{First word|1=string|sep=character}}
Examples
{{First word|Foo bar baz}}
→ Foo{{First word| Foo bar baz}}
→ Foo{{First word|Foo}}
→ Foo{{First word|Foo-bar-baz}}
→ Foo-bar-baz{{First word|Foo-bar-baz|sep=-}}
→ Foo{{First word|34,000,500|sep=,}}
→ 34{{First word|Hear ye, users|sep=,}}
→ Hear ye{{First word|1=len = a+b|sep==}}
→ len
See also
String-handling templates (help page) | |||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||
Categories
-
Annuals36
-
Bulbs, Corms & Tubers41
-
Ferns27
-
Fruits3
-
Garden Plants23
-
Grasses26
-
Herb17
-
Insects1
-
Mammals1
-
Midwest Native Plants0
-
Northeast Native Plants112
-
Perennials123
-
Rose1
-
Shrubs47
-
Trees112
-
Tropical Plants53
-
Upland Birds5
-
Vines18
-
Viola Tricolor1
-
Water Gardening & Plants9
-
Waterfowl0
-
Wetland Birds0
-
Wetland Plants4
-
Wildbirds172
-
Wildflowers1
-
Woodland Plants29
Table of Contents
Recent Comments