“Template:Sprites”与“Template:Str rightc”:页面之间的差异

H萌娘,万物皆可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}} → 这是一个不是很长的示例句子