Шаблон:ItemCount — различия между версиями

Материал из Rust Wikipedia
Уважаемые игроки, сейчас содержание проекта осуществляется на собственном энтузиазме и средствах небольшой группы альтруистов. Если Вам нравится проект и Вы заинтересованы в его развитии, то у Вас есть возможность помочь сделать наш портал еще качественнее и интереснее.
Подробнее →
Строка 1: Строка 1:
 
<includeonly>
 
<includeonly>
<div style="display: inline-block;padding:1px;position: relative;">
+
<div style="display: inline-block;position: relative;height: 50px;width: 50px;"><div style="position: absolute;width:50px; height:50px; top:0; left: 0;z-index: 5;">[[File:{{{1}}}.png|50x50px|link={{{2}}}]]<span style="position:absolute; width:50px; height:50px; top:0; left: 0; z-index: 10;">[[File:Transparent item.png|50x50px|link={{{2}}}]]</span></div><div style="z-index: 9;position: absolute;bottom: 0;right: 0;text-align: right; font-size: 11px; font-weight: bold; font-family: Tahoma, Geneva, sans-serif; color: white; text-shadow: -1px 0 0.2em black, 0 1px 0.2em black, 1px 0 0.2em black, 0 -1px 0.2em black;">x{{{3}}}</div></div><!-- For IE, theoretically, but I can't make it work: filter: progid:DXImageTransform.Microsoft.Glow(Color=#000000,Strength=1);-ms-filter: "progid:DXImageTransform.Microsoft.Glow(Color=#000000,Strength=1)"; --></includeonly>
<div style="position: absolute;width:50px; height:50px; top:0; left: 0;z-index: 5;">
 
[[File:{{{1}}}.png|50x50px|link={{{2}}}]]
 
<span style="position:absolute; width:50px; height:50px; top:0; left: 0; z-index: 10;">
 
[[File:Transparent item.png|50x50px|link={{{2}}}]]
 
</span>
 
</div>
 
<div style="display: table; height: 50px; width: 50px; overflow: hidden; line-height: normal;z-index: 15;">
 
<div style="position: relative; bottom:2%; display: table-cell; vertical-align: bottom;">
 
<div style="position: relative; text-align: right; width: 98%; font-size: 11px; font-weight: bold; font-family: Tahoma, Geneva, sans-serif; color: white; text-shadow: -1px 0 0.2em black, 0 1px 0.2em black, 1px 0 0.2em black, 0 -1px 0.2em black;">x{{{3}}}</div>
 
</div>
 
</div>
 
</div><!-- For IE, theoretically, but I can't make it work: filter: progid:DXImageTransform.Microsoft.Glow(Color=#000000,Strength=1);-ms-filter: "progid:DXImageTransform.Microsoft.Glow(Color=#000000,Strength=1)"; --></includeonly>
 
 
<noinclude>
 
<noinclude>
 
<br style="clear:both;"/>
 
<br style="clear:both;"/>
 
{{documentation}}
 
{{documentation}}
 
</noinclude>
 
</noinclude>

Версия 16:52, 16 июля 2015