Template:Cmbox/doc
| File:Edit-copy green.svg | This is a documentation subpage for Template:Cmbox. It contains usage information, categories and other content that is not part of the original template page. |
| Message box meta-templates | |
|---|---|
| template | context |
| {{Ambox}} | article |
| {{Cmbox}} | category |
| {{Imbox}} | image |
| {{Tmbox}} | talk |
| {{Fmbox}} | footer / header |
| {{Ombox}} | other pages |
| {{Mbox}} | auto-detect |
| {{Asbox}} | article stub |
| {{Dmbox}} | disambiguation |
| Lua logo | LuaModuleを使用しています: |
Cmbox はカテゴリのメッセージボックス (Category Message BOX) 用メタテンプレートです。
このテンプレートはおおよそ {{ambox}} と同様に動作します。
ソース
{{Cmbox
| type =
| image =
| imageright =
| style =
| textstyle =
| text =
}}
使用例
{{cmbox | text = 文章をここに}}
| File:Information icon4.svg | 文章をここに |
{{cmbox
| type = style
| image = [[Image:Emblem-question-yellow.svg|40px]]
| style = width: 400px;
| textstyle = color: red; font-weight: bold; font-style: italic;
| text = メッセージ本体
}}
| File:Emblem-question-yellow.svg | メッセージ本体 |
タイプ
| File:Ambox warning pn.svg | type=speedy |
| File:Ambox warning pn.svg | type=delete |
| File:Ambox important.svg | type=content |
| File:Edit-clear.svg | type=style |
| File:Information icon4.svg | type=notice |
| File:Merge-split-transwiki default.svg | type=move |
| File:Semi-protection-shackle-keyhole.svg | type=protection |
引数
| 引数 | 指定内容 | 既定値 | 説明 |
|---|---|---|---|
| type | speedy / delete / content / style / notice / move / protection |
||
| image | 画像 | ||
| imageright | 画像 | ||
| style | CSS値 | ||
| textstyle | CSS値 | ||
| text | テキスト |
カテゴリ
このテンプレートは、貼り付けられたページに次のカテゴリを適用します:
| カテゴリ | ソートキー | 説明 |
|---|---|---|