模板:Str rightc

来自Age Of History 2 Chinese Wiki
Comvan留言 | 贡献2025年2月8日 (六) 21:55的版本 (创建页面,内容为“<includeonly>{{#if:{{{1|}}}|<!--if param. 1 not empty-- --then extract substring-->{{Str sub long|nocategory={{{nocategory|}}}|{{{1}}}|{{max|0|{{#expr:{{Str len|nocategory={{{nocategory|}}}|{{{1}}}}}-{{{2}}}}}}}|{{{2}}}}}<!-- --else-->|<!--empty, so... --skip complex processing & return {3}-->{{{3|}}}<!-- -->}}<!--endif param. 1 not empty--></includeonly><noinclude> {{Documentation}} </noinclude>”)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳转至:导航、​搜索
0.00
(0票)

本段内容来自萌娘百科 https://zh.moegirl.org.cn/ 感谢贡献!

本模板全部或部分内容原来自英文维基百科页面Template:Str_rightc,依 CC BY-SA 3.0 授权引入;原贡献者可以在这里看到。经过双方编者的修改,本模板可能已与来源有很大差异。

返回右起的n个字符。

例子:

  • {{str rightc|这是一个不是很长的示例句子|7}} → 很长的示例句子
  • {{str rightc|这是一个不是很长的示例句子|1}} → 子
  • {{str rightc|这是一个不是很长的示例句子|0}}
  • {{str rightc|这是一个不是很长的示例句子|99}} → 这是一个不是很长的示例句子
Loading comments...