Template:Font/doc

From Destiny Wiki
Jump to navigation Jump to search

Documentation for Template:Font

Useage

To be used to easily change the font size and family of text.

{{font|1|2|3}}
{{font|size|family|text}}

Fonts that are safe to use

The following section should be used to document the names of fonts supported, by default, by Wikimedia and the respective issues with each one (changing fonts is not seamless in wiki markup, especially for in-line stuff.) Any questions can be directed to User:Devonnn or consultation of the Wikipedia Font page.

Safe to use in-line Not safe to use in-line
Arial
Arial
Comic Sans MS
Comic Sans MS
Georgia
Georgia
Trebuchet MS
Trebuchet MS
Verdana
Verdana
Times New Roman
Times New Roman
Courier New
Courier New

Parameters

Parameter Description Type Status
1 Desired font size. Can either be in px, em, or a % (e.g. "80%"). Blank value will automatically inherit the font-size. content optional
2 Desired font family. Will default to sans-serif by default. These wiki fonts might work. content optional
3 Text that is resized or having it's font changed. content required

Examples

The {{{3}}} template can currently be used to change the text's size or font-family.

An example of changing the size:

{{font|200%||I'm big af}}

Will result in the following:

I'm big af

Which could also be done by assigning it a particular pixel size:

{{font|10px||You're actually kind of small.}}

Which will result in the following:

You're actually kind of small.

Alternatively, the template can be used to specify a different font family. An example of this:

{{font||Comic Sans MS|This font is worse than genocide :D}}

Will result in the following:

This font is worse than genocide :D

Or, it can be used to change both the font size and family.

{{font|3em|Georgia| Serif font {{=}} Goated.}}

Which will result in the following:

Serif font = Goated.