Text formatting: Difference between revisions
From The Birdhouse
mNo edit summary |
mNo edit summary |
||
Line 25: | Line 25: | ||
<span class="darkblue">darkblue</span> <span class="darkgreen">darkgreen</span> <span class="darkaqua">darkaqua</span> <span class="darkred">darkred</span> <span class="darkpurple">darkpurple</span> <span class="gold">gold</span> <span class="gray">gray</span> <span class="darkgray">darkgray</span> | <span class="darkblue">darkblue</span> <span class="darkgreen">darkgreen</span> <span class="darkaqua">darkaqua</span> <span class="darkred">darkred</span> <span class="darkpurple">darkpurple</span> <span class="gold">gold</span> <span class="gray">gray</span> <span class="darkgray">darkgray</span> | ||
<span class="blue">blue</span> <span class="green">green</span> <span class="aqua">aqua</span> <span class="red">red</span> <span class="lightpurple">lightpurple</span> <span class="yellow">yellow</span> <span class="white | <span class="blue">blue</span> <span class="green">green</span> <span class="aqua">aqua</span> <span class="red">red</span> <span class="lightpurple">lightpurple</span> <span class="yellow">yellow</span> <span class="white">white</span> |
Revision as of 20:59, 1 August 2024
With some basic HTML, you can use custom Minecraft colors on pages! This currently doesn't work in book pages because HTML breaks the template. I'm workin' on it.
HTML tags
To start, you surround the text you want with span tags. Like this: <span>YOUR TEXT HERE</span>
In HTML, <tags> are given in brackets, and their equivalent ending </tags> are placed at the end, with a slash to denote that it's the end. The span tags above are saying, "I want certain things to happen in the span between the tags."
But nothing will happen if you don't specify what you want! You need to give the tag some classes: <span class="CLASSES GO HERE">TEXT</span>
Classes tell the website to render text a certain way. When you write a class in between the quotation marks, it finds the class in the CSS and applies it to whatever's in between the tags.
We can use this to give text some color or write things in the Minecraft font!
You can use multiple classes by putting a space in between them. For example, if I wanted purple text in the Minecraft font, I'd write <span class="minecraft lightpurple"></span>
List of classes
Here's a list of all the custom classes currently on the wiki. For the "darkbg" class, make sure to also add "white" or another light color so it's readable!
minecraft
bold italic underline darkbg
darkblue darkgreen darkaqua darkred darkpurple gold gray darkgray
blue green aqua red lightpurple yellow white