「テンプレート:Infobox/doc」の版間の差分
提供: Yourpedia
細 (-tmp) |
(テストも兼ねて、色々書き直し) |
||
| 1行目: | 1行目: | ||
| − | + | '''Infobox'''テンプレートは、Infoboxを作成するための[[メタテンプレート]]です。記事に直接使われることは想定していません。現在、条件文を使わない版を開発中ですが、テンプレートの中でタグを使われると表示が壊れるバグが解消できていないため、まだ使えません。 | |
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | == 引数一覧 == | |
| + | *body全体にかかる引数 | ||
| + | **クラス(class)は「infobox」が既定値になっており、引数「bodyclass」を指定すると、「infobox (bodyclass)」というクラスになります。 | ||
| + | **スタイル(style)は幅22em(width:22em)が規定値として設定されており、それ以外のスタイルは引数「bodystyle」で指定します。 | ||
| + | *最下部の、テンプレート本体への内部リンクは、引数「name」または「tnavbar」に「テンプレート:ほげほげ」の「ほげほげ」にあたる文字列を入力すると、正常に設定されます。 | ||
| + | *引数「child」を指定することによって、別のInfobox内に組込み可能なInfobox(Infoboxからtableタグをなくした版)にすることは、今のところ、できません。 | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
{{Multicol}} | {{Multicol}} | ||
| − | === | + | === コンテンツ === |
| − | {{Infobox | + | {{Infobox/sandbox2 |
|title = title | |title = title | ||
|above = above | |above = above | ||
|abovestyle = background-color:#ccf | |abovestyle = background-color:#ccf | ||
|headerstyle = background-color:#ccf | |headerstyle = background-color:#ccf | ||
| − | |subheader = subheader | + | |subheader = subheader<br /> |
| − | |subheader2 = subheader2 | + | |subheader2 = subheader2<br /> |
| − | |image = | + | |image = image<br /> |
|caption = caption | |caption = caption | ||
| − | |image2 = | + | |image2 = image2<br /> |
|caption2 = caption2 | |caption2 = caption2 | ||
|header1 = header1 | |header1 = header1 | ||
| + | |label1 = label1 | ||
| + | |data1 = data1 | ||
| + | |header2 = header2 | ||
|label2 = label2 | |label2 = label2 | ||
|data2 = data2 | |data2 = data2 | ||
| + | |header3 = … | ||
| + | |label3 = … | ||
| + | |data3 = … | ||
| + | |header50 = header50 | ||
| + | |label50 = label50 | ||
| + | |data50 = data50 | ||
|belowstyle = background-color:#ccf | |belowstyle = background-color:#ccf | ||
|below = below | |below = below | ||
}} | }} | ||
{{Multicol-break}} | {{Multicol-break}} | ||
| − | === | + | === クラス === |
| − | {{Infobox | + | {{Infobox/sandbox2 |
| − | + | |title = titleclass | |
| − | |title = | + | |above = aboveclass |
| − | |above = | + | |
|abovestyle = background-color:#ccf | |abovestyle = background-color:#ccf | ||
|headerstyle = background-color:#ccf | |headerstyle = background-color:#ccf | ||
| − | |subheader = | + | |subheader = subheaderclass,<br />subheaderrowclass |
| − | |subheader2 = | + | |subheader2 = subheaderclass,<br />subheaderclass2 |
| − | |image = | + | |image = imageclass,<br />imagerowclass |
| − | |caption = | + | |caption = (なし) |
| − | |image2 = | + | |image2 = imageclass,<br />imagerowclass2 |
| − | |caption2 = | + | |caption2 = (なし) |
| − | |header1 = | + | |header1 = class1 |
| + | |label1 = rowclass1 | ||
| + | |data1 = class1, rowclass1 | ||
| + | |header2 = class2 | ||
|label2 = label2 | |label2 = label2 | ||
| − | |data2 = | + | |data2 = class2, rowclass2 |
| + | |header3 = … | ||
| + | |label3 = … | ||
| + | |data3 = … | ||
| + | |header50 = class50 | ||
| + | |label50 = rowclass50 | ||
| + | |data50 = class50, rowclass50 | ||
|belowstyle = background-color:#ccf | |belowstyle = background-color:#ccf | ||
| − | |below = below | + | |below = belowclass |
| + | }} | ||
| + | {{Multicol-break}} | ||
| + | === スタイル === | ||
| + | {{Infobox/sandbox2 | ||
| + | |title = titlestyle | ||
| + | |above = abovestyle | ||
| + | |abovestyle = background-color:#ccf | ||
| + | |headerstyle = background-color:#ccf | ||
| + | |subheader = subheaderstyle,<br />subheaderstyle1 | ||
| + | |subheader2 = subheaderstyle,<br />subheaderstyle2 | ||
| + | |image = imagestyle<br /> | ||
| + | |caption = captionstyle | ||
| + | |image2 = imagestyle<br /> | ||
| + | |caption2 = captionstyle | ||
| + | |header1 = headerstyle | ||
| + | |label1 = labelstyle | ||
| + | |data1 = datastyle | ||
| + | |header2 = 同上 | ||
| + | |label2 = 同上 | ||
| + | |data2 = 同上 | ||
| + | |header3 = … | ||
| + | |label3 = … | ||
| + | |data3 = … | ||
| + | |header50 = 同上 | ||
| + | |label50 = 同上 | ||
| + | |data50 = 同上 | ||
| + | |belowstyle = background-color:#ccf | ||
| + | |below = belowstyle | ||
}} | }} | ||
{{multicol-end}} | {{multicol-end}} | ||
| 141行目: | 97行目: | ||
== フォーマット == | == フォーマット == | ||
<pre style="overflow:auto">{{Infobox | <pre style="overflow:auto">{{Infobox | ||
| − | |bodyclass | + | |bodyclass = |
| − | |bodystyle | + | |bodystyle = |
| − | |title | + | |title = |
| − | |titlestyle | + | |titleclass = |
| − | |above | + | |titlestyle = |
| − | |abovestyle | + | |above = |
| + | |aboveclass = | ||
| + | |abovestyle = | ||
| − | |subheader | + | |subheader = |
| − | | | + | |subheaderclass = |
| − | |subheaderstyle | + | |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 = | |belowstyle = | ||
| − | | | + | |tnavbar = |
}} | }} | ||
| − | </pre | + | </pre> |
| + | <includeonly> | ||
<!--カテゴリは以下に追加してください--> | <!--カテゴリは以下に追加してください--> | ||
[[Category:基礎情報テンプレート| ]] | [[Category:基礎情報テンプレート| ]] | ||
[[Category:メタテンプレート|{{PAGENAME}}]] | [[Category:メタテンプレート|{{PAGENAME}}]] | ||
| − | + | </includeonly> | |
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
2018年5月10日 (木) 20:28時点における版
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 =
}}