Template:U
[Wikipedia|▼Menu]

{{{1}}}.mw-parser-output .documentation,.mw-parser-output .documentation-metadata{border:1px solid #a2a9b1;background-color:#ecfcf4;clear:both}.mw-parser-output .documentation{margin:1em 0 0 0;padding:1em}.mw-parser-output .documentation-metadata{margin:0.2em 0;font-style:italic;padding:0.4em 1em}.mw-parser-output .documentation-startbox{padding-bottom:3px;border-bottom:1px solid #aaa;margin-bottom:1ex}.mw-parser-output .documentation-heading{font-weight:bold;font-size:125%}.mw-parser-output .documentation-clear{clear:both}.mw-parser-output .documentation-toolbar{font-style:normal;font-size:85%} テンプレートの解説[表示] [編集] [履歴] [キャッシュを破棄].mw-parser-output .hatnote{margin:0.5em 0;padding:3px 2em;background-color:transparent;border-bottom:1px solid #a2a9b1;font-size:90%}

記事のリンク以外で下線が使われていることを告知するテンプレートについては「Template:下線」をご覧ください。
.mw-parser-output .side-box{margin:4px 0;box-sizing:border-box;border:1px solid #aaa;font-size:88%;line-height:1.25em;background-color:#f9f9f9;display:flow-root}.mw-parser-output .side-box-abovebelow,.mw-parser-output .side-box-text{padding:0.25em 0.9em}.mw-parser-output .side-box-image{padding:2px 0 2px 0.9em;text-align:center}.mw-parser-output .side-box-imageright{padding:2px 0.9em 2px 0;text-align:center}@media(min-width:500px){.mw-parser-output .side-box-flex{display:flex;align-items:center}.mw-parser-output .side-box-text{flex:1}}@media(min-width:720px){.mw-parser-output .side-box{width:238px}.mw-parser-output .side-box-right{clear:right;float:right;margin-left:1em}.mw-parser-output .side-box-left{margin-right:1em}}この項目では下線を扱っています。閲覧環境によっては、適切に表示されていない場合があります。

文字列に下線を引く用途のテンプレートです。内部で<span>要素とCSSのtext-decoration-lineプロパティを使用しています。このテンプレートは純粋に装飾目的であり、強調を含めた注釈には<u>タグを使ってください[1]
引数

引数の一覧引数指定内容既定値説明
1下線を引く文字列なし必須
2文字装飾の種類underlineoverline(上線)、line-through(打ち消し線)

上線には{{overline}}があり、打ち消し線には<del>タグが代わりにあります。
TemplateDataこれはビジュアルエディターやテンプレートウィザードにより使用されるテンプレートのためのTemplateData文書です。

Underline

下線を引く。

テンプレートパラメーター[テンプレートデータを編集]

このテンプレートは、パラメーターを1行で記述することが推奨されています。パラメーター説明型状態
文字列1

下線を引く文字列行必須
装飾2

文字装飾の種類
値の候補
underline overline line-through
既定
underline行非推奨

入力結果説明
{{Underline|ほげほげ}}ほげほげ下線
{{Underline|ほげほげ|overline}}ほげほげ
上線
{{Underline|ほげほげ|line-through}}ほげほげ打消し線
{{Underline|ほげほげ|underline overline line-through}}ほげほげ下線と上線と打消し線

脚注^ “: 非言語的注釈 (下線) 要素 - HTML: HyperText Markup Language”. MDN. Mozilla. 2022年9月8日閲覧。 “意味論的な意味なしで下線を引きたい場合は、 text-decoration プロパティの値 underline を使用してください。”

関連項目

Template:Underline2
この解説は、Template:Underline/docから呼び出されています。 (編集 | 履歴)
編集者は、このテンプレートをサンドボックス (編集 | 差分)とテストケース (編集)で試すことができます。(解説
/docのサブページにカテゴリを追加してください。 このテンプレートのサブページ一覧。


記事の検索
おまかせリスト
▼オプションを表示
ブックマーク登録
mixiチェック!
Twitterに投稿
オプション/リンク一覧
話題のニュース
列車運行情報
暇つぶしWikipedia

Size:5558 Bytes
出典: フリー百科事典『ウィキペディア(Wikipedia)
担当:undef