Toggle search
Search
Toggle menu
notifications
Toggle personal menu
Editing
Template:Remove first word/doc
Template page
Views
Read
Edit source
View history
associated-pages
Template
Discussion
More actions
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!
{{High-use}} {{Documentation subpage}} <!-- PLEASE ADD CATEGORIES WHERE INDICATED AT THE BOTTOM OF THIS PAGE--> {{Lua|Module:String}} This template removes 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== * {{tlc|{{BASEPAGENAME}}|Fôo bår bàz}} → {{{{BASEPAGENAME}}|Fôo bår bàz}} * {{tlc|{{BASEPAGENAME}}| Fôo bår bàz }} → {{{{BASEPAGENAME}}| Fôo bår bàz }} * {{tlc|{{BASEPAGENAME}}| a b }} → {{{{BASEPAGENAME}}| a b }} * {{tlc|{{BASEPAGENAME}}|Fôo-bår}} → {{{{BASEPAGENAME}}|Fôo-bår}} * {{tlc|{{BASEPAGENAME}}|Fôo-bår bàz}} → {{{{BASEPAGENAME}}|Fôo-bår bàz}} * <code>{{{{BASEPAGENAME}}|Fôo-bår bàz|sep=-}}</code> → {{{{BASEPAGENAME}}|Fôo-bår bàz|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==}} ==See also== {{String-handling templates |trim}} <includeonly>{{Sandbox other|| <!----CATEGORIES BELOW THIS LINE, PLEASE:----> [[Category:String manipulation templates]] }}</includeonly>
Summary:
Please note that all contributions to Celestial Compass Roleplaying Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
CCRPWiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:Aligned table
(
edit
)
Template:Div col
(
edit
)
Template:Div col/styles.css
(
edit
)
Template:Div col end
(
edit
)
Template:Documentation subpage
(
edit
)
Template:High-use
(
edit
)
Template:Hlist/styles.css
(
edit
)
Template:Lua
(
edit
)
Template:Main other
(
edit
)
Template:Mbox
(
edit
)
Template:Para
(
edit
)
Template:Plainlist/styles.css
(
edit
)
Template:Remove first word
(
edit
)
Template:String-handling templates
(
edit
)
Template:Strong
(
edit
)
Template:Template link
(
edit
)
Template:Template link code
(
edit
)
Template:Terminate sentence
(
edit
)
Template:Tl
(
edit
)
Template:Tlc
(
edit
)
Module:Aligned table
(
edit
)
Module:Arguments
(
edit
)
Module:Check for unknown parameters
(
edit
)
Module:High-use
(
edit
)
Module:List
(
edit
)
Module:Lua banner
(
edit
)
Module:Message box
(
edit
)
Module:Message box/configuration
(
edit
)
Module:Message box/ombox.css
(
edit
)
Module:Navbar
(
edit
)
Module:Navbar/configuration
(
edit
)
Module:Navbar/styles.css
(
edit
)
Module:Navbox
(
edit
)
Module:Navbox/configuration
(
edit
)
Module:Navbox/styles.css
(
edit
)
Module:Navbox with collapsible groups
(
edit
)
Module:String
(
edit
)
Module:TableTools
(
edit
)
Module:Template link general
(
edit
)
Module:Text
(
edit
)
Module:Transclusion count
(
edit
)
Module:Transclusion count/data/R
(
edit
)
Module:Yesno
(
edit
)