FANDOM


m
m
Line 1: Line 1:
<div style="clear: both; width: {{{width|100}}}px; height: {{#expr:{{{width|100}}} * .9155 round 0}}px; position: relative; {{#switch:{{{float|left}}}|left=float: left; margin-right: 10px;|right=float: right; margin-left: 10px;}}"><!--
+
<onlyinclude><div style="clear: both; width: {{{width|100}}}px; height: {{#expr:{{{width|100}}} * .9155 round 0}}px; position: relative; {{#switch:{{{float|left}}}|left=float: left; margin-right: 10px;|right=float: right; margin-left: 10px;}}"><!--
 
-->{{#if:{{{img4|}}}|<div style="position: absolute; top: 0; left: 0;">[[File:{{{img1}}}|{{#expr:{{{width|100}}}*.50 round 0}}px]]</div><div style="position: absolute; top: 0; right: 0;">[[File:{{{img2}}}|{{#expr:{{{width|100}}}*.50 round 0}}px]]</div><div style="position: absolute; bottom: 0; left: 0;">[[File:{{{img3}}}|{{#expr:{{{width|100}}}*.50 round 0}}px]]</div><div style="position: absolute; bottom: 0; right: 0;">[[File:{{{img4}}}|{{#expr:{{{width|100}}}*.50 round 0}}px]]</div><!--
 
-->{{#if:{{{img4|}}}|<div style="position: absolute; top: 0; left: 0;">[[File:{{{img1}}}|{{#expr:{{{width|100}}}*.50 round 0}}px]]</div><div style="position: absolute; top: 0; right: 0;">[[File:{{{img2}}}|{{#expr:{{{width|100}}}*.50 round 0}}px]]</div><div style="position: absolute; bottom: 0; left: 0;">[[File:{{{img3}}}|{{#expr:{{{width|100}}}*.50 round 0}}px]]</div><div style="position: absolute; bottom: 0; right: 0;">[[File:{{{img4}}}|{{#expr:{{{width|100}}}*.50 round 0}}px]]</div><!--
 
-->|{{#if:{{{img2|}}}|<div style="position: absolute; top: 0; left: -{{#expr:{{{width|100}}}*.25 round 0}}px; clip: rect(0px {{#expr:{{{width|100}}}*.75 round 0}}px {{{width|100}}}px {{#expr:{{{width|100}}}*.25 round 0}}px);">[[File:{{{img1|}}}|{{{width|100}}}px]]</div><div style="position: absolute; top: 0; right: -{{#expr:{{{width|100}}}*.25 round 0}}px; clip: rect(0px {{#expr:{{{width|100}}}*.75 round 0}}px {{{width|100}}}px {{#expr:{{{width|100}}}*.25 round 0}}px);">[[File:{{{img2|}}}|{{{width|100}}}px]]</div><!--
 
-->|{{#if:{{{img2|}}}|<div style="position: absolute; top: 0; left: -{{#expr:{{{width|100}}}*.25 round 0}}px; clip: rect(0px {{#expr:{{{width|100}}}*.75 round 0}}px {{{width|100}}}px {{#expr:{{{width|100}}}*.25 round 0}}px);">[[File:{{{img1|}}}|{{{width|100}}}px]]</div><div style="position: absolute; top: 0; right: -{{#expr:{{{width|100}}}*.25 round 0}}px; clip: rect(0px {{#expr:{{{width|100}}}*.75 round 0}}px {{{width|100}}}px {{#expr:{{{width|100}}}*.25 round 0}}px);">[[File:{{{img2|}}}|{{{width|100}}}px]]</div><!--
Line 5: Line 5:
 
-->}}<!--
 
-->}}<!--
 
-->}}<!--
 
-->}}<!--
--></div>
+
--></div></onlyinclude>
  +
{{Documentation}}

Revision as of 06:29, November 6, 2014

[edit · purge]
Template documentation (for the template shown above, sometimes hidden or invisible)
Keep elf male mage
Keep elf male mage
Keep elf female mage
Keep human male warrior
Keep human female warrior
Keep human male rogue
Keep human female rogue
Keep dao dog recruitment yes
Keep dao sten recruitment no

Usage

This template standarizes the use of icons for Dragon Age Keep pages. It must be passed one, two or four images which is then arranged in a square.

{{KeepIcon
|width=(default 100px) width of the square
|img1=filename of the first image
|img2=(optional) filename of the second image
|img3=(optional) filename of the third image
|img4=(optional) filename of the fourth image
|float=(default) left|right
}}
Documentation transcluded from Template:KeepIcon/doc.
Community content is available under CC-BY-SA unless otherwise noted.