Template:InfoBar 2.0/doc
Page title | ||
Chinese | 1 | |
English | 1 | |
Japanese | 2 | |
Basic Info | ||
Hair Color | 3 | |
Eye Color | 4 | |
Height | 5 | |
Weight | 6 | |
BWH | 7 | |
Relatives |
This is Version 2.0 of the {{InfoBar}} template.
This template allows:
- A multi-purpose infobox.
- All parameters can be customized. There are no restrictions on the title and content of custom items, but use escape templates for meaningful characters in Wikitext.
- Support style sheet customization.
- The three project styles are flexibly matched and feature-rich.
- It is backward compatible with most of the infobars (except Infobox 1.0), you only need to change the template name to Infobox 2.0 to get all the features of this template directly.
In the absence of any special requirements, it is recommended to use special information columns that match the entry, because they will bring some classification processing functions, and this template is a general template and will not handle classification and other special items. This template has categories, you can use the {{cate}} template.
Note to editors, it is prohibited to replace a large number of other infobar templates with this one without discussion!
Basics
{{Infobox 2.0 |title= <!-- Title header --> |image = <!-- Image --> |size = <!-- Image size, default is 250px --> |alt = <!-- Description of the image --> |float = <!-- Alignment of the infobox, default is "right" --> |Parameter 1 = |Parameter 2 = |Parameter 3 = …… |-xx = <!-- Parameters starting with - can set a column --> |Parameter 5 = |Parameter 6 = |_xx = <!-- Parameters starting with _ can set a display area--> |Parameter 7 = |Parameter 8 = |+xx = <!-- Parameters starting with + are fully customizable --> …… }} |
{{Infobox 2.0 |title = Page title |image = <!--Image goes here--> |imgdes = |Chinese = {{n}} |English = {{n|init}} |Japanese = {{n}} |-col1 = Basic Info |Hair Color = {{n}} |Eye Color = {{n}} |Height = {{n}} |Weight = {{n}} |BWH = {{n}} |-col2 = Relatives |Father = |Mother = |Sister = }} }} |
Parameters
Title | ||
---|---|---|
Title | Description | |
border | [Value] Border of the template | |
cellpadding | [Value] 单元格填充距离 | |
cellspacing | [Value]单元格间隔距离 | |
float | [Value] Alignment | |
m-style | [Style] Main background style | |
m-width | [Value] Main background width | |
m-bcolor | [Color] Main background color | |
m-color | [color] Main background font color | |
notitle | [control] Makes the template have no title | |
top-style | [Style] Top header style | |
top-bcolor | [Color] Top header color | |
top-color | [Color] Top header font color | |
title | [Content] Title header text | |
image | [File] An image | |
image-style | [Style] Image's style | |
size | [Value] Size of the image, default is 280px | |
alt | [Content] Text describing the image, an also be used to indicate the absence of an image | |
tabs | Used for the "tabs" function instead of the image area | |
t-style | [Style] Column style | |
t-bcolor | [Color] T-column color | |
t-color | [Color] T-column font color | |
i-style | [Style] I-column style | |
l-style | [Style] Left font style | |
l-width | [Value] Left column width | |
l-bcolor | [Color] Left column color | |
l-color | [Color] Left column font color | |
r-style | [style] Right column font (can be centered or to the left) | |
b-style | [style] Bottom column style | |
bottom | [content] Bottom column text (only effective when the bottom style is set) |
- - at the beginning, the content is arbitrary: set a new horizontal column, referred to as T-column (the entire line is merged, used to set a new information segment)
- _ at the beginning, any content: set a display area, referred to as I-frame (the same is the combination of the entire line, the difference from the T-column is that T is the title, and I is the entire content. For the specific effect, see the example below)
- +, any content: fully custom line
- Note: There are many parameters, but most of them are not commonly used. Please do not add unnecessary parameters.
Example usage
Hu Tingting | ||
Name | Hu Tingting (胡婷婷) | |
Nicknames | Niunai Jun (牛奶君) | |
Birth Date | September 19, 1992 | |
Star Sign | Virgo | |
Age | 32 | |
More Info | ||
Languages | Chinese | |
Birthplace | Shanghai | |
Characters Voiced | Luo Xi | |
Status | ||
A voice actress with a high character range, from Ojou to Loli.
Has a cat named Oreo. | ||
Hu Tingting |
{{Infobox 2.0 |title = 胡婷婷 |image = hutingting.jpg |Real Name = Hu Tingting (胡婷婷) |Nicknames = Niunai Jun (牛奶君) |Birth Date = September 19, 1992 |Star Sign = {{Astrology|9|19}} |Age = {{Age|1992|9|19}} |-col=More Info |Languages = Chinese |Birthplace = Shanghai |Characters Voiced = Luo Xi |-col2=Status |_text=A voice actress with a high character range, from ''Ojou'' to ''Loli''. Has a cat named Oreo. |-col3=[[File:Folder Hexagonal Icon.svg|16px|link=]] [[:Category:Voiced by|Hu Tingting]] }}
Customization
The style parameters can be used to customize the template. The following example is an example that mimics the display effect of {{Characterinfo}}:
Seiko Shinohara | ||
Real Name | 篠原 | |
Nickname | Miss 11 (数字梗) Shirai (Seiyuu meme) | |
Basic Info | ||
Birthday | December 22, 1991 | |
Star Sign | Capricorn | |
Age | 16 | |
Eye color | brown | |
Hair Color | Brown | |
Bust | B-cup | |
Moe Points | genki, 淑女, Template:黑雾, yuri | |
More Info | ||
Likes | combing hair, writing dance songs | |
Dislikes | when one is alone | |
Interest | emailing from mobile phone, writing observation diary of Zhimei | |
Dream | To be a stylist | |
Favorite People | Nakajima Naomi | |
Affiliations | Kirizuki Academy High School 2nd grade | |
Personal Status | Soul Trapped in Tenjin Elementary School | |
Recordings | ||
{{Infobox 2.0 |title = Seiko Shinohara |image = Shinohara Seiko.png |size = 280px |Real Name = {{lj|篠原|しのはら|世以子|せいこ|Shinohara Seiko}} |Nickname = Miss 11 ([[数字梗]]) {{Spoiler|[[Kuroko Shirai|Kuroko]] ([[Seiyuu meme]]) }} |-col = Basic Info |Birthday = {{Birthday|December 22, 1991}} |Star Sign ={{Astrology|12|22}} |Age = 16 |Eye Color = Brown |Hair Color = Brown |Bust = B-cup |Moe Points = [[genki]], [[淑女]], {{黑雾|[[污]]}}, [[Yuri (moe point)|Yuri]] |-col2 = More Info |Likes = combing hair, writing dance songs |Dislikes = when one is alone |Interest = emailing from mobile phone, writing observation diary of Zhimei |Dream = To be a stylist |Favorite People = [[Nakajima Naomi]] |Affiliations = Kirizuki Academy High School 2nd grade |Personal Status = Soul Trapped in Tenjin Elementary School |-col3 = Recordings |_text=<sm2>seiko01.mp3</sm2><sm2>seiko02.mp3</sm2><sm2>seiko03.mp3</sm2> |border=1 |m-style=padding: 2px; background:#fff;font-size:89%; width:260px; border-radius:10px 10px 5px 5px;word-wrap:break-word;font:12px/150% |top-style=text-align:center; color:#ffffff; background-color:#000; min-width: 4em;; font-size:120%; {{RoundTop|10px}}; padding:1em |image-style=text-align:center;border-radius:10px; |r-style=text-align:left; |l-style=text-align:center; max-width: 200px; color:#ffffff; background-color:#000; min-width: 4em; -moz-border-radius: 10px; |t-style=text-align:center; color:#ffffff; background-color:#000; min-min-width: 4em; |b-style=height: 12.5px; color:#ffffff; background-color:#000; border-radius:0px 0px 10px 10px; margin:2px 5px; font:12px/150% }}
Other
Reference settings in the style of {{Characterinfo}}:
{{Infobox 2.0 |notitle = true |cellpadding = 0 |cellspacing = 0 |image-style = text-align:center |m-style = text-align:center; float: right; width: 250px; font-size:90%; margin: 1em 0 1em 1em; background: #f9f9f9; border: 1px #999 solid; border-collapse: collapse; word-break: break-all; clear: right; |t-style = text-align:center; font-weight:900; background-color:#deede0 |l-style = text-align:center; font-weight:900; min-width: 4em; |i-style = text-align:center; |image= |-col=Basic Info |Name= |Other Names= |Hair Color= |Eye Color= |Moe Points= |CV= |-col2=Related Characters |_Related Characters= }}
{{User Infobox}} The style is similar to the character information. Refer to the following for editing time notation:
|Edit Count ='''<span style="font-family:Times New Roman">{{#cscore:{{BASEPAGENAME:{{PAGENAME}}}}|pages}}</span>'''Articles! |Total edits ='''<span style="font-family:Times New Roman">{{#cscore:{{BASEPAGENAME:{{PAGENAME}}}}|changes}}</span>'''Total edits! |Combat power ='''<span style="font-family:Times New Roman">{{#cscore:{{BASEPAGENAME:{{PAGENAME}}}}|score}}</span>'''Time editing!