「テンプレート:Navbox」の版間の差分
ナビゲーションに移動
検索に移動
細 |
(各シリーズのテンプレートにスピリット対戦データ一覧のページ及び項目を追加しようと思ったらマリオシリーズが上限に達していたのでgroup10ができるように…) |
||
(2人の利用者による、間の10版が非表示) | |||
1行目: | 1行目: | ||
− | <onlyinclude>{| class="toccolours mw-collapsible" style="width: | + | <onlyinclude>{| class="toccolours mw-collapsible" style="background:transparent;color:inherit;;min-width:100%;border-spacing:2px;border-collapse:separate;" |
|- | |- | ||
− | | colspan=2 style="text-align:center; background:#CCCCFF | + | | colspan=2 style="text-align:center; background:#CCCCFF;" {{!}} '''{{{title}}}''' |
|- | |- | ||
| class="mw-collapsible-content" {{!}} | | class="mw-collapsible-content" {{!}} | ||
|- | |- | ||
− | {{#if: {{{group1|}}} | {{!}} style="text-align:center; white-space: nowrap; background:# | + | {{#if: {{{group1|}}} | |
− | + | {{!}} style="text-align:center; white-space: nowrap; background:#DDDDFF; padding:0 1em 0 1em;" {{!}} '''{{{group1}}} ''' | |
+ | {{!}} style="width:100%;" {{!}} {{{list1}}} | | ||
+ | {{#if: {{{list1|}}} | | ||
+ | {{!}} colspan=2 style="width:100%; text-align:center;" {{!}} {{{list1}}} | ||
+ | }} | ||
+ | }} | ||
|- | |- | ||
− | {{#if: {{{group2|}}} | {{!}} style="text-align:center; white-space: nowrap; background:# | + | {{#if: {{{group2|}}} | |
− | {{#if: {{{list2|}}} | {{!}} style="width:100%;" {{!}} {{{list2}}} }} | + | {{!}} style="text-align:center; white-space: nowrap; background:#DDDDFF; padding:0 1em 0 1em;" {{!}} '''{{{group2}}} ''' |
+ | {{!}} style="width:100%;" {{!}} {{{list2}}} | | ||
+ | {{#if: {{{list2|}}} | | ||
+ | {{!}} colspan=2 style="width:100%; text-align:center;" {{!}} {{{list2}}} | ||
+ | }} | ||
+ | }} | ||
|- | |- | ||
− | {{#if: {{{group3|}}} | {{!}} style="text-align:center; white-space: nowrap; background:# | + | {{#if: {{{group3|}}} | |
− | {{#if: {{{list3|}}} | {{!}} style="width:100%;" {{!}} {{{list3}}} }} | + | {{!}} style="text-align:center; white-space: nowrap; background:#DDDDFF; padding:0 1em 0 1em;" {{!}} '''{{{group3}}} ''' |
+ | {{!}} style="width:100%;" {{!}} {{{list3}}} | | ||
+ | {{#if: {{{list3|}}} | | ||
+ | {{!}} colspan=2 style="width:100%; text-align:center;" {{!}} {{{list3}}} | ||
+ | }} | ||
+ | }} | ||
|- | |- | ||
− | {{#if: {{{group4|}}} | {{!}} style="text-align:center; white-space: nowrap; background:# | + | {{#if: {{{group4|}}} | |
− | {{#if: {{{list4|}}} | {{!}} style="width:100%;" {{!}} {{{list4}}} }} | + | {{!}} style="text-align:center; white-space: nowrap; background:#DDDDFF; padding:0 1em 0 1em;" {{!}} '''{{{group4}}} ''' |
+ | {{!}} style="width:100%;" {{!}} {{{list4}}} | | ||
+ | {{#if: {{{list4|}}} | | ||
+ | {{!}} colspan=2 style="width:100%; text-align:center;" {{!}} {{{list4}}} | ||
+ | }} | ||
+ | }} | ||
|- | |- | ||
− | {{#if: {{{group5|}}} | {{!}} style="text-align:center; white-space: nowrap; background:# | + | {{#if: {{{group5|}}} | |
− | {{#if: {{{list5|}}} | {{!}} style="width:100%;" {{!}} {{{list5}}} }} | + | {{!}} style="text-align:center; white-space: nowrap; background:#DDDDFF; padding:0 1em 0 1em;" {{!}} '''{{{group5}}} ''' |
+ | {{!}} style="width:100%;" {{!}} {{{list5}}} | | ||
+ | {{#if: {{{list5|}}} | | ||
+ | {{!}} colspan=2 style="width:100%; text-align:center;" {{!}} {{{list5}}} | ||
+ | }} | ||
+ | }} | ||
|- | |- | ||
− | {{#if: {{{group6|}}} | {{!}} style="text-align:center; white-space: nowrap; background:# | + | {{#if: {{{group6|}}} | |
− | {{#if: {{{list6|}}} | {{!}} style="width:100%;" {{!}} {{{list6}}} }} | + | {{!}} style="text-align:center; white-space: nowrap; background:#DDDDFF; padding:0 1em 0 1em;" {{!}} '''{{{group6}}} ''' |
+ | {{!}} style="width:100%;" {{!}} {{{list6}}} | | ||
+ | {{#if: {{{list6|}}} | | ||
+ | {{!}} colspan=2 style="width:100%; text-align:center;" {{!}} {{{list6}}} | ||
+ | }} | ||
+ | }} | ||
|- | |- | ||
− | {{#if: {{{group7|}}} | {{!}} style="text-align:center; white-space: nowrap; background:# | + | {{#if: {{{group7|}}} | |
− | {{#if: {{{list7|}}} | {{!}} style="width:100%;" {{!}} {{{list7}}} }} | + | {{!}} style="text-align:center; white-space: nowrap; background:#DDDDFF; padding:0 1em 0 1em;" {{!}} '''{{{group7}}} ''' |
+ | {{!}} style="width:100%;" {{!}} {{{list7}}} | | ||
+ | {{#if: {{{list7|}}} | | ||
+ | {{!}} colspan=2 style="width:100%; text-align:center;" {{!}} {{{list7}}} | ||
+ | }} | ||
+ | }} | ||
+ | |- | ||
+ | {{#if: {{{group8|}}} | | ||
+ | {{!}} style="text-align:center; white-space: nowrap; background:#DDDDFF; padding:0 1em 0 1em;" {{!}} '''{{{group8}}} ''' | ||
+ | {{!}} style="width:100%;" {{!}} {{{list8}}} | | ||
+ | {{#if: {{{list8|}}} | | ||
+ | {{!}} colspan=2 style="width:100%; text-align:center;" {{!}} {{{list8}}} | ||
+ | }} | ||
+ | }} | ||
+ | |- | ||
+ | {{#if: {{{group9|}}} | | ||
+ | {{!}} style="text-align:center; white-space: nowrap; background:#DDDDFF; padding:0 1em 0 1em;" {{!}} '''{{{group9}}} ''' | ||
+ | {{!}} style="width:100%;" {{!}} {{{list9}}} | | ||
+ | {{#if: {{{list9|}}} | | ||
+ | {{!}} colspan=2 style="width:100%; text-align:center;" {{!}} {{{list9}}} | ||
+ | }} | ||
+ | }} | ||
+ | |- | ||
+ | {{#if: {{{group10|}}} | | ||
+ | {{!}} style="text-align:center; white-space: nowrap; background:#DDDDFF; padding:0 1em 0 1em;" {{!}} '''{{{group10}}} ''' | ||
+ | {{!}} style="width:100%;" {{!}} {{{list10}}} | | ||
+ | {{#if: {{{list10|}}} | | ||
+ | {{!}} colspan=2 style="width:100%; text-align:center;" {{!}} {{{list10}}} | ||
+ | }} | ||
+ | }} | ||
|}</onlyinclude> | |}</onlyinclude> | ||
mw-collapsibleを使ったNavbox。本家とはやや異なります。 | mw-collapsibleを使ったNavbox。本家とはやや異なります。 | ||
+ | == 使用方法 == | ||
+ | <pre> | ||
+ | {{navbox | ||
+ | |title=タイトル | ||
+ | |group1=グループ1 | ||
+ | |list1=リスト1 | ||
+ | |group2=グループ2 | ||
+ | |list2=リスト2 | ||
+ | }} | ||
+ | </pre> | ||
+ | {{navbox | ||
+ | |title=タイトル | ||
+ | |group1=グループ1 | ||
+ | |list1=リスト1 | ||
+ | |group2=グループ2 | ||
+ | |list2=リスト2 | ||
+ | }} | ||
+ | グループ・リストは現在10個まで可能。11個以上必要になったらこのテンプレートのソースを編集してください。 | ||
+ | |||
+ | |||
+ | グループを記入しないことも可能。 | ||
+ | <pre> | ||
+ | {{navbox | ||
+ | |title=タイトル | ||
+ | |list1=リスト1 | ||
+ | }} | ||
+ | </pre> | ||
+ | |||
+ | {{navbox | ||
+ | |title=タイトル | ||
+ | |list1=リスト1 | ||
+ | }} | ||
− | [[カテゴリ:テンプレート]] | + | [[カテゴリ:テンプレート]][[カテゴリ:Navboxを使ったテンプレート|*T]] |
2019年9月24日 (火) 22:19時点における最新版
{{{title}}} | |
mw-collapsibleを使ったNavbox。本家とはやや異なります。
使用方法
{{navbox |title=タイトル |group1=グループ1 |list1=リスト1 |group2=グループ2 |list2=リスト2 }}
タイトル | |
グループ1 | リスト1 |
グループ2 | リスト2 |
グループ・リストは現在10個まで可能。11個以上必要になったらこのテンプレートのソースを編集してください。
グループを記入しないことも可能。
{{navbox |title=タイトル |list1=リスト1 }}
タイトル | |
リスト1 |