「Template:Sprites」與「Template:Str rightc」:頁面間的差異

出自H萌娘
(頁面間的差異)
跳至導覽 跳至搜尋
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>{{#widget:Sprites}}<div class="sprites"  style="position:relative; height:{{{height|}}}; width:{{{width|}}}; overflow:hidden;margin:0;" data-link="{{{link}}}" data-scalewidth="{{{scalewidth|}}}">
<includeonly>{{#if:{{{1|}}}|<!--if param. 1 not empty--
<div class="sprites" style="top:-{{{y}}};left:-{{{x}}}; position:absolute; margin:0;">{{#if:
--then extract substring-->{{Str sub long|nocategory={{{nocategory|}}}|{{{1}}}|{{max|0|{{#expr:{{Str len|nocategory={{{nocategory|}}}|{{{1}}}}}-{{{2}}}}}}}|{{{2}}}}}<!--
   {{filepath:{{PAGENAME:{{{pic|}}}}}}}
--else-->|<!--empty, so...
   |[[file:{{PAGENAME:{{{pic|}}}}}|link=]]
--skip complex processing & return {3}-->{{{3|}}}<!--
   |<img src="{{{pic|}}}" style="max-width:none!important;"/>
-->}}<!--endif param. 1 not empty--></includeonly><noinclude>
}}</div></div>
{{引自其他wiki|英文維基百科|[[enwiki:Template:Str_rightc]]}}
</includeonly><noinclude>{{ 萌百:Sprites}}<!-- 请将分类与跨语言链结增加在/doc 页面 / 請將 類與跨語言連結增加在/doc子頁面 --></noinclude>
{{distinguish|Template:Str_right}}
返回右起的n个字符。
 
例子:
* <code><nowiki>{{str rightc|这是一个不是很长的示例句子|7}}</nowiki></code> &rarr; {{str rightc|这是一个不是很长的示例句子|7}}
* <code><nowiki>{{str rightc|这是一个不是很长的示例句子|1}}</nowiki></code> &rarr; {{str rightc|这是一个不是很长的示例句子|1}}
* <code><nowiki>{{str rightc|这是一个不是很长的示例句子|0}}</nowiki></code> &rarr; {{str rightc|这是一个不是很长的示例句子|0}}
* <code><nowiki>{{str rightc|这是一个不是很长的示例句子|99}}</nowiki></code> &rarr; {{str rightc|这是一个不是很长的示例句 |99}}
 
[[ 类:辅助模板]]
</noinclude>

於 2017年4月24日 (一) 12:49 的最新修訂

Cat ico20.png
注意以下內容最初引自英文維基百科的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}} → 這是一個不是很長的示例句子