Editing Template:String-handling templates
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 can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
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|strip whitespace}} | Less effective than {{tlf|trim}}. |
− | | {{tl| | + | | {{tl|first word}} | To trim down to the first space. |
− | | {{tl| | + | | {{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| | + | | {{tl|str letter/trim}} | To trim down to the beginning letters. |
− | | {{tl| | + | | {{tl|str number/trim}} | To trim down to the beginning numbers. |
| {{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. |