コンテンツにスキップ

「テンプレート:Mbox/doc」の版間の差分

提供:信号機Wiki
羽井出 (トーク | 投稿記録)
説明の一部を信号機Wiki用に調整
羽井出 (トーク | 投稿記録)
テンプレートデータを設定
58行目: 58行目:
|  ||  ||  
|  ||  ||  
|}
|}


== カテゴリ ==
== カテゴリ ==
68行目: 70行目:
|}
|}
-->
-->
<templatedata>
{
    "description": "Mboxのテンプレートデータ",
    "params": {
        "type": {
            "label": "type",
            "type": "string",
            "description": "色と既定アイコンの選択。 protection / speedy / delete / content / style / move / notice"
        },
        "type": {
            "label": "type",
            "type": "string",
            "description": "色と既定アイコンの選択。 protection / speedy / delete / content / style / move / notice"
        },
        "image": {
            "label": "image",
            "type": "string",
            "description": "画像表示の記述。例: [[ファイル:Some image.svg|40px]] / none / blank"
        },
        "imageright": {
            "label": "imageright",
            "type": "string",
            "description": "Wiki構文による右側への画像指定。 left / no"
        },
        "small": {
            "label": "small",
            "type": "string",
            "description": "小型タイプへのスタイル切り替え。 left / no"
        },
        "printable": {
            "label": "printable"
        },
        "style": {
            "label": "style",
            "type": "string",
            "description": "CSS による外観の細かい設定。"
        },
        "background": {
            "label": "background",
            "type": "string",
            "description": "背景色の設定。 #rrggbb / #rgb / 色の名前 / transparent"
        },
        "text": {
            "label": "text",
            "type": "string",
            "required": true,
            "description": "メッセージ本文。任意の文章"
        },
        "smalltext": {
            "label": "smalltext",
            "type": "string",
            "description": "小型タイプの場合に表示するメッセージ本文。任意の文章"
        }
    }
}
</templatedata>
== 関連項目 ==
== 関連項目 ==
*{{tl|ambox}} - 記事用
*{{tl|ambox}} - 記事用

2025年1月7日 (火) 09:04時点における版

メッセージボックス
メタテンプレート
テンプレート 対象
{{Ambox}} 記事
{{Cmbox}} カテゴリ
{{Imbox}} ファイル
{{Tmbox}} ノート
{{Fmbox}} フッタ / ヘッダ
{{Ombox}} その他
{{Mbox}} 自動判別
{{Asbox}} 記事スタブ
{{Dmbox}} 曖昧さ回避

Mbox は名前空間を自動判定して動作を変える、メッセージボックス用メタテンプレートです。

このメタテンプレートは、埋め込まれている名前空間を自動判定して {{ambox}}、{{tmbox}}、 {{imbox}}、{{cmbox}}、あるいは {{ombox}}、のうちのいずれかを呼び出します。

使い方

{{mbox
| demospace =
| type  =
| image = 
| imageright = 
| style = 
| textstyle  = 
| text  = 
| small = 
| smallimage = 
| smallimageright = 
| smalltext  = 
}}

詳細は{{ambox}}を参照。

Mboxのテンプレートデータ

テンプレートパラメーター

パラメーター説明状態
typetype

色と既定アイコンの選択。 protection / speedy / delete / content / style / move / notice

文字列省略可能
imageimage

画像表示の記述。例: [[ファイル:Some image.svg|40px]] / none / blank

文字列省略可能
imagerightimageright

Wiki構文による右側への画像指定。 left / no

文字列省略可能
smallsmall

小型タイプへのスタイル切り替え。 left / no

文字列省略可能
printableprintable

説明なし

不明省略可能
stylestyle

CSS による外観の細かい設定。

文字列省略可能
backgroundbackground

背景色の設定。 #rrggbb / #rgb / 色の名前 / transparent

文字列省略可能
texttext

メッセージ本文。任意の文章

文字列必須
smalltextsmalltext

小型タイプの場合に表示するメッセージ本文。任意の文章

文字列省略可能

関連項目

  • {{ambox}} - 記事用
  • {{tmbox}} - ノートページ用
  • {{cmbox}} - カテゴリ用
  • {{ombox}} - その他のページ用
  • {{mbox}} - 名前空間を自動判定して表示形式を変えるメッセージボックス
  • {{fmbox}} - ヘッダ/フッタ用
  • {{dmbox}} - 曖昧さ回避用
  • {{asbox}} - 記事スタブ用