|
|
| (20 intermediate revisions by the same user not shown) |
| Line 1: |
Line 1: |
| <noinclude> | | <noinclude> |
| This template colors keywords and optionally links them if a page exists. | | This template colors a keyword using the ColorText module. |
|
| |
|
| Usage: <nowiki>{{ColorText|Attack}}</nowiki> | | Usage (exactly as you'd type): |
| | <nowiki>{{ColorText|keyword}}</nowiki> |
|
| |
|
| Below is a single example table showing all keywords, their type, and their colors.
| | Live example: This is {{ColorText|regeneration}} and this is {{ColorText|acid}} in one sentence. |
| | | </noinclude><includeonly>{{#invoke:ColorText|main|{{{1|}}}}}</includeonly> |
| </noinclude>
| |
| <!-- Only output when template is invoked -->
| |
| <includeonly>
| |
| {{#switch: {{{1|}}} | |
| | Acid = <span style="color:#ccf61f;">Acid</span>
| |
| | Armor = <span style="color:#4179ab;">Armor</span>
| |
| | Attack = <span style="color:#e74444;">Attack</span>
| |
| | Health = <span style="color:#93c13e;">Health</span>
| |
| | Speed = <span style="color:#ffd569;">Speed</span> | |
| | Freeze = <span style="color:#62abd4;">Freeze</span> | |
| | Poison = <span style="color:#bbc44e;">Poison</span>
| |
| | Purity = <span style="color:#62abd4;">Purity</span>
| |
| | Regeneration = <span style="color:#9b4c51;">Regeneration</span>
| |
| | Riptide = <span style="color:#5880cc;">Riptide</span>
| |
| | Stun = <span style="color:#ffd569;">Stun</span>
| |
| | Thorns = <span style="color:#8a961f;">Thorns</span>
| |
| | #default = {{{1}}}
| |
| }} | |
| </includeonly> | |
| | |
| <!-- Example table (only shown on template page) -->
| |
| <noinclude>
| |
| {| class="wikitable"
| |
| ! Keyword !! Icon !! Type !! Hex
| |
| |-
| |
| | <span style="color:#e74444;">Attack</span> || [[File:Icon_attack.png|link=]] || Base stat || #e74444
| |
| |-
| |
| | <span style="color:#4179ab;">Armor</span> || [[File:Icon_armor.png|link=]] || Base stat || #4179ab
| |
| |-
| |
| | <span style="color:#93c13e;">Health</span> || [[File:Icon_health.png|link=]] || Base stat || #93c13e
| |
| |-
| |
| | <span style="color:#ffd569;">Speed</span> || [[File:Icon_speed.png|link=]] || Base stat || #ffd569
| |
| |-
| |
| | <span style="color:#ccf61f;">Acid</span> || [[File:Icon_acid.png|link=]] || Status effect || #ccf61f
| |
| |-
| |
| | <span style="color:#62abd4;">Freeze</span> || [[File:Icon_freeze.png|link=]] || Status effect || #62abd4
| |
| |-
| |
| | <span style="color:#bbc44e;">Poison</span> || [[File:Icon_poison.png|link=]] || Status effect || #bbc44e
| |
| |-
| |
| | <span style="color:#62abd4;">Purity</span> || [[File:Icon_purity.png|link=]] || Status effect || #62abd4
| |
| |-
| |
| | <span style="color:#9b4c51;">Regeneration</span> || [[File:Icon_regen.png|link=]] || Status effect || #9b4c51
| |
| |-
| |
| | <span style="color:#5880cc;">Riptide</span> || [[File:Icon_riptide.png|link=]] || Status effect || #5880cc
| |
| |-
| |
| | <span style="color:#ffd569;">Stun</span> || [[File:Icon_stun.png|link=]] || Status effect || #ffd569
| |
| |-
| |
| | <span style="color:#8a961f;">Thorns</span> || [[File:Icon_thorns.png|link=]] || Status effect || #8a961f
| |
| |}
| |
| </noinclude>
| |
This template colors a keyword using the ColorText module.
Usage (exactly as you'd type):
{{ColorText|keyword}}
Live example: This is regeneration and this is acid in one sentence.