「テンプレート:ナビゲーションボックス」の版間の差分

編集の要約なし
ヘッダー2以降が省略された場合にその行を丸ごと非表示にするように変更
7行目: 7行目:
<th style="background-color: {{{sub_header_color|#ddddff}}}; width: 25%;">{{{header1}}}</th><td style="background-color: white;">{{{content1}}}</td>
<th style="background-color: {{{sub_header_color|#ddddff}}}; width: 25%;">{{{header1}}}</th><td style="background-color: white;">{{{content1}}}</td>
</tr>
</tr>
{{#if: {{{header2|}}} |
<tr>
<tr>
<th style="background-color: {{{sub_header_color|#ddddff}}};">{{{header2}}}</th><td style="background-color: whitesmoke;">{{{content2}}}</td>
<th style="background-color: {{{sub_header_color|#ddddff}}};">{{{header2}}}</th><td style="background-color: whitesmoke;">{{{content2}}}</td>
</tr>
</tr>
}}
{{#if: {{{header3|}}} |
<tr>
<tr>
<th style="background-color: {{{sub_header_color|#ddddff}}};">{{{header3}}}</th><td style="background-color: white;">{{{content3}}}</td>
<th style="background-color: {{{sub_header_color|#ddddff}}};">{{{header3}}}</th><td style="background-color: white;">{{{content3}}}</td>
</tr>
</tr>
}}
{{#if: {{{header4|}}} |
<tr>
<tr>
<th style="background-color: {{{sub_header_color|#ddddff}}};">{{{header4}}}</th><td style="background-color: whitesmoke;">{{{content4}}}</td>
<th style="background-color: {{{sub_header_color|#ddddff}}};">{{{header4}}}</th><td style="background-color: whitesmoke;">{{{content4}}}</td>
</tr>
</tr>
}}
</table>
</table>
|opened={{{opened|False}}}
|opened={{{opened|False}}}