Template:Font: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
Kate Racaza (talk | contribs) No edit summary |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<span style="font-size:{{{2}}}pt; font-name:{{{3}}}; font-weight:{{{4}}}; color:{{{5}}};"> {{{1}}} </span> | <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: | |||
*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: | |||
<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]] | |||
</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.