Difference between revisions of "Template:Infobox"
From Twinsuniverse
J McKalling (Talk | contribs) m (removed stub notification, misleading for template pages) |
J McKalling (Talk | contribs) (added a new style entry) |
||
Line 11: | Line 11: | ||
}} | }} | ||
{{Infobox/row | {{Infobox/row | ||
− | |header={{{header1|}}} |label={{{label1|}}} |data={{{data1|}}} |class={{{class1|}}} | + | |header={{{header1|}}} |label={{{label1|}}} |data={{{data1|}}} |class={{{class1|}}} |datastyle={{{datastyle|}}} |
− | |headstyle={{{ | + | |headstyle={{#ifeq:{{{header1|a}}}{{{class1|}}}|{{{header1|b}}}heading|{{{leadstyle|}}}|{{{headstyle|}}}}} |
}}{{Infobox/row | }}{{Infobox/row | ||
− | |header={{{header2|}}} |label={{{label2|}}} |data={{{data2|}}} |class={{{class2|}}} | + | |header={{{header2|}}} |label={{{label2|}}} |data={{{data2|}}} |class={{{class2|}}} |datastyle={{{datastyle|}}} |
− | |headstyle={{{ | + | |headstyle={{#ifeq:{{{header2|a}}}{{{class2|}}}|{{{header2|b}}}heading|{{{leadstyle|}}}|{{{headstyle|}}}}} |
}}{{Infobox/row | }}{{Infobox/row | ||
− | |header={{{header3|}}} |label={{{label3|}}} |data={{{data3|}}} |class={{{class3|}}} | + | |header={{{header3|}}} |label={{{label3|}}} |data={{{data3|}}} |class={{{class3|}}} |datastyle={{{datastyle|}}} |
− | |headstyle={{{ | + | |headstyle={{#ifeq:{{{header3|a}}}{{{class3|}}}|{{{header3|b}}}heading|{{{leadstyle|}}}|{{{headstyle|}}}}} |
}}{{Infobox/row | }}{{Infobox/row | ||
− | |header={{{header4|}}} |label={{{label4|}}} |data={{{data4|}}} |class={{{class4|}}} | + | |header={{{header4|}}} |label={{{label4|}}} |data={{{data4|}}} |class={{{class4|}}} |datastyle={{{datastyle|}}} |
− | |headstyle={{{ | + | |headstyle={{#ifeq:{{{header4|a}}}{{{class4|}}}|{{{header4|b}}}heading|{{{leadstyle|}}}|{{{headstyle|}}}}} |
}}{{Infobox/row | }}{{Infobox/row | ||
− | |header={{{header5|}}} |label={{{label5|}}} |data={{{data5|}}} |class={{{class5|}}} | + | |header={{{header5|}}} |label={{{label5|}}} |data={{{data5|}}} |class={{{class5|}}} |datastyle={{{datastyle|}}} |
− | |headstyle={{{ | + | |headstyle={{#ifeq:{{{header5|a}}}{{{class5|}}}|{{{header5|b}}}heading|{{{leadstyle|}}}|{{{headstyle|}}}}} |
}}{{Infobox/row | }}{{Infobox/row | ||
− | |header={{{header6|}}} |label={{{label6|}}} |data={{{data6|}}} |class={{{class6|}}} | + | |header={{{header6|}}} |label={{{label6|}}} |data={{{data6|}}} |class={{{class6|}}} |datastyle={{{datastyle|}}} |
− | |headstyle={{{ | + | |headstyle={{#ifeq:{{{header6|a}}}{{{class6|}}}|{{{header6|b}}}heading|{{{leadstyle|}}}|{{{headstyle|}}}}} |
}}{{Infobox/row | }}{{Infobox/row | ||
− | |header={{{header7|}}} |label={{{label7|}}} |data={{{data7|}}} |class={{{class7|}}} | + | |header={{{header7|}}} |label={{{label7|}}} |data={{{data7|}}} |class={{{class7|}}} |datastyle={{{datastyle|}}} |
− | |headstyle={{{ | + | |headstyle={{#ifeq:{{{header7|a}}}{{{class7|}}}|{{{header7|b}}}heading|{{{leadstyle|}}}|{{{headstyle|}}}}} |
}}{{Infobox/row | }}{{Infobox/row | ||
− | |header={{{header8|}}} |label={{{label8|}}} |data={{{data8|}}} |class={{{class8|}}} | + | |header={{{header8|}}} |label={{{label8|}}} |data={{{data8|}}} |class={{{class8|}}} |datastyle={{{datastyle|}}} |
− | |headstyle={{{ | + | |headstyle={{#ifeq:{{{header8|a}}}{{{class8|}}}|{{{header8|b}}}heading|{{{leadstyle|}}}|{{{headstyle|}}}}} |
}}{{Infobox/row | }}{{Infobox/row | ||
− | |header={{{header9|}}} |label={{{label9|}}} |data={{{data9|}}} |class={{{class9|}}} | + | |header={{{header9|}}} |label={{{label9|}}} |data={{{data9|}}} |class={{{class9|}}} |datastyle={{{datastyle|}}} |
− | |headstyle={{{ | + | |headstyle={{#ifeq:{{{heade9r|a}}}{{{class9|}}}|{{{header9|b}}}heading|{{{leadstyle|}}}|{{{headstyle|}}}}} |
}}{{Infobox/row | }}{{Infobox/row | ||
− | |header={{{header10|}}} |label={{{label10|}}} |data={{{data10|}}} |class={{{class10|}}} | + | |header={{{header10|}}} |label={{{label10|}}} |data={{{data10|}}} |class={{{class10|}}} |datastyle={{{datastyle|}}} |
− | |headstyle={{{ | + | |headstyle={{#ifeq:{{{header10|a}}}{{{class10|}}}|{{{header10|b}}}heading|{{{leadstyle|}}}|{{{headstyle|}}}}} |
}}{{Infobox/row | }}{{Infobox/row | ||
− | |header={{{header11|}}} |label={{{label11|}}} |data={{{data11|}}} |class={{{class11|}}} | + | |header={{{header11|}}} |label={{{label11|}}} |data={{{data11|}}} |class={{{class11|}}} |datastyle={{{datastyle|}}} |
− | |headstyle={{{ | + | |headstyle={{#ifeq:{{{header11|a}}}{{{class11|}}}|{{{header11|b}}}heading|{{{leadstyle|}}}|{{{headstyle|}}}}} |
}}{{Infobox/row | }}{{Infobox/row | ||
− | |header={{{header12|}}} |label={{{label12|}}} |data={{{data12|}}} |class={{{class12|}}} | + | |header={{{header12|}}} |label={{{label12|}}} |data={{{data12|}}} |class={{{class12|}}} |datastyle={{{datastyle|}}} |
− | |headstyle={{{ | + | |headstyle={{#ifeq:{{{header12|a}}}{{{class12|}}}|{{{header12|b}}}heading|{{{leadstyle|}}}|{{{headstyle|}}}}} |
}}{{Infobox/row | }}{{Infobox/row | ||
− | |header={{{header13|}}} |label={{{label13|}}} |data={{{data13|}}} |class={{{class13|}}} | + | |header={{{header13|}}} |label={{{label13|}}} |data={{{data13|}}} |class={{{class13|}}} |datastyle={{{datastyle|}}} |
− | |headstyle={{{ | + | |headstyle={{#ifeq:{{{header13|a}}}{{{class13|}}}|{{{header13|b}}}heading|{{{leadstyle|}}}|{{{headstyle|}}}}} |
}}{{Infobox/row | }}{{Infobox/row | ||
− | |header={{{header14|}}} |label={{{label14|}}} |data={{{data14|}}} |class={{{class14|}}} | + | |header={{{header14|}}} |label={{{label14|}}} |data={{{data14|}}} |class={{{class14|}}} |datastyle={{{datastyle|}}} |
− | |headstyle={{{ | + | |headstyle={{#ifeq:{{{header14|a}}}{{{class14|}}}|{{{header14|b}}}heading|{{{leadstyle|}}}|{{{headstyle|}}}}} |
}}{{Infobox/row | }}{{Infobox/row | ||
− | |header={{{header15|}}} |label={{{label15|}}} |data={{{data15|}}} |class={{{class15|}}} | + | |header={{{header15|}}} |label={{{label15|}}} |data={{{data15|}}} |class={{{class15|}}} |datastyle={{{datastyle|}}} |
− | |headstyle={{{ | + | |headstyle={{#ifeq:{{{header15|a}}}{{{class15|}}}|{{{header15|b}}}heading|{{{leadstyle|}}}|{{{headstyle|}}}}} |
}}{{Infobox/row | }}{{Infobox/row | ||
− | |header={{{header16|}}} |label={{{label16|}}} |data={{{data16|}}} |class={{{class16|}}} | + | |header={{{header16|}}} |label={{{label16|}}} |data={{{data16|}}} |class={{{class16|}}} |datastyle={{{datastyle|}}} |
− | |headstyle={{{ | + | |headstyle={{#ifeq:{{{header16|a}}}{{{class16|}}}|{{{header16|b}}}heading|{{{leadstyle|}}}|{{{headstyle|}}}}} |
}}{{Infobox/row | }}{{Infobox/row | ||
− | |header={{{header17|}}} |label={{{label17|}}} |data={{{data17|}}} |class={{{class17|}}} | + | |header={{{header17|}}} |label={{{label17|}}} |data={{{data17|}}} |class={{{class17|}}} |datastyle={{{datastyle|}}} |
− | |headstyle={{{ | + | |headstyle={{#ifeq:{{{header17|a}}}{{{class17|}}}|{{{header17|b}}}heading|{{{leadstyle|}}}|{{{headstyle|}}}}} |
}}{{Infobox/row | }}{{Infobox/row | ||
− | |header={{{header18|}}} |label={{{label18|}}} |data={{{data18|}}} |class={{{class18|}}} | + | |header={{{header18|}}} |label={{{label18|}}} |data={{{data18|}}} |class={{{class18|}}} |datastyle={{{datastyle|}}} |
− | |headstyle={{{ | + | |headstyle={{#ifeq:{{{header18|a}}}{{{class18|}}}|{{{header18|b}}}heading|{{{leadstyle|}}}|{{{headstyle|}}}}} |
}}{{Infobox/row | }}{{Infobox/row | ||
− | |header={{{header19|}}} |label={{{label19|}}} |data={{{data19|}}} |class={{{class19|}}} | + | |header={{{header19|}}} |label={{{label19|}}} |data={{{data19|}}} |class={{{class19|}}} |datastyle={{{datastyle|}}} |
− | |headstyle={{{ | + | |headstyle={{#ifeq:{{{header19|a}}}{{{class19|}}}|{{{header19|b}}}heading|{{{leadstyle|}}}|{{{headstyle|}}}}} |
}}{{Infobox/row | }}{{Infobox/row | ||
− | |header={{{header20|}}} |label={{{label20|}}} |data={{{data20|}}} |class={{{class20|}}} | + | |header={{{header20|}}} |label={{{label20|}}} |data={{{data20|}}} |class={{{class20|}}} |datastyle={{{datastyle|}}} |
− | |headstyle={{{ | + | |headstyle={{#ifeq:{{{header20|a}}}{{{class20|}}}|{{{header20|b}}}heading|{{{leadstyle|}}}|{{{headstyle|}}}}} |
}}{{Infobox/row | }}{{Infobox/row | ||
− | |header={{{header21|}}} |label={{{label21|}}} |data={{{data21|}}} |class={{{class21|}}} | + | |header={{{header21|}}} |label={{{label21|}}} |data={{{data21|}}} |class={{{class21|}}} |datastyle={{{datastyle|}}} |
− | |headstyle={{{ | + | |headstyle={{#ifeq:{{{header21|a}}}{{{class21|}}}|{{{header21|b}}}heading|{{{leadstyle|}}}|{{{headstyle|}}}}} |
}}{{Infobox/row | }}{{Infobox/row | ||
− | |header={{{header22|}}} |label={{{label22|}}} |data={{{data22|}}} |class={{{class22|}}} | + | |header={{{header22|}}} |label={{{label22|}}} |data={{{data22|}}} |class={{{class22|}}} |datastyle={{{datastyle|}}} |
− | |headstyle={{{ | + | |headstyle={{#ifeq:{{{header22|a}}}{{{class22|}}}|{{{header22|b}}}heading|{{{leadstyle|}}}|{{{headstyle|}}}}} |
}}{{Infobox/row | }}{{Infobox/row | ||
− | |header={{{header23|}}} |label={{{label23|}}} |data={{{data23|}}} |class={{{class23|}}} | + | |header={{{header23|}}} |label={{{label23|}}} |data={{{data23|}}} |class={{{class23|}}} |datastyle={{{datastyle|}}} |
− | |headstyle={{{ | + | |headstyle={{#ifeq:{{{header23|a}}}{{{class23|}}}|{{{header23|b}}}heading|{{{leadstyle|}}}|{{{headstyle|}}}}} |
}}{{Infobox/row | }}{{Infobox/row | ||
− | |header={{{header24|}}} |label={{{label24|}}} |data={{{data24|}}} |class={{{class24|}}} | + | |header={{{header24|}}} |label={{{label24|}}} |data={{{data24|}}} |class={{{class24|}}} |datastyle={{{datastyle|}}} |
− | |headstyle={{{ | + | |headstyle={{#ifeq:{{{header24|a}}}{{{class24|}}}|{{{header24|b}}}heading|{{{leadstyle|}}}|{{{headstyle|}}}}} |
}}{{Infobox/row | }}{{Infobox/row | ||
− | |header={{{header25|}}} |label={{{label25|}}} |data={{{data25|}}} |class={{{class25|}}} | + | |header={{{header25|}}} |label={{{label25|}}} |data={{{data25|}}} |class={{{class25|}}} |datastyle={{{datastyle|}}} |
− | |headstyle={{{ | + | |headstyle={{#ifeq:{{{header25|a}}}{{{class25|}}}|{{{header25|b}}}heading|{{{leadstyle|}}}|{{{headstyle|}}}}} |
}}{{Infobox/row | }}{{Infobox/row | ||
− | |header={{{header26|}}} |label={{{label26|}}} |data={{{data26|}}} |class={{{class26|}}} | + | |header={{{header26|}}} |label={{{label26|}}} |data={{{data26|}}} |class={{{class26|}}} |datastyle={{{datastyle|}}} |
− | |headstyle={{{ | + | |headstyle={{#ifeq:{{{header26|a}}}{{{class26|}}}|{{{header26|b}}}heading|{{{leadstyle|}}}|{{{headstyle|}}}}} |
}}{{Infobox/row | }}{{Infobox/row | ||
− | |header={{{header27|}}} |label={{{label27|}}} |data={{{data27|}}} |class={{{class27|}}} | + | |header={{{header27|}}} |label={{{label27|}}} |data={{{data27|}}} |class={{{class27|}}} |datastyle={{{datastyle|}}} |
− | |headstyle={{{ | + | |headstyle={{#ifeq:{{{header27|a}}}{{{class27|}}}|{{{header27|b}}}heading|{{{leadstyle|}}}|{{{headstyle|}}}}} |
}}{{Infobox/row | }}{{Infobox/row | ||
− | |header={{{header28|}}} |label={{{label28|}}} |data={{{data28|}}} |class={{{class28|}}} | + | |header={{{header28|}}} |label={{{label28|}}} |data={{{data28|}}} |class={{{class28|}}} |datastyle={{{datastyle|}}} |
− | |headstyle={{{ | + | |headstyle={{#ifeq:{{{header28|a}}}{{{class28|}}}|{{{header28|b}}}heading|{{{leadstyle|}}}|{{{headstyle|}}}}} |
}}{{Infobox/row | }}{{Infobox/row | ||
− | |header={{{header29|}}} |label={{{label29|}}} |data={{{data29|}}} |class={{{class29|}}} | + | |header={{{header29|}}} |label={{{label29|}}} |data={{{data29|}}} |class={{{class29|}}} |datastyle={{{datastyle|}}} |
− | |headstyle={{{ | + | |headstyle={{#ifeq:{{{header29|a}}}{{{class29|}}}|{{{header29|b}}}heading|{{{leadstyle|}}}|{{{headstyle|}}}}} |
}}{{Infobox/row | }}{{Infobox/row | ||
− | |header={{{header30|}}} |label={{{label30|}}} |data={{{data30|}}} |class={{{class30|}}} | + | |header={{{header30|}}} |label={{{label30|}}} |data={{{data30|}}} |class={{{class30|}}} |datastyle={{{datastyle|}}} |
− | |headstyle={{{ | + | |headstyle={{#ifeq:{{{header30|a}}}{{{class30|}}}|{{{header30|b}}}heading|{{{leadstyle|}}}|{{{headstyle|}}}}} |
}} | }} | ||
</table>{{#vardefine:infobox_messages | </table>{{#vardefine:infobox_messages | ||
Line 111: | Line 111: | ||
* '''title''': | * '''title''': | ||
* '''float''': yes/no | * '''float''': yes/no | ||
+ | * '''mainstyle''': | ||
+ | * '''headstyle''': | ||
+ | * '''leadstyle''': | ||
+ | * '''datastyle''': | ||
* '''class''': one of the theme titles on the [[Template:Infobox/themes|Infobox/themes]] template | * '''class''': one of the theme titles on the [[Template:Infobox/themes|Infobox/themes]] template | ||
* '''image''': | * '''image''': | ||
Line 128: | Line 132: | ||
==Example== | ==Example== | ||
− | ... | + | ... this template is still under documentation |
[[Category:System Templates]] | [[Category:System Templates]] | ||
[[Category:Infoboxes| ]] | [[Category:Infoboxes| ]] | ||
</noinclude> | </noinclude> |
Revision as of 22:59, 26 May 2014
This template is used to show an infobox for an article. It should be the first of the article, before the general description. This template uses it's Infobox/row template for rendering title, optional article image, and 30 optional rows of custom data.
Parameters
- infoboxname: The name of the infobox calling this template, for the link to documentation (case sensitive, defaults to no documentation link displayed)
- title:
- float: yes/no
- mainstyle:
- headstyle:
- leadstyle:
- datastyle:
- class: one of the theme titles on the Infobox/themes template
- image:
- imagecaption:
- noimage:
- nocat:
...
Syntax
Copy and paste the following for quick use:
{{infobox |class= |image= |imagecaption= }}
Example
... this template is still under documentation