Difference between revisions of "Template:Double underline/doc"
Jump to navigation
Jump to search
imported>DVdm |
imported>Frietjes |
||
| Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
| − | <!-- PLEASE ADD CATEGORIES | + | <!-- PLEASE ADD CATEGORIES AT THE BOTTOM OF THIS PAGE --> |
=== Usage === | === Usage === | ||
| Line 7: | Line 7: | ||
A second parameter can be added to specify the color (in name or in hex code, defaults to <code>#000</code>), for example, | 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 />{ | + | <span style="color:red;">Hello {<nowiki />{double underline|world}}!</span> |
| − | yields <blockquote><span style="color:red;">Hello {{ | + | yields <blockquote><span style="color:red;">Hello {{double underline|world}}!</span></blockquote>whereas |
| − | <span style="color:red;">Hello {<nowiki />{ | + | <span style="color:red;">Hello {<nowiki />{double underline|world|red}}!</span> |
| − | yields the better-looking <blockquote><span style="color:red;">Hello {{ | + | yields the better-looking <blockquote><span style="color:red;">Hello {{double underline|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): | 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 />{ | + | {<nowiki />{lang|zh|好好儿学习,{<nowiki />{double underline|天天}}向上!}} |
| − | yields <blockquote>{{lang|zh|好好儿学习,{{ | + | yields <blockquote>{{lang|zh|好好儿学习,{{double underline|天天}}向上!}}</blockquote> |
| − | <big>Hello {<nowiki />{ | + | <big>Hello {<nowiki />{double underline|world}}!</big> |
| − | yields <blockquote><big>Hello {{ | + | yields <blockquote><big>Hello {{double underline|world}}!</big></blockquote> |
=== See also === | === See also === | ||
<includeonly> | <includeonly> | ||
| − | <!-- CATEGORIES | + | <!-- CATEGORIES HERE, THANKS --> |
[[Category:Wikipedia formatting and function templates]] | [[Category:Wikipedia formatting and function templates]] | ||
</includeonly> | </includeonly> | ||
Revision as of 21:40, 14 October 2013
| 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 {{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!