|
|
| (10 intermediate revisions by the same user not shown) |
| Line 1: |
Line 1: |
| <includeonly>
| |
| {{#if:{{{1|}}}|{{#ifeq:{{{1}}}|attack|<span style="color:#e74444;">attack</span>|
| |
| {{#ifeq:{{{1}}}|armor|<span style="color:#4179ab;">armor</span>|
| |
| {{#ifeq:{{{1}}}|health|<span style="color:#93c13e;">health</span>|
| |
| {{#ifeq:{{{1}}}|speed|<span style="color:#ffd569;">speed</span>|
| |
| {{#ifeq:{{{1}}}|acid|<span style="color:#ccf61f;">acid</span>|
| |
| {{#ifeq:{{{1}}}|freeze|<span style="color:#62abd4;">freeze</span>|
| |
| {{#ifeq:{{{1}}}|poison|<span style="color:#bbc44e;">poison</span>|
| |
| {{#ifeq:{{{1}}}|purity|<span style="color:#62abd4;">purity</span>|
| |
| {{#ifeq:{{{1}}}|regeneration|<span style="color:#9b4c51;">regeneration</span>|
| |
| {{#ifeq:{{{1}}}|riptide|<span style="color:#5880cc;">riptide</span>|
| |
| {{#ifeq:{{{1}}}|stun|<span style="color:#ffd569;">stun</span>|
| |
| {{#ifeq:{{{1}}}|thorns|<span style="color:#8a961f;">thorns</span>|
| |
| <span style="color:#888888;">{{{1}}}</span>
| |
| }}}}}}}}}}}}}}}}}}}}}}
| |
| </includeonly>
| |
|
| |
| <noinclude> | | <noinclude> |
| This template colors keywords in the wiki. | | This template colors a keyword using the ColorText module. |
|
| |
|
| Usage: <nowiki>{{ColorText|keyword}}</nowiki> | | Usage (exactly as you'd type): |
| | <nowiki>{{ColorText|keyword}}</nowiki> |
|
| |
|
| {| class="wikitable" | | Live example: This is {{ColorText|regeneration}} and this is {{ColorText|acid}} in one sentence. |
| ! Keyword !! Type !! Hex
| | </noinclude><includeonly>{{#invoke:ColorText|main|{{{1|}}}}}</includeonly> |
| |-
| |
| | <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.