Template:Font/doc

From Saintapedia
Jump to navigation Jump to search

The {{font}} template is used to define text styles, for example, size and color. It can also be used to inject CSS. This is very useful when it is needed to change "I" to "I", since uppercase "I" looks the same as lowercase "L".

How to

{{font|TEXT(or「text=TEXT」)|font=FONT|size=SIZE(px/em/pt/%)|color=COLOR|bgcolor=BACKGROUND COLOR|css=CSS}}

Example

Enter Will show as
{{font|text=Some text.|font=Comic Sans MS|size=20px|color=#7f5620}} Some text.
{{font|Illinois|font=Times|size=20px}} Illinois (which avoids the capital I and lowercase L looking identical, as in Illinois).
{{font|text=Hello World!|font=Century Gothic|size=35px|color=#bf00bf}} Hello World!
''{{font|text=Saintapedia|font=Georgia|size=20px|color=White|bgcolor=DarkGreen}}'' Saintapedia

Defaults

Parameter Default
font Sans-serif
size 100%
color black
bgcolor transparent