Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.
Revision as of 09:50, 17 February 2025 by Prd (talk | contribs) (Created page with "{{Documentation subpage}} <!-- PLEASE ADD CATEGORIES AT THE BOTTOM OF THIS PAGE --> === Usage === {{shortcuts|Template:du|Template:dunder|Template:doubleunderline|Template:doubleunderscore|Template:2under}} 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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Usage

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

Template:Lang

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

yields

Hello world!

See also