Template:Str left
From MEpedia, a crowd-sourced encyclopedia of ME and CFS science and history
Purpose[edit source]
Extract the left characters of a string
Usage[edit source]
{{Str left|Starwars boxset.|12}}
- Starwars box
Example[edit source]
{{Str left|Level-headed|5}}:
- Level
- Date and month from {{CURRENTTIMESTAMP}}:
{{Str left|{{CURRENTTIMESTAMP}}|8}}
- 202404
- Using {{Str sub}} instead:
{{Str sub|Level-headed|6|4}}:
- head
See also[edit source]
- {{Str sub}}
- {{Str find}}
- {{Str right}} right-most characters from offset (mid-string)
- {{Right}} right align text
- String manipulation templates (category)
- Date and time templates (category)
- Formatting templates (category)
The above documentation is transcluded from Template:Str left/doc. (edit | history) 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. |