Draft:Custom Wiki Colors

From RetroMC
Revision as of 13:24, 16 December 2023 by Thecow275 (talk | contribs) (Initial Draft for the wiki page: Custom Wiki Colors)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This Wiki uses 2 custom modules for changing color of text RankColor and MCColor to use them in your wiki articles invoke them with
{{MCColor-text|mccolor=&2|text=text here}} to get the output of Template:MCColor-text
the MCColor module can use any colort code you can use ingame on the server and it outputs the wiki equivalent color also supports so called MOTD color codes and color names like dark_green.

for getting colors for ranks use
{{BracketColor-text|rank=Gold Citizen|text=[}}{{RankColor-text|rank=Citizen|text=Gold Citizen}}{{BracketColor-text|rank=Gold Citizen|text=]}} to get the output of Template:BracketColor-textTemplate:RankColor-textTemplate:BracketColor-text

Take a look in Module:MCColor/data and Module:RankColor/data for a complete list of supported inputs both modules can take