Difference between revisions of "Template:Infobox"

From Twinsuniverse
Jump to: navigation, search
m (testing substitution for themestyles)
Line 1: Line 1:
 
<includeonly>{{#vardefine: infobox_messages|<!-- initializer -->}}{{
 
<includeonly>{{#vardefine: infobox_messages|<!-- initializer -->}}{{
 
#var_final: infobox_messages |
 
#var_final: infobox_messages |
}}{{#if:{{{theme|}}}
+
}}<table class="infobox {{#if:{{{float|}}}|side}}" border="0" cellpadding="0" cellspacing="0" style="{{{tablestyle|}}}">
|b: {{{bordercolor}}}; bg: {{{mainbgcolor}}}; bgh: {{{headbgcolor}}}; txt: {{{headercolor}}}; icon: {{{headiconurl}}};
+
{{Infobox/row | header={{#if: {{{title|}}} | {{{title}}} | {{PAGENAME}} }} | class=title
}}<table class="infobox {{#if:{{{float|}}}|side}} {{{class|}}}" border="0" cellpadding="0" cellspacing="0">
+
     | titlestyle={{{titlestyle|}}}
{{Infobox/row
+
    |header={{#if: {{{title|}}} | {{{title}}} | {{PAGENAME}} }}
+
     |class=title
+
 
}}{{
 
}}{{
 
     #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
        |class=image}}
+
        |datastyle={{{datastyle|}}}}}
 
}}
 
}}
 
