Draft:Custom Wiki Colors: Difference between revisions

From RetroMC
Jump to navigation Jump to search
(Initial Draft for the wiki page: Custom Wiki Colors)
 
(Updated draft to use V2 of MCColor and how it is used however we need to update this still)
 
Line 1: Line 1:
This Wiki uses 2 custom modules for changing color of text RankColor and MCColor to use them in your wiki articles invoke them with <br /><nowiki>{{MCColor-text|mccolor=&2|text=text here}}</nowiki> to get the output of {{MCColor-text|mccolor=&2|text=text here}}<br />
This Wiki uses a custom module for changing color of text to use it in your wiki articles do <br /><nowiki>{{MCColor|&2|text here}}</nowiki> to get the output of {{MCColor|&2|text here}}<br />
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.
the MCColor module can use any color code you can use in-game 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 <br /><nowiki> {{BracketColor-text|rank=Gold Citizen|text=[}}{{RankColor-text|rank=Citizen|text=Gold Citizen}}{{BracketColor-text|rank=Gold Citizen|text=]}}</nowiki> to get the output of {{BracketColor-text|rank=Gold Citizen|text=[}}{{RankColor-text|rank=Citizen|text=Gold Citizen}}{{BracketColor-text|rank=Gold Citizen|text=]}}
Take a look in [[Module:MCColor/data]] for a complete list of supported color codes and names the module can take
 
Take a look in [[Module:MCColor/data]] and [[Module:RankColor/data]] for a complete list of supported inputs both modules can take

Latest revision as of 14:19, 17 December 2023

This Wiki uses a custom module for changing color of text to use it in your wiki articles do
{{MCColor|&2|text here}} to get the output of text here
the MCColor module can use any color code you can use in-game on the server and it outputs the wiki equivalent color also supports so called MOTD color codes and color names like dark_green.

Take a look in Module:MCColor/data for a complete list of supported color codes and names the module can take