Template:Str rightc

From Moegirlpedia
Revision as of 08:46, 10 January 2021 by GuoPC (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Template-info.svg Template Documentation  [View] [Edit] [History] [Refresh]

Usage

{{str rightc|<string>|<count>|<result if empty>}}

Returns a substring of length <count> characters from the right-side end of the string.

Examples

  • {{str rightc|Lorem ipsum dolor sit amet|7}} → it amet
  • {{str rightc|Lorem ipsum dolor sit amet|1}} → t
  • {{str rightc|Lorem ipsum dolor sit amet|0}}
  • {{str rightc|Lorem ipsum dolor sit amet|99}} → Lorem ipsum dolor sit amet