Difference between revisions of "Template:Double underline/doc"
Jump to navigation
Jump to search
imported>Frietjes |
imported>Vanisaac m (→See also: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other) |
||
| (4 intermediate revisions by 4 users not shown) | |||
| Line 4: | Line 4: | ||
=== Usage === | === Usage === | ||
{{shortcuts|Template:du|Template:dunder|Template:doubleunderline|Template:doubleunderscore|Template:2under}} | {{shortcuts|Template:du|Template:dunder|Template:doubleunderline|Template:doubleunderscore|Template:2under}} | ||
| − | First suggested by [[User:Kwamikagami]] | + | First suggested by [[User:Kwamikagami]] by {{diff|User_talk%3ARjanag#underlining_hanzi|306935994|306915654|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 <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, | ||
| Line 19: | Line 19: | ||
=== See also === | === See also === | ||
| + | * {{tl|underline}} | ||
| + | * {{tl|uline}} | ||
| + | * {{tl|uuline}} | ||
| − | <includeonly> | + | <includeonly>{{Sandbox other|| |
<!-- CATEGORIES HERE, THANKS --> | <!-- CATEGORIES HERE, THANKS --> | ||
| − | [[Category: | + | [[Category:Text-specific formatting and function templates]] |
| − | </includeonly> | + | }}</includeonly> |
Latest revision as of 00:20, 25 April 2020
| 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 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