Template:Str left

From MEpedia, a crowd-sourced encyclopedia of ME and CFS science and history
template icon Template documentation[view] [edit] [history] [purge]

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]