「テンプレート:Infobox」の版間の差分

提供:関南・東山地方Wiki
ナビゲーションに移動 検索に移動
template>新幹線
(labelセルが無いときのdataセルに「text-align:center」を追加)
template>新幹線
(oddstyle、evenstyle除去。現状では不要なため)
20行目: 20行目:
<tr>
<tr>
{{ #if: {{{label1|}}} | <th style="white-space: nowrap; {{ #ifeq: {{{titletype|}}} | caption | background: #f2f2f2; | background: #ddf; }} {{{labelstyle|}}}">
{{ #if: {{{label1|}}} | <th style="white-space: nowrap; {{ #ifeq: {{{titletype|}}} | caption | background: #f2f2f2; | background: #ddf; }} {{{labelstyle|}}}">
{{{label1}}}</th> }}<td {{ #if: {{{label1|}}} || colspan="2" }} style="width: 100%; {{ #if: {{{label1|}}} || text-align: center; }} {{{datastyle|}}}; {{{oddstyle|}}}">
{{{label1}}}</th> }}<td {{ #if: {{{label1|}}} || colspan="2" }} style="width: 100%; {{ #if: {{{label1|}}} || text-align: center; }} {{{datastyle|}}}">
{{{data1}}}</td>
{{{data1}}}</td>
</tr> }}<!--
</tr> }}<!--
31行目: 31行目:
<tr>
<tr>
{{ #if: {{{label2|}}} | <th style="white-space: nowrap; {{ #ifeq: {{{titletype|}}} | caption | background: #f2f2f2; | background: #ddf; }} {{{labelstyle|}}}">
{{ #if: {{{label2|}}} | <th style="white-space: nowrap; {{ #ifeq: {{{titletype|}}} | caption | background: #f2f2f2; | background: #ddf; }} {{{labelstyle|}}}">
{{{label2}}}</th> }}<td {{ #if: {{{label2|}}} || colspan="2" }} style="width: 100%; {{ #if: {{{label2|}}} || text-align: center; }} {{{datastyle|}}}; {{{evenstyle|}}}">
{{{label2}}}</th> }}<td {{ #if: {{{label2|}}} || colspan="2" }} style="width: 100%; {{ #if: {{{label2|}}} || text-align: center; }} {{{datastyle|}}}">
{{{data2}}}</td>
{{{data2}}}</td>
</tr> }}<!--
</tr> }}<!--
42行目: 42行目:
<tr>
<tr>
{{ #if: {{{label3|}}} | <th style="white-space: nowrap; {{ #ifeq: {{{titletype|}}} | caption | background: #f2f2f2; | background: #ddf; }} {{{labelstyle|}}}">
{{ #if: {{{label3|}}} | <th style="white-space: nowrap; {{ #ifeq: {{{titletype|}}} | caption | background: #f2f2f2; | background: #ddf; }} {{{labelstyle|}}}">
{{{label3}}}</th> }}<td {{ #if: {{{label3|}}} || colspan="2" }} style="width: 100%; {{ #if: {{{label3|}}} || text-align: center; }} {{{datastyle|}}}; {{{oddstyle|}}}">
{{{label3}}}</th> }}<td {{ #if: {{{label3|}}} || colspan="2" }} style="width: 100%; {{ #if: {{{label3|}}} || text-align: center; }} {{{datastyle|}}}">
{{{data3}}}</td>
{{{data3}}}</td>
</tr> }}<!--
</tr> }}<!--
53行目: 53行目:
<tr>
<tr>
{{ #if: {{{label4|}}} | <th style="white-space: nowrap; {{ #ifeq: {{{titletype|}}} | caption | background: #f2f2f2; | background: #ddf; }} {{{labelstyle|}}}">
{{ #if: {{{label4|}}} | <th style="white-space: nowrap; {{ #ifeq: {{{titletype|}}} | caption | background: #f2f2f2; | background: #ddf; }} {{{labelstyle|}}}">
{{{label4}}}</th> }}<td {{ #if: {{{label4|}}} || colspan="2" }} style="width: 100%; {{ #if: {{{label4|}}} || text-align: center; }} {{{datastyle|}}}; {{{evenstyle|}}}">
{{{label4}}}</th> }}<td {{ #if: {{{label4|}}} || colspan="2" }} style="width: 100%; {{ #if: {{{label4|}}} || text-align: center; }} {{{datastyle|}}}">
{{{data4}}}</td>
{{{data4}}}</td>
</tr> }}<!--
</tr> }}<!--
64行目: 64行目:
<tr>
<tr>
{{ #if: {{{label5|}}} | <th style="white-space: nowrap; {{ #ifeq: {{{titletype|}}} | caption | background: #f2f2f2; | background: #ddf; }} {{{labelstyle|}}}">
{{ #if: {{{label5|}}} | <th style="white-space: nowrap; {{ #ifeq: {{{titletype|}}} | caption | background: #f2f2f2; | background: #ddf; }} {{{labelstyle|}}}">
{{{label5}}}</th> }}<td {{ #if: {{{label5|}}} || colspan="2" }} style="width: 100%; {{ #if: {{{label5|}}} || text-align: center; }} {{{datastyle|}}}; {{{oddstyle|}}}">
{{{label5}}}</th> }}<td {{ #if: {{{label5|}}} || colspan="2" }} style="width: 100%; {{ #if: {{{label5|}}} || text-align: center; }} {{{datastyle|}}}">
{{{data5}}}</td>
{{{data5}}}</td>
</tr> }}<!--
</tr> }}<!--
75行目: 75行目:
<tr>
<tr>
{{ #if: {{{label6|}}} | <th style="white-space: nowrap; {{ #ifeq: {{{titletype|}}} | caption | background: #f2f2f2; | background: #ddf; }} {{{labelstyle|}}}">
{{ #if: {{{label6|}}} | <th style="white-space: nowrap; {{ #ifeq: {{{titletype|}}} | caption | background: #f2f2f2; | background: #ddf; }} {{{labelstyle|}}}">
{{{label6}}}</th> }}<td {{ #if: {{{label6|}}} || colspan="2" }} style="width: 100%; {{ #if: {{{label6|}}} || text-align: center; }} {{{datastyle|}}}; {{{evenstyle|}}}">
{{{label6}}}</th> }}<td {{ #if: {{{label6|}}} || colspan="2" }} style="width: 100%; {{ #if: {{{label6|}}} || text-align: center; }} {{{datastyle|}}}">
{{{data6}}}</td>
{{{data6}}}</td>
</tr> }}<!--
</tr> }}<!--
86行目: 86行目:
<tr>
<tr>
{{ #if: {{{label7|}}} | <th style="white-space: nowrap; {{ #ifeq: {{{titletype|}}} | caption | background: #f2f2f2; | background: #ddf; }} {{{labelstyle|}}}">
{{ #if: {{{label7|}}} | <th style="white-space: nowrap; {{ #ifeq: {{{titletype|}}} | caption | background: #f2f2f2; | background: #ddf; }} {{{labelstyle|}}}">
{{{label7}}}</th> }}<td {{ #if: {{{label7|}}} || colspan="2" }} style="width: 100%; {{ #if: {{{label7|}}} || text-align: center; }} {{{datastyle|}}}; {{{oddstyle|}}}">
{{{label7}}}</th> }}<td {{ #if: {{{label7|}}} || colspan="2" }} style="width: 100%; {{ #if: {{{label7|}}} || text-align: center; }} {{{datastyle|}}}">
{{{data7}}}</td>
{{{data7}}}</td>
</tr> }}<!--
</tr> }}<!--
97行目: 97行目:
<tr>
<tr>
{{ #if: {{{label8|}}} | <th style="white-space: nowrap; {{ #ifeq: {{{titletype|}}} | caption | background: #f2f2f2; | background: #ddf; }} {{{labelstyle|}}}">
{{ #if: {{{label8|}}} | <th style="white-space: nowrap; {{ #ifeq: {{{titletype|}}} | caption | background: #f2f2f2; | background: #ddf; }} {{{labelstyle|}}}">
{{{label8}}}</th> }}<td {{ #if: {{{label8|}}} || colspan="2" }} style="width: 100%; {{ #if: {{{label8|}}} || text-align: center; }} {{{datastyle|}}}; {{{evenstyle|}}}">
{{{label8}}}</th> }}<td {{ #if: {{{label8|}}} || colspan="2" }} style="width: 100%; {{ #if: {{{label8|}}} || text-align: center; }} {{{datastyle|}}}">
{{{data8}}}</td>
{{{data8}}}</td>
</tr> }}<!--
</tr> }}<!--
108行目: 108行目:
<tr>
<tr>
{{ #if: {{{label9|}}} | <th style="white-space: nowrap; {{ #ifeq: {{{titletype|}}} | caption | background: #f2f2f2; | background: #ddf; }} {{{labelstyle|}}}">
{{ #if: {{{label9|}}} | <th style="white-space: nowrap; {{ #ifeq: {{{titletype|}}} | caption | background: #f2f2f2; | background: #ddf; }} {{{labelstyle|}}}">
{{{label9}}}</th> }}<td {{ #if: {{{label9|}}} || colspan="2" }} style="width: 100%; {{ #if: {{{label9|}}} || text-align: center; }} {{{datastyle|}}}; {{{oddstyle|}}}">
{{{label9}}}</th> }}<td {{ #if: {{{label9|}}} || colspan="2" }} style="width: 100%; {{ #if: {{{label9|}}} || text-align: center; }} {{{datastyle|}}}">
{{{data9}}}</td>
{{{data9}}}</td>
</tr> }}<!--
</tr> }}<!--
119行目: 119行目:
<tr>
<tr>
{{ #if: {{{label10|}}} | <th style="white-space: nowrap; {{ #ifeq: {{{titletype|}}} | caption | background: #f2f2f2; | background: #ddf; }} {{{labelstyle|}}}">
{{ #if: {{{label10|}}} | <th style="white-space: nowrap; {{ #ifeq: {{{titletype|}}} | caption | background: #f2f2f2; | background: #ddf; }} {{{labelstyle|}}}">
{{{label10}}}</th> }}<td {{ #if: {{{label10|}}} || colspan="2" }} style="width: 100%; {{ #if: {{{label10|}}} || text-align: center; }} {{{datastyle|}}}; {{{evenstyle|}}}">
{{{label10}}}</th> }}<td {{ #if: {{{label10|}}} || colspan="2" }} style="width: 100%; {{ #if: {{{label10|}}} || text-align: center; }} {{{datastyle|}}}">
{{{data10}}}</td>
{{{data10}}}</td>
</tr> }}<!--
</tr> }}<!--
130行目: 130行目:
<tr>
<tr>
{{ #if: {{{label11|}}} | <th style="white-space: nowrap; {{ #ifeq: {{{titletype|}}} | caption | background: #f2f2f2; | background: #ddf; }} {{{labelstyle|}}}">
{{ #if: {{{label11|}}} | <th style="white-space: nowrap; {{ #ifeq: {{{titletype|}}} | caption | background: #f2f2f2; | background: #ddf; }} {{{labelstyle|}}}">
{{{label11}}}</th> }}<td {{ #if: {{{label11|}}} || colspan="2" }} style="width: 100%; {{ #if: {{{label11|}}} || text-align: center; }} {{{datastyle|}}}; {{{oddstyle|}}}">
{{{label11}}}</th> }}<td {{ #if: {{{label11|}}} || colspan="2" }} style="width: 100%; {{ #if: {{{label11|}}} || text-align: center; }} {{{datastyle|}}}">
{{{data11}}}</td>
{{{data11}}}</td>
</tr> }}<!--
</tr> }}<!--
141行目: 141行目:
<tr>
<tr>
{{ #if: {{{label12|}}} | <th style="white-space: nowrap; {{ #ifeq: {{{titletype|}}} | caption | background: #f2f2f2; | background: #ddf; }} {{{labelstyle|}}}">
{{ #if: {{{label12|}}} | <th style="white-space: nowrap; {{ #ifeq: {{{titletype|}}} | caption | background: #f2f2f2; | background: #ddf; }} {{{labelstyle|}}}">
{{{label12}}}</th> }}<td {{ #if: {{{label12|}}} || colspan="2" }} style="width: 100%; {{ #if: {{{label12|}}} || text-align: center; }} {{{datastyle|}}}; {{{evenstyle|}}}">
{{{label12}}}</th> }}<td {{ #if: {{{label12|}}} || colspan="2" }} style="width: 100%; {{ #if: {{{label12|}}} || text-align: center; }} {{{datastyle|}}}">
{{{data12}}}</td>
{{{data12}}}</td>
</tr> }}<!--
</tr> }}<!--
152行目: 152行目:
<tr>
<tr>
{{ #if: {{{label13|}}} | <th style="white-space: nowrap; {{ #ifeq: {{{titletype|}}} | caption | background: #f2f2f2; | background: #ddf; }} {{{labelstyle|}}}">
{{ #if: {{{label13|}}} | <th style="white-space: nowrap; {{ #ifeq: {{{titletype|}}} | caption | background: #f2f2f2; | background: #ddf; }} {{{labelstyle|}}}">
{{{label13}}}</th> }}<td {{ #if: {{{label13|}}} || colspan="2" }} style="width: 100%; {{ #if: {{{label13|}}} || text-align: center; }} {{{datastyle|}}}; {{{oddstyle|}}}">
{{{label13}}}</th> }}<td {{ #if: {{{label13|}}} || colspan="2" }} style="width: 100%; {{ #if: {{{label13|}}} || text-align: center; }} {{{datastyle|}}}">
{{{data13}}}</td>
{{{data13}}}</td>
</tr> }}<!--
</tr> }}<!--
163行目: 163行目:
<tr>
<tr>
{{ #if: {{{label14|}}} | <th style="white-space: nowrap; {{ #ifeq: {{{titletype|}}} | caption | background: #f2f2f2; | background: #ddf; }} {{{labelstyle|}}}">
{{ #if: {{{label14|}}} | <th style="white-space: nowrap; {{ #ifeq: {{{titletype|}}} | caption | background: #f2f2f2; | background: #ddf; }} {{{labelstyle|}}}">
{{{label14}}}</th> }}<td {{ #if: {{{label14|}}} || colspan="2" }} style="width: 100%; {{ #if: {{{label14|}}} || text-align: center; }} {{{datastyle|}}}; {{{evenstyle|}}}">
{{{label14}}}</th> }}<td {{ #if: {{{label14|}}} || colspan="2" }} style="width: 100%; {{ #if: {{{label14|}}} || text-align: center; }} {{{datastyle|}}}">
{{{data14}}}</td>
{{{data14}}}</td>
</tr> }}<!--
</tr> }}<!--
174行目: 174行目:
<tr>
<tr>
{{ #if: {{{label15|}}} | <th style="white-space: nowrap; {{ #ifeq: {{{titletype|}}} | caption | background: #f2f2f2; | background: #ddf; }} {{{labelstyle|}}}">
{{ #if: {{{label15|}}} | <th style="white-space: nowrap; {{ #ifeq: {{{titletype|}}} | caption | background: #f2f2f2; | background: #ddf; }} {{{labelstyle|}}}">
{{{label15}}}</th> }}<td {{ #if: {{{label15|}}} || colspan="2" }} style="width: 100%; {{ #if: {{{label15|}}} || text-align: center; }} {{{datastyle|}}}; {{{oddstyle|}}}">
{{{label15}}}</th> }}<td {{ #if: {{{label15|}}} || colspan="2" }} style="width: 100%; {{ #if: {{{label15|}}} || text-align: center; }} {{{datastyle|}}}">
{{{data15}}}</td>
{{{data15}}}</td>
</tr> }}<!--
</tr> }}<!--
185行目: 185行目:
<tr>
<tr>
{{ #if: {{{label16|}}} | <th style="white-space: nowrap; {{ #ifeq: {{{titletype|}}} | caption | background: #f2f2f2; | background: #ddf; }} {{{labelstyle|}}}">
{{ #if: {{{label16|}}} | <th style="white-space: nowrap; {{ #ifeq: {{{titletype|}}} | caption | background: #f2f2f2; | background: #ddf; }} {{{labelstyle|}}}">
{{{label16}}}</th> }}<td {{ #if: {{{label16|}}} || colspan="2" }} style="width: 100%; {{ #if: {{{label16|}}} || text-align: center; }} {{{datastyle|}}}; {{{evenstyle|}}}">
{{{label16}}}</th> }}<td {{ #if: {{{label16|}}} || colspan="2" }} style="width: 100%; {{ #if: {{{label16|}}} || text-align: center; }} {{{datastyle|}}}">
{{{data16}}}</td>
{{{data16}}}</td>
</tr> }}<!--
</tr> }}<!--
196行目: 196行目:
<tr>
<tr>
{{ #if: {{{label17|}}} | <th style="white-space: nowrap; {{ #ifeq: {{{titletype|}}} | caption | background: #f2f2f2; | background: #ddf; }} {{{labelstyle|}}}">
{{ #if: {{{label17|}}} | <th style="white-space: nowrap; {{ #ifeq: {{{titletype|}}} | caption | background: #f2f2f2; | background: #ddf; }} {{{labelstyle|}}}">
{{{label17}}}</th> }}<td {{ #if: {{{label17|}}} || colspan="2" }} style="width: 100%; {{ #if: {{{label17|}}} || text-align: center; }} {{{datastyle|}}}; {{{oddstyle|}}}">
{{{label17}}}</th> }}<td {{ #if: {{{label17|}}} || colspan="2" }} style="width: 100%; {{ #if: {{{label17|}}} || text-align: center; }} {{{datastyle|}}}">
{{{data17}}}</td>
{{{data17}}}</td>
</tr> }}<!--
</tr> }}<!--
207行目: 207行目:
<tr>
<tr>
{{ #if: {{{label18|}}} | <th style="white-space: nowrap; {{ #ifeq: {{{titletype|}}} | caption | background: #f2f2f2; | background: #ddf; }} {{{labelstyle|}}}">
{{ #if: {{{label18|}}} | <th style="white-space: nowrap; {{ #ifeq: {{{titletype|}}} | caption | background: #f2f2f2; | background: #ddf; }} {{{labelstyle|}}}">
{{{label18}}}</th> }}<td {{ #if: {{{label18|}}} || colspan="2" }} style="width: 100%; {{ #if: {{{label18|}}} || text-align: center; }} {{{datastyle|}}}; {{{evenstyle|}}}">
{{{label18}}}</th> }}<td {{ #if: {{{label18|}}} || colspan="2" }} style="width: 100%; {{ #if: {{{label18|}}} || text-align: center; }} {{{datastyle|}}}">
{{{data18}}}</td>
{{{data18}}}</td>
</tr> }}<!--
</tr> }}<!--
218行目: 218行目:
<tr>
<tr>
{{ #if: {{{label19|}}} | <th style="white-space: nowrap; {{ #ifeq: {{{titletype|}}} | caption | background: #f2f2f2; | background: #ddf; }} {{{labelstyle|}}}">
{{ #if: {{{label19|}}} | <th style="white-space: nowrap; {{ #ifeq: {{{titletype|}}} | caption | background: #f2f2f2; | background: #ddf; }} {{{labelstyle|}}}">
{{{label19}}}</th> }}<td {{ #if: {{{label19|}}} || colspan="2" }} style="width: 100%; {{ #if: {{{label19|}}} || text-align: center; }} {{{datastyle|}}}; {{{oddstyle|}}}">
{{{label19}}}</th> }}<td {{ #if: {{{label19|}}} || colspan="2" }} style="width: 100%; {{ #if: {{{label19|}}} || text-align: center; }} {{{datastyle|}}}">
{{{data19}}}</td>
{{{data19}}}</td>
</tr> }}<!--
</tr> }}<!--
229行目: 229行目:
<tr>
<tr>
{{ #if: {{{label20|}}} | <th style="white-space: nowrap; {{ #ifeq: {{{titletype|}}} | caption | background: #f2f2f2; | background: #ddf; }} {{{labelstyle|}}}">
{{ #if: {{{label20|}}} | <th style="white-space: nowrap; {{ #ifeq: {{{titletype|}}} | caption | background: #f2f2f2; | background: #ddf; }} {{{labelstyle|}}}">
{{{label20}}}</th> }}<td {{ #if: {{{label20|}}} || colspan="2" }} style="width: 100%; {{ #if: {{{label20|}}} || text-align: center; }} {{{datastyle|}}}; {{{evenstyle|}}}">
{{{label20}}}</th> }}<td {{ #if: {{{label20|}}} || colspan="2" }} style="width: 100%; {{ #if: {{{label20|}}} || text-align: center; }} {{{datastyle|}}}">
{{{data20}}}</td>
{{{data20}}}</td>
</tr> }}<!--
</tr> }}<!--
240行目: 240行目:
<tr>
<tr>
{{ #if: {{{label21|}}} | <th style="white-space: nowrap; {{ #ifeq: {{{titletype|}}} | caption | background: #f2f2f2; | background: #ddf; }} {{{labelstyle|}}}">
{{ #if: {{{label21|}}} | <th style="white-space: nowrap; {{ #ifeq: {{{titletype|}}} | caption | background: #f2f2f2; | background: #ddf; }} {{{labelstyle|}}}">
{{{label21}}}</th> }}<td {{ #if: {{{label21|}}} || colspan="2" }} style="width: 100%; {{ #if: {{{label21|}}} || text-align: center; }} {{{datastyle|}}}; {{{oddstyle|}}}">
{{{label21}}}</th> }}<td {{ #if: {{{label21|}}} || colspan="2" }} style="width: 100%; {{ #if: {{{label21|}}} || text-align: center; }} {{{datastyle|}}}">
{{{data21}}}</td>
{{{data21}}}</td>
</tr> }}<!--
</tr> }}<!--
251行目: 251行目:
<tr>
<tr>
{{ #if: {{{label22|}}} | <th style="white-space: nowrap; {{ #ifeq: {{{titletype|}}} | caption | background: #f2f2f2; | background: #ddf; }} {{{labelstyle|}}}">
{{ #if: {{{label22|}}} | <th style="white-space: nowrap; {{ #ifeq: {{{titletype|}}} | caption | background: #f2f2f2; | background: #ddf; }} {{{labelstyle|}}}">
{{{label22}}}</th> }}<td {{ #if: {{{label22|}}} || colspan="2" }} style="width: 100%; {{ #if: {{{label22|}}} || text-align: center; }} {{{datastyle|}}}; {{{evenstyle|}}}">
{{{label22}}}</th> }}<td {{ #if: {{{label22|}}} || colspan="2" }} style="width: 100%; {{ #if: {{{label22|}}} || text-align: center; }} {{{datastyle|}}}">
{{{data22}}}</td>
{{{data22}}}</td>
</tr> }}<!--
</tr> }}<!--
262行目: 262行目:
<tr>
<tr>
{{ #if: {{{label23|}}} | <th style="white-space: nowrap; {{ #ifeq: {{{titletype|}}} | caption | background: #f2f2f2; | background: #ddf; }} {{{labelstyle|}}}">
{{ #if: {{{label23|}}} | <th style="white-space: nowrap; {{ #ifeq: {{{titletype|}}} | caption | background: #f2f2f2; | background: #ddf; }} {{{labelstyle|}}}">
{{{label23}}}</th> }}<td {{ #if: {{{label23|}}} || colspan="2" }} style="width: 100%; {{ #if: {{{label23|}}} || text-align: center; }} {{{datastyle|}}}; {{{oddstyle|}}}">
{{{label23}}}</th> }}<td {{ #if: {{{label23|}}} || colspan="2" }} style="width: 100%; {{ #if: {{{label23|}}} || text-align: center; }} {{{datastyle|}}}">
{{{data23}}}</td>
{{{data23}}}</td>
</tr> }}<!--
</tr> }}<!--
273行目: 273行目:
<tr>
<tr>
{{ #if: {{{label24|}}} | <th style="white-space: nowrap; {{ #ifeq: {{{titletype|}}} | caption | background: #f2f2f2; | background: #ddf; }} {{{labelstyle|}}}">
{{ #if: {{{label24|}}} | <th style="white-space: nowrap; {{ #ifeq: {{{titletype|}}} | caption | background: #f2f2f2; | background: #ddf; }} {{{labelstyle|}}}">
{{{label24}}}</th> }}<td {{ #if: {{{label24|}}} || colspan="2" }} style="width: 100%; {{ #if: {{{label24|}}} || text-align: center; }} {{{datastyle|}}}; {{{evenstyle|}}}">
{{{label24}}}</th> }}<td {{ #if: {{{label24|}}} || colspan="2" }} style="width: 100%; {{ #if: {{{label24|}}} || text-align: center; }} {{{datastyle|}}}">
{{{data24}}}</td>
{{{data24}}}</td>
</tr> }}<!--
</tr> }}<!--
284行目: 284行目:
<tr>
<tr>
{{ #if: {{{label25|}}} | <th style="white-space: nowrap; {{ #ifeq: {{{titletype|}}} | caption | background: #f2f2f2; | background: #ddf; }} {{{labelstyle|}}}">
{{ #if: {{{label25|}}} | <th style="white-space: nowrap; {{ #ifeq: {{{titletype|}}} | caption | background: #f2f2f2; | background: #ddf; }} {{{labelstyle|}}}">
{{{label25}}}</th> }}<td {{ #if: {{{label25|}}} || colspan="2" }} style="width: 100%; {{ #if: {{{label25|}}} || text-align: center; }} {{{datastyle|}}}; {{{oddstyle|}}}">
{{{label25}}}</th> }}<td {{ #if: {{{label25|}}} || colspan="2" }} style="width: 100%; {{ #if: {{{label25|}}} || text-align: center; }} {{{datastyle|}}}">
{{{data25}}}</td>
{{{data25}}}</td>
</tr> }}<!--
</tr> }}<!--
295行目: 295行目:
<tr>
<tr>
{{ #if: {{{label26|}}} | <th style="white-space: nowrap; {{ #ifeq: {{{titletype|}}} | caption | background: #f2f2f2; | background: #ddf; }} {{{labelstyle|}}}">
{{ #if: {{{label26|}}} | <th style="white-space: nowrap; {{ #ifeq: {{{titletype|}}} | caption | background: #f2f2f2; | background: #ddf; }} {{{labelstyle|}}}">
{{{label26}}}</th> }}<td {{ #if: {{{label26|}}} || colspan="2" }} style="width: 100%; {{ #if: {{{label26|}}} || text-align: center; }} {{{datastyle|}}}; {{{evenstyle|}}}">
{{{label26}}}</th> }}<td {{ #if: {{{label26|}}} || colspan="2" }} style="width: 100%; {{ #if: {{{label26|}}} || text-align: center; }} {{{datastyle|}}}">
{{{data26}}}</td>
{{{data26}}}</td>
</tr> }}<!--
</tr> }}<!--
306行目: 306行目:
<tr>
<tr>
{{ #if: {{{label27|}}} | <th style="white-space: nowrap; {{ #ifeq: {{{titletype|}}} | caption | background: #f2f2f2; | background: #ddf; }} {{{labelstyle|}}}">
{{ #if: {{{label27|}}} | <th style="white-space: nowrap; {{ #ifeq: {{{titletype|}}} | caption | background: #f2f2f2; | background: #ddf; }} {{{labelstyle|}}}">
{{{label27}}}</th> }}<td {{ #if: {{{label27|}}} || colspan="2" }} style="width: 100%; {{ #if: {{{label27|}}} || text-align: center; }} {{{datastyle|}}}; {{{oddstyle|}}}">
{{{label27}}}</th> }}<td {{ #if: {{{label27|}}} || colspan="2" }} style="width: 100%; {{ #if: {{{label27|}}} || text-align: center; }} {{{datastyle|}}}">
{{{data27}}}</td>
{{{data27}}}</td>
</tr> }}<!--
</tr> }}<!--
317行目: 317行目:
<tr>
<tr>
{{ #if: {{{label28|}}} | <th style="white-space: nowrap; {{ #ifeq: {{{titletype|}}} | caption | background: #f2f2f2; | background: #ddf; }} {{{labelstyle|}}}">
{{ #if: {{{label28|}}} | <th style="white-space: nowrap; {{ #ifeq: {{{titletype|}}} | caption | background: #f2f2f2; | background: #ddf; }} {{{labelstyle|}}}">
{{{label28}}}</th> }}<td {{ #if: {{{label28|}}} || colspan="2" }} style="width: 100%; {{ #if: {{{label28|}}} || text-align: center; }} {{{datastyle|}}}; {{{evenstyle|}}}">
{{{label28}}}</th> }}<td {{ #if: {{{label28|}}} || colspan="2" }} style="width: 100%; {{ #if: {{{label28|}}} || text-align: center; }} {{{datastyle|}}}">
{{{data28}}}</td>
{{{data28}}}</td>
</tr> }}<!--
</tr> }}<!--
328行目: 328行目:
<tr>
<tr>
{{ #if: {{{label29|}}} | <th style="white-space: nowrap; {{ #ifeq: {{{titletype|}}} | caption | background: #f2f2f2; | background: #ddf; }} {{{labelstyle|}}}">
{{ #if: {{{label29|}}} | <th style="white-space: nowrap; {{ #ifeq: {{{titletype|}}} | caption | background: #f2f2f2; | background: #ddf; }} {{{labelstyle|}}}">
{{{label29}}}</th> }}<td {{ #if: {{{label29|}}} || colspan="2" }} style="width: 100%; {{ #if: {{{label29|}}} || text-align: center; }} {{{datastyle|}}}; {{{oddstyle|}}}">
{{{label29}}}</th> }}<td {{ #if: {{{label29|}}} || colspan="2" }} style="width: 100%; {{ #if: {{{label29|}}} || text-align: center; }} {{{datastyle|}}}">
{{{data29}}}</td>
{{{data29}}}</td>
</tr> }}<!--
</tr> }}<!--
339行目: 339行目:
<tr>
<tr>
{{ #if: {{{label30|}}} | <th style="white-space: nowrap; {{ #ifeq: {{{titletype|}}} | caption | background: #f2f2f2; | background: #ddf; }} {{{labelstyle|}}}">
{{ #if: {{{label30|}}} | <th style="white-space: nowrap; {{ #ifeq: {{{titletype|}}} | caption | background: #f2f2f2; | background: #ddf; }} {{{labelstyle|}}}">
{{{label30}}}</th> }}<td {{ #if: {{{label30|}}} || colspan="2" }} style="width: 100%; {{ #if: {{{label30|}}} || text-align: center; }} {{{datastyle|}}}; {{{evenstyle|}}}">
{{{label30}}}</th> }}<td {{ #if: {{{label30|}}} || colspan="2" }} style="width: 100%; {{ #if: {{{label30|}}} || text-align: center; }} {{{datastyle|}}}">
{{{data30}}}</td>
{{{data30}}}</td>
</tr> }}<!--
</tr> }}<!--
350行目: 350行目:
<tr>
<tr>
{{ #if: {{{label31|}}} | <th style="white-space: nowrap; {{ #ifeq: {{{titletype|}}} | caption | background: #f2f2f2; | background: #ddf; }} {{{labelstyle|}}}">
{{ #if: {{{label31|}}} | <th style="white-space: nowrap; {{ #ifeq: {{{titletype|}}} | caption | background: #f2f2f2; | background: #ddf; }} {{{labelstyle|}}}">
{{{label31}}}</th> }}<td {{ #if: {{{label31|}}} || colspan="2" }} style="width: 100%; {{ #if: {{{label31|}}} || text-align: center; }} {{{datastyle|}}}; {{{oddstyle|}}}">
{{{label31}}}</th> }}<td {{ #if: {{{label31|}}} || colspan="2" }} style="width: 100%; {{ #if: {{{label31|}}} || text-align: center; }} {{{datastyle|}}}">
{{{data31}}}</td>
{{{data31}}}</td>
</tr> }}<!--
</tr> }}<!--
361行目: 361行目:
<tr>
<tr>
{{ #if: {{{label32|}}} | <th style="white-space: nowrap; {{ #ifeq: {{{titletype|}}} | caption | background: #f2f2f2; | background: #ddf; }} {{{labelstyle|}}}">
{{ #if: {{{label32|}}} | <th style="white-space: nowrap; {{ #ifeq: {{{titletype|}}} | caption | background: #f2f2f2; | background: #ddf; }} {{{labelstyle|}}}">
{{{label32}}}</th> }}<td {{ #if: {{{label32|}}} || colspan="2" }} style="width: 100%; {{ #if: {{{label32|}}} || text-align: center; }} {{{datastyle|}}}; {{{evenstyle|}}}">
{{{label32}}}</th> }}<td {{ #if: {{{label32|}}} || colspan="2" }} style="width: 100%; {{ #if: {{{label32|}}} || text-align: center; }} {{{datastyle|}}}">
{{{data32}}}</td>
{{{data32}}}</td>
</tr> }}<!--
</tr> }}<!--
372行目: 372行目:
<tr>
<tr>
{{ #if: {{{label33|}}} | <th style="white-space: nowrap; {{ #ifeq: {{{titletype|}}} | caption | background: #f2f2f2; | background: #ddf; }} {{{labelstyle|}}}">
{{ #if: {{{label33|}}} | <th style="white-space: nowrap; {{ #ifeq: {{{titletype|}}} | caption | background: #f2f2f2; | background: #ddf; }} {{{labelstyle|}}}">
{{{label33}}}</th> }}<td {{ #if: {{{label33|}}} || colspan="2" }} style="width: 100%; {{ #if: {{{label33|}}} || text-align: center; }} {{{datastyle|}}}; {{{oddstyle|}}}">
{{{label33}}}</th> }}<td {{ #if: {{{label33|}}} || colspan="2" }} style="width: 100%; {{ #if: {{{label33|}}} || text-align: center; }} {{{datastyle|}}}">
{{{data33}}}</td>
{{{data33}}}</td>
</tr> }}<!--
</tr> }}<!--
383行目: 383行目:
<tr>
<tr>
{{ #if: {{{label34|}}} | <th style="white-space: nowrap; {{ #ifeq: {{{titletype|}}} | caption | background: #f2f2f2; | background: #ddf; }} {{{labelstyle|}}}">
{{ #if: {{{label34|}}} | <th style="white-space: nowrap; {{ #ifeq: {{{titletype|}}} | caption | background: #f2f2f2; | background: #ddf; }} {{{labelstyle|}}}">
{{{label34}}}</th> }}<td {{ #if: {{{label34|}}} || colspan="2" }} style="width: 100%; {{ #if: {{{label34|}}} || text-align: center; }} {{{datastyle|}}}; {{{evenstyle|}}}">
{{{label34}}}</th> }}<td {{ #if: {{{label34|}}} || colspan="2" }} style="width: 100%; {{ #if: {{{label34|}}} || text-align: center; }} {{{datastyle|}}}">
{{{data34}}}</td>
{{{data34}}}</td>
</tr> }}<!--
</tr> }}<!--
394行目: 394行目:
<tr>
<tr>
{{ #if: {{{label35|}}} | <th style="white-space: nowrap; {{ #ifeq: {{{titletype|}}} | caption | background: #f2f2f2; | background: #ddf; }} {{{labelstyle|}}}">
{{ #if: {{{label35|}}} | <th style="white-space: nowrap; {{ #ifeq: {{{titletype|}}} | caption | background: #f2f2f2; | background: #ddf; }} {{{labelstyle|}}}">
{{{label35}}}</th> }}<td {{ #if: {{{label35|}}} || colspan="2" }} style="width: 100%; {{ #if: {{{label35|}}} || text-align: center; }} {{{datastyle|}}}; {{{oddstyle|}}}">
{{{label35}}}</th> }}<td {{ #if: {{{label35|}}} || colspan="2" }} style="width: 100%; {{ #if: {{{label35|}}} || text-align: center; }} {{{datastyle|}}}">
{{{data35}}}</td>
{{{data35}}}</td>
</tr> }}<!--
</tr> }}<!--
405行目: 405行目:
<tr>
<tr>
{{ #if: {{{label36|}}} | <th style="white-space: nowrap; {{ #ifeq: {{{titletype|}}} | caption | background: #f2f2f2; | background: #ddf; }} {{{labelstyle|}}}">
{{ #if: {{{label36|}}} | <th style="white-space: nowrap; {{ #ifeq: {{{titletype|}}} | caption | background: #f2f2f2; | background: #ddf; }} {{{labelstyle|}}}">
{{{label36}}}</th> }}<td {{ #if: {{{label36|}}} || colspan="2" }} style="width: 100%; {{ #if: {{{label36|}}} || text-align: center; }} {{{datastyle|}}}; {{{evenstyle|}}}">
{{{label36}}}</th> }}<td {{ #if: {{{label36|}}} || colspan="2" }} style="width: 100%; {{ #if: {{{label36|}}} || text-align: center; }} {{{datastyle|}}}">
{{{data36}}}</td>
{{{data36}}}</td>
</tr> }}<!--
</tr> }}<!--
416行目: 416行目:
<tr>
<tr>
{{ #if: {{{label37|}}} | <th style="white-space: nowrap; {{ #ifeq: {{{titletype|}}} | caption | background: #f2f2f2; | background: #ddf; }} {{{labelstyle|}}}">
{{ #if: {{{label37|}}} | <th style="white-space: nowrap; {{ #ifeq: {{{titletype|}}} | caption | background: #f2f2f2; | background: #ddf; }} {{{labelstyle|}}}">
{{{label37}}}</th> }}<td {{ #if: {{{label37|}}} || colspan="2" }} style="width: 100%; {{ #if: {{{label37|}}} || text-align: center; }} {{{datastyle|}}}; {{{oddstyle|}}}">
{{{label37}}}</th> }}<td {{ #if: {{{label37|}}} || colspan="2" }} style="width: 100%; {{ #if: {{{label37|}}} || text-align: center; }} {{{datastyle|}}}">
{{{data37}}}</td>
{{{data37}}}</td>
</tr> }}<!--
</tr> }}<!--
427行目: 427行目:
<tr>
<tr>
{{ #if: {{{label38|}}} | <th style="white-space: nowrap; {{ #ifeq: {{{titletype|}}} | caption | background: #f2f2f2; | background: #ddf; }} {{{labelstyle|}}}">
{{ #if: {{{label38|}}} | <th style="white-space: nowrap; {{ #ifeq: {{{titletype|}}} | caption | background: #f2f2f2; | background: #ddf; }} {{{labelstyle|}}}">
{{{label38}}}</th> }}<td {{ #if: {{{label38|}}} || colspan="2" }} style="width: 100%; {{ #if: {{{label38|}}} || text-align: center; }} {{{datastyle|}}}; {{{evenstyle|}}}">
{{{label38}}}</th> }}<td {{ #if: {{{label38|}}} || colspan="2" }} style="width: 100%; {{ #if: {{{label38|}}} || text-align: center; }} {{{datastyle|}}}">
{{{data38}}}</td>
{{{data38}}}</td>
</tr> }}<!--
</tr> }}<!--
438行目: 438行目:
<tr>
<tr>
{{ #if: {{{label39|}}} | <th style="white-space: nowrap; {{ #ifeq: {{{titletype|}}} | caption | background: #f2f2f2; | background: #ddf; }} {{{labelstyle|}}}">
{{ #if: {{{label39|}}} | <th style="white-space: nowrap; {{ #ifeq: {{{titletype|}}} | caption | background: #f2f2f2; | background: #ddf; }} {{{labelstyle|}}}">
{{{label39}}}</th> }}<td {{ #if: {{{label39|}}} || colspan="2" }} style="width: 100%; {{ #if: {{{label39|}}} || text-align: center; }} {{{datastyle|}}}; {{{oddstyle|}}}">
{{{label39}}}</th> }}<td {{ #if: {{{label39|}}} || colspan="2" }} style="width: 100%; {{ #if: {{{label39|}}} || text-align: center; }} {{{datastyle|}}}">
{{{data39}}}</td>
{{{data39}}}</td>
</tr> }}<!--
</tr> }}<!--
449行目: 449行目:
<tr>
<tr>
{{ #if: {{{label40|}}} | <th style="white-space: nowrap; {{ #ifeq: {{{titletype|}}} | caption | background: #f2f2f2; | background: #ddf; }} {{{labelstyle|}}}">
{{ #if: {{{label40|}}} | <th style="white-space: nowrap; {{ #ifeq: {{{titletype|}}} | caption | background: #f2f2f2; | background: #ddf; }} {{{labelstyle|}}}">
{{{label40}}}</th> }}<td {{ #if: {{{label40|}}} || colspan="2" }} style="width: 100%; {{ #if: {{{label40|}}} || text-align: center; }} {{{datastyle|}}}; {{{evenstyle|}}}">
{{{label40}}}</th> }}<td {{ #if: {{{label40|}}} || colspan="2" }} style="width: 100%; {{ #if: {{{label40|}}} || text-align: center; }} {{{datastyle|}}}">
{{{data40}}}</td>
{{{data40}}}</td>
</tr> }}<!--
</tr> }}<!--

