Difference between revisions of "Template:Double underline"

From blackwiki
Jump to navigation Jump to search
imported>WOSlinker
(remove {{pp-template}}, the {{documentation}} template already transcludes pp-template, so no need to transclude it twice)
imported>Rjanag
(per edit request)
Line 1: Line 1:
<u><span style="border-bottom: 1px double #000; border-color:{{{2}}}">{{{1}}}</span></u><noinclude>
+
<span style="border-bottom: 1px double {{{2|#000}}}; color: {{{2|#000}}}; text-decoration: underline;">{{{1}}}</span><noinclude>
 
{{documentation}}</noinclude>
 
{{documentation}}</noinclude>

Revision as of 19:33, 2 April 2012

{{{1}}}

Template documentation[view] [edit] [history] [purge]

Usage

Template:Shortcuts First suggested by User:Kwamikagami by this edit, 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 {{double underline|world}}!</span>
yields

Hello world!

whereas
<span style="color:red;">Hello {{double underline|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|好好儿学习,{{double underline|天天}}向上!}}
yields

好好儿学习,天天向上!

<big>Hello {{double underline|world}}!</big>
yields

Hello world!

See also