Jump to content
Toggle menu
  • 8 articles
  • 75 files
  • 7 users
  • 37.8K edits
Neodyland Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Font-size: Difference between revisions

Template page
doc / cat
See also: unified
 
(2 intermediate revisions by 2 users not shown)
Line 6: Line 6:
Use a span tag to set the font size.
Use a span tag to set the font size.


'''Syntax:''' <nowiki>{{</nowiki>fontsize|''value''|''content''}}
'''Syntax:''' <nowiki>{{</nowiki>font-size|''value''|''content''}}


=== Examples ===
=== Examples ===
Line 14: Line 14:


=== See also ===
=== See also ===
* {{tl|small}}
* {{tl|big}}
* {{t|fs}} - Uses the deprecated &lt;font> tag.
* [http://www.w3schools.com/CSS/pr_font_font-size.asp W3C's CSS font-size property page]
* [http://www.w3schools.com/CSS/pr_font_font-size.asp W3C's CSS font-size property page]
{{Text formatting template (see also)}}


[[Category:Text formatting templates|{{PAGENAME}}]]
[[Category:Text formatting templates|{{PAGENAME}}]]
</noinclude>
</noinclude>

Latest revision as of 02:33, 13 February 2024

{{{2}}}



⧼usage⧽

Use a span tag to set the font size.

Syntax: {{font-size|value|content}}

Examples

  • {{font-size|120%|This}} → This
  • {{font-size|smaller|is an}} → is an
  • {{font-size|2em|Example.}} → Example.

See also

Text formatting templates
Code example Renders as Notes Code example Renders as Notes
X{{Exp|superscript text}} Xsuperscript text Warning sign Don't use {{Sup}} which links to {{Support}} X{{Smallsup|small superscript text}} Xsmall superscript text with smaller text
X{{Sub|subscript text}} Xsubscript text X{{Smallsub|small subscript text}} Xsmall subscript text with smaller text
X{{Sup sub|superscript|subscript}} Xsuperscriptsubscript with smaller text
X{{Big|big text}} Xbig text X{{Small|small text}} Xsmall text Font size 85%
X{{Font-size|120%|font-size 120%}} Xfont-size 120% ← could maybe be merged → X{{Resize|120%|font-size 120%}} Xfont-size 120%
X{{Overline|overlined}} Xoverlined
X{{Explain|term|explanation}} Xterm
X{{Mark|marked text}} Xmarked text Same color as used in diffs. X{{Highlight|highlighted text|#FF0|green}} Xhighlighted text Multiple format parameters possible
X{{Small-caps|Small capitals}} XSmall capitals
X<kbd>­teletype</kbd> Xteletype Tags, not a template yet(en) (but used in e.g. {{Tld}}) X<code>­code</code> Xcode Tags, not a template yet(en) (but used in e.g. {{Tlc}})
Note: The capital X in front of each template is used to compare the results to plain text.
Cookies help us deliver our services. By using our services, you agree to our use of cookies.