Anonymous
Not logged in
Talk
Contributions
Create account
Log in
Search
Editing
Template:Trim/doc
From Wings of Fire: The New World Wiki
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.
The edit appears to have already been undone.
Anti-spam check. Do
not
fill this in!
{{High-risk}} {{Documentation subpage}} {{notice|This template is for trimming whitespace from strings. For the maintenance tag for images, see {{tl|trimming}}}} <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> This template trims leading and trailing (but not interior) whitespace from a string. The string should be passed as the first unnamed parameter. The parameter must be named {{para|1}} if its value contains a <code>=</code> character. You may [[WP:SUBST|substitute]] this template - that is, if used as {{tlxs|trim}}, the resulting wikicode is "clean". == Usage == {{tlx|trim|<var>text</var>}} = <var>text</var> with any leading or trailing whitespace removed. == Examples == *"{{tlx|trim| abc}}" produces "{{trim| abc}}" *"{{tlx|trim|xyz }}" produces "{{trim|xyz }}" *"{{tlx|trim| abc xyz }}" produces "{{trim| abc xyz }}" == Template data == {{TemplateDataHeader}} <templatedata> { "description": "The template trims whitespace from a string.", "params": { "1": { "label": "String", "description": "The string to be trimmed of whitespace", "type": "string", "required": true } } } </templatedata> == See also == * {{tl|remove border}} {{String-handling templates |trim}} <includeonly>{{Sandbox other|| <!-- CATEGORIES AND INTERWIKIS HERE, THANKS --> [[Category:String manipulation templates]] [[Category:Parameter handling templates]] }}</includeonly>
Summary:
Please note that all contributions to Wings of Fire: The New World Wiki are considered to be released under the Creative Commons Attribution (see
WOFTNW:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, 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.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Wiki tools
Wiki tools
Special pages
Page tools
Page tools
User page tools
More
What links here
Related changes
Page information
Page logs