該模板引入自萌娘百科。有问题请在本模板的讨论页面寻求帮助。
用法
:點擊查看所有項目
{{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= ,模板整體的對齊方式,center為居中,right有為右對齊,left為左對齊。
- text-align= ,模板中文本的水平對齊方式,center為居中,right有為右對齊,left為左對齊。
- width= ,模板寬度,默認260px。
- max-width= ,最大寬度,默認100%。
- float= ,模板的浮動處理,right有為右浮動,left為左浮動,none為不浮動。
- bg-color= ,模板背景色,默認#FFF(白色)。
- colspan-site= ,決定題頭、圖片、tabs、欄x1、h1等colspan數值,默認為2
- 題頭樣式
- title-main= ,模板題頭,缺省時隱去,保留題頭時,請不要使用該項目。
- title-color= ,題頭顏色,默認#26ca9b。
- text-color= ,題頭文字顏色,默認白色。
- Title= ,題頭中的文字。
- 圖片部分[1]
- 主體內容部分,z=數字
- 【Row x1】、【Row x2】= ,橫欄,colspan數值默認為2。
- 【Row x1 style】、【Row x2 style】= ,橫欄樣式。
- Row z title= ,對應信息欄左側內容。
- Row z titlestyle= ,對應信息欄左側樣式。
- Row z info= ,對應信息欄右側內容。
- Row z infostyle= ,對應信息欄右側樣式。
- Row titlestyle= ,全部信息欄左側樣式,可以被對應樣式覆蓋。
- Row infostyle= ,全部信息欄右側樣式,可以被對應樣式覆蓋。
- left-column-color= ,信息欄左側背景顏色,默認#E0FFFF。
- 下方內容部分
- 【Row h1 title】、【Row h2 title】= ,下欄標題,colspan數值默認為2。
- 【Row h1 titlestyle】、【Row h2 titlestyle】= ,對應樣式。
- under-column-color= ,下欄標題背景顏色,默認#62bca9。
- 【Row h1 info】、【Row h2 info】= ,下欄內容,colspan數值默認為2。
- 【Row h1 infostyle】、【Row h2 infostyle】= ,對應樣式。
- 【Row b1】、【Row b2】= ,補充項目。
編輯樣式
樣式1
(待補完)
樣式2
{{Infobox |bg-color = #FFF |title-color = #C0C0C0 |left-column-color = #75f3fd |text-color = #FFFFFF |Title = <span itemprop="name">標題</span> |image = {{{image|}}} |image-lostmessage = 圖片不存在時留言 |size = 280px |caption = <span style="text-align:center;">圖片說明文字</span> |tabs = {{{tabs|}}} |Row x1 = '''分割欄''' |Row x1 style = bgcolor="#C0C0C0" |Row titlestyle = style="font-weight: bold;" width = 70px |Row 1 title = 項目1 |Row 1 info = {{{項目1|}}} |Row 2 title = {{#if:{{{項目2|}}}|項目2標題}} (填寫后觸發的項目) |Row 2 info = {{{項目2|}}} (填寫后觸發的項目內容) |Row 3 title = 項目3 |Row 3 info = {{{項目3|}}} |Row h1 title = {{#if:{{{分割欄2|}}}|'''分割欄2標題'''}} |under-column-color = #E0FFFF |Row h1 info = {{{分割欄2|}}} }} |
|
樣式3
(待補完)
樣式4
(待補完)
注释
- ↑ 一般稱為“信息欄配圖”