模板:Tabs/收纳表

来自SS唯基
< 模板:Tabs
攸萨讨论 | 贡献2022年6月10日 (五) 14:52的版本 (攸萨移动页面模板:Tabs/周年庆感言模板:Tabs/收纳表:使用更广泛的名称)
跳到导航 跳到搜索


Documentation icon 模板文档[-查看-] [编辑] [历史] [刷新]

使用方式

将以下源代码插入页面:

{{Tabs/收纳表
|tab1=标题2名称
|tab2=标题2名称
...
|content1=标题1对应的内容
|content2=标题2对应的内容
...
}}
  • 模板使用<templatestyles src=":透明样式/styles.css" />

已知BUG

参数

以下是可填入的参数以及其说明。参数输入的顺序皆不会影响模版的运行,可以随意地写。

模版参数
参数名 旧名/别名 解释
initialTab 键入content的数字会直接预览该content
(style) 整体框架的 css style。也可以加入 class
stab(style) select(style) 选择栏的 css style。也可以加入 class
ctab(style) text(style) 内容框的 css style。也可以加入 class
sitm(style) 选择栏内个别物件的 css style。也可以加入 class
citm(style) 内容框内个别物件的 css style。也可以加入 class
splitCount 预设5。选择栏每行共有几个物件
textDisplay 预设down。内容相对于选择栏的位置,可输入
  • top(内容在选择栏上)
  • down(内容在选择栏下)
  • left(内容在选择栏左,此时会预设将selectWidth设成20%、textWidth设成60%、textHeight, selectHeight皆设成400px)
  • right(内容在选择栏右,同上)
tab(x) 选项x的内容。x不必连续,但编号小的会先被显示。
content(x) 内容框x的内容,对应选项x。

范例

范例 - 基础、顺序不影响

{{Tabs/收纳表
|tab1 = 选择1
|tab2 = 选择2
|tab10086 = 选择5
|tab3 = 选择3
|tab1337 = 选择4
|content10086 = 内容5
|content1 = 内容1
|content2 = 内容2
|content1337 = 内容4
|content3 = 内容3
}}

脚本错误:没有“周年庆感言”这个模块。




范例 - 侧边收纳表

{{Tabs/收纳表
|textDisplay = right
|splitCount=1
|tab1=[[file:头像-織雪.png|30px|link=]][[織雪]]
|tab2=[[file:文学领主-月下的孤狼-头像.png|36px|link=]][[月下的孤狼|诺诺]]
|tab3=[[file:头像-黑光.png|30px|link=]][https://sstm.moe/profile/360467-1 黑光]
|tab4=[[file:头像-lemon19.png|30px|link=]][https://sstm.moe/profile/285830-1 lemon19]
|tab5=[[file:头像-XdbX.png|30px|link=]][https://sstm.moe/profile/219814-1 xdbx]
|tab6=[[file:头像-amiami猫羽雫.png|30px|link=]][https://sstm.moe/profile/343682-1 amiami猫羽雫]
|tab7=[[file:头像-fdcrane.png|32px|link=]][https://sstm.moe/profile/1645-1 fdcrane]
...

|content1=
久疏问候。

转眼已经过去了两年,论坛也已经准备十周年了。<br>
各位在论坛上是否有什么特别的收获呢?<br>
新朋友?打发时间的好地方?一些小目标?如果能仔细说说就最好了。<br>
建议各位会员小可爱们尝试一下成为管理层哦~ 也许你们可以收获一些特别之物。<br>
...
}}

脚本错误:没有“周年庆感言”这个模块。




范例 - CSS Styles

{{Tabs/收纳表
|background-color = darkgray
|border-radius = 3vmin
|width = min(800px, 95%)
|margin = 2%

|stabbackground-color = skyblue
|stabtext-align = center

|sitmcolor = darkorchid
|sitmfont-weight = 500
|sitmfont-size = clamp(16px, 3vmax, 24px)

|ctabbackground-color = #ffede0
|citmfont-size = clamp(16px, 3vmax, 24px)

|tab1 = 选择1
|tab2 = 选择2
|tab3 = 选择3
|tab4 = 选择4
|tab5 = 选择5
|content1 = 内容1
|content2 = 内容2
|content3 = 内容3
|content4 = 内容4
|content5 = 内容5
}}

脚本错误:没有“周年庆感言”这个模块。


现有CSS Styles