Template:Type: Difference between revisions
Jump to navigation
Jump to search
m (Fix template usage for updated names) |
m (Added extra optional parameters and more detailed documentation.) |
||
Line 1: | Line 1: | ||
<includeonly><span style="color: #{{ | <includeonly><span style="color: #{{#if:{{{3|}}}|{{{3|}}}|000000}}; background:#{{#if:{{{2|}}}|{{{2|}}}|{{User:Talnora/sandbox/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>{{User:Talnora/sandbox/Type|<type>|[color]|[font color]}}</nowiki></code> | |||
{| style="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>{{User:Talnora/sandbox/Type|Fire}}</nowiki></code> | |||
{{User:Talnora/sandbox/Type|Fire}} | |||
Overriding the background color: | |||
<code><nowiki>{{User:Talnora/sandbox/Type|Fire|FF0000}}</nowiki></code> | |||
{{User:Talnora/sandbox/Type|Fire|FF0000}} | |||
Overriding the default font color: | |||
<code><nowiki>{{User:Talnora/sandbox/Type|Fire||FFFFFF}}</nowiki></code> | |||
{{User:Talnora/sandbox/Type|Fire||FFFFFF}} | |||
Creating a custom type: | |||
<code><nowiki>{{User:Talnora/sandbox/Type|Space|FF00FF}}</nowiki></code> | |||
{{User:Talnora/sandbox/Type|Space|FF88FF}} | |||
Creating a custom type with a different font color: | |||
<code><nowiki>{{User:Talnora/sandbox/Type|Space|880088|FFFFFF}}</nowiki></code> | |||
{{User:Talnora/sandbox/Type|Space|880088|FFFFFF}} | |||
{| style="wikitable" style="border-spacing: 1em;" | |||
|- | |- | ||
! colspan="2" | Types | ! colspan="2" | Types |
Revision as of 15:50, 31 December 2023
Creates a Pokémon type label.
Usage:
{{User:Talnora/sandbox/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:
{{User:Talnora/sandbox/Type|Fire}}
Fire
Overriding the background color:
{{User:Talnora/sandbox/Type|Fire|FF0000}}
Fire
Overriding the default font color:
{{User:Talnora/sandbox/Type|Fire||FFFFFF}}
Fire
Creating a custom type:
{{User:Talnora/sandbox/Type|Space|FF00FF}}
Space
Creating a custom type with a different font color:
{{User:Talnora/sandbox/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 |