Difference between revisions of "Template:Infobox"
From Twinsuniverse
J McKalling (Talk | contribs) m (testing substitution for themestyles) |
J McKalling (Talk | contribs) |
||
Line 1: | Line 1: | ||
<includeonly>{{#vardefine: infobox_messages|<!-- initializer -->}}{{ | <includeonly>{{#vardefine: infobox_messages|<!-- initializer -->}}{{ | ||
#var_final: infobox_messages | | #var_final: infobox_messages | | ||
− | + | }}<table class="infobox {{#if:{{{float|}}}|side}}" border="0" cellpadding="0" cellspacing="0" style="{{{tablestyle|}}}"> | |
− | + | {{Infobox/row | header={{#if: {{{title|}}} | {{{title}}} | {{PAGENAME}} }} | class=title | |
− | }}<table class="infobox {{#if:{{{float|}}}|side | + | | titlestyle={{{titlestyle|}}} |
− | {{Infobox/row | + | |
− | + | ||
− | | | + | |
}}{{ | }}{{ | ||
#ifeq: {{{noimage|false}}} | false | #ifeq: {{{noimage|false}}} | false | ||
|{{Infobox/row | |{{Infobox/row | ||
− | |data={{articleimage |{{{image|}}}| {{{imagecaption|Image for article: {{PAGENAME}}}}} | nocat={{{nocat|false}}} }} | + | |data={{articleimage|{{{image|}}}|{{{imagecaption|Image for article: {{PAGENAME}}}}}|nocat={{{nocat|false}}}}}|class=image |
− | + | |datastyle={{{datastyle|}}}}} | |
}} | }} | ||
{{Infobox/row | {{Infobox/row | ||
− | |header={{{header1|}}} | + | |header={{{header1|}}} |label={{{label1|}}} |data={{{data1|}}} |class={{{class1|}}} |
− | + | |headstyle={{{headstyle|}}} |datastyle={{{datastyle|}}} | |
− | + | ||
− | + | ||
}}{{Infobox/row | }}{{Infobox/row | ||
− | |header={{{header2|}}} | + | |header={{{header2|}}} |label={{{label2|}}} |data={{{data2|}}} |class={{{class2|}}} |
− | + | |headstyle={{{headstyle|}}} |datastyle={{{datastyle|}}} | |
− | + | ||
− | + | ||
}}{{Infobox/row | }}{{Infobox/row | ||
− | |header={{{header3|}}} | + | |header={{{header3|}}} |label={{{label3|}}} |data={{{data3|}}} |class={{{class3|}}} |
− | + | |headstyle={{{headstyle|}}} |datastyle={{{datastyle|}}} | |
− | + | ||
− | + | ||
}}{{Infobox/row | }}{{Infobox/row | ||
− | |header={{{header4|}}} | + | |header={{{header4|}}} |label={{{label4|}}} |data={{{data4|}}} |class={{{class4|}}} |
− | + | |headstyle={{{headstyle|}}} |datastyle={{{datastyle|}}} | |
− | + | ||
− | + | ||
}}{{Infobox/row | }}{{Infobox/row | ||
− | |header={{{header5|}}} | + | |header={{{header5|}}} |label={{{label5|}}} |data={{{data5|}}} |class={{{class5|}}} |
− | + | |headstyle={{{headstyle|}}} |datastyle={{{datastyle|}}} | |
− | + | ||
− | + | ||
}}{{Infobox/row | }}{{Infobox/row | ||
− | |header={{{header6|}}} | + | |header={{{header6|}}} |label={{{label6|}}} |data={{{data6|}}} |class={{{class6|}}} |
− | + | |headstyle={{{headstyle|}}} |datastyle={{{datastyle|}}} | |
− | + | ||
− | + | ||
}}{{Infobox/row | }}{{Infobox/row | ||
− | |header={{{header7|}}} | + | |header={{{header7|}}} |label={{{label7|}}} |data={{{data7|}}} |class={{{class7|}}} |
− | + | |headstyle={{{headstyle|}}} |datastyle={{{datastyle|}}} | |
− | + | ||
− | + | ||
}}{{Infobox/row | }}{{Infobox/row | ||
− | |header={{{header8|}}} | + | |header={{{header8|}}} |label={{{label8|}}} |data={{{data8|}}} |class={{{class8|}}} |
− | + | |headstyle={{{headstyle|}}} |datastyle={{{datastyle|}}} | |
− | + | ||
− | + | ||
}}{{Infobox/row | }}{{Infobox/row | ||
− | |header={{{header9|}}} | + | |header={{{header9|}}} |label={{{label9|}}} |data={{{data9|}}} |class={{{class9|}}} |
− | + | |headstyle={{{headstyle|}}} |datastyle={{{datastyle|}}} | |
− | + | ||
− | + | ||
}}{{Infobox/row | }}{{Infobox/row | ||
− | |header={{{header10|}}} | + | |header={{{header10|}}} |label={{{label10|}}} |data={{{data10|}}} |class={{{class10|}}} |
− | + | |headstyle={{{headstyle|}}} |datastyle={{{datastyle|}}} | |
− | + | ||
− | + | ||
}}{{Infobox/row | }}{{Infobox/row | ||
− | |header={{{header11|}}} | + | |header={{{header11|}}} |label={{{label11|}}} |data={{{data11|}}} |class={{{class11|}}} |
− | + | |headstyle={{{headstyle|}}} |datastyle={{{datastyle|}}} | |
− | + | ||
− | + | ||
}}{{Infobox/row | }}{{Infobox/row | ||
− | |header={{{header12|}}} | + | |header={{{header12|}}} |label={{{label12|}}} |data={{{data12|}}} |class={{{class12|}}} |
− | + | |headstyle={{{headstyle|}}} |datastyle={{{datastyle|}}} | |
− | + | ||
− | + | ||
}}{{Infobox/row | }}{{Infobox/row | ||
− | |header={{{header13|}}} | + | |header={{{header13|}}} |label={{{label13|}}} |data={{{data13|}}} |class={{{class13|}}} |
− | + | |headstyle={{{headstyle|}}} |datastyle={{{datastyle|}}} | |
− | + | ||
− | + | ||
}}{{Infobox/row | }}{{Infobox/row | ||
− | |header={{{header14|}}} | + | |header={{{header14|}}} |label={{{label14|}}} |data={{{data14|}}} |class={{{class14|}}} |
− | + | |headstyle={{{headstyle|}}} |datastyle={{{datastyle|}}} | |
− | + | ||
− | + | ||
}}{{Infobox/row | }}{{Infobox/row | ||
− | |header={{{header15|}}} | + | |header={{{header15|}}} |label={{{label15|}}} |data={{{data15|}}} |class={{{class15|}}} |
− | + | |headstyle={{{headstyle|}}} |datastyle={{{datastyle|}}} | |
− | + | ||
− | + | ||
}}{{Infobox/row | }}{{Infobox/row | ||
− | |header={{{header16|}}} | + | |header={{{header16|}}} |label={{{label16|}}} |data={{{data16|}}} |class={{{class16|}}} |
− | + | |headstyle={{{headstyle|}}} |datastyle={{{datastyle|}}} | |
− | + | ||
− | + | ||
}}{{Infobox/row | }}{{Infobox/row | ||
− | |header={{{header17|}}} | + | |header={{{header17|}}} |label={{{label17|}}} |data={{{data17|}}} |class={{{class17|}}} |
− | + | |headstyle={{{headstyle|}}} |datastyle={{{datastyle|}}} | |
− | + | ||
− | + | ||
}}{{Infobox/row | }}{{Infobox/row | ||
− | |header={{{header18|}}} | + | |header={{{header18|}}} |label={{{label18|}}} |data={{{data18|}}} |class={{{class18|}}} |
− | + | |headstyle={{{headstyle|}}} |datastyle={{{datastyle|}}} | |
− | + | ||
− | + | ||
}}{{Infobox/row | }}{{Infobox/row | ||
− | |header={{{header19|}}} | + | |header={{{header19|}}} |label={{{label19|}}} |data={{{data19|}}} |class={{{class19|}}} |
− | + | |headstyle={{{headstyle|}}} |datastyle={{{datastyle|}}} | |
− | + | ||
− | + | ||
}}{{Infobox/row | }}{{Infobox/row | ||
− | |header={{{header20|}}} | + | |header={{{header20|}}} |label={{{label20|}}} |data={{{data20|}}} |class={{{class20|}}} |
− | + | |headstyle={{{headstyle|}}} |datastyle={{{datastyle|}}} | |
− | + | ||
− | + | ||
}}{{Infobox/row | }}{{Infobox/row | ||
− | |header={{{header21|}}} | + | |header={{{header21|}}} |label={{{label21|}}} |data={{{data21|}}} |class={{{class21|}}} |
− | + | |headstyle={{{headstyle|}}} |datastyle={{{datastyle|}}} | |
− | + | ||
− | + | ||
}}{{Infobox/row | }}{{Infobox/row | ||
− | |header={{{header22|}}} | + | |header={{{header22|}}} |label={{{label22|}}} |data={{{data22|}}} |class={{{class22|}}} |
− | + | |headstyle={{{headstyle|}}} |datastyle={{{datastyle|}}} | |
− | + | ||
− | + | ||
}}{{Infobox/row | }}{{Infobox/row | ||
− | |header={{{header23|}}} | + | |header={{{header23|}}} |label={{{label23|}}} |data={{{data23|}}} |class={{{class23|}}} |
− | + | |headstyle={{{headstyle|}}} |datastyle={{{datastyle|}}} | |
− | + | ||
− | + | ||
}}{{Infobox/row | }}{{Infobox/row | ||
− | |header={{{header24|}}} | + | |header={{{header24|}}} |label={{{label24|}}} |data={{{data24|}}} |class={{{class24|}}} |
− | + | |headstyle={{{headstyle|}}} |datastyle={{{datastyle|}}} | |
− | + | ||
− | + | ||
}}{{Infobox/row | }}{{Infobox/row | ||
− | |header={{{header25|}}} | + | |header={{{header25|}}} |label={{{label25|}}} |data={{{data25|}}} |class={{{class25|}}} |
− | + | |headstyle={{{headstyle|}}} |datastyle={{{datastyle|}}} | |
− | + | ||
− | + | ||
}}{{Infobox/row | }}{{Infobox/row | ||
− | |header={{{header26|}}} | + | |header={{{header26|}}} |label={{{label26|}}} |data={{{data26|}}} |class={{{class26|}}} |
− | + | |headstyle={{{headstyle|}}} |datastyle={{{datastyle|}}} | |
− | + | ||
− | + | ||
}}{{Infobox/row | }}{{Infobox/row | ||
− | |header={{{header27|}}} | + | |header={{{header27|}}} |label={{{label27|}}} |data={{{data27|}}} |class={{{class27|}}} |
− | + | |headstyle={{{headstyle|}}} |datastyle={{{datastyle|}}} | |
− | + | ||
− | + | ||
}}{{Infobox/row | }}{{Infobox/row | ||
− | |header={{{header28|}}} | + | |header={{{header28|}}} |label={{{label28|}}} |data={{{data28|}}} |class={{{class28|}}} |
− | + | |headstyle={{{headstyle|}}} |datastyle={{{datastyle|}}} | |
− | + | ||
− | + | ||
}}{{Infobox/row | }}{{Infobox/row | ||
− | |header={{{header29|}}} | + | |header={{{header29|}}} |label={{{label29|}}} |data={{{data29|}}} |class={{{class29|}}} |
− | + | |headstyle={{{headstyle|}}} |datastyle={{{datastyle|}}} | |
− | + | ||
− | + | ||
}}{{Infobox/row | }}{{Infobox/row | ||
− | |header={{{header30|}}} | + | |header={{{header30|}}} |label={{{label30|}}} |data={{{data30|}}} |class={{{class30|}}} |
− | + | |headstyle={{{headstyle|}}} |datastyle={{{datastyle|}}} | |
− | + | ||
− | + | ||
}} | }} | ||
</table>{{#vardefine:infobox_messages | </table>{{#vardefine:infobox_messages |
Revision as of 23:35, 5 January 2013
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 Row subpage for rendering title, optional article image, and 30 optional rows of custom data.
This article is a stub [list all]. You can help the Twinsuniverse by expanding it. |
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
- class: one of the class values on the themes subpage
- image:
- imagecaption:
- noimage:
- nocat:
...
Syntax
Copy and paste the following for quick use:
{{infobox |class= |image= |imagecaption= }}
Example
...