打开/关闭搜索
搜索
打开/关闭菜单
17
6667
45
1.1万
OGAS数据中枢
导航
首页
最近更改
随机页面
特殊页面
上传文件
少女前线
简介
战术人形
装备图鉴
BGM
任务
打开/关闭外观设置菜单
通知
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。
user-interface-preferences
个人工具
注册
登录
查看“︁Template:Tabber/doc”︁的源代码
模板页面
更多操作
←
Template:Tabber/doc
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于该用户组的用户执行:
管理员
您可以查看和复制此页面的源代码。
== 说明 == 本模板用于封装 TabberNeue 扩展,生成选项卡组件。 === 参数列表 === {| class="wikitable" |- ! 参数名 !! 简介 |- | Theme || 内置主题样式:<code>green</code>、<code>red</code>、<code>blue</code>、<code>yellow</code>、<code>purple</code>、<code>orange</code>、<code>black</code> |- | style || 应用于外层的额外 CSS 样式 |- | DefaultTab || 指定页面加载时显示第几个 tab,默认值为 <code>1</code> |- | LabelPadding || 指定 label 的内边距 |- | LabelBorderColor || 指定选中的 label 的侧边框颜色 |- | LabelBackgroundColor || 指定选中的 label 的背景色 |- | LabelColor || 指定选中的 label 的顶边框颜色 |- | TextBorderColor || 指定显示的 text 的边框颜色 |- | TextBackgroundColor || 指定显示的 text 的背景色 |- | TextPadding || 指定显示的 text 的内边距 |- | AutoWidth || 使 tabs 不再占满整行,启用须传入 <code>yes</code> |- | Float || 使 tabs 浮动,传入 <code>left</code> 或 <code>right</code> |- | LabelSide || 标签位置,可选 <code>top</code>(默认)、<code>bottom</code>、<code>left</code>、<code>right</code> |- | LabelColorSideReverse || 逆向设置标签顶边框位置,值为 <code>1</code>/<code>on</code>/<code>yes</code>/<code>true</code> 时启用 |- | DividerSize || label 与 text 的间隔(正数,单位 px) |- | bt1, bt2, … || 第 N 个标签的标注(从 1 开始连续编号) |- | tab1, tab2, … || 第 N 个标签的内容(从 1 开始连续编号) |} === 使用示例 === <pre> {{tabber | bt1 = 第一个标签 | tab1 = 第一个标签的内容 | bt2 = 第二个标签 | tab2 = 第二个标签的内容 | Theme = blue | LabelColor = #fff | LabelBackgroundColor = #1a73e8 | LabelBorderColor = #fbbc04 | TextBackgroundColor = #f8f9fa | TextPadding = 16px 24px | AutoWidth = yes }} </pre> {{tabber | bt1 = 第一个标签 | tab1 = 第一个标签的内容 | bt2 = 第二个标签 | tab2 = 第二个标签的内容 | Theme = blue | LabelColor = #fff | LabelBackgroundColor = #1a73e8 | LabelBorderColor = #fbbc04 | TextBackgroundColor = #f8f9fa | TextPadding = 16px 24px | AutoWidth = yes }}
该页面嵌入的页面:
Template:Tabber
(
查看源代码
)
Template:Tabber/styles.css
(
查看源代码
)
返回
Template:Tabber/doc
。
查看“︁Template:Tabber/doc”︁的源代码
模板页面