Шаблон:Font/Документацие
This template is used in MediaWiki:Abusefilter-disallowed-semicolon. Changes to it can cause immediate changes to the Wikipedia user interface. To avoid major disruption, any changes should be tested in the template's /sandbox or /testcases subpages, or in your own user subpage. The tested changes can be added to this page in a single edit. Please discuss changes on the talk page before implementing them. |
About
петнемс{{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 "" in Times New Roman, since in Arial, uppercase "I" looks the same as lowercase "L".
Use
петнемс{{font|TEXT(or「text=TEXT」)|font=FONT|size=SIZE(px/em/pt/%)|color=COLOR|bgcolor=BACKGROUND COLOR|css=CSS}}
Examples
петнемсMarkup | Display |
---|---|
{{font|text=Some text.|font=|size=|color=}} |
|
{{font|text=Some text.|font=Comic Sans MS|size=20px|color=#7f5620}} |
|
{{font|Illinois|font=Times New Roman|size=20px}} |
|
{{font|Illinois|font=Arial|size=20px}} |
|
{{font|啡色的文字。|font=標楷體|size=20px|color=#7f5620}}
|
|
{{font|text=Hello World!|font=Century Gothic|size=35px|color=#bf00bf}}
|
|
{{font|text=囧囧囧囧囧|font=Simhei|color=#c9b295|bgcolor=#364d6a}}
|
|
{{font|text=可以選用全部選項。|font=Simhei|size=20px|color=#5a7aad|bgcolor=#f9f9ef}}
|
|
{{font|text=也可以只選用其中一項選項。|size=25px}}
|
Defaults
петнемсParameter | Default |
---|---|
font
|
Sans-serif |
size
|
100% |
color
|
black |
bgcolor
|
transparent |
Limitations
петнемсThis 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.
Template data
петнемсThis is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.
TemplateData for Font
Template data parameterlist
| |||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Нет описания.
|
Тага ватт
петнемс- {{font color}}
- {{script}}
Code | Size | Semantics | Result |
---|---|---|---|
{{small|text}} | 85% | <small> |
text |
{{smaller|text}} | 90% | none | text |
{{resize|text}} | 90% | none | text |
{{midsize|text}} | 92% | none | text |
none | 100% | none | text |
{{larger|text}} | 110% | none | text |
{{big|text}} | 120% | <big> |
text |
{{large|text}} | 125% | none | text |
{{huge|text}} | 180% | none | text |
{{resize|x%}} | custom | none | varies |
{{font|size=x%}} | custom | none | varies |