「テンプレート:Boxmenu」の版間の差分
画像サイズの修正 |
画像リンク先の追加 |
||
5行目: | 5行目: | ||
border: solid 2px #808080; | border: solid 2px #808080; | ||
background-color: #f0f0ff; | background-color: #f0f0ff; | ||
"><div class="img-width-100">{{#if: {{{画像|}}} | [[ファイル:{{{画像}}}]] }}</div><p><big><b>{{{ヘッダー|}}}</b></big><br>{{{説明|}}}</p></div> | "><div class="img-width-100">{{#if: {{{画像|}}} | [[ファイル:{{{画像}}}|{{#if: {{{画像リンク先|}}} | link={{{画像リンク先}}} }}]] }}</div><p><big><b>{{{ヘッダー|}}}</b></big><br>{{{説明|}}}</p></div> | ||
<noinclude> | <noinclude> | ||
<templatedata> | <templatedata> | ||
13行目: | 13行目: | ||
"description": "表示する画像のファイル名", | "description": "表示する画像のファイル名", | ||
"example": "疑似点灯例.JPG", | "example": "疑似点灯例.JPG", | ||
"type": " | "type": "string", | ||
"aliases": [ | "aliases": [ | ||
"1" | "1" | ||
] | |||
}, | |||
"画像リンク先": { | |||
"description": "画像のリンク先", | |||
"example": ":カテゴリ:灯器", | |||
"type": "string", | |||
"aliases": [ | |||
"4" | |||
] | ] | ||
}, | }, | ||
34行目: | 42行目: | ||
] | ] | ||
} | } | ||
} | }, | ||
"paramOrder": [ | |||
"画像", | |||
"画像リンク先", | |||
"ヘッダー", | |||
"説明" | |||
] | |||
} | } | ||
</templatedata> | </templatedata> | ||
</noinclude> | </noinclude> |