Difference between revisions of "Template:Robot icon/sandbox"

From Team Fortress Wiki
Jump to: navigation, search
(Fix?!)
(Using ifeqany to make the calling simpler, and safer.)
Line 1: Line 1:
<includeonly>{{#if:{{{crit|}}}|<!--
+
<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:{{#if:{{{2|{{{giant|}}}}}}|#bf1603|#ebe4ca}};">|<!--
+
--><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:{{#if:{{{2|{{{giant|}}}}}}|#bf1603|#ebe4ca}};">}}<!--
+
--><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{{{3|{{{size|24}}}}}}px{{#if:{{{link|}}}|{{!}}link={{{link}}}}}|{{ucfirst:{{{alt|{{{1|}}}}}}}}]]</div>{{#if:{{{crit|}}}|</div></div>}}</includeonly><noinclude>
+
}}.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.
Line 63: Line 63:
 
*{{tlx|Robot icon/sandbox|Pyro}} produces {{Robot icon/sandbox|Pyro}}
 
*{{tlx|Robot icon/sandbox|Pyro}} produces {{Robot icon/sandbox|Pyro}}
 
*{{tlx|Robot icon/sandbox|Scout|giant}} produces {{Robot icon/sandbox|Scout|giant}}
 
*{{tlx|Robot icon/sandbox|Scout|giant}} produces {{Robot icon/sandbox|Scout|giant}}
*{{tlx|Robot icon/sandbox|soldier SpaMmer|giant|20px}} produces {{Robot icon/sandbox|soldier SpaMmer|yes|20px}}
+
*{{tlx|Robot icon/sandbox|soldier spammer|giant|3=size=40}} produces {{Robot icon/sandbox|soldier spammer|giant|size=40}}
*{{tlx|Robot icon/sandbox|Demoman|3=link=Demoman}} produces {{Robot icon/sandbox|Demoman|link=Demoman}}
+
*{{tlx|Robot icon/sandbox|demoman|3=link=Demoman}} produces {{Robot icon/sandbox|Demoman|link=Demoman}}
 
*{{tlx|Robot icon/sandbox|Soldier|3=alt=Rocket Launcher}} produces {{Robot icon/sandbox|Soldier|alt=Rocket Launcher}}
 
*{{tlx|Robot icon/sandbox|Soldier|3=alt=Rocket Launcher}} produces {{Robot icon/sandbox|Soldier|alt=Rocket Launcher}}
*{{tlx|Robot icon/sandbox|Heavy|3=crit=yes}} produces {{Robot icon/sandbox|Heavy|crit=yes}}
+
*{{tlx|Robot icon/sandbox|Heavy|crit}} produces {{Robot icon/sandbox|Heavy|crit}}
*{{tlx|Robot icon/sandbox|Heavy|giant|4=crit=yes}} produces {{Robot icon/sandbox|Scout|giant|crit=yes}}
+
*{{tlx|Robot icon/sandbox|Heavy|giant|crit}} produces {{Robot icon/sandbox|Heavy|giant|crit}}
  
 
{| class="grid"
 
{| class="grid"

Revision as of 21:59, 4 November 2015

Documentation for Robot icon/sandbox

Used to display Robot icons on mission pages. WIP.

Examples

Scout based

Scout
Scout = scout
Scout giant fast
Super Scout = scout giant fast
Scout stun
Major League Scout = scout stun
Scout bat
 ? = scout bat
Scout bonk
Bonk Scout = scout bonk
Scout fan
Fan Scout = scout fan
Scout shortstop
Shortstop Scout = scout shortstop
Scout stun armored
Armored Stun Scout = scout stun armored
Scout jumping
Jumping Scout = scout jumping

Soldier based

Soldier
Soldier = soldier
Soldier blackbox
Black Box Soldier = soldier blackbox
Soldier liberty launcher
Liberty Launcher Soldier = soldier libertylauncher
Soldier backup
Backup Soldier = soldier backup
Soldier buff
Buff Soldier = soldier buff
Soldier conch
Conch Soldier = soldier conch
Soldier crit
Charged Soldier = soldier crit
Soldier infinite
Infinite Soldier Spammer = soldier infinite
Soldier barrage
Barrage Soldier = soldier barrage
Soldier spammer
Rapid Fire Soldier = soldier spammer
Soldier sergeant crits
Sergeant Crits = soldier sergeant crits
Major crits
Major Crits = soldier major crits

Pyro based

Pyro
Pyro = pyro
Pyro flare
Flare Pyro = pyro flare

Demoman based

Demoman
Demoman = demoman
Demoknight
Demoknight = demoknight
Demoknight samurai
Demoknight Samurai = demoknight samurai
Demo burst
Burst Demoman = demo burst
Demo bomber
Major Bomber = demo bomber

Heavy based

Heavy
Heavy = heavy
Heavy champ
Heavyweight Champ = heavy champ
Heavy deflector
Deflector Heavy = heavy deflector
Heavy deflector push
Deflector Heavy Pusher = heavy deflector push
Heavy deflector healonkill
Deflector Heavy Healer = heavy deflector healonkill
Heavy shotgun
Shotgun Heavy = heavy shotgun
Heavy heater
Heater Heavy = heavy heater
Heavy mittens
Heavy Mitten = heavy mittens
Heavy steelfist
Steel Gauntlet = heavy steelfist
Heavy gru
Heavyweight Champ (Fast) = heavy gru
Heavy chief
Captain Punch = heavy chief

Engineer based

Engineer
Engineer = engineer
Teleporter
Teleporter = teleporter

Medic based

Medic
Medic = medic
Medic uber
Über Medic = medic uber

Sniper based

Sniper
Sniper = sniper
Sniper bow
Bowman = sniper bow
Sniper bow multi
Multi Bowman = sniper bow multi
Sniper jarate
 ? = sniper jarate
Sniper sydneysleeper
Sydney Sniper = sniper sydneysleeper

Spy based

Spy
Spy = spy

Special

Sentry buster
Sentry Buster = sentry buster
Tank
Tank = tank
Blimp
Blimp = blimp