「テンプレート:Infobox」の版間の差分
Dayafte82660 (トーク | 投稿記録) |
|||
| (9人の利用者による、間の17版が非表示) | |||
| 1行目: | 1行目: | ||
{{#ifeq:{{{child|}}}|yes||<table class="infobox {{{bodyclass|}}}" style="width:22em; {{{bodystyle|}}}"><!-- | |||
Caption | Caption | ||
-->{{#if:{{{title|}}}|<caption {{#if:{{{titleclass|}}}|class="{{{titleclass}}}"}} {{#if:{{{titlestyle|}}}|style="{{{titlestyle}}}"}}>{{{title}}}</caption>}}<!-- | -->{{#if:{{{title|}}}|<caption {{#if:{{{titleclass|}}}|class="{{{titleclass}}}"}} {{#if:{{{titlestyle|}}}|style="{{{titlestyle}}}"}}>{{{title}}}</caption>}}<!-- | ||
| 536行目: | 536行目: | ||
-->{{#if:{{{below|}}}|<tr><td colspan=2 {{#if:{{{belowclass|}}}|class="{{{belowclass}}}"}} style="text-align:center; {{{belowstyle|}}}">{{{below}}}</td></tr>}}<!-- | -->{{#if:{{{below|}}}|<tr><td colspan=2 {{#if:{{{belowclass|}}}|class="{{{belowclass}}}"}} style="text-align:center; {{{belowstyle|}}}">{{{below}}}</td></tr>}}<!-- | ||
Navbar | Navbar | ||
-->{{#if:{{{name|{{{tnavbar|}}}}}}|<tr class="noprint"><td colspan=2 style="text-align:right; font-size:85%;">[[{{ | -->{{#if:{{{name|{{{tnavbar|}}}}}}|<tr class="noprint"><td colspan=2 style="text-align:right; font-size:85%;">[[{{Transclude|{{{name|{{{tnavbar}}}}}}}}|テンプレートを表示]]</td></tr>}} | ||
{{#ifeq:{{{child|}}}|yes||</table>}}<noinclude> | {{#ifeq:{{{child|}}}|yes||</table>}}<noinclude> | ||
== 使い方 == | == 使い方 == | ||
| 596行目: | 596行目: | ||
==== 組み込み ==== | ==== 組み込み ==== | ||
Infoboxテンプレートのdataxにパラメータを設定したInfoboxテンプレートの構文を記述することでInfobox内に別のInfoboxを組み込むことが出来ます。項目数を拡張した基礎情報テンプレートを作成できるなどの利点があります。設定しないと二重に罫線が書かれるため見た目がよくありません。 | |||
{{Infobox | {{Infobox | ||
| data1 = {{Infobox | | data1 = {{Infobox | ||
| 631行目: | 631行目: | ||
== 表示例 == | == 表示例 == | ||
=== 通常 === | === 通常 === | ||
{{Infobox | {{Infobox | ||
| 650行目: | 650行目: | ||
| below = below | | below = below | ||
}} | }} | ||
== フォーマット == | == フォーマット == | ||
| 763行目: | 740行目: | ||
{{デフォルトソート:{{PAGENAME}}}} | {{デフォルトソート:{{PAGENAME}}}} | ||
[[カテゴリ:基礎情報テンプレート]] | [[カテゴリ:基礎情報テンプレート]] | ||
[[カテゴリ:メタテンプレート]] | [[カテゴリ:メタテンプレート]] | ||