Template:MCColor: Difference between revisions

From RetroMC
Jump to navigation Jump to search
(Undo revision 2496 by Thecow275 (talk))
Tag: Undo
(Fixing a pesky bug with HTML tag spam because mediawiki is a buggy mess)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>[[Module:MCColor]] is used in this template to add colored text to wiki pages.<br />
<noinclude>[[Module:MCColor]] is used in this template to add colored text to wiki pages.<br />
Anyone can use it via this format:<br />
Anyone can use it via this format:<br />
<nowiki>{{MCColor|&x|test}}</nowiki>
<nowiki>{{MCColor|&x|test}}</nowiki>
Replace <code>x</code> with any one digit or any letter from <code>a</code>-<code>f</code>; see [https://minecraft.wiki/w/Formatting_codes https://minecraft.wiki/w/Formatting_codes] for a list.<br />
Replace <code>x</code> with any one digit or any letter from <code>a</code>-<code>f</code>; see [https://minecraft.wiki/w/Formatting_codes https://minecraft.wiki/w/Formatting_codes] for a list.<br />
'''Example''': <code><nowiki>{{MCColor|&3|Noggisoggi}}</nowiki></code> gets converted into {{MCColor|&3|Noggisoggi}}.
'''Example''': <code><nowiki>{{MCColor|&3|Noggisoggi}}</nowiki></code> gets converted into {{MCColor|&3|Noggisoggi}}.
<hr /></noinclude>
<hr /></noinclude><!--
<span style="color:{{#invoke:MCColor|main|{{{1|mccolor}}}|wikicolor}}">{{{2|text}}}</span>
--><includeonly><!--
--><span style="color:{{#invoke:MCColor|main|{{{1|mccolor}}}}}"><!---->{{{2|text}}}<!----></span><!--
--></includeonly>

Latest revision as of 15:08, 15 August 2024

Module:MCColor is used in this template to add colored text to wiki pages.
Anyone can use it via this format:
{{MCColor|&x|test}} Replace x with any one digit or any letter from a-f; see https://minecraft.wiki/w/Formatting_codes for a list.
Example: {{MCColor|&3|Noggisoggi}} gets converted into Noggisoggi.