テンプレート:Infobox/doc
提供: Yourpedia
Infoboxテンプレートは、Infoboxを作成するためのメタテンプレートです。記事に直接使われることは想定していません。現在、条件文を使わない版を開発中ですが、テンプレートの中でタグを使われると表示が壊れるバグが解消できていないため、まだ使えません。
引数一覧
- body全体にかかる引数
- クラス(class)は「infobox」が既定値になっており、引数「bodyclass」を指定すると、「infobox (bodyclass)」というクラスになります。
- スタイル(style)は幅22em(width:22em)が規定値として設定されており、それ以外のスタイルは引数「bodystyle」で指定します。
- 最下部の、テンプレート本体への内部リンクは、引数「name」または「tnavbar」に「テンプレート:ほげほげ」の「ほげほげ」にあたる文字列を入力すると、正常に設定されます。
- 引数「child」を指定することによって、別のInfobox内に組込み可能なInfobox(Infoboxからtableタグをなくした版)にすることは、今のところ、できません。
フォーマット
{{Infobox
|bodyclass =
|bodystyle =
|title =
|titleclass =
|titlestyle =
|above =
|aboveclass =
|abovestyle =
|subheader =
|subheaderclass =
|subheaderrowclass =
|subheaderstyle =
|subheader2 =
|subheaderrowclass2 =
|image =
|imageclass =
|imagerowclass =
|imagestyle =
|caption =
|captionstyle =
|image2 =
|imagerowclass2 =
|caption2 =
|headerstyle =
|labelstyle =
|datastyle =
|header1 =
|class1 =
|label1 =
|rowclass1 =
|data1 =
|header2 =
|class2 =
|label2 =
|rowclass2 =
|data2 =
.
.
.
|header50 =
|class50 =
|label50 =
|rowclass50 =
|data50 =
|below =
|belowclass =
|belowstyle =
|tnavbar =
}}