Difference between revisions of "Template:TF2B"
m |
m (Add "class" parameter for class selector targeting) |
||
(10 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
− | + | <span {{#if:{{{class|}}}|class="{{{class}}}"}} style="font-size:{{{size|18px}}}; line-height:{{{line-height|16px}}};<!-- | |
− | <noinclude> | + | -->{{#if:{{{quality|}}}||color:{{{color|#000}}};}}<!-- |
− | + | -->font-family: {{lang incomplete | plain = yes | {{#if:{{{override|}}}|force|null}} = {{{override|}}}<!-- | |
− | + | // Specific fonts for some languages that aren't supported by the standard TF2 Build font. --> | |
− | {{TF2B | + | | en = TF2 Build, Verdana, Geneva, sans-serif; |
− | + | | hu = Verdana, Genva, sans-serif; font-weight: bold; | |
+ | | ja = Shin Go, Heisei Kaku Gothic W5; font-weight: bold; | ||
+ | | ko = Pathang, sans-serif, Totum, Kodig, serif; font-weight: bold; | ||
+ | | zh-hans = SimSum-18030, SimHei, serif; font-weight: bold; | ||
+ | | zh-hant = PMingLiU, MingLiU, serif; font-weight: bold; | ||
+ | }} {{{style|}}}" {{#if:{{{quality|}}}|class="qua_{{lc:{{{quality|unique}}}}}"|}}><!-- | ||
+ | -->{{{1|{{{text|Sample text}}}}}}<!-- | ||
+ | --></span><noinclude>{{doc begin}} | ||
+ | {{tl|TF2B}} can display text in the TF2 Build font. | ||
− | + | === Parameters === | |
+ | <code><nowiki>{{TF2B|text = Sample text|color = #000|quality = ''none''|size = 18px|line-height = 16px|class = ''optional''|style = ''optional''}}</nowiki></code> | ||
− | {{TF2B| | + | === Example usages === |
+ | * {{tlx|TF2B|Lorem ipsum}} generates: {{TF2B|Lorem ipsum}} | ||
+ | * {{tlx|TF2B|Vintage Lorem Ipsum|3=quality=vintage}} generates: {{TF2B|Vintage Lorem Ipsum|quality=vintage}} | ||
+ | * {{tlx|TF2B|Lorem ipsum|3=color=red}} generates: {{TF2B|Lorem ipsum|color=red}} | ||
+ | * {{tlx|TF2B|Lorem ipsum|3=size=2em}} generates: {{TF2B|Lorem ipsum|size=2em}} | ||
+ | |||
+ | [[Category:Formatting templates|TF2B]] | ||
</noinclude> | </noinclude> |
Latest revision as of 21:07, 14 December 2023
Sample text
Documentation for TF2B
{{TF2B}}
can display text in the TF2 Build font.
Parameters
{{TF2B|text = Sample text|color = #000|quality = ''none''|size = 18px|line-height = 16px|class = ''optional''|style = ''optional''}}