模板: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. 一般稱為「信息欄配圖」