Template:Str rightc

From Moegirlpedia
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