Anonymous
Not logged in
Talk
Contributions
Create account
Log in
Search
Editing
Template:First word/doc
From MEpedia, a crowd-sourced encyclopedia of ME and CFS science and history
Namespaces
Template
Discussion
More
More
Page actions
Read
Edit source
History
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{Documentation subpage}} {{high-use|180612}} {{lua|Module:String}} <!----PLEASE ADD CATEGORIES WHERE INDICATED AT THE BOTTOM OF THIS PAGE----> __NOTOC__ This template returns the first word of the first parameter. Use {{para|1}} for the first parameter if the string may contain an [[equals sign]] (=). By default, words are delimited by spaces, but the optional parameter {{para|sep}} can set the separator to any character. ==Usage== One parameter (space as separator): * <code>'''{{{{BASEPAGENAME}}|'''<var>string</var>'''}}'''</code> * <code>'''{{{{BASEPAGENAME}}|1='''<var>string</var>'''}}'''</code> Two parameters (user-defined character as separator): * <code>'''{{{{BASEPAGENAME}}|'''<var>string</var>'''|sep='''<var>character</var>'''}}'''</code> * <code>'''{{{{BASEPAGENAME}}|1='''<var>string</var>'''|sep='''<var>character</var>'''}}'''</code> ==Examples== * <code>{{{{BASEPAGENAME}}|Foo bar baz}}</code> β {{{{BASEPAGENAME}}|Foo bar baz}} * <code>{{{{BASEPAGENAME}}| Foo bar baz}}</code> β {{{{BASEPAGENAME}}| Foo bar baz}} * <code>{{{{BASEPAGENAME}}|Foo-bar-baz|sep=-}}</code> β {{{{BASEPAGENAME}}|Foo-bar-baz|sep=-}} * <code>{{{{BASEPAGENAME}}|34,000,500|sep=,}}</code> β {{{{BASEPAGENAME}}|34,000,500|sep=,}} * <code>{{{{BASEPAGENAME}}|Hear ye, users|sep=,}}</code> β {{{{BASEPAGENAME}}|Hear ye, users|sep=,}} * <code>{{{{BASEPAGENAME}}|1=len = a+b|sep==}}</code> β {{{{BASEPAGENAME}}|1=len = a+b|sep==}} * <code>{{author_firstname|Lucy M,.}}</code>β {{author_firstname|Lucy M,.}} * <code>{{author_firstname|Lucy.}}</code>β {{author_firstname|Lucy.}} * <code>{{author_firstname|M,.}}</code>β {{author_firstname|M,.}} * <code>{{author_firstname|Jo.,}}</code>β {{author_firstname|Jo.,}} * <code>{{author_firstname|Lucy-Victoria }}</code>β {{author_firstname|Lucy-Victoria }}- * <code>{{author_firstname|[[Lucy Victoria]] }}</code>β {{author_firstname|[[Lucy Victoria]] }} * <code>{{author_firstname|Lucy O'Shea, }}</code>β {{author_firstname|Lucy O'Shea, }} * <code>{{author_lastname|O'Shea, }}</code>β {{author_lastname|O'Shea, }} * <code>{{author_lastname|Lucy O'Shea,. }}</code>β {{author_lastname|Lucy O'Shea,. }} * <code>{{author_lastname|L..}}</code>β {{author_lastname|L..}} * <code>{{author_lastname|Po }}</code>β {{author_lastname|Po }} * <code>{{author_lastname|van. der, Po]] }}</code>β {{author_lastname|van. der, Po]] }} * <code>{{authorlink|L. |O'Shea, }}</code>β {{authorlink|L. |O'Shea,}} * <code>{{authorlink|de. |Merier }}</code>β {{authorlink|de. |Merier}} * <code>{{authorlink|Li |Chu, }}</code>β {{authorlink|Li |Chu, }} * <code>{{authorlink|Jo|Smith-Barnes }}</code>β {{authorlink|Jo|Smith-Barnes}} * <code>{{authorlink|Jo|van. der Linden }}</code>β {{authorlink|Jo|van. der Linden}} * <code>{{authorlink|Joanne|L.}}</code>β {{authorlink|Joanne|L. }} <includeonly> {{#ifeq:{{SUBPAGENAME}}|sandbox | | <!----CATEGORIES BELOW THIS LINE, PLEASE:----> [[Category:Formatting templates]] }} </includeonly>
Summary:
Please make sure your edits are consistent with
MEpedia's guidelines
.
By saving changes, you agree to the
Terms of use
, and you irrevocably agree to release your contribution under the
CC BY-SA 3.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:Author firstname
(
edit
)
Template:Author lastname
(
edit
)
Template:Authorlink
(
edit
)
Template:Check fullname
(
edit
)
Template:Delink
(
edit
)
Template:Documentation subpage
(
edit
)
Template:First word
(
edit
)
Template:High-use
(
edit
)
Template:High-use/num
(
edit
)
Template:Ifnotempty
(
edit
)
Template:Lua
(
edit
)
Template:Mbox
(
edit
)
Template:Ombox
(
edit
)
Template:Order of magnitude
(
edit
)
Template:P1
(
edit
)
Template:Para
(
edit
)
Template:Replace
(
edit
)
Template:Rnd
(
edit
)
Template:Sigfig
(
edit
)
Template:Significant figures
(
edit
)
Template:Significant figures/rnd
(
edit
)
Template:Str endswith
(
edit
)
Template:Str β₯ len
(
edit
)
Template:Strong
(
edit
)
Template:Terminate sentence
(
edit
)
Template:Trim brackets
(
edit
)
Module:Arguments
(
edit
)
Module:Delink
(
edit
)
Module:List
(
edit
)
Module:Lua banner
(
edit
)
Module:Math
(
edit
)
Module:Message box
(
edit
)
Module:Message box/configuration
(
edit
)
Module:No globals
(
edit
)
Module:String
(
edit
)
Module:TableTools
(
edit
)
Module:Text
(
edit
)
Module:Yesno
(
edit
)
Navigation
Navigation
Skip to content
Main page
Browse
Become an editor
Random page
Popular pages
Abbreviations
Glossary
About MEpedia
Links for editors
Contents
Guidelines
Recent changes
Pages in need
Search
Help
Wiki tools
Wiki tools
Special pages
Page tools
Page tools
User page tools
More
What links here
Related changes
Page information
Page logs