Difference between revisions of "Template:String-handling templates"
From Ava Zinn Wiki
[unchecked revision] | [unchecked revision] |
(bypass redirect) |
(rm template that redirects to Template:Trim, reorg, add Template:Trim brackets) |
||
Line 39: | Line 39: | ||
|col1style=width:12.5em;text-align:right;white-space:nowrap;padding-right:0.75em; |col2style=font-style:italic; | |col1style=width:12.5em;text-align:right;white-space:nowrap;padding-right:0.75em; |col2style=font-style:italic; | ||
| {{tl|trim}} | To trim any leading or trailing whitespace | | {{tl|trim}} | To trim any leading or trailing whitespace | ||
− | | {{tl| | + | | {{tl|str letter/trim}} | To trim down to the beginning letters. |
− | | {{tl| | + | | {{tl|str number/trim}} | To trim down to the beginning numbers. |
− | | {{tl| | + | | {{tl|trim brackets}} | To trim any leading or trailing square brackets. |
}} | }} | ||
| {{Aligned table | | {{Aligned table | ||
|col1style=width:12.5em;text-align:right;white-space:nowrap;padding-right:0.75em; |col2style=font-style:italic; | |col1style=width:12.5em;text-align:right;white-space:nowrap;padding-right:0.75em; |col2style=font-style:italic; | ||
− | | {{tl| | + | | {{tl|first word}} | To trim down to the first space. |
− | | {{tl| | + | | {{tl|remove first word}} | To remove anything before the first space. |
| {{tl|last word}} | To trim down from the last space. | | {{tl|last word}} | To trim down from the last space. | ||
| {{tl|remove last word}} | To remove anything after the last space. | | {{tl|remove last word}} | To remove anything after the last space. |
Revision as of 10:58, 20 August 2015
|
Template documentation[create]
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |