“模板:Wide image”的版本间的差异

来自joyousreading
跳转至: 导航搜索
(创建页面,内容为“{{wide image|banner.jpg|1800px}}”)
 
 
第1行: 第1行:
{{wide image|banner.jpg|1800px}}
+
<includeonly><div class="thumb {{#switch:{{{5}}}
 +
|left= tleft" style="
 +
|right= tright" style="
 +
|none= tnone" style="
 +
|#default=tnone" style="margin-left: auto; margin-right:auto; overflow:hidden;
 +
}} width:{{{4|auto}}}; max-width:{{#expr:{{str sub|{{{2}}}|0|{{#expr:{{str find|{{{2}}}|px}} -1}}}} + 8}}px;">
 +
<div class="thumbinner" style="{{yesno|{{{border|}}}|no=border-width:0; background:transparent;|blank=}}"><div class="overflowbugx" style="overflow:auto;{{#ifeq:{{{dir|}}}|rtl|direction:rtl;}}">[[File:{{{1}}}|{{{2}}}|alt={{{alt|}}}|{{#invoke:Unstrip|unstrip|{{#switch:{{{3}}}
 +
|thumb
 +
|thumbnail
 +
|frame
 +
|border={{{1}}}
 +
|#default={{{3|}}}}}}}]]</div>{{ #if: {{{3|}}}|<div class="thumbcaption" {{#if:{{{align-cap|}}}|style="text-align:{{{align-cap}}}"}}><div class="magnify">[[:File:{{{1}}}| ]]</div>{{{3}}}</div>|}}
 +
</div></div></includeonly><noinclude>
 +
{{documentation}}
 +
<!-- If you copy this template, you need to add the overflowx and overflowy CSS classes to your global CSS for Internet Explorer users. On the English Wikipedia, these are conditionally loaded by [[MediaWiki:Common.js]] -->
 +
<!-- Add categories to the /doc subpage, not here! -->
 +
</noinclude>

2017年11月23日 (四) 15:20的最新版本

模板:Documentation