Template:Type: Difference between revisions
Jump to navigation
Jump to search
m (Fix template usage for updated names) |
m (Protected "Template:Type": Handy template protection! ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))) |
||
(3 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
<includeonly><span style="color: #{{ | <includeonly><span style="color: #{{#if:{{{3|}}}|{{{3|}}}|000000}}; background:#{{#if:{{{2|}}}|{{{2|}}}|{{TypeColor|{{{1|Unknown}}}}}}}; padding: 0.25em 0.5em; border-radius: 0.25em;">{{{1|Unknown}}}</span></includeonly><noinclude>Creates a Pokémon type label. | ||
{| style="wikitable" | <strong>Usage:</strong> | ||
<code><nowiki>{{Type|<type>|[color]|[font color]}}</nowiki></code> | |||
{| class="wikitable" width="45%" style="border-spacing: 1em;" | |||
! colspan="2" | Parameters | |||
|- | |||
! style="vertical-align: top; text-align: left;" | <type> | |||
| One of the recognized pokemon types, as below, or a custom type. | |||
|- | |||
! style="vertical-align: top; text-align: left;" | [color] | |||
| <em>(Optional)</em> Overrides the color if using a standard type, or provides a color for a custom type. | |||
|- | |||
! style="vertical-align: top; text-align: left;" | [font color] | |||
| <em>(Optional)</em> Overrides the font color. Defaults to #00000 if not set. | |||
|} | |||
<strong>Examples:</strong> | |||
Standard type bubble: | |||
<code><nowiki>{{Type|Fire}}</nowiki></code> | |||
{{Type|Fire}} | |||
Overriding the background color: | |||
<code><nowiki>{{Type|Fire|FF0000}}</nowiki></code> | |||
{{Type|Fire|FF0000}} | |||
Overriding the default font color: | |||
<code><nowiki>{{Type|Fire||FFFFFF}}</nowiki></code> | |||
{{Type|Fire||FFFFFF}} | |||
Creating a custom type: | |||
<code><nowiki>{{Type|Space|FF00FF}}</nowiki></code> | |||
{{Type|Space|FF88FF}} | |||
Creating a custom type with a different font color: | |||
<code><nowiki>{{Type|Space|880088|FFFFFF}}</nowiki></code> | |||
{{Type|Space|880088|FFFFFF}} | |||
{| class="wikitable" style="border-spacing: 1em;" | |||
|- | |- | ||
! colspan="2" | Types | ! colspan="2" | Types | ||
|- | |- | ||
| Normal | | Normal | ||
| {{ | | {{Type|Normal}} | ||
|- | |- | ||
| Fire | | Fire | ||
| {{ | | {{Type|Fire}} | ||
|- | |- | ||
| Water | | Water | ||
| {{ | | {{Type|Water}} | ||
|- | |- | ||
| Electric | | Electric | ||
| {{ | | {{Type|Electric}} | ||
|- | |- | ||
| Grass | | Grass | ||
| {{ | | {{Type|Grass}} | ||
|- | |- | ||
| Ice | | Ice | ||
| {{ | | {{Type|Ice}} | ||
|- | |- | ||
| Fighting | | Fighting | ||
| {{ | | {{Type|Fighting}} | ||
|- | |- | ||
| Poison | | Poison | ||
| {{ | | {{Type|Poison}} | ||
|- | |- | ||
| Ground | | Ground | ||
| {{ | | {{Type|Ground}} | ||
|- | |- | ||
| Flying | | Flying | ||
| {{ | | {{Type|Flying}} | ||
|- | |- | ||
| Psychic | | Psychic | ||
| {{ | | {{Type|Psychic}} | ||
|- | |- | ||
| Bug | | Bug | ||
| {{ | | {{Type|Bug}} | ||
|- | |- | ||
| Rock | | Rock | ||
| {{ | | {{Type|Rock}} | ||
|- | |- | ||
| Ghost | | Ghost | ||
| {{ | | {{Type|Ghost}} | ||
|- | |- | ||
| Dragon | | Dragon | ||
| {{ | | {{Type|Dragon}} | ||
|- | |- | ||
| Dark | | Dark | ||
| {{ | | {{Type|Dark}} | ||
|- | |- | ||
| Steel | | Steel | ||
| {{ | | {{Type|Steel}} | ||
|- | |- | ||
| Fairy | | Fairy | ||
| {{ | | {{Type|Fairy}} | ||
|} | |} | ||
</noinclude> | </noinclude> |
Latest revision as of 17:16, 31 December 2023
Creates a Pokémon type label.
Usage:
{{Type|<type>|[color]|[font color]}}
Parameters | |
---|---|
<type> | One of the recognized pokemon types, as below, or a custom type. |
[color] | (Optional) Overrides the color if using a standard type, or provides a color for a custom type. |
[font color] | (Optional) Overrides the font color. Defaults to #00000 if not set. |
Examples:
Standard type bubble:
{{Type|Fire}}
Fire
Overriding the background color:
{{Type|Fire|FF0000}}
Fire
Overriding the default font color:
{{Type|Fire||FFFFFF}}
Fire
Creating a custom type:
{{Type|Space|FF00FF}}
Space
Creating a custom type with a different font color:
{{Type|Space|880088|FFFFFF}}
Space
Types | |
---|---|
Normal | Normal |
Fire | Fire |
Water | Water |
Electric | Electric |
Grass | Grass |
Ice | Ice |
Fighting | Fighting |
Poison | Poison |
Ground | Ground |
Flying | Flying |
Psychic | Psychic |
Bug | Bug |
Rock | Rock |
Ghost | Ghost |
Dragon | Dragon |
Dark | Dark |
Steel | Steel |
Fairy | Fairy |