Template:MCColor: Difference between revisions
Jump to navigation
Jump to search
Noggisoggi (talk | contribs) (Added documentation) |
(WARNING THIS MAY BREAK PAGES REVERT IF IT DOES SO AS THIS IS A ATTEMPT AT FIXING WHITESPACE BUG) Tag: Reverted |
||
Line 5: | Line 5: | ||
'''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> | <span style="white-space: nowrap; color:{{#invoke:MCColor|main|{{{1|mccolor}}}|wikicolor}}">{{{2|text}}}</span> |
Revision as of 10:45, 19 February 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.
text