|
|
| (17 intermediate revisions by the same user not shown) |
| Line 1: |
Line 1: |
| <noinclude> | | <noinclude> |
| This template colors keywords. Usage: | | This template colors a keyword using the ColorText module. |
|
| |
|
| <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>
| | </noinclude><includeonly>{{#invoke:ColorText|main|{{{1|}}}}}</includeonly> |
| | |
| <!-- Only output when template is invoked -->
| |
| <includeonly>{{#switch:{{{1|}}}|Attack=<span style="color:#e74444;">Attack</span>|Armor=<span style="color:#4179ab;">Armor</span>|Health=<span style="color:#93c13e;">Health</span>|Speed=<span style="color:#ffd569;">Speed</span>|Acid=<span style="color:#ccf61f;">Acid</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 !! Type !! Hex
| |
| |-
| |
| | <span style="color:#e74444;">Attack</span> || Base stat || #e74444
| |
| |-
| |
| | <span style="color:#4179ab;">Armor</span> || Base stat || #4179ab
| |
| |-
| |
| | <span style="color:#93c13e;">Health</span> || Base stat || #93c13e
| |
| |-
| |
| | <span style="color:#ffd569;">Speed</span> || Base stat || #ffd569
| |
| |-
| |
| | <span style="color:#ccf61f;">Acid</span> || Status effect || #ccf61f
| |
| |-
| |
| | <span style="color:#62abd4;">Freeze</span> || Status effect || #62abd4
| |
| |-
| |
| | <span style="color:#bbc44e;">Poison</span> || Status effect || #bbc44e
| |
| |-
| |
| | <span style="color:#62abd4;">Purity</span> || Status effect || #62abd4
| |
| |-
| |
| | <span style="color:#9b4c51;">Regeneration</span> || Status effect || #9b4c51
| |
| |-
| |
| | <span style="color:#5880cc;">Riptide</span> || Status effect || #5880cc
| |
| |-
| |
| | <span style="color:#ffd569;">Stun</span> || Status effect || #ffd569
| |
| |-
| |
| | <span style="color:#8a961f;">Thorns</span> || 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.