Difference between revisions of "Template:Double underline/doc"
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 |
||
| Line 1: | Line 1: | ||
| − | <span style=" | + | {{Documentation subpage}} |
| − | {{ | + | <!-- 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, | ||
| + | <span style="color:red;">Hello {<nowiki />{du|world}}!</span> | ||
| + | yields <blockquote><span style="color:red;">Hello {{du|world}}!</span></blockquote>whereas | ||
| + | <span style="color:red;">Hello {<nowiki />{du|world|red}}!</span> | ||
| + | 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><big></code> tags or <code><code></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> | ||
| + | <big>Hello {<nowiki />{du|world}}!</big> | ||
| + | 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
| This is a documentation subpage for Template:Double underline. It contains usage information, categories and other content that is not part of the original template page. |
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!