Help:Editing: Difference between revisions

→‎Formatted Text: made this part way more comprehensive
(→‎Formatted Text: made this part way more comprehensive)
Line 338: Line 338:


== Formatted Text ==
== Formatted Text ==
To set specified formatting to a piece of text, use the <span> element. There are three basic formattings you can apply to text, which are explained below.
=== Colored Text ===
=== Colored Text ===
Using colored text is highly discouraged but in some cases useful.  To color your text enter the following code.  So for example:
Using colored text is highly discouraged but in some cases useful.  To color your text enter the following code.  So for example:


<pre><nowiki>
<pre><nowiki>
<span style="color:purple;">purple text</span>
<span style="color:green;">green text</span>
<span style="color:red;">red text</span>
<span style="color:red;">red text</span>
<span style="color:grey;">grey text</span>
<span style="color:black;">black text</span>
<span style="color:pink;">pink text</span>
<span style="color:orange;">orange text</span>
<span style="color:orange;">orange text</span>
<span style="color:yellow;">yellow text</span>
<span style="color:yellow;">yellow text</span>
<span style="color:green;">green text</span>
<span style="color:blue;">blue text</span>
<span style="color:blue;">blue text</span>
<span style="color:purple;">purple text</span>
<span style="color:black;">black text</span>
<span style="color:silver;">silver text</span>
<span style="color:silver;">silver text</span>
</nowiki></pre>
</nowiki></pre>


Will output:<span style="color:purple;">purple text</span>
Will output:<span style="color:red;">red text</span>
<span style="color:green;">green text</span>
<span style="color:red;">red text</span>
<span style="color:grey;">grey text</span>
<span style="color:black;">black text</span>
<span style="color:pink;">pink text</span>
<span style="color:orange;">orange text</span>
<span style="color:orange;">orange text</span>
<span style="color:yellow;">yellow text</span>
<span style="color:yellow;">yellow text</span>
<span style="color:green;">green text</span>
<span style="color:blue;">blue text</span>
<span style="color:blue;">blue text</span>
<span style="color:purple;">purple text</span>
<span style="color:black;">black text</span>
<span style="color:silver;">silver text</span>
<span style="color:silver;">silver text</span>


Line 371: Line 368:
Will give this: <span style="color:#0000FF;">This text is blue.</span>
Will give this: <span style="color:#0000FF;">This text is blue.</span>


=== Font Size and Typeface ===
=== Font Size ===
To set a specified font size or typeface, enter the following code. So for example:
To set a specified font size, enter the following code. So for example:
 
<pre><nowiki>
<span style="font-size: 130%;">Enlarged text</span>
</nowiki></pre>
 
Will output:<span style="font-size: 130%;">Enlarged text</span>
 
=== Typeface  ===
To set a specified typeface, enter the following code. So for example:
 
<pre><nowiki>
<span style="font-family: Times New Roman;">Times New Roman text</span>
</nowiki></pre>
 
Will output:<span style="font-family: Times New Roman;">Times New Roman text</span>
 
=== Combined ===
A piece of text can also combine two or all three of the above. So for example:


<pre><nowiki>
<pre><nowiki>
<span style="font-family: Times New Roman; font-size: 130%;">Times New Roman text</span>
<span style="color: Blue; font-family: Times New Roman; font-size: 130%;">Custom text</span>
</nowiki></pre>
</nowiki></pre>


Will output:<span style="font-family: Times New Roman; font-size: 130%;">Times New Roman text</span>
Will output:<span style="color: Blue; font-family: Times New Roman; font-size: 130%;">Custom text</span>


{{Helplist}}
{{Helplist}}


[[Category:Help|Editing]]
[[Category:Help|Editing]]
Anonymous user