2008年3月7日 (金) 20:50時点における版

Infobox
テンプレートの解説[表示] [編集] [履歴] [キャッシュを破棄]
スクリプトエラー: モジュール「Lua banner」はありません。

使い方

このテンプレートはメタテンプレート(他のテンプレートを作成するときに使われるテンプレート)として使われることを想定しています。記事に直接使われることを想定していません。

使い方は{{Navbox}}に似ていますが、追加された機能があります。テーブルの各行は「見出し」(header) でも、ラベルとデータ対でも、単なるデータセルでもありえます。また、ある行に見出しとラベル/データ対の両方を定義すれば、ラベル/データ対は無視されます。

Infoboxの最上部以外のどこかで画像を挿入したい場合、あるいは他の「自由な形式」のデータを挿入したい場合、“data”フィールドによる行を使うように注意してください。

パラメータ

このテンプレートでは全てのパラメータを省略可能です。

タイトル

タイトルをキャプションにする場合にはtitle、最上部のヘッダセルにする場合にはaboveを使います。通常はどちらか片方を使いますが、両方使うこともできます。

title
表のキャプションに置くテキストです。
above
表の最上部に置くテキストです。
subheadern
表の最上部と画像の間に表示されるテキストです。nを指定しない場合は“n=1”と見なされます。

