テンプレート:Ombox/doc
{{#invoke:Message box|ombox}}
{{#invoke:Lua banner|main}} テンプレート:Mbox templates Ombox は その他のページ (Other) メッセージボックス用メタテンプレートです。
このメッセージボックスは、各種の名前空間(利用者、Wikipedia、MediaWiki、Template、Help、Portal や将来登場するであろう名前空間)のページ、つまり、テンプレート:tl、テンプレート:tl、テンプレート:tl、テンプレート:tlによってカバーされていないページで使用するものです。したがって、これは記事やノートページ、カテゴリページで使うべきではありません。
このテンプレートはおおよそ テンプレート:tl と同様に動作します。
使い方
{{ombox
| type =
| image =
| imageright =
| style =
| textstyle =
| text =
| small =
| smallimage =
| smallimageright =
| smalltext =
}}
タイプ
通常版
{{#invoke:Message box|ombox}} {{#invoke:Message box|ombox}} {{#invoke:Message box|ombox}} {{#invoke:Message box|ombox}} {{#invoke:Message box|ombox}} {{#invoke:Message box|ombox}} {{#invoke:Message box|ombox}}
小型版
{{#invoke:Message box|ombox}} {{#invoke:Message box|ombox}} {{#invoke:Message box|ombox}} {{#invoke:Message box|ombox}} {{#invoke:Message box|ombox}} {{#invoke:Message box|ombox}} {{#invoke:Message box|ombox}}
引数
| 引数 | 指定内容 | 既定値 | 説明 |
|---|---|---|---|
| type | speedy / delete / content / style / notice / move / protection |
||
| image | 画像 | ||
| imageright | 画像 | ||
| style | CSS値 | ||
| textstyle | CSS値 | ||
| text | テキスト | ||
| small | yes or no | yesで小型版にする | |
| smallimage | 画像 | ||
| smallimageright | 画像 | ||
| smalltext | テキスト |
カテゴリ
このテンプレートは、貼り付けられたページに次のカテゴリを適用します:
| カテゴリ | ソートキー | 説明 |
|---|---|---|
使用例
{{ombox | text = 文章をここに}}
{{ombox
| type = style
| image = [[Image:Emblem-question-yellow.svg|40px]]
| style = width: 400px;
| textstyle = color: red; font-weight: bold; font-style: italic;
| text = メッセージボックステキスト
}}
関連項目
- テンプレート:tl - 記事用
- テンプレート:tl - ノートページ用
- テンプレート:tl - カテゴリ用
- テンプレート:tl - その他のページ用
- テンプレート:tl - 名前空間を自動判定して表示形式を変えるメッセージボックス
