「テンプレート:Dmbox」の版間の差分
ナビゲーションに移動
検索に移動
ja>ネイ (代替テキストを日本語訳、idとclassの改行を除去) |
Administrator (トーク | 投稿記録) |
||
| (同じ利用者による、間の2版が非表示) | |||
| 5行目: | 5行目: | ||
| disambig | | disambig | ||
| #default = disambigbox | | #default = disambigbox | ||
| #info = disambigbox | |||
}}" class="metadata plainlinks dmbox {{#switch:{{{type|}}} | }}" class="metadata plainlinks dmbox {{#switch:{{{type|}}} | ||
| setindex = dmbox-setindex | | setindex = dmbox-setindex | ||
| 10行目: | 11行目: | ||
| disambig | | disambig | ||
| #default = dmbox-disambig | | #default = dmbox-disambig | ||
| info = dmbox-disambig | |||
}} {{{class|}}}" {{#if:{{{style|}}}|style="{{{style}}}"}}>{{#ifeq:{{{image|}}}|none| | }} {{{class|}}}" {{#if:{{{style|}}}|style="{{{style}}}"}}>{{#ifeq:{{{image|}}}|none| | ||
| {{#if:{{{image|}}} | | {{#if:{{{image|}}} | ||
| 18行目: | 20行目: | ||
| disambig <!-- disambig = default --> | | disambig <!-- disambig = default --> | ||
| #default = Disambig gray.svg | | #default = Disambig gray.svg | ||
| info = Information icon4.svg | |||
}}|30px|alt=曖昧さ回避のアイコン]] | }}|30px|alt=曖昧さ回避のアイコン]] | ||
}} | }} | ||
| 29行目: | 32行目: | ||
| setindex = <!-- Do nothing, valid "type" --> | | setindex = <!-- Do nothing, valid "type" --> | ||
| #default = {{Error|[[Template:Dmbox]]に入力された{{para|type|{{{type|}}}}}引数が不正です。}}[[Category:パラメータの修正が必要なメッセージボックス|{{main other|0:}}{{FULLPAGENAME}}]]<!-- Sort on namespace --> | | #default = {{Error|[[Template:Dmbox]]に入力された{{para|type|{{{type|}}}}}引数が不正です。}}[[Category:パラメータの修正が必要なメッセージボックス|{{main other|0:}}{{FULLPAGENAME}}]]<!-- Sort on namespace --> | ||
| info = | |||
}}<!-- | }}<!-- | ||
Magic word for disambiguation pages: | Magic word for disambiguation pages: | ||
| 52行目: | 56行目: | ||
| template = <!-- Do not categorise on template pages. --> | | template = <!-- Do not categorise on template pages. --> | ||
| other = [[Category:すべての曖昧さ回避]] | | other = [[Category:すべての曖昧さ回避]] | ||
| nocat = {{{nocat|}}} <!--So "nocat=true" works--> | |||
| page = {{{page|}}} <!--For testing--> | |||
}} | |||
| info = | |||
{{category handler | |||
| main = [[Category:ウィキペディアに同名の記事が存在する記事]] | |||
| template = <!-- Do not categorise on template pages. --> | |||
| nocat = {{{nocat|}}} <!--So "nocat=true" works--> | | nocat = {{{nocat|}}} <!--So "nocat=true" works--> | ||
| page = {{{page|}}} <!--For testing--> | | page = {{{page|}}} <!--For testing--> | ||
2021年10月23日 (土) 03:33時点における最新版
| このテンプレートは77,000以上のページで使われています。 余計な混乱やサーバーへの負荷を避けるために、どんな変更でも最初はテンプレートのサンドボックス・サブページ、テストケース・サブページもしくはあなた自身の利用者スペースのページで試すべきです。そうすれば、試した変更を1度の編集でこのテンプレートに加えることができます。しかし、最初にあなたの提案した変更を、この項目のノートで議論するようにお願いします。 |
| このテンプレートはテンプレートスタイルを使用しています: |
| メッセージボックス メタテンプレート | |
|---|---|
| テンプレート | 対象 |
| {{Ambox}} | 記事 |
| {{Cmbox}} | カテゴリ |
| {{Imbox}} | ファイル |
| {{Tmbox}} | ノート |
| {{Fmbox}} | フッタ / ヘッダ |
| {{Ombox}} | その他 |
| {{Mbox}} | 自動判別 |
| {{Asbox}} | 記事スタブ |
| {{Dmbox}} | 曖昧さ回避 |
Dmboxは曖昧さ回避ボックス(Disambiguation footer Message BOX)用メタテンプレートです。
このテンプレートは{{ambox}}と動作も使い方もおおよそ同様です。
使い方
{{dmbox
| type =
| image =
| imageright =
| style =
| textstyle =
| text =
}}
カテゴリ
このテンプレートを貼り付けられたページには、Category:すべての曖昧さ回避が適用されます。
また{{Aimai}}など、このテンプレートを呼び出すテンプレートは、Category:曖昧さ回避メッセージボックスに分類されます。
英語版で使われているカテゴリCategory:すべての曖昧さ回避記事は、現時点では適用されません。
使用例
単純な例:
{{dmbox | text = 文章をここに}}
{{dmbox | type = setindex | text = 文章をここに}}
複雑な例:
{{dmbox
| type = setindex
| image = {{nowrap| [[Image:Schooner.svg|30px]] [[Image:List gray.svg|30px]] }}
| textstyle = color: red; font-weight: bold; font-style: normal;
| text = メッセージ本文
}}
その他の引数の組み合わせ: