Template:Infobox

来自BanG Dream! Wiki
跳到导航 跳到搜索
Template-info.png 模板文档
这个文档嵌入Template:Infobox/doc

用法

点击查看所有项目
{{Infobox
|class              = 
|align              = 
|text-align         = 
|width              = 
|max-width          = 
|float              = 
|bg-color           = 
|title-main         = 
|title-color        = 
|text-color         = 
|left-column-color  = 
|text-color         = 
|Title   = 
|image   = 
|size    = 
|caption = 
|tabs    = 
|Row titlestyle  = 
|Row infostyle   = 
|colspan-site    = 
|Row x1          = 
|Row x2          =
|Row 1 title     = 
|Row 1 info      = 
|Row 2 title     = 
|Row 2 info      = 
|Row 3 title     = 
|Row 3 info      = 
|Row 4 title     = 
|Row 4 info      = 
|Row 5 title     = 
|Row 5 info      = 
|Row 6 title     = 
|Row 6 info      = 
|Row 7 title     = 
|Row 7 info      = 
|Row 8 title     = 
|Row 8 info      = 
|Row 9 title     = 
|Row 9 info      = 
|Row 10 title    = 
|Row 10 info     = 
|Row 11 title    = 
|Row 11 info     = 
|Row 12 title    = 
|Row 12 info     = 
|Row 13 title    = 
|Row 13 info     = 
|Row 14 title    = 
|Row 14 info     = 
|Row 15 title    = 
|Row 15 info     = 
|Row 16 title    = 
|Row 16 info     = 
|Row 17 title    = 
|Row 17 info     = 
|Row 18 title    = 
|Row 18 info     = 
|Row 19 title    = 
|Row 19 info     = 
|Row 20 title    = 
|Row 20 info     = 
|Row 21 title    = 
|Row 21 info     = 
|Row 22 title    = 
|Row 22 info     = 
|Row 23 title    = 
|Row 23 info     = 
|Row 24 title    = 
|Row 24 info     = 
|Row 25 title    = 
|Row 25 info     = 
|Row 26 title    = 
|Row 26 info     = 
|Row 27 title    = 
|Row 27 info     = 
|Row 28 title    = 
|Row 28 info     = 
|Row 29 title    = 
|Row 29 info     = 
|Row 30 title    = 
|Row 30 info     = 
|Row h1 title    = 
|Row h1 info     = 
|Row h2 title    = 
|Row h2 info     = 
|Row b1          = 
|Row b2          = 
|Row x1 style      = 
|Row x2 style      =
|Row 1  titlestyle = 
|Row 1   infostyle = 
|Row 2  titlestyle = 
|Row 2   infostyle = 
|Row 3  titlestyle = 
|Row 3   infostyle = 
|Row 4  titlestyle = 
|Row 4   infostyle = 
|Row 5  titlestyle = 
|Row 5   infostyle = 
|Row 6  titlestyle = 
|Row 6   infostyle = 
|Row 7  titlestyle = 
|Row 7   infostyle = 
|Row 8  titlestyle = 
|Row 8   infostyle = 
|Row 9  titlestyle = 
|Row 9   infostyle = 
|Row 10 titlestyle = 
|Row 10 infostyle  = 
|Row 11 titlestyle = 
|Row 11 infostyle  = 
|Row 12 titlestyle = 
|Row 12 infostyle  = 
|Row 13 titlestyle = 
|Row 13 infostyle  = 
|Row 14 titlestyle = 
|Row 14 infostyle  = 
|Row 15 titlestyle = 
|Row 15 infostyle  = 
|Row 16 titlestyle = 
|Row 16 infostyle  = 
|Row 17 titlestyle = 
|Row 17 infostyle  = 
|Row 18 titlestyle = 
|Row 18 infostyle  = 
|Row 19 titlestyle = 
|Row 19 infostyle  = 
|Row 20 titlestyle = 
|Row 20 infostyle  = 
|Row 21 titlestyle = 
|Row 21 infostyle  = 
|Row 22 titlestyle = 
|Row 22 infostyle  = 
|Row 23 titlestyle = 
|Row 23 infostyle  = 
|Row 24 titlestyle = 
|Row 24 infostyle  = 
|Row 25 titlestyle = 
|Row 25 infostyle  = 
|Row 26 titlestyle = 
|Row 26 infostyle  = 
|Row 27 titlestyle = 
|Row 27 infostyle  = 
|Row 28 titlestyle = 
|Row 28 infostyle  = 
|Row 29 titlestyle = 
|Row 29 infostyle  = 
|Row 30 titlestyle = 
|Row 30 infostyle  = 
|Row h1 titlestyle = 
|Row h1 infostyle  = 
|Row h2 titlestyle = 
|Row h2 infostyle  = 
}}

