Template:Font/doc: Difference between revisions
No edit summary |
m (Text replacement - "Saintapedia" to "USApedia") |
||
Line 19: | Line 19: | ||
|{{font|text=Hello World!|font=Century Gothic|size=35px|color=#bf00bf}} | |{{font|text=Hello World!|font=Century Gothic|size=35px|color=#bf00bf}} | ||
|- | |- | ||
|<code><nowiki>''{{font|text= | |<code><nowiki>''{{font|text=USApedia|font=Georgia|size=20px|color=White|bgcolor=DarkGreen}}''</nowiki></code> | ||
|''{{font|text= | |''{{font|text=USApedia|font=Georgia|size=20px|color=White|bgcolor=DarkGreen}}'' | ||
|} | |} | ||
Latest revision as of 00:06, 15 November 2024
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=USApedia|font=Georgia|size=20px|color=White|bgcolor=DarkGreen}}''
|
USApedia |
Defaults
Parameter | Default |
---|---|
font
|
Sans-serif |
size
|
100% |
color
|
black |
bgcolor
|
transparent |