{{font|TEXT(or「text=TEXT」)|font=FONT|size=SIZE(px/em/pt/%|color=COLOR|bgcolor=BACKGROUND COLOR|css=CSS}}
text
- The text to be changed.
font
- The text's font.
A list of fonts supported by Wikipedia can be found here: en:Wikipedia:Typography#Available fonts.
size
- The size of the text. Possible unit include
px
, em
, pt
, %
.
color
- The color of the text.
bgcolor
- The background color.
css
- A CSS style.
Markup
|
Display
|
ผลลัพธ์
|
{{font|text=Some text.|font=|size=|color=}}
|
Some text.
|
ข้อความ
|
{{font|text=Some text.|font=Comic Sans MS|size=20px|color=#7f5620}}
|
Some text.
|
ข้อความ
|
{{font|Illinois|font=Times New Roman|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}}
|
也可以只選用其中一項選項。
|
เลือกเพียงพารามิเตอร์เดียว
|
Parameter
|
Default
|
font
|
Sans-serif
|
size
|
100%
|
color
|
black
|
bgcolor
|
transparent
|
แม่แบบขนาดตัวอักษร
Code for inline content |
Code for block content |
Size |
Result
|
{{small|text}}
{{smaller|text}} |
{{smalldiv|text}} |
85% |
text
|
{{resize|text}} |
{{resizediv|text}} |
90% |
text
|
{{midsize|text}} |
|
92% |
text
|
none |
none |
100% |
text
|
{{large|text}}
{{larger|text}}
{{big|text}} |
{{largediv|text}} |
120% |
text
|
{{huge|text}} |
|
180% |
text
|
{{resize|x%|text}} |
{{resizediv|x%|text}} |
custom |
varies
|
{{font|size=x%}} |
|
custom |
varies
|