Difference between revisions of "Template:Font-Family"

m (Protected "Template:Font Family" [edit=sysop:move=sysop])
m
Line 23: Line 23:
 
|validvalues=Any string or strings.
 
|validvalues=Any string or strings.
 
}}
 
}}
 
 
[[Category:Utility Templates|{{{PAGENAME}}}]]</noinclude><includeonly><span style="font-family:{{{fontfamily}}};">{{{text}}}</span></includeonly>
 
[[Category:Utility Templates|{{{PAGENAME}}}]]</noinclude><includeonly><span style="font-family:{{{fontfamily}}};">{{{text}}}</span></includeonly>

Revision as of 22:14, 26 November 2009

Template:Font-Family is designed for use on all pages to change the font family of a span of text.

Template

{{Font Family
|fontfamily=
|text=
}}

Parameters

[[Category:{{{category}}} Templates|Font-Family]]

fontfamily

  • Usage: Mandatory
  • Description: The fontfamily parameter takes a string or strings denoting the font family to be used to render the text. This is used to generate the value for the "font-family" CSS property in the span.
  • Valid Value(s): Any string or strings that correspond to valid CSS font family values.

text

  • Usage: Mandatory
  • Description: The text parameter takes a string or strings denoting the text to be rendered using the supplied font family. This is used to generate the actual displayed text.
  • Valid Value(s): Any string or strings.