Difference between revisions of "Template:Robot icon"
Ultimaximus (talk | contribs) |
(Add custom icon. Please don't let templates grow out of control, that's how we break wookie.) |
||
Line 3: | Line 3: | ||
--><div style="display:inline-block; vertical-align:middle"><div style="width:{{#expr:{{{size|24}}}+8}}px; height:{{#expr:{{{size|24}}}+8}}px; background:#1e87b9"></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:{{#ifeq:{{{2}}}|giant|¬}}{{#ifeq:{{{3}}}|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:#1e87b9"></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:{{#ifeq:{{{2}}}|giant|¬}}{{#ifeq:{{{3}}}|giant|¬}}|#bf1603|#ebe4ca}};">|<!-- | ||
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:{{#ifeq:{{{2}}}|giant|¬}}{{#ifeq:{{{3}}}|giant|¬}}|#bf1603|#ebe4ca}};">}}[[File:Leaderboard class {{#switch:{{lc:{{{1|{{{class|}}}}}}}} | + | --><div style="display:inline-block;padding:3px 3px;margin-right:4px;border-radius:4px;background:{{#if:{{#ifeq:{{{2}}}|giant|¬}}{{#ifeq:{{{3}}}|giant|¬}}|#bf1603|#ebe4ca}};">}}[[{{{custom-icon|File:Leaderboard class {{#switch:{{lc:{{{1|{{{class|}}}}}}}} |
| scout = scout | | scout = scout | ||
| super scout | fast scout | fast giant scout | scout fast giant | scout giant fast = scout giant fast | | super scout | fast scout | fast giant scout | scout fast giant | scout giant fast = scout giant fast | ||
Line 58: | Line 58: | ||
<!-- Custom robots starting here, don't mind some of them having ridiculously many unnecessary versions of a name for a single icon, it's for testing and I don't feel like removing them anymore. Making icons use the og icon filenames is better since it's helpful for them when they want to make some custom mvm content too, if it has a weird name or some special case then yeah probably an alternative name would be better.--> | <!-- Custom robots starting here, don't mind some of them having ridiculously many unnecessary versions of a name for a single icon, it's for testing and I don't feel like removing them anymore. Making icons use the og icon filenames is better since it's helpful for them when they want to make some custom mvm content too, if it has a weird name or some special case then yeah probably an alternative name would be better.--> | ||
+ | <!-- For future reference, I have added a custom icon override. Please do not expand this list, and just pass your custom icon url in with |custom-icon=File:my custom icon.png --> | ||
| scout accu = scout accu | | scout accu = scout accu | ||
| scout airstun nys = scout airstun nys | | scout airstun nys = scout airstun nys | ||
Line 540: | Line 541: | ||
| zomboni = zomboni | | zomboni = zomboni | ||
| zomboss = zomboss | | zomboss = zomboss | ||
− | }}.png|x{{{size|24}}}px{{#if:{{{link|}}}|{{!}}link={{{link}}}}}|{{ucfirst:{{{alt|{{{1|}}}}}}}}]]</div>{{#if:{{#ifeq:{{{2}}}|crit|¬}}{{#ifeq:{{{3}}}|crit|¬}}|</div></div>{{#iferror:{{#expr:{{{size|24}}}+0}}|[[Category:ERROR]]|}}}}</includeonly><noinclude> | + | }}.png}}}|x{{{size|24}}}px{{#if:{{{link|}}}|{{!}}link={{{link}}}}}|{{ucfirst:{{{alt|{{{1|}}}}}}}}]]</div>{{#if:{{#ifeq:{{{2}}}|crit|¬}}{{#ifeq:{{{3}}}|crit|¬}}|</div></div>{{#iferror:{{#expr:{{{size|24}}}+0}}|[[Category:ERROR]]|}}}}</includeonly><noinclude> |
{{doc begin}}{{TOC float|right}} | {{doc begin}}{{TOC float|right}} | ||
Used to display Robot icons on mission pages. | Used to display Robot icons on mission pages. |
Revision as of 00:47, 30 May 2021
Documentation for Robot icon
Used to display Robot icons on mission pages.
For displaying non-robot classes, please use {{Icon class}}
.
Examples
{{Robot icon|Pyro}}
produces{{Robot icon|Scout|giant}}
produces{{Robot icon|soldier spammer|size=40}}
produces{{Robot icon|demoman|link=Demoman}}
produces{{Robot icon|Soldier|alt=Rocket Launcher}}
produces{{Robot icon|Heavy|crit}}
produces{{Robot icon|Heavy|giant|crit}}
produces
Scout based
Soldier based
Note for Mission Makers that use Pyro based
Demoman based
|
Heavy based
Engineer based
Medic based
Sniper based
Spy based
Special
|