Difference between revisions of "Template:Font-Family"

m (Protected "Template:Font Family" [edit=sysop:move=sysop])
m
 
(9 intermediate revisions by the same user not shown)
Line 2: Line 2:
 
|usedon=all
 
|usedon=all
 
|purpose=change the font family of a span of text
 
|purpose=change the font family of a span of text
|template=<nowiki>{{Font Family
+
|template=<nowiki>{{Font-Family
 
|fontfamily=
 
|fontfamily=
 
|text=
 
|text=
 
}}</nowiki>
 
}}</nowiki>
 +
|category=Utility
 
}}
 
}}
 
{{Template Parameter
 
{{Template Parameter
Line 13: Line 14:
 
|denotes=the font family to be used to render the text
 
|denotes=the font family to be used to render the text
 
|generates=the value for the "font-family" CSS property in the span
 
|generates=the value for the "font-family" CSS property in the span
|validvalues=Any string or strings that correspond to valid CSS font family values.
+
|validvalues=Any string or strings that correspond to valid CSS "font-family" values.
 
}}
 
}}
 
{{Template Parameter
 
{{Template Parameter
Line 19: Line 20:
 
|usage=mandatory
 
|usage=mandatory
 
|takes=a string or strings
 
|takes=a string or strings
|denotes=the text to be rendered using the supplied font family
+
|denotes=the text to be rendered using the supplied "font-family" value
 
|generates=the actual displayed text
 
|generates=the actual displayed text
 
|validvalues=Any string or strings.
 
|validvalues=Any string or strings.
 
}}
 
}}
 
+
</noinclude><includeonly>{{Span
[[Category:Utility Templates|{{{PAGENAME}}}]]</noinclude><includeonly><span style="font-family:{{{fontfamily}}};">{{{text}}}</span></includeonly>
+
|property=font-family:{{{fontfamily}}};
 +
|text={{{text}}}
 +
}}</includeonly>

Latest revision as of 08:28, 28 December 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

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" value. This is used to generate the actual displayed text.
  • Valid Value(s): Any string or strings.