テンプレート:Navbox subgroup/docのソースを表示
←
テンプレート:Navbox subgroup/doc
ナビゲーションに移動
検索に移動
あなたには「このページの編集」を行う権限がありません。理由は以下の通りです:
この操作は、次のグループのいずれかに属する利用者のみが実行できます:
管理者
、
執筆者
。
テンプレート
名前空間にあるページを編集する権限がありません。
このページのソースの閲覧やコピーができます。
<includeonly>{{pp-template}}{{使用箇所の多いテンプレート|48,000以上}}</includeonly><noinclude>{{Documentation subpage}}</noinclude> <!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE --> {{Lua|Module:Navbox/former}} {{Navbox suite}} このテンプレートは{{tl|Navbox}}または他のナビゲーション・テンプレートにおいて、記事一覧をヘッダー又はタイトルを持つグループ化するものです。これを用いることにより、{{tl|Navbox}}内の記事一覧をサブグループ化できます。サブグループ/記事一覧数は25個までとなっています。 == 空のテンプレート == <pre> {{Navbox subgroup | groupstyle = | liststyle = | group1 = | list1 = | group2 = | list2 = ... | group20 = | list20 = }} </pre> == パラメータ == このテンプレートは{{tl|Navbox}}内で使われます。{{tl|Navbox}}の解説も参照してください。{{tl|Navbox}}との差異を以下に示します。 * 境界のパラメータ設定のデフォルトは"child"です。 * 左右のグループ・パッドのデフォルトは0.75em、<code>grouppadding</code>により値を変更できます。 デフォルトの色は、[[MediaWiki:Common.css]]にて設定されています。 === セル === :; ''list<sub>n</sub>''(nは数字) :: (例 ''list1'', ''list2'', ... ''list20'') テンプレートの本体部で用います。通常は記事へのリンク一覧になります。最低でも一つの''list''パラメーターを設定する必要があります。付加される各listは別個の記事一覧となります。各listによる記事一覧は後述する''group<sub>n</sub>''パラメーターによりグループ化することができます。listの背景色設定は親となるNavboxと同色がデフォルト設定となっています。 :; ''group<sub>n</sub>''(nは数字) :: (i.e. ''group1'', ''group2'', ..., ''group20'') ''list<sub>n</sub>''をサブグループ化し、記事一覧の左側にヘッダーを表示します。省略時は''list<sub>n</sub>''の表示幅が最大化します。背景色は<code><span style="background:#e6e6ff; color:black;">#e6e6ff</span></code>がデフォルトですが、後述する''groupstyle''パラメーターにより変更できます。 === スタイル === :; ''bodystyle'' :: CSSコードの書き込みにより、テンプレート全体のスタイルを設定できます。例は以下の通り。 ::: <code>background:#''nnnnnn'';</code> ::: <code>text-align:[''right/center/left/justified''];</code> :; ''groupstyle'' :: CSSコードによるスタイル設定は''group<sub>n</sub>''のセルにも適用できます。これは表全体の設定より優先されます。例は以下の通り。 ::: <code>background:#''nnnnnn'';</code> ::: <code>text-align:[''left/center/right''];</code> ::: <code>vertical-align:[''top/middle/bottom''];</code> ::: <code>white-space:nowrap;</code> :; ''grouppadding'' :: CSSコードによるスタイル設定はグループ・パッドにも適用されます。em単位で設定が可能で、省略時はデフォルトとなります。例は以下の通り。 ::: <code>grouppadding = 0em 1em;</code> (1em on left/right, 0em on top/bottom) ::: <code>grouppadding = 0em 0.5em 0em 1em;</code> (0em top, 0.5em right, 0em bottom, 1em left) :; ''liststyle'' :: CSSコードによるスタイル設定はlistにも適用されます。 ''oddstyle''と''evenstyle''があります。 :; ''oddstyle''(奇数listのスタイル) :; ''evenstyle''(偶数listのスタイル) :: ''oddstyle''は奇数list(''list1'', ''list3'', etc)、''evenstyle''は偶数list (''list2'', ''list4'', etc)のスタイルをCSSコードにより設定します。背景色は<code>background:#''nnnnnn'';</code>により設定します。 :; ''evenodd'' <span style="font-weight:normal;"><code>[swap, even, odd, off]</code></span> :: <code>swap</code>設定を行なった場合、奇数listおよび偶数listが、交互にtransparentと薄い灰色<code><span style="background:#f7f7f7; color:black;">#f7f7f7</span></code>の縞模様で表示されます。<!---<code>even</code>および<code>odd</code>のパラメーターにより、背景色が設定できます。(動作確認できず---)---><code>off</code>により縞模様を削除できます。NOTE:システムの都合により、セミコロンでこの設定を閉じないで下さい。 == グループの幅の設定 == 一つの{{tl|Navbox}}内に複数の{{tl|Navbox subgroup}}テンプレートを置くことができます。この際、<code>groupstyle</code>と<code>liststyle</code>パラメーターを用いることにより、表示幅の設定を行い、より見栄えをよくすることができます。例文は以下の通り。 : <code>groupstyle = width:10em;</code> : <code>liststyle = width:auto;</code> <code>image</code>や<code>imageleft</code>パラメーターを用いるならば、<code>imagestyle</code> や <code>imageleftstyle</code>も用いて、表示画像の大きさを調整したほうがよろしいです。 == 例 == === 例1 === ''Navbox''内に''Navbox subgroup''を使用した例。 {{Navbox | state = uncollapsed | name = Protected Areas of Colorado | title = Protected Areas of Colorado | listclass = hlist | group1 = National Park Service | list1 = {{Navbox subgroup | 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]] }} <pre style="overflow:scroll;"> {{Navbox | state = uncollapsed | name = Protected Areas of Colorado | title = Protected Areas of Colorado | listclass = hlist | group1 = National Park Service | list1 = {{Navbox subgroup | 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]] }} </pre> === 例2 === Navbox subgroup内のlistを調整し、<code>list1</code>と<code>list3</code>を<code>list1style</code>および<code>list3style</code>により背景色設定を行い、見出しとして用い、<code>list2</code>と<code>list4</code>を記事一覧として用いた例。 {{Navbox | state = expanded | name = Roman Emperors | title = Roman Emperors | listclass = hlist | group1 = Crisis 235 AD - 284 AD | list1 = *[[Maximinus Thrax]] *[[Gordian I]] *[[Gordian II]] *[[Pupienus]] and [[Balbinus]] *[[Gordian III]] *[[Philip the Arab]] *[[Decius]] *[[Trebonianus Gallus]] *[[Aemilianus]] *[[Valerian (emperor)|Valerian]] *[[Gallienus]] *[[Claudius II]] *[[Quintillus]] *[[Aurelian]] *[[Marcus Claudius Tacitus]] *[[Florianus]] *[[Probus]] *[[Carus]] *[[Numerian]] *[[Carinus]] | group2 = Dominate | list2 = {{Navbox subgroup |list1style = background:#ddf; |list1 = '''284 AD - 395 AD''' |list2 = *[[Diocletian]] *[[Maximian]] *[[Constantius Chlorus|Constantius I]] *[[Galerius]] *[[Flavius Valerius Severus|Severus II]] *[[Maxentius]] *[[Maximinus]] *[[Licinius]] *[[Constantine I]] *[[Constantine II (emperor)|Constantine II]] *[[Constans|Constans I]] *[[Constantius II]] *[[Julian the Apostate]] *[[Jovian]] *[[Valentinian I]] *[[Valens]] *[[Gratian]] *[[Valentinian II]] *[[Eugenius]] *[[Theodosius I]] |list3style = background:#ddf; |list3 = '''Western Empire (393 AD - 476 AD)''' |list4 = *[[Honorius (emperor)|Honorius]] *[[Constantius III]] *[[Joannes]] *[[Valentinian III]] *[[Petronius Maximus]] *[[Avitus]] *[[Majorian]] *[[Libius Severus]] *[[Anthemius]] *[[Olybrius]] *[[Glycerius]] *[[Julius Nepos]] *[[Romulus Augustus]] }} }} <pre style="overflow:scroll;"> {{Navbox | state = expanded | name = Roman Emperors | title = Roman Emperors | listclass = hlist | group1 = Crisis 235 AD - 284 AD | list1 = *[[Maximinus Thrax]] *[[Gordian I]] *[[Gordian II]] *[[Pupienus]] and [[Balbinus]] *[[Gordian III]] *[[Philip the Arab]] *[[Decius]] *[[Trebonianus Gallus]] *[[Aemilianus]] *[[Valerian (emperor)|Valerian]] *[[Gallienus]] *[[Claudius II]] *[[Quintillus]] *[[Aurelian]] *[[Marcus Claudius Tacitus]] *[[Florianus]] *[[Probus]] *[[Carus]] *[[Numerian]] *[[Carinus]] | group2 = Dominate | list2 = {{Navbox subgroup |list1style = background:#ddf; |list1 = '''284 AD - 395 AD''' |list2 = *[[Diocletian]] *[[Maximian]] *[[Constantius Chlorus|Constantius I]] *[[Galerius]] *[[Flavius Valerius Severus|Severus II]] *[[Maxentius]] *[[Maximinus]] *[[Licinius]] *[[Constantine I]] *[[Constantine II (emperor)|Constantine II]] *[[Constans|Constans I]] *[[Constantius II]] *[[Julian the Apostate]] *[[Jovian]] *[[Valentinian I]] *[[Valens]] *[[Gratian]] *[[Valentinian II]] *[[Eugenius]] *[[Theodosius I]] |list3style = background:#ddf; |list3 = '''Western Empire (393 AD - 476 AD)''' |list4 = *[[Honorius (emperor)|Honorius]] *[[Constantius III]] *[[Joannes]] *[[Valentinian III]] *[[Petronius Maximus]] *[[Avitus]] *[[Majorian]] *[[Libius Severus]] *[[Anthemius]] *[[Olybrius]] *[[Glycerius]] *[[Julius Nepos]] *[[Romulus Augustus]] }} }} </pre> {{Navigational templates}} <includeonly> [[Category:ナビゲーションテンプレート|*]] [[Category:メタテンプレート]] </includeonly>
テンプレート:Navbox subgroup/doc
に戻る。
ナビゲーション メニュー
個人用ツール
アカウント作成
ログイン
名前空間
テンプレート
議論
日本語
表示
閲覧
ソースを閲覧
履歴表示
その他
検索
案内
メインページ
最近の更新
おまかせ表示
MediaWiki についてのヘルプ
ツール
リンク元
関連ページの更新状況
特別ページ
ページ情報