|
|
| (15 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|keyword}}</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 -->
| |
| <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.