参数

  • 整体样式
参数 介绍
class  模板使用的class,默认为infobox
align  模板整体的对齐方式
可选:leftcenterright(默认)
text-align  模板中文本的水平对齐方式
可选rightleftcenter(默认)
width  模板宽度。默认为260px
max-width  模板最大宽度。默认为100%
float  模板的浮动处理
可选leftnoneright(默认)
bg-color  模板背景色。默认为#FFFFFF(白色)
colspan-site  决定题头、图片、栏x1、h1等colspan数值。默认为2
  • 题头样式
参数 介绍
title-main  模板题头,缺省时隐去,保留题头时,请不要使用该项目
title-color 题头颜色,默认#26ca9b
text-color  题头文字颜色。默认为#FFFFFF(白色)。
Title 题头中的文字
  • 图片部分[1]
参数 介绍
image  信息栏图片,仅文件名,无需带有“File:”或“[[]]”,除非文件名本身带有
size  图片大小,默认为280px。需要“px”/“em”等单位
caption  图片下方信息
image-lostmessage  图片缺省时展示的信息
tabs 用于调动{{Tabs}},在使用{{Tabs}}展示作品相关图片的情况下,请不要再使用【image】、【图片信息】和【图片大小】。*该参数的使用详见{{Tabs}}
  • 主体内容部分,其中z代表数字,取值为1-40
参数 介绍
Row x1、Row x2  横栏,用上述colspan-site控制colspan参数
Row x1 style、Row x2 style  横栏样式
Row titlestyle  全部信息栏左侧样式,可以被对应样式覆盖
示例:style = "<属性1>:<值1>;<属性2>:<值2>;"
Row infostyle  全部信息栏右侧样式,可以被对应样式覆盖
示例:style = "<属性1>:<值1>;<属性2>:<值2>;"
Row z title  第z行信息栏左侧内容
Row z titlestyle  第z行信息栏左侧样式
示例:style = "<属性1>:<值1>;<属性2>:<值2>;"
Row z info  第z行信息栏右侧内容
Row z infostyle  第z行信息栏右侧样式
示例:style = "<属性1>:<值1>;<属性2>:<值2>;"
left-column-color  信息栏左侧背景颜色,默认#E0FFFF(浅蓝色)
  • 下方内容部分
参数 介绍
Row h1 title、Row h2 title  下栏标题,用上述colspan-site控制colspan参数
Row h1 titlestyle、Row h2 titlestyle  对应样式。示例:style = "<属性1>:<值1>;<属性2>:<值2>;"
under-column-color  下栏标题背景颜色,默认#62bca9
Row h1 info、Row h2 info  下栏内容,用上述colspan-site控制colspan参数
Row h1 infostyle、Row h2 infostyle  对应样式示例:style = "<属性1>:<值1>;<属性2>:<值2>;"
Row b1、Row b2  补充项目

外部链接

本页面含有来自萌娘百科的文本,以CC BY-NC-SA 3.0授权引入。经过双方的修改,内容可能已与来源有很大差异。

  1. 一般称为“信息栏配图”