テキストなど

name(または tnavbar)
表の最下部の、テンプレート本体へのリンクを表示するために必要なテンプレート名です。{{subst:PAGENAME}}を使うことができますが、<includeonly></includeonly>をはさんでいる場合はsubst展開されないので注意してください。指定が無い場合はリンクが表示されません。
imagen
テンプレートの上部に表示される画像です。[[ファイル:example.png|200px]]のような、完全な画像構文を使ってください。デフォルトで中央に表示されます。nを指定しない場合は“n=1”と見なされます。
captionn
画像の下に置くテキストです。nを指定しない場合は“n=1”と見なされます。
headern
nのヘッダとして使うテキストです。
labeln
nのラベルとして使うテキストです。
datan
nのデータとして表示されるテキストです。
below
最下行に置くテキストです。脚注、関連項目、その他の情報として使われることを想定しています。

CSSスタイル

bodystyle
Infobox全体のスタイル指定です。
titlestyle
タイトルセルだけのスタイル指定です。
abovestyle
表の最上部のセルだけのスタイル指定です。
imagestyle
画像があるセル(captionも含む)のスタイル指定です。
captionstyle
captionのテキストのスタイル指定です。
headerstyle
全てのヘッダセルのスタイル指定です。
headerstylen
headernセルのスタイル指定です。
中国語版などで使われているTemplate:Infoboxとはheadernstyle。翻訳時にテンプレートを変える場合は注意してください。
labelstyle
全てのラベルセルのスタイル指定です。
labelstylen
labelnセルのスタイル指定です。
中国語版などで使われているTemplate:Infoboxとはlabelnstyle。翻訳時にテンプレートを変える場合は注意してください。
datastyle
全てのデータセルのスタイル指定です。
datastylen
datanセルのスタイル指定です。
中国語版などで使われているTemplate:Infoboxとはdatanstyle。翻訳時にテンプレートを変える場合は注意してください。
belowstyle
最下行のセルだけのスタイル指定です。

