Template:ColorText: Difference between revisions

From He is Coming Official Wiki
Benjiminio (talk | contribs)
mNo edit summary
Benjiminio (talk | contribs)
mNo edit summary
Line 2: Line 2:
This template colors keywords and optionally links them if a page exists.
This template colors keywords and optionally links them if a page exists.


Usage: <nowiki>{{ColorText|Attack}}</nowiki>
Usage: <nowiki>{{ColorText|keyword}}</nowiki>


Below is a single example table showing all keywords, their type, and their colors.
Below is a single example table showing all keywords, their type, and their colors.
</noinclude>
</noinclude>
<!-- Only output when template is invoked -->
<!-- Only output when template is invoked -->
<includeonly>{{#switch:{{{1|}}}}
<includeonly>{{#switch:{{{1|}}}}
|Attack=<span style="color:#e74444;">Attack</span>
|attack=<span style="color:#e74444;">attack</span>
|Armor=<span style="color:#4179ab;">Armor</span>
|armor=<span style="color:#4179ab;">armor</span>
|Health=<span style="color:#93c13e;">Health</span>
|health=<span style="color:#93c13e;">health</span>
|Speed=<span style="color:#ffd569;">Speed</span>
|speed=<span style="color:#ffd569;">speed</span>
|Acid=<span style="color:#ccf61f;">Acid</span>
|acid=<span style="color:#ccf61f;">acid</span>
|Freeze=<span style="color:#62abd4;">Freeze</span>
|freeze=<span style="color:#62abd4;">freeze</span>
|Poison=<span style="color:#bbc44e;">Poison</span>
|poison=<span style="color:#bbc44e;">poison</span>
|Purity=<span style="color:#62abd4;">Purity</span>
|purity=<span style="color:#62abd4;">purity</span>
|Regeneration=<span style="color:#9b4c51;">Regeneration</span>
|regeneration=<span style="color:#9b4c51;">regeneration</span>
|Riptide=<span style="color:#5880cc;">Riptide</span>
|riptide=<span style="color:#5880cc;">riptide</span>
|Stun=<span style="color:#ffd569;">Stun</span>
|stun=<span style="color:#ffd569;">stun</span>
|Thorns=<span style="color:#8a961f;">Thorns</span>
|thorns=<span style="color:#8a961f;">thorns</span>
|#default={{{1}}}}</includeonly>
|#default={{{1}}}}</includeonly>


<!-- Example table (only shown on template page) -->
<!-- Example table -->
<noinclude>
<noinclude>
{| class="wikitable"
{| class="wikitable"
! Keyword !! Type !! Hex
! Keyword !! Type !! Hex
|-
|-
| <span style="color:#e74444;">Attack</span>      || Base stat || #e74444
| <span style="color:#e74444;">attack</span>      || Base stat || #e74444
|-
|-
| <span style="color:#4179ab;">Armor</span>        || Base stat || #4179ab
| <span style="color:#4179ab;">armor</span>        || Base stat || #4179ab
|-
|-
| <span style="color:#93c13e;">Health</span>      || Base stat || #93c13e
| <span style="color:#93c13e;">health</span>      || Base stat || #93c13e
|-
|-
| <span style="color:#ffd569;">Speed</span>        || Base stat || #ffd569
| <span style="color:#ffd569;">speed</span>        || Base stat || #ffd569
|-
|-
| <span style="color:#ccf61f;">Acid</span>        || Status effect || #ccf61f
| <span style="color:#ccf61f;">acid</span>        || Status effect || #ccf61f
|-
|-
| <span style="color:#62abd4;">Freeze</span>      || Status effect || #62abd4
| <span style="color:#62abd4;">freeze</span>      || Status effect || #62abd4
|-
|-
| <span style="color:#bbc44e;">Poison</span>      || Status effect || #bbc44e
| <span style="color:#bbc44e;">poison</span>      || Status effect || #bbc44e
|-
|-
| <span style="color:#62abd4;">Purity</span>      || Status effect || #62abd4
| <span style="color:#62abd4;">purity</span>      || Status effect || #62abd4
|-
|-
| <span style="color:#9b4c51;">Regeneration</span> || Status effect || #9b4c51
| <span style="color:#9b4c51;">regeneration</span> || Status effect || #9b4c51
|-
|-
| <span style="color:#5880cc;">Riptide</span>      || Status effect || #5880cc
| <span style="color:#5880cc;">riptide</span>      || Status effect || #5880cc
|-
|-
| <span style="color:#ffd569;">Stun</span>        || Status effect || #ffd569
| <span style="color:#ffd569;">stun</span>        || Status effect || #ffd569
|-
|-
| <span style="color:#8a961f;">Thorns</span>      || Status effect || #8a961f
| <span style="color:#8a961f;">thorns</span>      || Status effect || #8a961f
|}
|}
</noinclude>
</noinclude>

Revision as of 10:17, 7 November 2025

This template colors keywords and optionally links them if a page exists.

Usage: {{ColorText|keyword}}

Below is a single example table showing all keywords, their type, and their colors.



Keyword Type Hex
attack Base stat #e74444
armor Base stat #4179ab
health Base stat #93c13e
speed Base stat #ffd569
acid Status effect #ccf61f
freeze Status effect #62abd4
poison Status effect #bbc44e
purity Status effect #62abd4
regeneration Status effect #9b4c51
riptide Status effect #5880cc
stun Status effect #ffd569
thorns Status effect #8a961f