「Template:Sprites」與「Template:Str rightc」:頁面間的差異
(頁面間的差異)
跳至導覽
跳至搜尋
imported>=海豚= 無編輯摘要 |
imported>梦蝶葬花 (创建页面,内容为“<includeonly>{{#if:{{{1|}}}|<!--if param. 1 not empty-- --then extract substring-->{{Str sub long|nocategory={{{nocategory|}}}|{{{1}}}|{{max|0|{{#expr:{{Str len|noca...”) |
||
行 1: | 行 1: | ||
<includeonly>{{# | <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> | |||
}}</ | {{引自其他wiki|英文維基百科|[[enwiki:Template:Str_rightc]]}} | ||
< | {{distinguish|Template:Str_right}} | ||
返回右起的n个字符。 | |||
例子: | |||
* <code><nowiki>{{str rightc|这是一个不是很长的示例句子|7}}</nowiki></code> → {{str rightc|这是一个不是很长的示例句子|7}} | |||
* <code><nowiki>{{str rightc|这是一个不是很长的示例句子|1}}</nowiki></code> → {{str rightc|这是一个不是很长的示例句子|1}} | |||
* <code><nowiki>{{str rightc|这是一个不是很长的示例句子|0}}</nowiki></code> → {{str rightc|这是一个不是很长的示例句子|0}} | |||
* <code><nowiki>{{str rightc|这是一个不是很长的示例句子|99}}</nowiki></code> → {{str rightc|这是一个不是很长的示例句 子|99}} | |||
[[ 分 类:辅助模板]] | |||
</noinclude> |
於 2017年4月24日 (一) 12:49 的最新修訂
注意以下內容最初引自英文維基百科的enwiki:Template:Str_rightc,世界觀可能與H萌並不相同。內容經過雙方不同人員的修改後,可能會有巨大差異。騙你的啦,實際內容幾乎一模一樣的說QAQ
注意以下內容最初引自英文維基百科的enwiki:Template:Str_rightc,世界觀可能與H萌並不相同。內容經過雙方不同人員的修改後,可能會有巨大差異。騙你的啦,實際內容幾乎一模一樣的說QAQ
返回右起的n個字符。
例子:
{{str rightc|这是一个不是很长的示例句子|7}}
→ 很長的示例句子{{str rightc|这是一个不是很长的示例句子|1}}
→ 子{{str rightc|这是一个不是很长的示例句子|0}}
→{{str rightc|这是一个不是很长的示例句子|99}}
→ 這是一個不是很長的示例句子