クラス

bodyclass
このパラメータは、Infobox全体の「class」属性に挿入されます。デフォルトは infobox です。そのため、このパラメータに bordered と記述すると infobox bordered となるので、表全体に罫線が引かれます。
titleclass
タイトルセルだけのクラス指定です。
subheaderrowclass
subheaderのある行のクラス指定です。
subheaderclass
subheaderのテキストのクラス指定です。
aboveclass
表の最上部のセルだけのクラス指定です。
imagerowclass
画像がある行(captionも含む)のクラス指定です。
imageclass
画像があるセル(captionも含む)のクラス指定です。
rowclassn
headernまたはdatanのある行のクラス指定です。
classn
datanセルのクラス指定です。
belowclass
表の最下行のセルだけのクラス指定です。

マイクロデータ

bodyitemtype
表全体のタイプ (URI) 指定です。
bodyitemref
表全体の参照するスコープ部分以外のID指定です。
rowitempropn
headernまたはdatanのある行全体のプロパティ指定です。
rowitemtypen
headernまたはdatanのある行全体のタイプ (URI) 指定です。
rowitemrefn
headernまたはdatanのある行全体の参照するスコープ部分以外のID指定です。
itempropn
datanセルのプロパティ指定です。
itemtypen
datanセルのタイプ (URI) 指定です。
itemrefn
datanセルの参照するスコープ部分以外のID指定です。
idn
datanセルのID指定です。


