Difference between revisions of "Template:Robot icon/sandbox"
(Using ifeqany to make the calling simpler, and safer.) |
|||
Line 1: | Line 1: | ||
− | <includeonly>{{ | + | <includeonly>{{ifeqany|{{{2|}}}|{{{3|}}}|crit|y=<!-- |
With crits on, we create a second div which is the border. We then move the file over the border, and place both within a display:inline-block div. | With crits on, we create a second div which is the border. We then move the file over the border, and place both within a display:inline-block div. | ||
− | --><div style="display:inline-block; vertical-align:middle"><div style="width:{{#expr:{{{size|24}}}+8}}px; height:{{#expr:{{{size|24}}}+8}}px; background:#0000ff"></div><div style="position:absolute"><div style="position:relative; top:-{{#expr:{{{size|24}}}+6}}px; right:-2px; width:{{{size|24}}}px; height:{{{size|24}}}px; padding:2px 2px; border-radius:4px; background:{{ | + | --><div style="display:inline-block; vertical-align:middle"><div style="width:{{#expr:{{{size|24}}}+8}}px; height:{{#expr:{{{size|24}}}+8}}px; background:#0000ff"></div><div style="position:absolute"><div style="position:relative; top:-{{#expr:{{{size|24}}}+6}}px; right:-2px; width:{{{size|24}}}px; height:{{{size|24}}}px; padding:2px 2px; border-radius:4px; background:{{ifeqany|{{{2|}}}|{{{3|}}}|giant|y=#bf1603|n=#ebe4ca}};">|n=<!-- |
With crits off, it's the simple, old stuff. | With crits off, it's the simple, old stuff. | ||
− | --><div style="display:inline-block;padding:3px 3px;margin-right:4px;border-radius:4px;background:{{ | + | --><div style="display:inline-block;padding:3px 3px;margin-right:4px;border-radius:4px;background:{{ifeqany|{{{2|}}}|{{{3|}}}|giant|y=#bf1603|n=#ebe4ca}};">}}<!-- |
-->[[File:Leaderboard class {{#switch:{{lc:{{{1|{{{class|}}}}}}}} | -->[[File:Leaderboard class {{#switch:{{lc:{{{1|{{{class|}}}}}}}} | ||
| scout = scout | | scout = scout | ||
Line 57: | Line 57: | ||
| tank = tank | | tank = tank | ||
| special blimp | blimp = special blimp | | special blimp | blimp = special blimp | ||
− | }}.png|x{{{size|24}}}px{{#if:{{{link|}}}|{{!}}link={{{link}}}}}|{{ucfirst:{{{alt|{{{1|}}}}}}}}]]</div>{{ | + | }}.png|x{{{size|24}}}px{{#if:{{{link|}}}|{{!}}link={{{link}}}}}|{{ucfirst:{{{alt|{{{1|}}}}}}}}]]</div>{{ifeqany|{{{2|}}}|{{{3|}}}|crit|y=</div></div>}}</includeonly><noinclude> |
{{doc begin}}{{TOC float|right}} | {{doc begin}}{{TOC float|right}} | ||
Used to display Robot icons on mission pages. WIP. | Used to display Robot icons on mission pages. WIP. |
Revision as of 22:00, 4 November 2015
Documentation for Robot icon/sandbox
Used to display Robot icons on mission pages. WIP.
Examples
{{Robot icon/sandbox|Pyro}}
produces{{Robot icon/sandbox|Scout|giant}}
produces{{Robot icon/sandbox|soldier spammer|size=40}}
produces{{Robot icon/sandbox|demoman|link=Demoman}}
produces{{Robot icon/sandbox|Soldier|alt=Rocket Launcher}}
produces{{Robot icon/sandbox|Heavy|crit}}
produces{{Robot icon/sandbox|Heavy|giant|crit}}
produces
Scout based
Soldier based
Pyro based
Demoman based
|
Heavy based
Engineer based
Medic based
Sniper based
Spy based
Special
|