Template:Fs: Difference between revisions
From Step Mods | Change The Game
mNo edit summary |
TechAngel85 (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
<includeonly><span style="font-size:{{{1}}}">{{{2}}}</span></includeonly><noinclude>__NOTOC__ [[Category:Formatting Templates]] | <includeonly><span style="font-size:{{{1|1em}}}">{{{2}}}</span></includeonly><noinclude>__NOTOC__ [[Category:Formatting Templates]] | ||
==Purpose & Usage== | ==Purpose & Usage== | ||
Use this template to change text size. | Use this template to change text size. | ||
: <code><nowiki>{{fs|Parameter1|Parameter1}}</nowiki></code> | |||
:: '''Parameter1''' = font size; This template accepts any [https://www.w3schools.com/cssref/pr_font_font-size.asp valid CSS value] for font-size. | |||
:: '''Parameter2''' = displayed text | |||
==Examples== | ==Examples== | ||
'''Code:''' | <br> | ||
< | '''Code:''' <code><nowiki>{{fs|30px|This is font is 30px.}}</nowiki></code> | ||
'''Result:''' | '''Result:''' {{fs|30px|This is font is 30px.}} | ||
{{fs|30px|This is | |||
<hr class="mt-5 mb-5"> | |||
< | |||
'''Result:''' | '''Code:''' <code><nowiki>This shows how {{fs|80%|users can mix {{fs|25px|font sizes}} for various applications.}}</nowiki></code> | ||
{{fs|80%|Here's some {{fs| | |||
'''Result:''' This shows how {{fs|80%|users can mix {{fs|25px|font sizes}} for various}} applications. | |||
<hr class="mt-5 mb-5"> | |||
'''Code:''' <code><nowiki>Here's some {{fs|large|font that is "Larger"}} to the font around it.</nowiki></code> | |||
'''Result:''' Here's some {{fs|large|font that is "Larger"}} to the font around it. | |||
== See Also == | == See Also == | ||
[[:Template:Fc | [[:Template:Fc]] | ||
</noinclude> | </noinclude> |
Revision as of 19:05, June 25, 2021
Purpose & Usage[edit source]
Use this template to change text size.
{{fs|Parameter1|Parameter1}}
- Parameter1 = font size; This template accepts any valid CSS value for font-size.
- Parameter2 = displayed text
Examples[edit source]
Code: {{fs|30px|This is font is 30px.}}
Result: This is font is 30px.
Code: This shows how {{fs|80%|users can mix {{fs|25px|font sizes}} for various applications.}}
Result: This shows how users can mix font sizes for various applications.
Code: Here's some {{fs|large|font that is "Larger"}} to the font around it.
Result: Here's some font that is "Larger" to the font around it.
See Also[edit source]