Teamplaid:Font
About
deasaich{{Font}} is used to define text styles, for example, size and color. It can also be used to inject CSS. This can be useful when needed to change "I" in Arial to "I" in Times, since in Arial, uppercase "I" looks the same as lowercase "L".
Use
deasaich{{Font|TEXT(or「text=TEXT」)|font=FONT|size=SIZE(px/em/pt/%)|color=COLOR|bgcolor=BACKGROUND COLOR|css=CSS}}
Examples
deasaichMarkup | Display |
---|---|
{{Font|text=Some text.|font=Comic Sans MS|size=20px|color=#7f5620}} |
Some text. |
{{Font|Illinois|font=Times|size=20px}} |
Illinois |
{{Font|Illinois|font=Arial|size=20px}} |
Illinois |
{{Font|啡色的文字。|font=標楷體|size=20px|color=#7f5620}}
|
啡色的文字。 |
{{Font|text=Hello World!|font=Century Gothic|size=35px|color=#bf00bf}}
|
Hello World! |
{{Font|text=囧囧囧囧囧|font=Simhei|color=#c9b295|bgcolor=#364d6a}}
|
囧囧囧囧囧 |
{{Font|text=可以選用全部選項。|font=Simhei|size=20px|color=#5a7aad|bgcolor=#f9f9ef}}
|
可以選用全部選項, |
{{Font|text=也可以只選用其中一項選項。|size=25px}}
|
也可以只選用其中一項選項。 |
Defaults
deasaichParameter | Default |
---|---|
font
|
Sans-serif |
size
|
100% |
color
|
black |
bgcolor
|
transparent |
Limitations
deasaichThis template should not be used around multiple paragraphs. For example, it should not be used around multiple bullet or numbered points or more than one cell of a table. It may, however, surround as many uses of <br>
as desired.
See also
deasaich- {{Font color}}
The above documentation is transcluded from Teamplaid:Font/documentation. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /documentation subpage. Subpages of this template. |