Template:Font: Difference between revisions
Jump to navigation
Jump to search
Kate Racaza (talk | contribs) (removed extra spaces) |
Kate Racaza (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
<span style="font-size:{{{2}}}pt; font-name:{{{3}}}; font-weight:{{{4}}}; color:{{{5}}};"> {{{1}}} </span><noinclude>==Usage== | <includeonly><span style="font-size:{{{2}}}pt; font-name:{{{3}}}; font-weight:{{{4}}}; color:{{{5}}};"> {{{1}}} </span></includeonly><noinclude>==Usage== | ||
You can use this template to change the font style of any text. This template takes five parameters: | You can use this template to change the font style of any text. This template takes five parameters: | ||
*Parameter 1 = Text | *Parameter 1 = Text | ||
Line 8: | Line 8: | ||
*Parameter 5 = Font color | *Parameter 5 = Font color | ||
<pre> | |||
{{Font|The quick brown fox jumped over the lazy dog|20|Verdana|bold|blue}} | To use this template, copy and paste the following code: | ||
<pre>{{Font|text|Font size|Font name|Font weight|Font color}}</pre> | |||
Example: | |||
<pre>{{Font|The quick brown fox jumped over the lazy dog|12|Verdana|bold|blue}}</pre> | |||
The code is rendered as: | |||
{{Font|The quick brown fox jumped over the lazy dog.|20|Verdana|bold|blue}} | |||
[[Category:Templates]] | [[Category:Templates]] | ||
</noinclude> | </noinclude> |
Latest revision as of 22:37, 19 August 2012
Usage
You can use this template to change the font style of any text. This template takes five parameters:
- Parameter 1 = Text
- Parameter 2 = Font size
- Parameter 3 = Font name
- Parameter 4 = Font weight
- Parameter 5 = Font color
To use this template, copy and paste the following code:
{{Font|text|Font size|Font name|Font weight|Font color}}
Example:
{{Font|The quick brown fox jumped over the lazy dog|12|Verdana|bold|blue}}
The code is rendered as:
The quick brown fox jumped over the lazy dog.