Template:Infobox/doc
The template was designed by Nostalgia. Originally, it was intended to introduce a template of the same name from Wikipedia. Because the parameters were too complicated, a new one was created.
The creative idea of the template is compatible with all the information templates of Moegirlpedia, which is convenient for other people to create information templates.
The Infobox series are designed based on this template. For related information, see Nostalgia's userpage.
The template involves some very complicated parameters, and it is restricted to the administrator to edit. If you have better ideas and want to add some new items, it is recommended to ask for help in the Discussion Board or the discussion page of this template.
Contents
Usage
{{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 = }}
Parameters
General
- class=, The class used by the template, the default value is infobox.
- align=, The overall alignment of the template: center means centered, right means right-aligned, left means left-aligned.
- text-align=, the horizontal alignment of the text in the template: center is centered, right is right-aligned, left is left-aligned.
- width=, the width of the template, the default value is 260px.
- max-width=, the maximum width, the default value is 100%.
- float=, the floating processing of the template, right is right floating, left is left floating, none is non-floating.
- bg-color=, the template's background color, the default value is white.
- colspan-site=, determines the column span value of the header, tabs, columns, etc. the default value is 2.
Header
- title-main=, the template's header, hidden by default, please do not use this item if you keep the header.
- title-color=, the color of the header, the default value is #FFF (white).
- text-color=, the color of the header's text, the default value is white.
Images
- image=, The file name. Do not include "File:", unless the file name itself.
- size=, the image's size. the default value is 250px. When filling in this item, units such as "px"/"em" are required.
- caption=, The information below the image.
- image-lostmessage=, the picture is the default message.
- tabs=, is used to mobilize {{Tabs}}. In the case of using {{Tabs}} as information, please do not input "image", "size" or "caption".
- For the detailed usage of Tabs, see {{Tabs/doc}}.
Content, z=number
- [Row x1], [Row x2]= the horizontal bar, the colspan value defaults to 2.
- [Row x1 style], [Row x2 style] = horizontal column style.
- Row z title=, corresponding to the content on the left side of the information bar.
Row z titlestyle=, corresponding to the style on the left side of the information bar. Row z info=, corresponding to the content on the right side of the information bar. Row z infostyle=, corresponding to the style on the right side of the information bar. Row titlestyle=, all styles on the left side of the information bar can be overwritten by corresponding styles. Row infostyle=, all styles on the right side of the information bar can be overridden by corresponding styles. left-column-color=, the background color on the left side of the information bar, default value is #E0FFFF.
Content below
- [Row h1 title], [Row h2 title]=, the title of the lower column, the default value of colspan is 2.
- [Row h1 titlestyle], [Row h2 titlestyle]=, corresponding styles.
- under-column-color=, the background color of the lower column title, default value is #62bca9.
- [Row h1 info], [Row h2 info]=, the content of the bottom column, the default value of colspan is 2.
- [Row h1 infostyle], [Row h2 infostyle]=, corresponding style.
- [Row b1], [Row b2]=, supplementary items.
Editing style
Style 1
Style 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 = 250px |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|}}} }} |
|
Style 3
(to be added)
Style 4
(to be added)