{{{group1}}}{{{list1}}}
{{{group2}}}{{{list2}}}
{{{group3}}}{{{list3}}}
{{{group4}}}{{{list4}}}
{{{group5}}}{{{list5}}}
{{{group6}}}{{{list6}}}
{{{group7}}}{{{list7}}}
{{{group8}}}{{{list8}}}
{{{group9}}}{{{list9}}}
{{{group10}}}{{{list10}}}
テンプレートの解説この解説は、 Template:Navbox generic subgroup/doc (編集 | 履歴)から呼び出されています。
このテンプレートには、サンドボックスもテストケースもありません。(解説)
このテンプレートの記述は複雑な構成となっております。編集後の結果が予想できないか、または変更にともなう影響を修正する用意ができていない場合は編集をお控えください。練習や実験はサンドボックスやご自身の利用者ページなどでお願いします。
Template‐ノート:Navbox genericに、このページに関する提案があります。
提案の要約:本テンプレートの廃止について
This template is designed to be used with {{Navbox}} and {{Navbox generic}}, navigational templates which allow creating lists of links with groups headers or titles. This template allows the creation of subgroups that can be assigned to a list item within {{Navbox}} and {{Navbox generic}}. A subgroup may contain up to 10 list items.
目次
1 フォーマット
2 パラメータ
2.1 セル
2.2 テンプレートスタイル
3 使用例1
4 使用例2
//
フォーマット{{Navbox generic subgroup| bodystyle =| groupstyle = | liststyle = | oddstyle = | evenstyle = | group1 = | list1 = | group2 = | list2 = ...| group10 = | list10 = }}
パラメータ
セル
listn
(i.e. list1, list2, ... 'list10') このテンプレートの本体で、ふつうはリンクのリストを記述します。書式はインラインですが、全体を で囲むことで複数行に分けて書くことができます。最低1つの list パラメータが必要で、追加の list はテーブル内の別の行として表示されます。必要であれば、それぞれの listn の直前に、対応する groupn パラメータを置くことができます(後述)。リスト部およびテーブル全体の背景色は、初期値がtransparentになっています。後述する bodystyle、oddstyle および evenstyle で変更可能です。
groupn
(i.e. group1, group2, ... group10) これが記述されると、listn とした部分の左に乱しセル画表示されます。省略すると、リスト部はテーブルの幅をすべて使って表示されます。 背景の初期値は、#ddf(#ddddffの短縮記法)です。後述するgroupstyleパラメータで変更可能です。
テンプレートスタイル
bodystyle
Specifies CSS styles to apply to the template body. Examples:background:#nnnnnn;text-align:[right/center/left/justified];
groupstyle
CSS styles to apply to the groupN cells. This option overrides any styles that are applied to the entire table. Examples:background:#nnnnnn;text-align:[left/center/right];vertical-align:[top/middle/bottom];white-space:nowrap;
liststyle
CSS styles to apply to all lists. Overridden by the oddstyle and evenstyle parameters (if specified) below.
oddstyle
evenstyle
CSS styles to apply to the odd-numbered list items (list1, list3, etc) or even-numbered list items (list2, list4, etc), respectively. Typically used to set background color (background:#nnnnnn;) in order to achieve an alternating background color between odd and even-numbered lists.
使用例1
The following is an example of Navbox generic subgroup used within a Navbox template. Below that is the code used to generate this navigation box, with the subgroup template shown in bold text.
表・話・編・歴Protected Areas of Colorado
National Park Service
National ParksBlack Canyon of the Gunnison - Great Sand Dunes - Mesa Verde - Rocky Mountain
National MonumentsColorado - Florissant Fossil Beds - Hovenweep - Yucca House
National Historic SitesBent's Old Fort - Sand Creek Massacre
National Recreation AreaCurecanti
National ForestsArapaho - Grand Mesa - Gunnison - Pike - Rio Grande - Roosevelt - Medicine Bow - Routt - San Isabel - San Juan - Uncompahgre - White River
{{Navbox
| name = Protected Areas of Colorado
| title = Protected Areas of Colorado
| groupstyle = white-space:nowrap;
| liststyle = background-color: transparent;
| group1 = National Park Service
| list1 =
{{Navbox generic subgroup
| groupstyle = white-space:nowrap;
| group1 = National Parks
| list1 = [[Black Canyon of the Gunnison National Park|Black Canyon of the Gunnison]] - [[Great Sand Dunes National Park and Preserve|Great Sand Dunes]] - [[Mesa Verde National Park|Mesa Verde]] - [[Rocky Mountain National Park|Rocky Mountain]]
| group2 = National Monuments
| list2 = [[Colorado National Monument|Colorado]] - [[Florissant Fossil Beds National Monument|Florissant Fossil Beds]] - [[Hovenweep National Monument|Hovenweep]] - [[Yucca House National Monument|Yucca House]]
| group3 = National Historic Sites
| list3 = [[Bent's Old Fort National Historic Site|Bent's Old Fort]] - [[Sand Creek Massacre National Historic Site|Sand Creek Massacre]]
| group4 = National Recreation Area
| list4 = [[Curecanti National Recreation Area|Curecanti]]
}}
| group2 = National Forests
| list2 = [[Arapaho National Forest|Arapaho]] - [[Grand Mesa National Forest|Grand Mesa]] - [[Gunnison National Forest|Gunnison]] - [[Pike National Forest|Pike]] - [[Rio Grande National Forest|Rio Grande]] - [[Roosevelt National Forest|Roosevelt]] - [[Medicine Bow - Routt National Forest|Medicine Bow - Routt]] - [[San Isabel National Forest|San Isabel]] - [[San Juan National Forest|San Juan]] - [[Uncompahgre National Forest|Uncompahgre]] - [[White River National Forest|White River]]
}}
使用例2
This example implements horizontal group headings by assigning the headings to odd-numbered rows (list1, list3) and the links to even-numbered rows (list2, list4), then using oddstyle to set the background color.
表・話・編・歴Roman Emperors
Crisis 235 AD - 284 ADMaximinus Thrax - Gordian I - Gordian II - Pupienus and Balbinus - Gordian III - Philip the Arab - Decius - Trebonianus Gallus - Aemilianus - Valerian - Gallienus - Claudius II - Quintillus - Aurelian - Marcus Claudius Tacitus - Florianus - Probus - Carus - Numerian - Carinus