User:C.Ezra.M/Template:TypeIcon: Difference between revisions
From Bulbapedia, the community-driven Pokémon encyclopedia.
Jump to navigationJump to search
m (Test) |
m (This is so sizes of the icons on the left aren't off on mobile devices) |
||
Line 1: | Line 1: | ||
{{mainspace|template|status=complete}}<onlyinclude><includeonly><div style="display: inline-flex; background: rgba(18,18,18,0.5); {{roundy|5px}}; padding-right: 2px; vertical-align: middle; margin: 1px; width: {{#ifeq:{{{2|}}}|b|150px|75px}};"><div style="display: flex; align-items: center; font-size: 2pt; {{roundyleft|5px}}; background: #{{#switch:{{lc:{{{1|}}}}}|normal=828282|fighting=E59121|flying=74ABD1|poison=9454CC|ground=A5733C|rock=AAA581|bug=A0A028|ghost=6F4570|steel=6BADC9|fire=E5613E|water=309AE2|grass=439937|electric=E0BD28|psychic=EA6C8D|ice=47C9C9|dragon=576FBD|dark=4F4747|fairy=E28DE2|000000}};margin-right: 2px;"><div style="clip-path: circle(46% at 50% 50%);">[[File:{{ucfirst:{{lc:{{{1|}}}}}}} icon LA.png|{{#ifeq:{{{2|}}}|b|36px|18px}}|link={{ucfirst:{{lc:{{{1|}}}}}}} (type)]]</div></div><div style="display: flex; align-items: center; justify-content: center; width: 100%; letter-spacing: {{#expr:{{#ifeq:{{{2|}}}|b|2|1}}*{{#switch:{{lc:{{{1|}}}}}|fighting|electric=-1.25|normal|ground|psychic=-0.5 | {{mainspace|template|status=complete}}<onlyinclude><includeonly><div style="display: inline-flex; background: rgba(18,18,18,0.5); {{roundy|5px}}; padding-right: 2px; vertical-align: middle; margin: 1px; width: {{#ifeq:{{{2|}}}|b|150px|75px}};"><div style="display: flex; align-items: center; font-size: 2pt; {{roundyleft|5px}}; background: #{{#switch:{{lc:{{{1|}}}}}|normal=828282|fighting=E59121|flying=74ABD1|poison=9454CC|ground=A5733C|rock=AAA581|bug=A0A028|ghost=6F4570|steel=6BADC9|fire=E5613E|water=309AE2|grass=439937|electric=E0BD28|psychic=EA6C8D|ice=47C9C9|dragon=576FBD|dark=4F4747|fairy=E28DE2|000000}};margin-right: 2px;"><div style="clip-path: circle(46% at 50% 50%);">[[File:{{ucfirst:{{lc:{{{1|}}}}}}} icon LA.png|{{#ifeq:{{{2|}}}|b|36px|18px}}|link={{ucfirst:{{lc:{{{1|}}}}}}} (type)]]</div></div><div style="display: flex; align-items: center; justify-content: center; width: 100%; letter-spacing: {{#expr:{{#ifeq:{{{2|}}}|b|2|1}}*{{#switch:{{lc:{{{1|}}}}}|fighting|electric=-1.25|normal|ground|dragon|psychic=-0.5|0}}}}px; font-size: {{#ifeq:{{{2|}}}|b|1.9em|0.95em}};">{{tcolor|{{ucfirst:{{lc:{{{1|}}}}}}}|fff7ef|{{uc:{{{1|}}}}}}}</div></div></includeonly></onlyinclude>{{User:Bfdifan2006/Template:TypeIcon|normal}}{{User:Bfdifan2006/Template:TypeIcon|fire}}{{User:Bfdifan2006/Template:TypeIcon|water}}{{User:Bfdifan2006/Template:TypeIcon|electric}}{{User:Bfdifan2006/Template:TypeIcon|grass}}{{User:Bfdifan2006/Template:TypeIcon|ice}}{{User:Bfdifan2006/Template:TypeIcon|fighting}}{{User:Bfdifan2006/Template:TypeIcon|poison}}{{User:Bfdifan2006/Template:TypeIcon|ground}}{{User:Bfdifan2006/Template:TypeIcon|flying}}{{User:Bfdifan2006/Template:TypeIcon|psychic}}{{User:Bfdifan2006/Template:TypeIcon|bug}}{{User:Bfdifan2006/Template:TypeIcon|rock}}{{User:Bfdifan2006/Template:TypeIcon|ghost}}{{User:Bfdifan2006/Template:TypeIcon|dragon}}{{User:Bfdifan2006/Template:TypeIcon|dark}}{{User:Bfdifan2006/Template:TypeIcon|steel}}{{User:Bfdifan2006/Template:TypeIcon|fairy}}<br> | ||
{{User:Bfdifan2006/Template:TypeIcon|normal|b}}{{User:Bfdifan2006/Template:TypeIcon|fire|b}}{{User:Bfdifan2006/Template:TypeIcon|water|b}}{{User:Bfdifan2006/Template:TypeIcon|electric|b}}{{User:Bfdifan2006/Template:TypeIcon|grass|b}}{{User:Bfdifan2006/Template:TypeIcon|ice|b}}{{User:Bfdifan2006/Template:TypeIcon|fighting|b}}{{User:Bfdifan2006/Template:TypeIcon|poison|b}}{{User:Bfdifan2006/Template:TypeIcon|ground|b}}{{User:Bfdifan2006/Template:TypeIcon|flying|b}}{{User:Bfdifan2006/Template:TypeIcon|psychic|b}}{{User:Bfdifan2006/Template:TypeIcon|bug|b}}{{User:Bfdifan2006/Template:TypeIcon|rock|b}}{{User:Bfdifan2006/Template:TypeIcon|ghost|b}}{{User:Bfdifan2006/Template:TypeIcon|dragon|b}}{{User:Bfdifan2006/Template:TypeIcon|dark|b}}{{User:Bfdifan2006/Template:TypeIcon|steel|b}}{{User:Bfdifan2006/Template:TypeIcon|fairy|b}}<br> | {{User:Bfdifan2006/Template:TypeIcon|normal|b}}{{User:Bfdifan2006/Template:TypeIcon|fire|b}}{{User:Bfdifan2006/Template:TypeIcon|water|b}}{{User:Bfdifan2006/Template:TypeIcon|electric|b}}{{User:Bfdifan2006/Template:TypeIcon|grass|b}}{{User:Bfdifan2006/Template:TypeIcon|ice|b}}{{User:Bfdifan2006/Template:TypeIcon|fighting|b}}{{User:Bfdifan2006/Template:TypeIcon|poison|b}}{{User:Bfdifan2006/Template:TypeIcon|ground|b}}{{User:Bfdifan2006/Template:TypeIcon|flying|b}}{{User:Bfdifan2006/Template:TypeIcon|psychic|b}}{{User:Bfdifan2006/Template:TypeIcon|bug|b}}{{User:Bfdifan2006/Template:TypeIcon|rock|b}}{{User:Bfdifan2006/Template:TypeIcon|ghost|b}}{{User:Bfdifan2006/Template:TypeIcon|dragon|b}}{{User:Bfdifan2006/Template:TypeIcon|dark|b}}{{User:Bfdifan2006/Template:TypeIcon|steel|b}}{{User:Bfdifan2006/Template:TypeIcon|fairy|b}}<br> | ||
Parameters: | Parameters: |
Revision as of 07:51, 11 March 2022
This template is intended to be moved into one of Bulbapedia's main content spaces. Be mindful that it is still part of a personal userspace. Any content changes should be brought up on the talk page for this template. |
Parameters:
1
- type name (case-insensitive, required)2
-b
for a bigger type tag (default:)
For now, this has to use a #switch
due to the templates for colors being different than the ones used for the purpose of this template.