Actions

Birdhouse

Birdhouse:Text formatting

From The Birdhouse

Revision as of 20:43, 1 August 2024 by Owl (talk | contribs) (Created page with "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: <nowiki><span>YOUR TEXT HERE</span></nowiki> In HTML, <nowiki><tags></nowiki> are given in brackets, and their equivalent ending <nowiki></tags></nowiki> are placed at the end, with a slash to denote that it's the end. The sp...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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. While these are all displayed in the Minecraft font, you can use them on regular text too!

minecraft

bold italic underline darkbg

darkblue darkgreen darkaqua