Difference between revisions of "Template:Color rank"
From Tales of Maj'Eyal
(work in progress) |
(Make it work, adjust colors) |
||
Line 1: | Line 1: | ||
− | <onlyinclude><includeonly>{{color|{{#switch: {{1|}} |critter= | + | <onlyinclude><includeonly>{{color|{{#switch: {{{1|}}} |critter=#aaaaaa|normal=black|elite=gold|rare=salmon|unique=sandy brown|boss=orange|elite boss=#ddbb00|god=#FF4000|godslayer=#FF4000|black}}|'''{{{2|}}}'''}}</includeonly></onlyinclude> |
+ | <!-- Note the critter, elite, and elite boss colors are slightly darker here than in the game: the game specifies C0C0C0 for critter, yellow for elite, and gold for elite boss. --> | ||
<noinclude> | <noinclude> | ||
'''Usage''': <nowiki>{{colorRank|<rank>|<text>}}</nowiki> | '''Usage''': <nowiki>{{colorRank|<rank>|<text>}}</nowiki> | ||
− | |||
Examples: | Examples: |
Revision as of 16:51, 2 October 2021
Usage: {{colorRank|<rank>|<text>}}
Examples:
Wiki code | Output |
---|---|
{{colorRank|critter|I am a critter.}} | I am a critter. |
{{colorRank|normal|I am normal.}} | I am normal. |
{{colorRank|elite|I am elite.}} | I am elite. |
{{colorRank|rare|I am rare.}} | I am rare. |
{{colorRank|boss|I am a boss.}} | I am a boss. |
{{colorRank|elite boss|I am an elite boss.}} | I am an elite boss. |
{{colorRank|god|I am a god.}} | I am a god. |
{{colorRank|godslayer|I am a godslayer.}} | I am a godslayer. |