Template:Infobox: Difference between revisions
Jump to navigation
Jump to search
Add New Page infobox ~~~~ |
No edit summary |
||
Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
{| class="infobox" style="border: 4px solid {{{BorderColour|#000000}}}; background-color: {{{backgroundColour|# | {| class="infobox" style="border: 4px solid {{{BorderColour|#000000}}}; background-color: {{{backgroundColour|#FFFFFF}}}; float: right; clear: right; margin: 0 0 1em 1em; width: 22em;" | ||
! style="background-color: {{{Heading-colour|#000000}}}; font-size: 120%;" align="center" colspan="2"| <span style="color: #FFFFFF;">'''{{{Title|{{PAGENAME}}}}}'''</span> | ! style="background-color: {{{Heading-colour|#000000}}}; font-size: 120%;" align="center" colspan="2"| <span style="color: #FFFFFF;">'''{{{Title|{{PAGENAME}}}}}'''</span> | ||
|- | |- | ||
Line 120: | Line 120: | ||
|MidHeading =Statistics | |MidHeading =Statistics | ||
|Heading-colour =blue | |Heading-colour =blue | ||
|BorderColour =# | |BorderColour =#00FF00 | ||
|BackgroundColour =#00FFFF | |BackgroundColour =#00FFFF | ||
|Field0 =Hex Code | |Field0 =Hex Code | ||
Line 144: | Line 144: | ||
|MidHeading =Statistics | |MidHeading =Statistics | ||
|Heading-colour =blue | |Heading-colour =blue | ||
|BorderColour =# | |BorderColour =#00FF00 | ||
|BackgroundColour =#00FFFF | |BackgroundColour =#00FFFF | ||
|Field0 =Hex Code | |Field0 =Hex Code |
Revision as of 18:27, 15 November 2010
Infobox | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
[[Image:{{{Image}}}|225px]] | ||||||||||||||
|
Guide to template fields
- Image: Only the filename and extension are required here. No "Image:" prefix or pixel size are necessary. i.e. image.jpg
- Image caption: this appears below the image in small grey italic text it is sometimes useful to insert where the picture was taken
- Field#: This text is placed in bold in the first column under the Mid heading each field corresponds to an "info#" signified by the number next to it.
- Info#: This text is placed opposite its corresponding 'field' signified by the number next to it..
You can use upto 6 "field#" and "info#" boxes when creating an new infobox;
Optional:
- Title: changes text in the top-heading of the infobox table if needed, the heading is taken from the page name by default.
- Heading-colour: change only if needed default colour is black. hex-code:000000
- MidHeading: Changes text of the mid heading.
- BorderColour: Changes the colour of the border, the default colour is black. hex-code:000000.
- BackgroundColour: changes the background colour of the entire infobox by default it is grey. hex-code:CCCCCC.
Using this template to build other templates is possible, but due to its limited range it is not recommended.
Usage
Copy and paste the following into the top of the page and fill in the fields as appropriate. Info box with full list of parameters
{{Infobox |Title = |Image = |Imagecaption = |MidHeading = |BorderColour = |backgroundColour = |Heading-colour = |Field0 = |Info0 = |Field1 = |Info1 = |Field2 = |Info2 = |Field3 = |Info3 = |Field4 = |Info4 = |Field5 = |Info5 = }}
Example
Infobox | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Cake type 1 (no Marzipan)
|
{{Infobox |Image =nopic.jpg |Imagecaption =Cake type 1 (no Marzipan) |Field0 =Cake |Info0 =It's good! |Field1 =Blue cake |Info1 =It's bad! }}
Advanced Example
Red | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a Red box
|
{{Infobox |Title =Red |Image =Red.jpg |Imagecaption =a Red box |MidHeading =Statistics |Heading-colour =blue |BorderColour =#00FF00 |BackgroundColour =#00FFFF |Field0 =Hex Code |Info0 =#FF0000 |Field1 =R,G,B, Code |Info1 =255,000,000 |Field2 =C,M,Y,K Code |Info2 =0,100,100,0 |Field3 =HSV code |Info3 =0,100,100 |Field4 = |Info4 = |Field5 =Wiki page |Info5 =http://en.wikipedia.org/wiki/Red }}