Difference between revisions of "Template:String-handling templates"
From Ava Zinn Wiki
[unchecked revision] | [unchecked revision] |
m (Updated template call.) |
m ({{tl|remove last word}}; {{tl|last word}}) |
||
Line 41: | Line 41: | ||
| {{tl|strip whitespace}} | Less effective than {{tlf|trim}}. | | {{tl|strip whitespace}} | Less effective than {{tlf|trim}}. | ||
| {{tl|first word}} | To trim down to the first space. | | {{tl|first word}} | To trim down to the first space. | ||
+ | | {{tl|remove first word}} | To remove anything before the first space. | ||
}} | }} | ||
| {{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|str letter/trim}} | To trim down to the beginning letters. | | {{tl|str letter/trim}} | To trim down to the beginning letters. | ||
| {{tl|str number/trim}} | To trim down to the beginning numbers. | | {{tl|str number/trim}} | To trim down to the beginning numbers. | ||
+ | | {{tl|last word}} | To trim down from the last space. | ||
+ | | {{tl|remove last word}} | To remove anything after the last space. | ||
}} }} | }} }} | ||
Revision as of 09:41, 19 December 2014
|
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. |