「テンプレート:ナビゲーションボックス」の版間の差分
細 ヘッダー2以降が省略された場合にその行を丸ごと非表示にするように変更 |
細 20行まで対応 |
||
| 20行目: | 20行目: | ||
<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> | |||
}} | |||
{{#if: {{{header5|}}} | | |||
<tr> | |||
<th style="background-color: {{{sub_header_color|#ddddff}}};">{{{header5}}}</th><td style="background-color: white;">{{{content5}}}</td> | |||
</tr> | |||
}} | |||
{{#if: {{{header6|}}} | | |||
<tr> | |||
<th style="background-color: {{{sub_header_color|#ddddff}}};">{{{header6}}}</th><td style="background-color: whitesmoke;">{{{content6}}}</td> | |||
</tr> | |||
}} | |||
{{#if: {{{header7|}}} | | |||
<tr> | |||
<th style="background-color: {{{sub_header_color|#ddddff}}};">{{{header7}}}</th><td style="background-color: white;">{{{content7}}}</td> | |||
</tr> | |||
}} | |||
{{#if: {{{header8|}}} | | |||
<tr> | |||
<th style="background-color: {{{sub_header_color|#ddddff}}};">{{{header8}}}</th><td style="background-color: whitesmoke;">{{{content8}}}</td> | |||
</tr> | |||
}} | |||
{{#if: {{{header9|}}} | | |||
<tr> | |||
<th style="background-color: {{{sub_header_color|#ddddff}}};">{{{header9}}}</th><td style="background-color: white;">{{{content9}}}</td> | |||
</tr> | |||
}} | |||
{{#if: {{{header10|}}} | | |||
<tr> | |||
<th style="background-color: {{{sub_header_color|#ddddff}}};">{{{header10}}}</th><td style="background-color: whitesmoke;">{{{content10}}}</td> | |||
</tr> | |||
}} | |||
{{#if: {{{header11|}}} | | |||
<tr> | |||
<th style="background-color: {{{sub_header_color|#ddddff}}};">{{{header11}}}</th><td style="background-color: white;">{{{content11}}}</td> | |||
</tr> | |||
}} | |||
{{#if: {{{header12|}}} | | |||
<tr> | |||
<th style="background-color: {{{sub_header_color|#ddddff}}};">{{{header12}}}</th><td style="background-color: whitesmoke;">{{{content12}}}</td> | |||
</tr> | |||
}} | |||
{{#if: {{{header13|}}} | | |||
<tr> | |||
<th style="background-color: {{{sub_header_color|#ddddff}}};">{{{header13}}}</th><td style="background-color: white;">{{{content13}}}</td> | |||
</tr> | |||
}} | |||
{{#if: {{{header14|}}} | | |||
<tr> | |||
<th style="background-color: {{{sub_header_color|#ddddff}}};">{{{header14}}}</th><td style="background-color: whitesmoke;">{{{content14}}}</td> | |||
</tr> | |||
}} | |||
{{#if: {{{header15|}}} | | |||
<tr> | |||
<th style="background-color: {{{sub_header_color|#ddddff}}};">{{{header15}}}</th><td style="background-color: white;">{{{content15}}}</td> | |||
</tr> | |||
}} | |||
{{#if: {{{header16|}}} | | |||
<tr> | |||
<th style="background-color: {{{sub_header_color|#ddddff}}};">{{{header16}}}</th><td style="background-color: whitesmoke;">{{{content16}}}</td> | |||
</tr> | |||
}} | |||
{{#if: {{{header17|}}} | | |||
<tr> | |||
<th style="background-color: {{{sub_header_color|#ddddff}}};">{{{header17}}}</th><td style="background-color: white;">{{{content17}}}</td> | |||
</tr> | |||
}} | |||
{{#if: {{{header18|}}} | | |||
<tr> | |||
<th style="background-color: {{{sub_header_color|#ddddff}}};">{{{header18}}}</th><td style="background-color: whitesmoke;">{{{content18}}}</td> | |||
</tr> | |||
}} | |||
{{#if: {{{header19|}}} | | |||
<tr> | |||
<th style="background-color: {{{sub_header_color|#ddddff}}};">{{{header19}}}</th><td style="background-color: white;">{{{content19}}}</td> | |||
</tr> | |||
}} | |||
{{#if: {{{header20|}}} | | |||
<tr> | |||
<th style="background-color: {{{sub_header_color|#ddddff}}};">{{{header20}}}</th><td style="background-color: whitesmoke;">{{{content20}}}</td> | |||
</tr> | </tr> | ||
}} | }} | ||
| 120行目: | 200行目: | ||
"label": "内容4", | "label": "内容4", | ||
"description": "4行目のナビゲーションリンクの内容を記します。", | "description": "4行目のナビゲーションリンクの内容を記します。", | ||
"example": "[[信号灯器]] | [[アーム]]", | |||
"type": "string" | |||
}, | |||
"header5": { | |||
"aliases": [ | |||
"ヘッダー5" | |||
], | |||
"label": "ヘッダー5", | |||
"description": "5行目に表示するヘッダーの文字列を記します。", | |||
"example": "サブカテゴリ名", | |||
"type": "string" | |||
}, | |||
"content5": { | |||
"aliases": [ | |||
"内容5" | |||
], | |||
"label": "内容5", | |||
"description": "5行目のナビゲーションリンクの内容を記します。", | |||
"example": "[[信号灯器]] | [[アーム]]", | |||
"type": "string" | |||
}, | |||
"header6": { | |||
"aliases": [ | |||
"ヘッダー6" | |||
], | |||
"label": "ヘッダー6", | |||
"description": "6行目に表示するヘッダーの文字列を記します。", | |||
"example": "サブカテゴリ名", | |||
"type": "string" | |||
}, | |||
"content6": { | |||
"aliases": [ | |||
"内容6" | |||
], | |||
"label": "内容6", | |||
"description": "6行目のナビゲーションリンクの内容を記します。", | |||
"example": "[[信号灯器]] | [[アーム]]", | |||
"type": "string" | |||
}, | |||
"header7": { | |||
"aliases": [ | |||
"ヘッダー7" | |||
], | |||
"label": "ヘッダー7", | |||
"description": "7行目に表示するヘッダーの文字列を記します。", | |||
"example": "サブカテゴリ名", | |||
"type": "string" | |||
}, | |||
"content7": { | |||
"aliases": [ | |||
"内容7" | |||
], | |||
"label": "内容7", | |||
"description": "7行目のナビゲーションリンクの内容を記します。", | |||
"example": "[[信号灯器]] | [[アーム]]", | |||
"type": "string" | |||
}, | |||
"header8": { | |||
"aliases": [ | |||
"ヘッダー8" | |||
], | |||
"label": "ヘッダー8", | |||
"description": "8行目に表示するヘッダーの文字列を記します。", | |||
"example": "サブカテゴリ名", | |||
"type": "string" | |||
}, | |||
"content8": { | |||
"aliases": [ | |||
"内容8" | |||
], | |||
"label": "内容8", | |||
"description": "8行目のナビゲーションリンクの内容を記します。", | |||
"example": "[[信号灯器]] | [[アーム]]", | |||
"type": "string" | |||
}, | |||
"header9": { | |||
"aliases": [ | |||
"ヘッダー9" | |||
], | |||
"label": "ヘッダー9", | |||
"description": "9行目に表示するヘッダーの文字列を記します。", | |||
"example": "サブカテゴリ名", | |||
"type": "string" | |||
}, | |||
"content9": { | |||
"aliases": [ | |||
"内容9" | |||
], | |||
"label": "内容9", | |||
"description": "9行目のナビゲーションリンクの内容を記します。", | |||
"example": "[[信号灯器]] | [[アーム]]", | |||
"type": "string" | |||
}, | |||
"header10": { | |||
"aliases": [ | |||
"ヘッダー10" | |||
], | |||
"label": "ヘッダー10", | |||
"description": "10行目に表示するヘッダーの文字列を記します。", | |||
"example": "サブカテゴリ名", | |||
"type": "string" | |||
}, | |||
"content10": { | |||
"aliases": [ | |||
"内容10" | |||
], | |||
"label": "内容10", | |||
"description": "10行目のナビゲーションリンクの内容を記します。", | |||
"example": "[[信号灯器]] | [[アーム]]", | |||
"type": "string" | |||
}, | |||
"header11": { | |||
"aliases": [ | |||
"ヘッダー11" | |||
], | |||
"label": "ヘッダー11", | |||
"description": "11行目に表示するヘッダーの文字列を記します。", | |||
"example": "サブカテゴリ名", | |||
"type": "string" | |||
}, | |||
"content11": { | |||
"aliases": [ | |||
"内容11" | |||
], | |||
"label": "内容11", | |||
"description": "11行目のナビゲーションリンクの内容を記します。", | |||
"example": "[[信号灯器]] | [[アーム]]", | |||
"type": "string" | |||
}, | |||
"header12": { | |||
"aliases": [ | |||
"ヘッダー12" | |||
], | |||
"label": "ヘッダー12", | |||
"description": "12行目に表示するヘッダーの文字列を記します。", | |||
"example": "サブカテゴリ名", | |||
"type": "string" | |||
}, | |||
"content12": { | |||
"aliases": [ | |||
"内容12" | |||
], | |||
"label": "内容12", | |||
"description": "12行目のナビゲーションリンクの内容を記します。", | |||
"example": "[[信号灯器]] | [[アーム]]", | |||
"type": "string" | |||
}, | |||
"header13": { | |||
"aliases": [ | |||
"ヘッダー13" | |||
], | |||
"label": "ヘッダー13", | |||
"description": "13行目に表示するヘッダーの文字列を記します。", | |||
"example": "サブカテゴリ名", | |||
"type": "string" | |||
}, | |||
"content13": { | |||
"aliases": [ | |||
"内容13" | |||
], | |||
"label": "内容13", | |||
"description": "13行目のナビゲーションリンクの内容を記します。", | |||
"example": "[[信号灯器]] | [[アーム]]", | |||
"type": "string" | |||
}, | |||
"header14": { | |||
"aliases": [ | |||
"ヘッダー14" | |||
], | |||
"label": "ヘッダー14", | |||
"description": "14行目に表示するヘッダーの文字列を記します。", | |||
"example": "サブカテゴリ名", | |||
"type": "string" | |||
}, | |||
"content14": { | |||
"aliases": [ | |||
"内容14" | |||
], | |||
"label": "内容14", | |||
"description": "14行目のナビゲーションリンクの内容を記します。", | |||
"example": "[[信号灯器]] | [[アーム]]", | |||
"type": "string" | |||
}, | |||
"header15": { | |||
"aliases": [ | |||
"ヘッダー15" | |||
], | |||
"label": "ヘッダー15", | |||
"description": "15行目に表示するヘッダーの文字列を記します。", | |||
"example": "サブカテゴリ名", | |||
"type": "string" | |||
}, | |||
"content15": { | |||
"aliases": [ | |||
"内容15" | |||
], | |||
"label": "内容15", | |||
"description": "15行目のナビゲーションリンクの内容を記します。", | |||
"example": "[[信号灯器]] | [[アーム]]", | |||
"type": "string" | |||
}, | |||
"header16": { | |||
"aliases": [ | |||
"ヘッダー16" | |||
], | |||
"label": "ヘッダー16", | |||
"description": "16行目に表示するヘッダーの文字列を記します。", | |||
"example": "サブカテゴリ名", | |||
"type": "string" | |||
}, | |||
"content16": { | |||
"aliases": [ | |||
"内容16" | |||
], | |||
"label": "内容16", | |||
"description": "16行目のナビゲーションリンクの内容を記します。", | |||
"example": "[[信号灯器]] | [[アーム]]", | |||
"type": "string" | |||
}, | |||
"header17": { | |||
"aliases": [ | |||
"ヘッダー17" | |||
], | |||
"label": "ヘッダー17", | |||
"description": "17行目に表示するヘッダーの文字列を記します。", | |||
"example": "サブカテゴリ名", | |||
"type": "string" | |||
}, | |||
"content17": { | |||
"aliases": [ | |||
"内容17" | |||
], | |||
"label": "内容17", | |||
"description": "17行目のナビゲーションリンクの内容を記します。", | |||
"example": "[[信号灯器]] | [[アーム]]", | |||
"type": "string" | |||
}, | |||
"header18": { | |||
"aliases": [ | |||
"ヘッダー18" | |||
], | |||
"label": "ヘッダー18", | |||
"description": "18行目に表示するヘッダーの文字列を記します。", | |||
"example": "サブカテゴリ名", | |||
"type": "string" | |||
}, | |||
"content18": { | |||
"aliases": [ | |||
"内容18" | |||
], | |||
"label": "内容18", | |||
"description": "18行目のナビゲーションリンクの内容を記します。", | |||
"example": "[[信号灯器]] | [[アーム]]", | |||
"type": "string" | |||
}, | |||
"header19": { | |||
"aliases": [ | |||
"ヘッダー19" | |||
], | |||
"label": "ヘッダー19", | |||
"description": "19行目に表示するヘッダーの文字列を記します。", | |||
"example": "サブカテゴリ名", | |||
"type": "string" | |||
}, | |||
"content19": { | |||
"aliases": [ | |||
"内容19" | |||
], | |||
"label": "内容19", | |||
"description": "19行目のナビゲーションリンクの内容を記します。", | |||
"example": "[[信号灯器]] | [[アーム]]", | |||
"type": "string" | |||
}, | |||
"header20": { | |||
"aliases": [ | |||
"ヘッダー20" | |||
], | |||
"label": "ヘッダー20", | |||
"description": "20行目に表示するヘッダーの文字列を記します。", | |||
"example": "サブカテゴリ名", | |||
"type": "string" | |||
}, | |||
"content20": { | |||
"aliases": [ | |||
"内容20" | |||
], | |||
"label": "内容20", | |||
"description": "20行目のナビゲーションリンクの内容を記します。", | |||
"example": "[[信号灯器]] | [[アーム]]", | "example": "[[信号灯器]] | [[アーム]]", | ||
"type": "string" | "type": "string" | ||
| 139行目: | 507行目: | ||
], | ], | ||
"label": "サブヘッダー色", | "label": "サブヘッダー色", | ||
"description": " | "description": "header1~header20における色の指定です。header_color同様に、デフォルトではWikiPediaの色を採用します。", | ||
"example": "#ddddff", | "example": "#ddddff", | ||
"type": "string", | "type": "string", | ||
| 146行目: | 514行目: | ||
} | } | ||
}, | }, | ||
"description": "WikiPediaの「Navbox」を再現したテンプレートとなります。再現率は100% | "description": "WikiPediaの「Navbox」を再現したテンプレートとなります。再現率は100%ではないですが、インポートしたら依存関係が多すぎたため自前でこしらえています。Wikipediaの色をなるべく再現しています。", | ||
"format": "block", | "format": "block", | ||
"paramOrder": [ | "paramOrder": [ | ||
| 160行目: | 528行目: | ||
"content3", | "content3", | ||
"header4", | "header4", | ||
"content4" | "content4", | ||
"header5", | |||
"content5", | |||
"header6", | |||
"content6", | |||
"header7", | |||
"content7", | |||
"header8", | |||
"content8", | |||
"header9", | |||
"content9", | |||
"header10", | |||
"content10", | |||
"header11", | |||
"content11", | |||
"header12", | |||
"content12", | |||
"header13", | |||
"content13", | |||
"header14", | |||
"content14", | |||
"header15", | |||
"content15", | |||
"header16", | |||
"content16", | |||
"header17", | |||
"content17", | |||
"header18", | |||
"content18", | |||
"header19", | |||
"content19", | |||
"header20", | |||
"content20" | |||
] | ] | ||
} | } | ||
</templatedata> | </templatedata> | ||
</noinclude> | </noinclude> | ||