組み込み

Infoboxテンプレートのdatan|child=のパラメータを設定したInfoboxテンプレートの構文を記述することでInfobox内に別のInfoboxを組み込むことが出来ます。項目数を拡張した基礎情報テンプレートを作成できるなどの利点があります。|child=を設定しないと二重に罫線が書かれるため見た目がよくありません。

Infobox
第1サブセクション
ラベル1.1 データ1.1
第2サブセクション
ラベル2.1 データ2.1
最下部テキスト
{{Infobox
| data1 = {{Infobox
	| child = yes
	| title = 第1サブセクション
	| label1 = ラベル1.1
	| data1 = データ1.1
	}}
| data2 = {{Infobox
	| child = yes
	| title = 第2サブセクション
	| label1 = ラベル2.1
	| data1 = データ2.1
	}}
| belowstyle = 
| below = 最下部テキスト
}}

表示例

フォーマット

{{Infobox
| bodyclass      = 
| bodystyle      = 
| bodyitemtype   =
| bodyitemref    =
| titleclass     =
| titlestyle     = 
| title          =
| aboveclass     = 
| abovestyle     = 
| above          = 

| subheaderstyle = 
| subheader      = 
| subheader2     = 
.
.
.

| imagestyle     = 
| captionstyle   = 
| image          = 
| caption        = 
| image2         = 
| caption2       = 
.
.
.

| header1        = 
| label1         = 
| labelstyle1    = 
| data1          = 
| datastyle1     = 
| class1         = 
| id1            = 
| rowitemprop1   = 
| rowitemtype1   = 
| rowitemref1    = 
| itemprop1      = 
| itemtype1      = 
| itemref1       = 

| header2        = 
| label2         = 
| labelstyle2    = 
| data2          = 
| datastyle2     = 
| class2         = 
| id2            = 
| rowitemtype2   = 
| rowitemref2    = 
| itemprop2      = 
| itemtype2      = 
| itemref2       = 
.
.
.

| belowclass     = 
| belowstyle     = 
| below          = 
}}

関連テンプレート