Jump to content

User:TheGnuGod/Styling

From Wikipedia, the free encyclopedia

Subheading guide

[edit]

Surrounding text with varying quantities of equals signs makes then in to subheadings. That one just up there is made with one equals sign on either side.

Two is a good size for a subheading

[edit]

Make sure it's in sentence case!

Three lets you make a subberheading

[edit]

That word is not official, but it should be

Four is super sub

[edit]

Not used often, but enough that it exists

This is the subbest heading you can make (five)
[edit]

Any more than this and it renders like the subbest heading but with equals signs on the edges

Basic formatting

[edit]

You can make text italic, bold or both, by placing 2, 3, or 5 apostrophe signs around your text like this: ''ilatic'' '''bold''' '''''both'''''.

Colours

[edit]

To make stuff a different colour, use a <span> tag, and style it like this: <span style="color: #HEXCODE;">, where HEXCODE is the RRGGBB values of the colour you want to display, written in hexadecimal. (commonly called a hex code)

Code

[edit]

To show code you can use the <code> tag to surround text, and it will be rendered in a monospace font. The code will likely include wiki characters though, so you can use the <nowiki> tag inside your <code> tags, to escape out HTML and the like. (Note: you must use the <nowiki> tags inside the <code> tags, or the <code> tags will get nowiki'd.)

Text Size

[edit]

To make big text, use the <big> tag!

To make small text, use the <small> tag!

Nothing happens when you use both.

More advanced CSS

[edit]

You can easily apply

more advanced styling

to wikitext, by putting it inside a <div style="SOMECSS; MORE;"> tag, and replacing the caps-lock text with actual CSS. You almost definitely shouldn't do this on a real article, but it can work on user pages, or if you're making a template.

You can find a CSS tutorial here: [1], or just search "w3" and w3schools should come up.