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

ナビゲーションに移動 検索に移動
r1 - r20までif文に置き換え(hiddenStructureはテンプレート肥大化の元)
template>新幹線
編集の要約なし
template>新幹線
(r1 - r20までif文に置き換え(hiddenStructureはテンプレート肥大化の元))
65行目: 65行目:
{{ #if: {{{label5|}}} | <th style="white-space: nowrap; {{ #ifeq: {{{titletype|}}} | caption || background: #ddf; }} {{{labelstyle|}}}">
{{ #if: {{{label5|}}} | <th style="white-space: nowrap; {{ #ifeq: {{{titletype|}}} | caption || background: #ddf; }} {{{labelstyle|}}}">
{{{label5}}}</th> }}<td {{ #if: {{{label5|}}} || colspan="2" }} style="width: 100%; {{{datastyle|}}}; {{{oddstyle|}}}">
{{{label5}}}</th> }}<td {{ #if: {{{label5|}}} || colspan="2" }} style="width: 100%; {{{datastyle|}}}; {{{oddstyle|}}}">
{{{data}}}</td>
{{{data5}}}</td>
</tr> }}
</tr> }}<!--
<tr class="hiddenStructure{{{header6|}}}">
row 6
-->{{ #if: {{{header6|}}} |
<tr>
<th colspan="2" style="{{ #ifeq: {{{titletype|}}} | caption || background: #ccf; }} {{{headerstyle|}}}">
<th colspan="2" style="{{ #ifeq: {{{titletype|}}} | caption || background: #ccf; }} {{{headerstyle|}}}">
{{{header6}}}</th>
{{{header6}}}</th>
</tr>
</tr> }}{{ #if: {{{data6|}}} |
<tr class="hiddenStructure{{{data6|}}}">
<tr>
{{ #if: {{{label6|}}} | <th style="white-space: nowrap; {{ #ifeq: {{{titletype|}}} | caption || background: #ddf; }} {{{labelstyle|}}}">
{{ #if: {{{label6|}}} | <th style="white-space: nowrap; {{ #ifeq: {{{titletype|}}} | caption || background: #ddf; }} {{{labelstyle|}}}">
{{{label6}}}</th> }}<td {{ #if: {{{label6|}}} || colspan="2" }} style="width: 100%; {{{datastyle|}}}; {{{evenstyle|}}}">
{{{label6}}}</th> }}<td {{ #if: {{{label6|}}} || colspan="2" }} style="width: 100%; {{{datastyle|}}}; {{{oddstyle|}}}">
{{{data6}}}</td>
{{{data6}}}</td>
</tr>
</tr> }}<!--
<tr class="hiddenStructure{{{header7|}}}">
row 7
-->{{ #if: {{{header7|}}} |
<tr>
<th colspan="2" style="{{ #ifeq: {{{titletype|}}} | caption || background: #ccf; }} {{{headerstyle|}}}">
<th colspan="2" style="{{ #ifeq: {{{titletype|}}} | caption || background: #ccf; }} {{{headerstyle|}}}">
{{{header7}}}</th>
{{{header7}}}</th>
</tr>
</tr> }}{{ #if: {{{data7|}}} |
<tr class="hiddenStructure{{{data7|}}}">
<tr>
{{ #if: {{{label7|}}} | <th style="white-space: nowrap; {{ #ifeq: {{{titletype|}}} | caption || background: #ddf; }} {{{labelstyle|}}}">
{{ #if: {{{label7|}}} | <th style="white-space: nowrap; {{ #ifeq: {{{titletype|}}} | caption || background: #ddf; }} {{{labelstyle|}}}">
{{{label7}}}</th> }}<td {{ #if: {{{label7|}}} || colspan="2" }} style="width: 100%; {{{datastyle|}}}; {{{oddstyle|}}}">
{{{label7}}}</th> }}<td {{ #if: {{{label7|}}} || colspan="2" }} style="width: 100%; {{{datastyle|}}}; {{{oddstyle|}}}">
{{{data7}}}</td>
{{{data7}}}</td>
</tr>
</tr> }}
<tr class="hiddenStructure{{{header8|}}}">
<tr class="hiddenStructure{{{header8|}}}">
<th colspan="2" style="{{ #ifeq: {{{titletype|}}} | caption || background: #ccf; }} {{{headerstyle|}}}">
<th colspan="2" style="{{ #ifeq: {{{titletype|}}} | caption || background: #ccf; }} {{{headerstyle|}}}">
{{{header8}}}</th>
{{{header8}}}</th>
</tr>
</tr><!--
<tr class="hiddenStructure{{{data8|}}}">
row 8
-->{{ #if: {{{header8|}}} |
<tr>
<th colspan="2" style="{{ #ifeq: {{{titletype|}}} | caption || background: #ccf; }} {{{headerstyle|}}}">
{{{header8}}}</th>
</tr> }}{{ #if: {{{data8|}}} |
<tr>
{{ #if: {{{label8|}}} | <th style="white-space: nowrap; {{ #ifeq: {{{titletype|}}} | caption || background: #ddf; }} {{{labelstyle|}}}">
{{ #if: {{{label8|}}} | <th style="white-space: nowrap; {{ #ifeq: {{{titletype|}}} | caption || background: #ddf; }} {{{labelstyle|}}}">
{{{label8}}}</th> }}<td {{ #if: {{{label8|}}} || colspan="2" }} style="width: 100%; {{{datastyle|}}}; {{{evenstyle|}}}">
{{{label8}}}</th> }}<td {{ #if: {{{label8|}}} || colspan="2" }} style="width: 100%; {{{datastyle|}}}; {{{oddstyle|}}}">
{{{data8}}}</td>
{{{data8}}}</td>
</tr>
</tr> }}<!--
<tr class="hiddenStructure{{{header9|}}}">
row 9
-->{{ #if: {{{header9|}}} |
<tr>
<th colspan="2" style="{{ #ifeq: {{{titletype|}}} | caption || background: #ccf; }} {{{headerstyle|}}}">
<th colspan="2" style="{{ #ifeq: {{{titletype|}}} | caption || background: #ccf; }} {{{headerstyle|}}}">
{{{header9}}}</th>
{{{header9}}}</th>
</tr>
</tr> }}{{ #if: {{{data9|}}} |
<tr class="hiddenStructure{{{data9|}}}">
<tr>
{{ #if: {{{label9|}}} | <th style="white-space: nowrap; {{ #ifeq: {{{titletype|}}} | caption || background: #ddf; }} {{{labelstyle|}}}">
{{ #if: {{{label9|}}} | <th style="white-space: nowrap; {{ #ifeq: {{{titletype|}}} | caption || background: #ddf; }} {{{labelstyle|}}}">
{{{label9}}}</th> }}<td {{ #if: {{{label9|}}} || colspan="2" }} style="width: 100%; {{{datastyle|}}}; {{{oddstyle|}}}">
{{{label9}}}</th> }}<td {{ #if: {{{label9|}}} || colspan="2" }} style="width: 100%; {{{datastyle|}}}; {{{oddstyle|}}}">
{{{data9}}}</td>
{{{data9}}}</td>
</tr>
</tr> }}<!--
<tr class="hiddenStructure{{{header10|}}}">
row 10
-->{{ #if: {{{header10|}}} |
<tr>
<th colspan="2" style="{{ #ifeq: {{{titletype|}}} | caption || background: #ccf; }} {{{headerstyle|}}}">
<th colspan="2" style="{{ #ifeq: {{{titletype|}}} | caption || background: #ccf; }} {{{headerstyle|}}}">
{{{header10}}}</th>
{{{header10}}}</th>
</tr>
</tr> }}{{ #if: {{{data10|}}} |
<tr class="hiddenStructure{{{data10|}}}">
<tr>
{{ #if: {{{label10|}}} | <th style="white-space: nowrap; {{ #ifeq: {{{titletype|}}} | caption || background: #ddf; }} {{{labelstyle|}}}">
{{ #if: {{{label10|}}} | <th style="white-space: nowrap; {{ #ifeq: {{{titletype|}}} | caption || background: #ddf; }} {{{labelstyle|}}}">
{{{label10}}}</th> }}<td {{ #if: {{{label10|}}} || colspan="2" }} style="width: 100%; {{{datastyle|}}}; {{{evenstyle|}}}">
{{{label10}}}</th> }}<td {{ #if: {{{label10|}}} || colspan="2" }} style="width: 100%; {{{datastyle|}}}; {{{oddstyle|}}}">
{{{data10}}}</td>
{{{data10}}}</td>
</tr>
</tr> }}<!--
<tr class="hiddenStructure{{{header11|}}}">
row 11
-->{{ #if: {{{header11|}}} |
<tr>
<th colspan="2" style="{{ #ifeq: {{{titletype|}}} | caption || background: #ccf; }} {{{headerstyle|}}}">
<th colspan="2" style="{{ #ifeq: {{{titletype|}}} | caption || background: #ccf; }} {{{headerstyle|}}}">
{{{header11}}}</th>
{{{header11}}}</th>
</tr>
</tr> }}{{ #if: {{{data11|}}} |
<tr class="hiddenStructure{{{data11|}}}">
<tr>
{{ #if: {{{label11|}}} | <th style="white-space: nowrap; {{ #ifeq: {{{titletype|}}} | caption || background: #ddf; }} {{{labelstyle|}}}">
{{ #if: {{{label11|}}} | <th style="white-space: nowrap; {{ #ifeq: {{{titletype|}}} | caption || background: #ddf; }} {{{labelstyle|}}}">
{{{label11}}}</th> }}<td {{ #if: {{{label11|}}} || colspan="2" }} style="width: 100%; {{{datastyle|}}}; {{{oddstyle|}}}">
{{{label11}}}</th> }}<td {{ #if: {{{label11|}}} || colspan="2" }} style="width: 100%; {{{datastyle|}}}; {{{oddstyle|}}}">
{{{data11}}}</td>
{{{data11}}}</td>
</tr>
</tr> }}<!--
<tr class="hiddenStructure{{{header12|}}}">
row 12
-->{{ #if: {{{header12|}}} |
<tr>
<th colspan="2" style="{{ #ifeq: {{{titletype|}}} | caption || background: #ccf; }} {{{headerstyle|}}}">
<th colspan="2" style="{{ #ifeq: {{{titletype|}}} | caption || background: #ccf; }} {{{headerstyle|}}}">
{{{header12}}}</th>
{{{header12}}}</th>
</tr>
</tr> }}{{ #if: {{{data12|}}} |
<tr class="hiddenStructure{{{data12|}}}">
<tr>
{{ #if: {{{label12|}}} | <th style="white-space: nowrap; {{ #ifeq: {{{titletype|}}} | caption || background: #ddf; }} {{{labelstyle|}}}">
{{ #if: {{{label12|}}} | <th style="white-space: nowrap; {{ #ifeq: {{{titletype|}}} | caption || background: #ddf; }} {{{labelstyle|}}}">
{{{label12}}}</th> }}<td {{ #if: {{{label12|}}} || colspan="2" }} style="width: 100%; {{{datastyle|}}}; {{{evenstyle|}}}">
{{{label12}}}</th> }}<td {{ #if: {{{label12|}}} || colspan="2" }} style="width: 100%; {{{datastyle|}}}; {{{oddstyle|}}}">
{{{data12}}}</td>
{{{data12}}}</td>
</tr>
</tr> }}<!--
<tr class="hiddenStructure{{{header13|}}}">
row 13
-->{{ #if: {{{header13|}}} |
<tr>
<th colspan="2" style="{{ #ifeq: {{{titletype|}}} | caption || background: #ccf; }} {{{headerstyle|}}}">
<th colspan="2" style="{{ #ifeq: {{{titletype|}}} | caption || background: #ccf; }} {{{headerstyle|}}}">
{{{header13}}}</th>
{{{header13}}}</th>
</tr>
</tr> }}{{ #if: {{{data13|}}} |
<tr class="hiddenStructure{{{data13|}}}">
<tr>
{{ #if: {{{label13|}}} | <th style="white-space: nowrap; {{ #ifeq: {{{titletype|}}} | caption || background: #ddf; }} {{{labelstyle|}}}">
{{ #if: {{{label13|}}} | <th style="white-space: nowrap; {{ #ifeq: {{{titletype|}}} | caption || background: #ddf; }} {{{labelstyle|}}}">
{{{label13}}}</th> }}<td {{ #if: {{{label13|}}} || colspan="2" }} style="width: 100%; {{{datastyle|}}}; {{{oddstyle|}}}">
{{{label13}}}</th> }}<td {{ #if: {{{label13|}}} || colspan="2" }} style="width: 100%; {{{datastyle|}}}; {{{oddstyle|}}}">
{{{data13}}}</td>
{{{data13}}}</td>
</tr>
</tr> }}<!--
<tr class="hiddenStructure{{{header14|}}}">
row 14
-->{{ #if: {{{header14|}}} |
<tr>
<th colspan="2" style="{{ #ifeq: {{{titletype|}}} | caption || background: #ccf; }} {{{headerstyle|}}}">
<th colspan="2" style="{{ #ifeq: {{{titletype|}}} | caption || background: #ccf; }} {{{headerstyle|}}}">
{{{header14}}}</th>
{{{header14}}}</th>
</tr>
</tr> }}{{ #if: {{{data14|}}} |
<tr class="hiddenStructure{{{data14|}}}">
<tr>
{{ #if: {{{label14|}}} | <th style="white-space: nowrap; {{ #ifeq: {{{titletype|}}} | caption || background: #ddf; }} {{{labelstyle|}}}">
{{ #if: {{{label14|}}} | <th style="white-space: nowrap; {{ #ifeq: {{{titletype|}}} | caption || background: #ddf; }} {{{labelstyle|}}}">
{{{label14}}}</th> }}<td {{ #if: {{{label14|}}} || colspan="2" }} style="width: 100%; {{{datastyle|}}}; {{{evenstyle|}}}">
{{{label14}}}</th> }}<td {{ #if: {{{label14|}}} || colspan="2" }} style="width: 100%; {{{datastyle|}}}; {{{oddstyle|}}}">
{{{data14}}}</td>
{{{data14}}}</td>
</tr>
</tr> }}<!--
<tr class="hiddenStructure{{{header15|}}}">
row 15
-->{{ #if: {{{header15|}}} |
<tr>
<th colspan="2" style="{{ #ifeq: {{{titletype|}}} | caption || background: #ccf; }} {{{headerstyle|}}}">
<th colspan="2" style="{{ #ifeq: {{{titletype|}}} | caption || background: #ccf; }} {{{headerstyle|}}}">
{{{header15}}}</th>
{{{header15}}}</th>
</tr>
</tr> }}{{ #if: {{{data15|}}} |
<tr class="hiddenStructure{{{data15|}}}">
<tr>
{{ #if: {{{label15|}}} | <th style="white-space: nowrap; {{ #ifeq: {{{titletype|}}} | caption || background: #ddf; }} {{{labelstyle|}}}">
{{ #if: {{{label15|}}} | <th style="white-space: nowrap; {{ #ifeq: {{{titletype|}}} | caption || background: #ddf; }} {{{labelstyle|}}}">
{{{label15}}}</th> }}<td {{ #if: {{{label15|}}} || colspan="2" }} style="width: 100%; {{{datastyle|}}}; {{{oddstyle|}}}">
{{{label15}}}</th> }}<td {{ #if: {{{label15|}}} || colspan="2" }} style="width: 100%; {{{datastyle|}}}; {{{oddstyle|}}}">
{{{data15}}}</td>
{{{data15}}}</td>
</tr>
</tr> }}<!--
<tr class="hiddenStructure{{{header16|}}}">
row 16
-->{{ #if: {{{header16|}}} |
<tr>
<th colspan="2" style="{{ #ifeq: {{{titletype|}}} | caption || background: #ccf; }} {{{headerstyle|}}}">
<th colspan="2" style="{{ #ifeq: {{{titletype|}}} | caption || background: #ccf; }} {{{headerstyle|}}}">
{{{header16}}}</th>
{{{header16}}}</th>
</tr>
</tr> }}{{ #if: {{{data16|}}} |
<tr class="hiddenStructure{{{data16|}}}">
<tr>
{{ #if: {{{label16|}}} | <th style="white-space: nowrap; {{ #ifeq: {{{titletype|}}} | caption || background: #ddf; }} {{{labelstyle|}}}">
{{ #if: {{{label16|}}} | <th style="white-space: nowrap; {{ #ifeq: {{{titletype|}}} | caption || background: #ddf; }} {{{labelstyle|}}}">
{{{label16}}}</th> }}<td {{ #if: {{{label16|}}} || colspan="2" }} style="width: 100%; {{{datastyle|}}}; {{{evenstyle|}}}">
{{{label16}}}</th> }}<td {{ #if: {{{label16|}}} || colspan="2" }} style="width: 100%; {{{datastyle|}}}; {{{oddstyle|}}}">
{{{data16}}}</td>
{{{data16}}}</td>
</tr>
</tr> }}<!--
<tr class="hiddenStructure{{{header17|}}}">
row 17
-->{{ #if: {{{header17|}}} |
<tr>
<th colspan="2" style="{{ #ifeq: {{{titletype|}}} | caption || background: #ccf; }} {{{headerstyle|}}}">
<th colspan="2" style="{{ #ifeq: {{{titletype|}}} | caption || background: #ccf; }} {{{headerstyle|}}}">
{{{header17}}}</th>
{{{header17}}}</th>
</tr>
</tr> }}{{ #if: {{{data17|}}} |
<tr class="hiddenStructure{{{data17|}}}">
<tr>
{{ #if: {{{label17|}}} | <th style="white-space: nowrap; {{ #ifeq: {{{titletype|}}} | caption || background: #ddf; }} {{{labelstyle|}}}">
{{ #if: {{{label17|}}} | <th style="white-space: nowrap; {{ #ifeq: {{{titletype|}}} | caption || background: #ddf; }} {{{labelstyle|}}}">
{{{label17}}}</th> }}<td {{ #if: {{{label17|}}} || colspan="2" }} style="width: 100%; {{{datastyle|}}}; {{{oddstyle|}}}">
{{{label17}}}</th> }}<td {{ #if: {{{label17|}}} || colspan="2" }} style="width: 100%; {{{datastyle|}}}; {{{oddstyle|}}}">
{{{data17}}}</td>
{{{data17}}}</td>
</tr>
</tr> }}<!--
<tr class="hiddenStructure{{{header18|}}}">
row 18
-->{{ #if: {{{header18|}}} |
<tr>
<th colspan="2" style="{{ #ifeq: {{{titletype|}}} | caption || background: #ccf; }} {{{headerstyle|}}}">
<th colspan="2" style="{{ #ifeq: {{{titletype|}}} | caption || background: #ccf; }} {{{headerstyle|}}}">
{{{header18}}}</th>
{{{header18}}}</th>
</tr>
</tr> }}{{ #if: {{{data18|}}} |
<tr class="hiddenStructure{{{data18|}}}">
<tr>
{{ #if: {{{label18|}}} | <th style="white-space: nowrap; {{ #ifeq: {{{titletype|}}} | caption || background: #ddf; }} {{{labelstyle|}}}">
{{ #if: {{{label18|}}} | <th style="white-space: nowrap; {{ #ifeq: {{{titletype|}}} | caption || background: #ddf; }} {{{labelstyle|}}}">
{{{label18}}}</th> }}<td {{ #if: {{{label18|}}} || colspan="2" }} style="width: 100%; {{{datastyle|}}}; {{{evenstyle|}}}">
{{{label18}}}</th> }}<td {{ #if: {{{label18|}}} || colspan="2" }} style="width: 100%; {{{datastyle|}}}; {{{oddstyle|}}}">
{{{data18}}}</td>
{{{data18}}}</td>
</tr>
</tr> }}<!--
<tr class="hiddenStructure{{{header19|}}}">
row 19
-->{{ #if: {{{header19|}}} |
<tr>
<th colspan="2" style="{{ #ifeq: {{{titletype|}}} | caption || background: #ccf; }} {{{headerstyle|}}}">
<th colspan="2" style="{{ #ifeq: {{{titletype|}}} | caption || background: #ccf; }} {{{headerstyle|}}}">
{{{header19}}}</th>
{{{header19}}}</th>
</tr>
</tr> }}{{ #if: {{{data19|}}} |
<tr class="hiddenStructure{{{data19|}}}">
<tr>
{{ #if: {{{label19|}}} | <th style="white-space: nowrap; {{ #ifeq: {{{titletype|}}} | caption || background: #ddf; }} {{{labelstyle|}}}">
{{ #if: {{{label19|}}} | <th style="white-space: nowrap; {{ #ifeq: {{{titletype|}}} | caption || background: #ddf; }} {{{labelstyle|}}}">
{{{label19}}}</th> }}<td {{ #if: {{{label19|}}} || colspan="2" }} style="width: 100%; {{{datastyle|}}}; {{{oddstyle|}}}">
{{{label19}}}</th> }}<td {{ #if: {{{label19|}}} || colspan="2" }} style="width: 100%; {{{datastyle|}}}; {{{oddstyle|}}}">
{{{data19}}}</td>
{{{data19}}}</td>
</tr>
</tr> }}<!--
<tr class="hiddenStructure{{{header20|}}}">
row 20
-->{{ #if: {{{header20|}}} |
<tr>
<th colspan="2" style="{{ #ifeq: {{{titletype|}}} | caption || background: #ccf; }} {{{headerstyle|}}}">
<th colspan="2" style="{{ #ifeq: {{{titletype|}}} | caption || background: #ccf; }} {{{headerstyle|}}}">
{{{header20}}}</th>
{{{header20}}}</th>
</tr>
</tr> }}{{ #if: {{{data20|}}} |
<tr class="hiddenStructure{{{data20|}}}">
<tr>
{{ #if: {{{label20|}}} | <th style="white-space: nowrap; {{ #ifeq: {{{titletype|}}} | caption || background: #ddf; }} {{{labelstyle|}}}">
{{ #if: {{{label20|}}} | <th style="white-space: nowrap; {{ #ifeq: {{{titletype|}}} | caption || background: #ddf; }} {{{labelstyle|}}}">
{{{label20}}}</th> }}<td {{ #if: {{{label20|}}} || colspan="2" }} style="width: 100%; {{{datastyle|}}}; {{{evenstyle|}}}">
{{{label20}}}</th> }}<td {{ #if: {{{label20|}}} || colspan="2" }} style="width: 100%; {{{datastyle|}}}; {{{oddstyle|}}}">
{{{data20}}}</td>
{{{data20}}}</td>
</tr>
</tr> }}
<tr class="hiddenStructure{{{header21|}}}">
<tr class="hiddenStructure{{{header21|}}}">
<th colspan="2" style="{{ #ifeq: {{{titletype|}}} | caption || background: #ccf; }} {{{headerstyle|}}}">
<th colspan="2" style="{{ #ifeq: {{{titletype|}}} | caption || background: #ccf; }} {{{headerstyle|}}}">
匿名利用者

案内メニュー