Difference between revisions of "Template:Str rightc"
(Transport form zh.moegirl.org.cn) |
m |
||
Line 3: | Line 3: | ||
--else-->|<!--empty, so... | --else-->|<!--empty, so... | ||
--skip complex processing & return {3}-->{{{3|}}}<!-- | --skip complex processing & return {3}-->{{{3|}}}<!-- | ||
− | -->}}<!--endif param. 1 not empty--></includeonly> | + | -->}}<!--endif param. 1 not empty--></includeonly><noinclude> |
+ | {{Documentation}} | ||
+ | </noinclude> | ||
+ | |||
+ | [[Category:Auxiliary templates]] |
Latest revision as of 08:46, 10 January 2021
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
|