Difference between revisions of "Template:Double underline/doc"

From blackwiki
Jump to navigation Jump to search
imported>Costalfy
(Replaced content with '<span style="border-bottom: 1px double {{{2|#000}}}; color: {{{2|#000}}}; text-decoration: underline;">{{{1}}}</span><noinclude> {{documentation}}</noinclude>')
imported>DVdm
m (Reverted edits by Costalfy (talk) unexplained removal of content (HG))
Line 1: Line 1:
<span style="border-bottom: 1px double {{{2|#000}}}; color: {{{2|#000}}}; text-decoration: underline;">{{{1}}}</span><noinclude>
+
{{Documentation subpage}}
{{documentation}}</noinclude>
+
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
 +
 
 +
=== Usage ===
 +
{{shortcuts|Template:du|Template:dunder|Template:doubleunderline|Template:doubleunderscore|Template:2under}}
 +
First suggested by [[User:Kwamikagami]] [http://en.wikipedia.org/w/index.php?title=User_talk%3ARjanag&diff=306935994&oldid=306915654], this template creates a double underline/underscore beneath a string, instead of a single one. It may be used in cases where a single underline is confusing, such as when underlining [[CJK characters]].
 +
 
 +
A second parameter can be added to specify the color (in name or in hex code, defaults to <code>#000</code>), for example,
 +
&lt;span style="color:red;"&gt;Hello {<nowiki />{du|world}}!&lt;/span&gt;
 +
yields <blockquote><span style="color:red;">Hello {{du|world}}!</span></blockquote>whereas
 +
&lt;span style="color:red;"&gt;Hello {<nowiki />{du|world|red}}!&lt;/span&gt;
 +
yields the better-looking <blockquote><span style="color:red;">Hello {{du|world|red}}!</span></blockquote>
 +
 
 +
For strings within certain {{tl|lang}} templates (such as zh), strings within <code>&lt;big&gt;</code> tags or <code>&lt;code&gt;</code> tags, and some others, this may show up as a thick underline instead of a double underline (depending on your browser settings):
 +
{<nowiki />{lang|zh|好好儿学习,{<nowiki />{du|天天}}向上!}}
 +
yields <blockquote>{{lang|zh|好好儿学习,{{du|天天}}向上!}}</blockquote>
 +
&lt;big&gt;Hello {<nowiki />{du|world}}!&lt;/big&gt;
 +
yields <blockquote><big>Hello {{du|world}}!</big></blockquote>
 +
 
 +
=== See also ===
 +
 
 +
<includeonly>
 +
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
 +
[[Category:Wikipedia formatting and function templates]]
 +
</includeonly>

Revision as of 13:01, 29 October 2012

Usage

Template:Shortcuts First suggested by User:Kwamikagami [1], this template creates a double underline/underscore beneath a string, instead of a single one. It may be used in cases where a single underline is confusing, such as when underlining CJK characters.

A second parameter can be added to specify the color (in name or in hex code, defaults to #000), for example,

<span style="color:red;">Hello {{du|world}}!</span>

yields

Hello world!

whereas

<span style="color:red;">Hello {{du|world|red}}!</span>

yields the better-looking

Hello world!

For strings within certain {{lang}} templates (such as zh), strings within <big> tags or <code> tags, and some others, this may show up as a thick underline instead of a double underline (depending on your browser settings):

{{lang|zh|好好儿学习,{{du|天天}}向上!}}

yields

好好儿学习,天天向上!

<big>Hello {{du|world}}!</big>

yields

Hello world!

See also