{{Infobox/row
 
{{Infobox/row
     |header={{{header1|}}}
+
     |header={{{header1|}}} |label={{{label1|}}} |data={{{data1|}}} |class={{{class1|}}}
    |label={{{label1|}}}
+
    |headstyle={{{headstyle|}}} |datastyle={{{datastyle|}}}
    |data={{{data1|}}}
+
    |class={{{class1|}}}
+
 
}}{{Infobox/row
 
}}{{Infobox/row
     |header={{{header2|}}}
+
     |header={{{header2|}}} |label={{{label2|}}} |data={{{data2|}}} |class={{{class2|}}}
    |label={{{label2|}}}
+
    |headstyle={{{headstyle|}}} |datastyle={{{datastyle|}}}
    |data={{{data2|}}}
+
    |class={{{class2|}}}
+
 
}}{{Infobox/row
 
}}{{Infobox/row
     |header={{{header3|}}}
+
     |header={{{header3|}}} |label={{{label3|}}} |data={{{data3|}}} |class={{{class3|}}}
    |label={{{label3|}}}
+
    |headstyle={{{headstyle|}}} |datastyle={{{datastyle|}}}
    |data={{{data3|}}}
+
    |class={{{class3|}}}
+
 
}}{{Infobox/row
 
}}{{Infobox/row
     |header={{{header4|}}}
+
     |header={{{header4|}}} |label={{{label4|}}} |data={{{data4|}}} |class={{{class4|}}}
    |label={{{label4|}}}
+
    |headstyle={{{headstyle|}}} |datastyle={{{datastyle|}}}
    |data={{{data4|}}}
+
    |class={{{class4|}}}
+
 
}}{{Infobox/row
 
}}{{Infobox/row
     |header={{{header5|}}}
+
     |header={{{header5|}}} |label={{{label5|}}} |data={{{data5|}}} |class={{{class5|}}}
    |label={{{label5|}}}
+
    |headstyle={{{headstyle|}}} |datastyle={{{datastyle|}}}
    |data={{{data5|}}}
+
    |class={{{class5|}}}
+
 
}}{{Infobox/row
 
}}{{Infobox/row
     |header={{{header6|}}}
+
     |header={{{header6|}}} |label={{{label6|}}} |data={{{data6|}}} |class={{{class6|}}}
    |label={{{label6|}}}
+
    |headstyle={{{headstyle|}}} |datastyle={{{datastyle|}}}
    |data={{{data6|}}}
+
    |class={{{class6|}}}
+
 
}}{{Infobox/row
 
}}{{Infobox/row
     |header={{{header7|}}}
+
     |header={{{header7|}}} |label={{{label7|}}} |data={{{data7|}}} |class={{{class7|}}}
    |label={{{label7|}}}
+
    |headstyle={{{headstyle|}}} |datastyle={{{datastyle|}}}
    |data={{{data7|}}}
+
    |class={{{class7|}}}
+
 
}}{{Infobox/row
 
}}{{Infobox/row
     |header={{{header8|}}}
+
     |header={{{header8|}}} |label={{{label8|}}} |data={{{data8|}}} |class={{{class8|}}}
    |label={{{label8|}}}
+
    |headstyle={{{headstyle|}}} |datastyle={{{datastyle|}}}
    |data={{{data8|}}}
+
    |class={{{class8|}}}
+
 
}}{{Infobox/row
 
}}{{Infobox/row
     |header={{{header9|}}}
+
     |header={{{header9|}}} |label={{{label9|}}} |data={{{data9|}}} |class={{{class9|}}}
    |label={{{label9|}}}
+
    |headstyle={{{headstyle|}}} |datastyle={{{datastyle|}}}
    |data={{{data9|}}}
+
    |class={{{class9|}}}
+
 
}}{{Infobox/row
 
}}{{Infobox/row
     |header={{{header10|}}}
+
     |header={{{header10|}}} |label={{{label10|}}} |data={{{data10|}}} |class={{{class10|}}}
    |label={{{label10|}}}
+
    |headstyle={{{headstyle|}}} |datastyle={{{datastyle|}}}
    |data={{{data10|}}}
+
    |class={{{class10|}}}
+
 
}}{{Infobox/row
 
}}{{Infobox/row
     |header={{{header11|}}}
+
     |header={{{header11|}}} |label={{{label11|}}} |data={{{data11|}}} |class={{{class11|}}}
    |label={{{label11|}}}
+
    |headstyle={{{headstyle|}}} |datastyle={{{datastyle|}}}
    |data={{{data11|}}}
+
    |class={{{class11|}}}
+
 
}}{{Infobox/row
 
}}{{Infobox/row
     |header={{{header12|}}}
+
     |header={{{header12|}}} |label={{{label12|}}} |data={{{data12|}}} |class={{{class12|}}}
    |label={{{label12|}}}
+
    |headstyle={{{headstyle|}}} |datastyle={{{datastyle|}}}
    |data={{{data12|}}}
+
    |class={{{class12|}}}
+
 
}}{{Infobox/row
 
}}{{Infobox/row
     |header={{{header13|}}}
+
     |header={{{header13|}}} |label={{{label13|}}} |data={{{data13|}}} |class={{{class13|}}}
    |label={{{label13|}}}
+
    |headstyle={{{headstyle|}}} |datastyle={{{datastyle|}}}
    |data={{{data13|}}}
+
    |class={{{class13|}}}
+
 
}}{{Infobox/row
 
}}{{Infobox/row
     |header={{{header14|}}}
+
     |header={{{header14|}}} |label={{{label14|}}} |data={{{data14|}}} |class={{{class14|}}}
    |label={{{label14|}}}
+
    |headstyle={{{headstyle|}}} |datastyle={{{datastyle|}}}
    |data={{{data14|}}}
+
    |class={{{class14|}}}
+
 
}}{{Infobox/row
 
}}{{Infobox/row
     |header={{{header15|}}}
+
     |header={{{header15|}}} |label={{{label15|}}} |data={{{data15|}}} |class={{{class15|}}}
    |label={{{label15|}}}
+
    |headstyle={{{headstyle|}}} |datastyle={{{datastyle|}}}
    |data={{{data15|}}}
+
    |class={{{class15|}}}
+
 
}}{{Infobox/row
 
}}{{Infobox/row
     |header={{{header16|}}}
+
     |header={{{header16|}}} |label={{{label16|}}} |data={{{data16|}}} |class={{{class16|}}}
    |label={{{label16|}}}
+
    |headstyle={{{headstyle|}}} |datastyle={{{datastyle|}}}
    |data={{{data16|}}}
+
    |class={{{class16|}}}
+
 
}}{{Infobox/row
 
}}{{Infobox/row
     |header={{{header17|}}}
+
     |header={{{header17|}}} |label={{{label17|}}} |data={{{data17|}}} |class={{{class17|}}}
    |label={{{label17|}}}
+
    |headstyle={{{headstyle|}}} |datastyle={{{datastyle|}}}
    |data={{{data17|}}}
+
    |class={{{class17|}}}
+
 
}}{{Infobox/row
 
}}{{Infobox/row
     |header={{{header18|}}}
+
     |header={{{header18|}}} |label={{{label18|}}} |data={{{data18|}}} |class={{{class18|}}}
    |label={{{label18|}}}
+
    |headstyle={{{headstyle|}}} |datastyle={{{datastyle|}}}
    |data={{{data18|}}}
+
    |class={{{class18|}}}
+
 
}}{{Infobox/row
 
}}{{Infobox/row
     |header={{{header19|}}}
+
     |header={{{header19|}}} |label={{{label19|}}} |data={{{data19|}}} |class={{{class19|}}}
    |label={{{label19|}}}
+
    |headstyle={{{headstyle|}}} |datastyle={{{datastyle|}}}
    |data={{{data19|}}}
+
    |class={{{class19|}}}
+
 
}}{{Infobox/row
 
}}{{Infobox/row
     |header={{{header20|}}}
+
     |header={{{header20|}}} |label={{{label20|}}} |data={{{data20|}}} |class={{{class20|}}}
    |label={{{label20|}}}
+
    |headstyle={{{headstyle|}}} |datastyle={{{datastyle|}}}
    |data={{{data20|}}}
+
    |class={{{class20|}}}
+
 
}}{{Infobox/row
 
}}{{Infobox/row
     |header={{{header21|}}}
+
     |header={{{header21|}}} |label={{{label21|}}} |data={{{data21|}}} |class={{{class21|}}}
    |label={{{label21|}}}
+
    |headstyle={{{headstyle|}}} |datastyle={{{datastyle|}}}
    |data={{{data21|}}}
+
    |class={{{class21|}}}
+
 
}}{{Infobox/row
 
}}{{Infobox/row
     |header={{{header22|}}}
+
     |header={{{header22|}}} |label={{{label22|}}} |data={{{data22|}}} |class={{{class22|}}}
    |label={{{label22|}}}
+
    |headstyle={{{headstyle|}}} |datastyle={{{datastyle|}}}
    |data={{{data22|}}}
+
    |class={{{class22|}}}
+
 
}}{{Infobox/row
 
}}{{Infobox/row
     |header={{{header23|}}}
+
     |header={{{header23|}}} |label={{{label23|}}} |data={{{data23|}}} |class={{{class23|}}}
    |label={{{label23|}}}
+
    |headstyle={{{headstyle|}}} |datastyle={{{datastyle|}}}
    |data={{{data23|}}}
+
    |class={{{class23|}}}
+
 
}}{{Infobox/row
 
}}{{Infobox/row
     |header={{{header24|}}}
+
     |header={{{header24|}}} |label={{{label24|}}} |data={{{data24|}}} |class={{{class24|}}}
    |label={{{label24|}}}
+
    |headstyle={{{headstyle|}}} |datastyle={{{datastyle|}}}
    |data={{{data24|}}}
+
    |class={{{class24|}}}
+
 
}}{{Infobox/row
 
}}{{Infobox/row
     |header={{{header25|}}}
+
     |header={{{header25|}}} |label={{{label25|}}} |data={{{data25|}}} |class={{{class25|}}}
    |label={{{label25|}}}
+
    |headstyle={{{headstyle|}}} |datastyle={{{datastyle|}}}
    |data={{{data25|}}}
+
    |class={{{class25|}}}
+
 
}}{{Infobox/row
 
}}{{Infobox/row
     |header={{{header26|}}}
+
     |header={{{header26|}}} |label={{{label26|}}} |data={{{data26|}}} |class={{{class26|}}}
    |label={{{label26|}}}
+
    |headstyle={{{headstyle|}}} |datastyle={{{datastyle|}}}
    |data={{{data26|}}}
+
    |class={{{class26|}}}
+
 
}}{{Infobox/row
 
}}{{Infobox/row
     |header={{{header27|}}}
+
     |header={{{header27|}}} |label={{{label27|}}} |data={{{data27|}}} |class={{{class27|}}}
    |label={{{label27|}}}
+
    |headstyle={{{headstyle|}}} |datastyle={{{datastyle|}}}
    |data={{{data27|}}}
+
    |class={{{class27|}}}
+
 
}}{{Infobox/row
 
}}{{Infobox/row
     |header={{{header28|}}}
+
     |header={{{header28|}}} |label={{{label28|}}} |data={{{data28|}}} |class={{{class28|}}}
    |label={{{label28|}}}
+
    |headstyle={{{headstyle|}}} |datastyle={{{datastyle|}}}
    |data={{{data28|}}}
+
    |class={{{class28|}}}
+
 
}}{{Infobox/row
 
}}{{Infobox/row
     |header={{{header29|}}}
+
     |header={{{header29|}}} |label={{{label29|}}} |data={{{data29|}}} |class={{{class29|}}}
    |label={{{label29|}}}
+
    |headstyle={{{headstyle|}}} |datastyle={{{datastyle|}}}
    |data={{{data29|}}}
+
    |class={{{class29|}}}
+
 
}}{{Infobox/row
 
}}{{Infobox/row
     |header={{{header30|}}}
+
     |header={{{header30|}}} |label={{{label30|}}} |data={{{data30|}}} |class={{{class30|}}}
    |label={{{label30|}}}
+
    |headstyle={{{headstyle|}}} |datastyle={{{datastyle|}}}
    |data={{{data30|}}}
+
    |class={{{class30|}}}
+
 
}}
 
}}
 
</table>{{#vardefine:infobox_messages
 
</table>{{#vardefine:infobox_messages

Revision as of 00:35, 6 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

...