Actions

Birdhouse

Text formatting: Difference between revisions

From The Birdhouse

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..."
 
mNo edit summary
Line 17: Line 17:
== List of classes ==
== 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!
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!


<span class="minecraft">
<span class="minecraft">minecraft</span>
minecraft


<span class="bold">bold</span> <span class="italic">italic</span> <span class="underline">underline</span> <span class="white darkbg">darkbg</span>
<span class="bold">bold</span> <span class="italic">italic</span> <span class="underline">underline</span> <span class="white darkbg">darkbg</span>


<span class="darkblue">darkblue</span> <span class="darkgreen">darkgreen</span> <span class="darkaqua">darkaqua</span>
<span class="darkblue">darkblue</span> <span class="darkgreen">darkgreen</span> <span class="darkaqua">darkaqua</span>
</span>

Revision as of 20:44, 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