Template:Font: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
(added instructions on how to use the template)
No edit summary
 
(2 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:
<noinclude>==Usage==
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 10: Line 8:
*Parameter 5 = Font color
*Parameter 5 = Font color


<pre>Here's an example: {{Font|The quick brown fox jumped over the lazy dog|12|Verdana|bold|blue}}</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.