欢迎来到THBWiki!
如果您是第一次来到这里,请点击右上角注册一个帐户
有任何意见、建议、求助、反馈都可以在
讨论板
提出
THBWiki以专业性和准确性为目标,如果你发现了任何确定的错误或疏漏,可在登录后直接进行改正
查看“︁模板:Navbox subgroup/doc”︁的源代码
←
模板:Navbox subgroup/doc
跳到导航
跳到搜索
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于该用户组的用户执行:
少女
您没有权限编辑
模板
命名空间内的页面。
您必须确认您的电子邮件地址才能编辑页面。请通过
参数设置
设置并确认您的电子邮件地址。
您可以查看和复制此页面的源代码。
<includeonly>{{Esoteric}}</includeonly><noinclude></noinclude> <!-- 在本行下編輯模板說明 --> {{Navbox suite}} 本模板被设计与{{tl|Navbox}}或其他[[Wikipedia:导航模板|导航模板]]共同使用,它们允许创建带分组抬头或标题的链接列表。这个模板允许创建子分组,整个子分组能被赋值作为{{tl|Navbox}}内的一个列表项。一个子分组可以容纳最多22个列表项。 <!-- This template is designed to be used with {{tl|Navbox}} or other [[Wikipedia:Navigational templates|navigational template]]s that 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 {{tl|Navbox}}. A subgroup may contain up to 22 list items. --> == 用法 == <pre> {{Navbox subgroup | groupstyle = | liststyle = | group1 = | list1 = | group2 = | list2 = ... | group22 = | list22 = }} </pre> == 参数说明 == 本模板的参数与{{tl|Navbox}}的类似。 === 单元格 === :; ''list<sub>n</sub>'' ::(即''list1''、''list2''、……''list22'')本模板的主体,通常是一些链接的一个列表。格式是内联(inline)。最少而言一个''list''参数是必需的。每个追加的''list''都会显示在表格的单独一行。每个''list<sub>n</sub>''可以以一个相应的''group<sub>n</sub>''参数为先导,如果提供了的话(见下方)。列表项(以及整个表格)的背景颜色缺省为<code>transparent</code>,因而它显示与父导航框所用的相同的背景色。 :; ''group<sub>n</sub>'' ::(即''group1''、''group2''、……''group22'')如果指定了的话,一个抬头单元格会显示在''list<sub>n</sub>''左侧,其中显现指定的文字。如果忽略了的话,''list<sub>n</sub>''会占用表格的全部宽度。背景颜色缺省为<code><span style="background:#ddf; color:black;">#ddf</span></code>,但是能够通过''groupstyle''参数进行更改(见下方)。 <!-- :; ''list<sub>n</sub>'' :: (i.e. ''list1'', ''list2'', ... ''list22'') The body of the template, usually a list of links. Format is inline. At least one ''list'' parameter is required; each additional ''list'' is displayed in a separate row of the table. Each ''list<sub>n</sub>'' may be preceded by a corresponding ''group<sub>n</sub>'' parameter, if provided (see below). The background color of the list items (and the entire table) defaults to <code>transparent</code>, therefore it displays the same background color used in the parent navigation box. :; ''group<sub>n</sub>'' :: (i.e. ''group1'', ''group2'', ..., ''group22'') If specified, text appears in a header cell displayed to the left of ''list<sub>n</sub>''. If omitted, ''list<sub>n</sub>'' uses the full width of the table. The background color defaults to <code><span style="background:#e6e6ff; color:black;">#e6e6ff</span></code>, but can be changed via the ''groupstyle'' parameter (see below). --> === 样式 === :; ''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> :; ''liststyle'' ::CSS样式,应用于所有列表项。如果指定了''oddstyle''和''evenstyle''参数的话(见下方),则会覆盖本参数。 :; ''oddstyle'' :; ''evenstyle'' ::CSS样式,分别应用于奇数编号列表项(''list1''、''list3''等等)或偶数编号列表项(''list2''、''list4''等等)。典型地被用来设定背景颜色(<code>background:#nnnnnn;</code>),以达到在奇数和偶数编号列表之间实现一个交互的背景颜色。 <!-- :; ''bodystyle'' :: Specifies [[Cascading Style Sheets|CSS]] styles to apply to the template body. Examples: ::: <code>background:#''nnnnnn'';</code> ::: <code>text-align:[''right/center/left/justified''];</code> :; ''groupstyle'' :: CSS styles to apply to the ''group<sub>n</sub>'' cells. This option overrides any styles that are applied to the entire table. Examples: ::: <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 style to specify group padding. Should usually be specified using em units. It is recommended to leave this parameter alone and use the default padding. Examples: ::: <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 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 (<code>background:#''nnnnnn'';</code>) in order to achieve an alternating background color between odd and even-numbered lists. :; ''evenodd'' <span style="font-weight:normal;"><code>[swap, even, odd, off]</code></span> :: If set to <code>swap</code>, then the automatic striping of even and odd rows is reversed. Normally, even rows get a light gray background for striping; when this parameter is used, the odd rows receive the gray striping instead of the even rows. Setting to <code>even</code> or <code>odd</code> sets all rows to have that striping color. Setting to <code>off</code> disables automatic row striping. NOTE: Due to system limitations, do '''not''' use a semi-colon to close this command. --> == 设置分组的宽度 == 若有多个{{t1|Navbox subgroup}}模板被用在父级{{t1|Navbox}}的内部,如果这些分组的宽度比较协调的话,通常看起来会更美观,为了做到这一点,使用者必须设定<code>groupstyle</code>参数来控制想要的宽度,以及设定<code>liststyle</code>参数来获得width:auto(由于HTML/CSS的原因)。例如,放置以下代码到每个{{t1|Navbox subgroup}}中来调整宽度: :<code>groupstyle = width:10em;</code> :<code>liststyle = width:auto;</code> <!-- If multiple {{t1|Navbox subgroup}} templates are used inside of a parent {{t1|Navbox}}, it generally looks better if the width of the groups matches up. In order to do this, one must set the <code>groupstyle</code> parameters to contain the desired width, and the <code>liststyle</code> parameters to have width:auto (due to HTML/CSS reasons). For example, place the following code in each {{t1|Navbox subgroup}} to adjust the widths: :<code>groupstyle = width:10em;</code> :<code>liststyle = width:auto;</code> If you also use the <code>image</code> or <code>imageleft</code> parameters, then you will most likely also need to set their width manually using the <code>imagestyle</code> and <code>imageleftstyle</code> parameters. --> == 举例 == === 例1 === 下面是一个在''Navbox''模板内部使用''Navbox subgroup''的示例。 <!-- The following is an example of ''Navbox subgroup'' used within a ''Navbox'' template. --> {{Navbox | state = uncollapsed | name = Protected Areas of Colorado | title = Protected Areas of Colorado | 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 | name = Protected Areas of Colorado | title = Protected Areas of Colorado | 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 === 这个示例实现了水平分组标题,方法是将标题分配到<code>list1</code>和<code>list3</code>,将链接分配到<code>list2</code>和<code>list4</code>,然后使用<code>list1style</code>和<code>list3style</code>来设定标题的背景颜色。 <!-- This example implements horizontal group headings by assigning the headings to <code>list1</code> and <code>list3</code> and the links to <code>list2</code> and <code>list4</code>), then using <code>list1style</code> and <code>list3style</code> to set the background color of the headings. --> {{Navbox | state = expanded | name = Roman Emperors | title = Roman Emperors | 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 | name = Roman Emperors | title = Roman Emperors | 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> == 參見 == * {{tl|Navbox}} – 基本的导航模板。 * {{t1|Navbox with columns}} – 允许分列(columns)代替分组/列表(groups/lists)。 * {{t1|Navbox with collapsible groups}} – 另一个变体。 * {{t1|Nobold}} – 用于在缺省字体宽度是粗体的上下文环境中,例如表格中的标题单元格中,用普通字体宽度来显示文字。 {{Navigational templates}} <includeonly> <!-- 本行下加入模板的分類 --> [[Category:導航模板|{{PAGENAME}}]] [[Category:格式模板|{{PAGENAME}}]] </includeonly>
该页面使用的模板:
模板:Lan
(
查看源代码
)(受保护)
模板:Navbar
(
查看源代码
)(受保护)
模板:Navbox
(
查看源代码
)(受保护)
模板:Navbox subgroup
(
查看源代码
)(受保护)
模板:Navbox suite
(
查看源代码
)
模板:Navigational templates
(
查看源代码
)
模板:No
(
查看源代码
)
模板:Tl
(
查看源代码
)(受保护)
模板:Yes
(
查看源代码
)
模板:Yes2
(
查看源代码
)
模板:Lan
(
查看源代码
)
模板:No
(
查看源代码
)
模板:Tl
(
查看源代码
)
模板:Tl
(
查看源代码
)
模板:Yes
(
查看源代码
)
模板:Yes2
(
查看源代码
)
模板:·
(
查看源代码
)(受保护)
返回
模板:Navbox subgroup/doc
。
导航菜单
个人工具
创建账号
登录
命名空间
模板
讨论
查看
阅读
源码
查看历史
更多
搜索
常用
首页
东方Project
上海爱丽丝幻乐团
ZUN
世界观
幻想乡年表
东方年表
东方同人规约
近期新闻
沙盒(建议使用)
讨论板
加入我们
官方作品
官方游戏
旧作
东方灵异传
东方封魔录
东方梦时空
东方幻想乡
东方怪绮谈
东方红魔乡
东方妖妖梦
东方永夜抄
东方花映塚
东方风神录
东方地灵殿
东方星莲船
东方神灵庙
东方辉针城
东方绀珠传
东方天空璋
东方鬼形兽
东方虹龙洞
东方兽王园
东方锦上京
小数点射击游戏
东方文花帖
东方文花帖DS
妖精大战争
弹幕天邪鬼
秘封噩梦日记
弹幕狂们的黑市
黄昏边境合作游戏
东方萃梦想
东方绯想天
东方非想天则
东方心绮楼
东方深秘录
东方凭依华
东方刚欲异闻
官方音乐
原曲列表
非音乐CD音乐列表
音乐CD曲目列表
蓬莱人形
莲台野夜行
梦违科学世纪
卯酉东海道
大空魔术
未知之花 魅知之旅
鸟船遗迹
伊奘诺物质
燕石博物志
旧约酒馆
虹色的北斗七星
七夕坂梦幻能
幺乐团的历史系列
幺乐团的历史 vol.1
幺乐团的历史 vol.2
幺乐团的历史 vol.3
幺乐团的历史 vol.4
幺乐团的历史 vol.5
黄昏游戏OST
幻想曲拔萃
全人类的天乐录
核热造神非想天则
暗黑能乐集心绮楼
深秘乐曲集
深秘乐曲集·补
完全凭依唱片名录
贪欲之兽的音乐
官方出版物附带CD
官方书籍
东方香霖堂
东方儚月抄
漫画
小说
四格
东方三月精
第一季
月之妖精
第二季
第三季
第四季
东方茨歌仙
东方铃奈庵
东方醉蝶华
东方智灵奇传
东方求闻史纪
记忆幻想乡
东方求闻口授
东方文花帖
风之号外
东方文果真报
魔理沙的魔法书
宇佐见的魔法书
东方幻存神签
东方外来韦编
东方人妖名鉴
宵暗篇
常世篇
其他ZUN参与的书籍
东方紫香花
六十年不见的紫香花
幻想Narrato Graph
官方角色
公式资料
附带文档
游戏对话
官方作品光盘信息
角色自称用词表
官作译名更改记录
原作物品列表
出典文献列表
ZUN相关
西方Project
Torte Le Magic
黄昏酒场
东方关联人物
游戏攻略
东方相关活动
从第二家开始的广播
东方STATION
数码游戏博览会
PoriPori☆Club
niconico超会议
斗会议
niconico原创游戏祭
枯萎Radio
GDGD
其他相关项目
东方我乐多丛志
东方四方山新闻
Play,Doujin!
东方电书流通
东方音乐流通
二次创作与活动
展会及活动导航
Comic Market
博丽神社例大祭
博丽神社例大祭SP
博丽神社秋季例大祭
博丽神社例大祭in台湾
海外博丽神社例大祭
博丽神社歌谣祭
博丽神社崇敬会相关活动
COMICUP
魅知幻想博览会
上海THONLY
东方Only活动
东方红楼梦
角色Only活动
作品Only活动
地区Only活动
其他地区举办的展会
其他展会
M3
COMIC1
展会作品列表
展会作品数量
展会同人志列表
展会专辑列表
展会软件列表
展会视频列表
商业二次创作
出版物
电脑游戏
东方月神夜
家用机游戏
Play,Doujin
手机游戏
东方大炮弹
东方LostWord
东方Dungeon Dive
东方弹幕神乐
东方幻想Eclipse
同人二次创作
同人社团列表
同人志分类
同人专辑分类
同人专辑搜索
原曲作品数量
同人软件列表
Steam游戏列表
同人角色列表
同人视频列表
其他形式同人
同人文章列表
同人画师列表
同人封面角色
东方相关周边
PVCFigure
GarageKit
小型物品
其他形式周边
MUGEN
THB相关项目
THB策划
中文东方人气投票
东深见讲坛
幻想乡柱状地图
THB衍生
同人专辑搜索
原曲认知测验
东方相关QQ群组列表
THB媒体
微博
Bilibili
直播间
GitHub
THB协力
博丽神主ZUN微博
东方我乐多丛志
MineCraft幻想乡
京都幻想剧团
幻奏盛宴
功能与帮助
最近更改
随机浏览
编写规范
收录方针
命名规范
同人社团
同人音乐
封面图片
二次设定
编辑帮助
基础帮助
常用模板
进阶代码
函数用法
编写翻译表
语义维基
样式类用法
颜色列表
工具
链入页面
相关更改
特殊页面
页面信息
其他
联系管理员
关于THBWiki
捐款支持
语言
English
italiano
日本語
中文