「テンプレート:Infobox」の版間の差分
ナビゲーションに移動
検索に移動
Margotbean (トーク | 投稿記録) (allow for description template to populate the description field; remove italics from description) |
Margotbean (トーク | 投稿記録) |
||
13行目: | 13行目: | ||
-->{{#arraydefine:edibility| {{{edibility|-300}}} |<nowiki/>}}<!-- | -->{{#arraydefine:edibility| {{{edibility|-300}}} |<nowiki/>}}<!-- | ||
-->{{#if:{{{profession|}}} | {{#arraydefine:professions|{{{profession|}}}|,|unique|sort=asc}} |}}<!-- | -->{{#if:{{{profession|}}} | {{#arraydefine:professions|{{{profession|}}}|,|unique|sort=asc}} |}}<!-- | ||
− | --><div id="infoboxborder"> | + | -->{{#switch: {{NAMESPACE}} |
− | { | + | |{{ns:User}}|{{ns:User talk}}= |
− | + | |#default=<div id="infoboxborder"> | |
− | + | {{{!}} id="infoboxtable" | |
− | + | {{!}}colspan="2" id="infoboxheader"{{!}}{{{name|{{PAGENAME}}}}} | |
− | + | {{!}}- | |
− | + | {{!}}colspan="2" style="padding-bottom:5px; text-align: center;"{{!}}{{#if:{{{image|}}}|[[File:{{{image|}}}]]|{{#if:{{{eng|}}}|[[File:{{{eng|}}}.png]]|}}}}{{#ifeq:{{{image2spacing|}}}|true|   |}}{{#if:{{{image2|}}}|[[File:{{{image2|}}}]]|}}{{#if:{{{image3|}}}|[[File:{{{image3|}}}]]|}}{{#if:{{{image4|}}}|[[File:{{{image4|}}}]]|}} | |
− | + | {{!}}- | |
− | + | {{!}}colspan="2" id="infoboxdetail" style="text-align: center;"{{!}}{{#if:{{{description|}}}|{{{description|}}}|{{Description|{{PAGENAME}}}}}} | |
+ | {{!}}- | ||
+ | {{!}}colspan="2" id="infoboxsection" style="text-align:center; padding-left: 0 !important; padding-right: 0 !important;"{{!}}情報{{#if:{{{source|}}}|<nowiki/> | ||
{{!}}- | {{!}}- | ||
{{!}}id="infoboxsection"{{!}}入手: | {{!}}id="infoboxsection"{{!}}入手: | ||
387行目: | 389行目: | ||
{{!}}id="infoboxdetail"{{!}}{{{produces|}}} | {{!}}id="infoboxdetail"{{!}}{{{produces|}}} | ||
}} | }} | ||
− | + | {{!}}}{{InfoboxSEO}}{{#seo: | |
|og:image={{#if:{{{image|}}}|{{filepath:{{{image|}}}}}}} | |og:image={{#if:{{{image|}}}|{{filepath:{{{image|}}}}}}} | ||
− | }}</div></includeonly><noinclude><br style="clear:both;" /> | + | }}</div>}}</includeonly><noinclude><br style="clear:both;" /> |
==日本の特定のパラメータ== | ==日本の特定のパラメータ== | ||
このテンプレートで'eng'パラメータを使用すると英語画像が参照されます。(ほぼ必須) | このテンプレートで'eng'パラメータを使用すると英語画像が参照されます。(ほぼ必須) | ||
<pre>{{Infobox|eng=英語画像名}}</pre>{{englishdoc}} | <pre>{{Infobox|eng=英語画像名}}</pre>{{englishdoc}} | ||
[[カテゴリ:Infoboxテンプレート]]</noinclude> | [[カテゴリ:Infoboxテンプレート]]</noinclude> |
2018年11月2日 (金) 19:29時点における版
日本の特定のパラメータ
このテンプレートで'eng'パラメータを使用すると英語画像が参照されます。(ほぼ必須)
{{Infobox|eng=英語画像名}}
このテンプレートの詳細については、英語のドキュメントページを参照してください。
使用法
このテンプレートは、関連するページに以下を入力することによって使用できます。
{{Infobox}}
結果は...
Infobox | |
情報 | |
売価: | N/A |
Error: {{#seo:}} must contain at least one non-empty attribute.