1行目: |
1行目: |
− | <onlyinclude>{| class="toccolours mw-collapsible" style="width:90%; overflow: hidden; background:#FFF;" | + | <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; margin-bottom:2px;" {{!}} '''{{{title}}}''' | + | | colspan=2 style="text-align:center; background:#CCCCFF;" {{!}} '''{{{title}}}''' |
| |- | | |- |
| | class="mw-collapsible-content" {{!}} | | | class="mw-collapsible-content" {{!}} |
| |- | | |- |
| {{#if: {{{group1|}}} | | | {{#if: {{{group1|}}} | |
− | {{!}} style="text-align:center; white-space: nowrap; background:#CCCCFF; padding:0 1em 0 1em;" {{!}} '''{{{group1}}} ''' | + | {{!}} style="text-align:center; white-space: nowrap; background:#DDDDFF; padding:0 1em 0 1em;" {{!}} '''{{{group1}}} ''' |
| {{!}} style="width:100%;" {{!}} {{{list1}}} | | | {{!}} style="width:100%;" {{!}} {{{list1}}} | |
| {{#if: {{{list1|}}} | | | {{#if: {{{list1|}}} | |
13行目: |
13行目: |
| }} | | }} |
| |- | | |- |
− | {{#if: {{{group2|}}} | {{!}} style="text-align:center; white-space: nowrap; background:#CCCCFF; padding:0 1em 0 1em;" {{!}} '''{{{group2}}}''' }} | + | {{#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:#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:#DDDDFF; padding:0 1em 0 1em;" {{!}} '''{{{group4}}} ''' |
| + | {{!}} style="width:100%;" {{!}} {{{list4}}} | |
| + | {{#if: {{{list4|}}} | |
| + | {{!}} colspan=2 style="width:100%; text-align:center;" {{!}} {{{list4}}} |
| + | }} |
| + | }} |
| |- | | |- |
− | {{#if: {{{group3|}}} | {{!}} style="text-align:center; white-space: nowrap; background:#CCCCFF; padding:0 1em 0 1em;" {{!}} '''{{{group3}}} ''' }} | + | {{#if: {{{group5|}}} | |
− | {{#if: {{{list3|}}} | {{!}} style="width:100%;" {{!}} {{{list3}}} }} | + | {{!}} 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: {{{group4|}}} | {{!}} style="text-align:center; white-space: nowrap; background:#CCCCFF; padding:0 1em 0 1em;" {{!}} '''{{{group4}}}''' }} | + | {{#if: {{{group6|}}} | |
− | {{#if: {{{list4|}}} | {{!}} style="width:100%;" {{!}} {{{list4}}} }} | + | {{!}} 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:#DDDDFF; padding:0 1em 0 1em;" {{!}} '''{{{group7}}} ''' |
| + | {{!}} style="width:100%;" {{!}} {{{list7}}} | |
| + | {{#if: {{{list7|}}} | |
| + | {{!}} colspan=2 style="width:100%; text-align:center;" {{!}} {{{list7}}} |
| + | }} |
| + | }} |
| |- | | |- |
− | {{#if: {{{group5|}}} | {{!}} style="text-align:center; white-space: nowrap; background:#CCCCFF; padding:0 1em 0 1em;" {{!}} '''{{{group5}}} ''' }} | + | {{#if: {{{group8|}}} | |
− | {{#if: {{{list5|}}} | {{!}} style="width:100%;" {{!}} {{{list5}}} }} | + | {{!}} 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: {{{group6|}}} | {{!}} style="text-align:center; white-space: nowrap; background:#CCCCFF; padding:0 1em 0 1em;" {{!}} '''{{{group6}}}''' }} | + | {{#if: {{{group9|}}} | |
− | {{#if: {{{list6|}}} | {{!}} style="width:100%;" {{!}} {{{list6}}} }} | + | {{!}} 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: {{{group7|}}} | {{!}} style="text-align:center; white-space: nowrap; background:#CCCCFF; padding:0 1em 0 1em;" {{!}} '''{{{group7}}} ''' }} | + | {{#if: {{{group10|}}} | |
− | {{#if: {{{list7|}}} | {{!}} style="width:100%;" {{!}} {{{list7}}} }} | + | {{!}} 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]] |