Difference between revisions of "Template:WFont"
Jump to navigation
Jump to search
(added comment and exmaple) |
m (added another example) |
||
Line 16: | Line 16: | ||
<span style="font-family:monospace;font-size:10pt">size</span> requires either <span style="font-family:monospace;font-size:10pt">pt</span> or <span style="font-family:monospace;font-size:10pt">px</span>. | <span style="font-family:monospace;font-size:10pt">size</span> requires either <span style="font-family:monospace;font-size:10pt">pt</span> or <span style="font-family:monospace;font-size:10pt">px</span>. | ||
All fields expect CSS values. | |||
== Examples == | == Examples == | ||
Line 21: | Line 23: | ||
<div style="font-size:140%"><code><pre><nowiki>This is {{wFont|size=10px|family=monospace|rgb=255,64,128|text=my line|}} of text.</nowiki></pre></code></div> | <div style="font-size:140%"><code><pre><nowiki>This is {{wFont|size=10px|family=monospace|rgb=255,64,128|text=my line|}} of text.</nowiki></pre></code></div> | ||
This is {{wFont|size=10px|family=monospace|rgb=255,64,128|text=my line|}} of text. | This is {{wFont|size=10px|family=monospace|rgb=255,64,128|text=my line|}} of text. | ||
<div style="font-size:140%"><code><pre><nowiki>This is yet {{wFont|size=large|family=serif|color=orange|text=more of my|}} of text.</nowiki></pre></code></div> | |||
This is yet {{wFont|size=large|family=serif|color=orange|text=more of my|}} of text. | |||
</noinclude> | </noinclude> |
Revision as of 13:44, 30 March 2008
Usage
Minimum Requirements
{{wFont|
|id=
|family=
|size=
|color=
|rgb=
|weight=
|}}
color and rgb both set the text color but the former allows a HEX specification and the latter allows for an RGB specification.
size requires either pt or px.
All fields expect CSS values.
Examples
This is {{wFont|size=10px|family=monospace|rgb=255,64,128|text=my line|}} of text.
This is my line of text.
This is yet {{wFont|size=large|family=serif|color=orange|text=more of my|}} of text.
This is yet more of my of text.