সাঁচ:Font/doc
অৱয়ব
এয়া হৈছে ‘সাঁচ:Font’ শীৰ্ষক সাঁচটোৰ নথিকৰণৰ উপপৃষ্ঠা। ইয়াত সাঁচটো ব্যৱহাৰৰ তথ্য, শ্ৰেণীসমূহ, আন্তঃৱিকি সংযোগবোৰ আৰু অন্য সমল থাকে, যিবোৰ মূল সাঁচ পৃষ্ঠাটোৰ অংশ নহয়। |
This template is used on 3454 pages, and changes to it will be widely noticed. Please test any changes in the template's /sandbox or /testcases subpages, or in a user subpage, and consider discussing changes at 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 "I" in Times, 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=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
[সম্পাদনা কৰক]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.
See also
[সম্পাদনা কৰক]- {{font color}}
Template | Size | Semantics | Sample |
---|---|---|---|
{{small}} |
85% | <small></small> |
HHHHH |
{{smaller}} |
90% | none | HHHHH |
{{resize}} |
90% | none | HHHHH |
{{midsize}} |
92% | none | HHHHH |
none | 100% | none | HHHHH |
{{larger}} |
110% | none | HHHHH |
{{big}} |
120% | none | HHHHH |
{{large}} |
large | none | HHHHH |
{{huge}} |
180% | none | HHHHH |
{{resize|x%}} |
custom | none | |
{{font|size=x%}} |
custom | none |