Difference between revisions of "Template:Infobox"

From CoGepedia
Jump to: navigation, search
(New page: {{infobox Application |title= {{app name}} |labelstyle=white-space:nowrap; |logo={{[[Image:{{{img}}}]]}} |label1= Catalog number |data1= {{{catalog number}}} |label2= Common name |data2= {...)
 
 
(18 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{infobox Application
+
<table class="infobox {{{bodyclass|}}}" cellspacing="5" style="width: 22em; text-align: left; font-size: 88%; line-height: 1.5em; {{{bodystyle|}}}"><!--
|title= {{app name}}
+
Caption
|labelstyle=white-space:nowrap;
+
-->{{#if:{{{title|}}}|<caption class="{{{titleclass|}}}" style="font-size: 125%; font-weight: bold; {{{titlestyle|}}}">{{{title}}}</caption>}}
|logo={{[[Image:{{{img}}}]]}}
+
<!--
|label1= Catalog number
+
Header
|data1= {{{catalog number}}}
+
-->{{#if:{{{above|}}}|<tr><td colspan="2" class="{{{aboveclass|}}}" style="text-align:center; font-size: 125%; font-weight: bold; {{{abovestyle|}}}">{{{above}}}</td></tr>}}<!--
|label2= Common name
+
Subheader
|data2= {{{common name|}}}
+
-->{{#if:{{{subheader|}}}|<tr><td colspan="2" class="{{{subheaderclass|}}}" style="text-align:center; {{{subheaderstyle|}}}">{{{subheader}}}</td></tr>}}<!--
|label3= Species
+
Image
|data3= {{{species|}}}
+
-->{{#if:{{{image|}}}|<tr><td colspan="2" class="{{{imageclass|}}}" style="text-align:center; {{{imagestyle|}}}"> {{{image}}} {{#if:{{{caption|}}}|<br />
|label4= Age
+
<span style="{{{captionstyle|}}}">{{{caption}}}</span> }}</td></tr>}}<!--
|data4= {{{age|}}}
+
Row 1
|label5= Place discovered
+
-->{{#if:{{{header1|}}}|<tr><th colspan="2" style="text-align:center; {{{headerstyle|}}}">{{{header1|}}}</th></tr>| {{#if:{{{label1|}}}|{{#if:{{{data1|}}}|<tr><th style="{{{labelstyle|}}}">{{{label1|}}}</th><td class="{{{class1|}}}" style="{{{datastyle|}}}">{{{data1|}}}</td></tr>}}|  {{#if:{{{data1|}}}|<tr><td colspan="2" class="{{{class1|}}}" style="text-align:center; {{{datastyle|}}}">{{{data1|}}}</td></tr>}} }} }}<!--
|data5= {{{place discovered|}}}
+
Row 2
|label6= Date discovered
+
-->{{#if:{{{header2|}}}|<tr><th colspan="2" style="text-align:center; {{{headerstyle|}}}">{{{header2|}}}</th></tr>| {{#if:{{{label2|}}}|{{#if:{{{data2|}}}|<tr><th style="{{{labelstyle|}}}">{{{label2|}}}</th><td class="{{{class2|}}}" style="{{{datastyle|}}}">{{{data2|}}}</td></tr>}}|  {{#if:{{{data2|}}}|<tr><td colspan="2" class="{{{class2|}}}" style="text-align:center; {{{datastyle|}}}">{{{data2|}}}</td></tr>}} }} }}<!--
|data6= {{{date discovered|}}}
+
Row 3
|label7= Discovered by
+
-->{{#if:{{{header3|}}}|<tr><th colspan="2" style="text-align:center; {{{headerstyle|}}}">{{{header3|}}}</th></tr>| {{#if:{{{label3|}}}|{{#if:{{{data3|}}}|<tr><th style="{{{labelstyle|}}}">{{{label3|}}}</th><td class="{{{class3|}}}" style="{{{datastyle|}}}">{{{data3|}}}</td></tr>}}|  {{#if:{{{data3|}}}|<tr><td colspan="2" class="{{{class3|}}}" style="text-align:center; {{{datastyle|}}}">{{{data3|}}}</td></tr>}} }} }}<!--
|data7= {{{discovered by|}}}
+
Row 4
|below= {{{footnotes|}}}
+
-->{{#if:{{{header4|}}}|<tr><th colspan="2" style="text-align:center; {{{headerstyle|}}}">{{{header4|}}}</th></tr>| {{#if:{{{label4|}}}|{{#if:{{{data4|}}}|<tr><th style="{{{labelstyle|}}}">{{{label4|}}}</th><td class="{{{class4|}}}" style="{{{datastyle|}}}">{{{data4|}}}</td></tr>}}|  {{#if:{{{data4|}}}|<tr><td colspan="2" class="{{{class4|}}}" style="text-align:center; {{{datastyle|}}}">{{{data4|}}}</td></tr>}} }} }}<!--
}}
+
Row 5
 +
-->{{#if:{{{header5|}}}|<tr><th colspan="2" style="text-align:center; {{{headerstyle|}}}">{{{header5|}}}</th></tr>| {{#if:{{{label5|}}}|{{#if:{{{data5|}}}|<tr><th style="{{{labelstyle|}}}">{{{label5|}}}</th><td class="{{{class5|}}}" style="{{{datastyle|}}}">{{{data5|}}}</td></tr>}}|  {{#if:{{{data5|}}}|<tr><td colspan="2" class="{{{class5|}}}" style="text-align:center; {{{datastyle|}}}">{{{data5|}}}</td></tr>}} }} }}<!--
 +
Row 6
 +
-->{{#if:{{{header6|}}}|<tr><th colspan="2" style="text-align:center; {{{headerstyle|}}}">{{{header6|}}}</th></tr>| {{#if:{{{label6|}}}|{{#if:{{{data6|}}}|<tr><th style="{{{labelstyle|}}}">{{{label6|}}}</th><td class="{{{class6|}}}" style="{{{datastyle|}}}">{{{data6|}}}</td></tr>}}|  {{#if:{{{data6|}}}|<tr><td colspan="2" class="{{{class6|}}}" style="text-align:center; {{{datastyle|}}}">{{{data6|}}}</td></tr>}} }} }}<!--
 +
Row 7
 +
-->{{#if:{{{header7|}}}|<tr><th colspan="2" style="text-align:center; {{{headerstyle|}}}">{{{header7|}}}</th></tr>| {{#if:{{{label7|}}}|{{#if:{{{data7|}}}|<tr><th style="{{{labelstyle|}}}">{{{label7|}}}</th><td class="{{{class7|}}}" style="{{{datastyle|}}}">{{{data7|}}}</td></tr>}}|  {{#if:{{{data7|}}}|<tr><td colspan="2" class="{{{class7|}}}" style="text-align:center; {{{datastyle|}}}">{{{data7|}}}</td></tr>}} }} }}<!--
 +
Row 8
 +
-->{{#if:{{{header8|}}}|<tr><th colspan="2" style="text-align:center; {{{headerstyle|}}}">{{{header8|}}}</th></tr>| {{#if:{{{label8|}}}|{{#if:{{{data8|}}}|<tr><th style="{{{labelstyle|}}}">{{{label8|}}}</th><td class="{{{class8|}}}" style="{{{datastyle|}}}">{{{data8|}}}</td></tr>}}|  {{#if:{{{data8|}}}|<tr><td colspan="2" class="{{{class8|}}}" style="text-align:center; {{{datastyle|}}}">{{{data8|}}}</td></tr>}} }} }}<!--
 +
Row 9
 +
-->{{#if:{{{header9|}}}|<tr><th colspan="2" style="text-align:center; {{{headerstyle|}}}">{{{header9|}}}</th></tr>| {{#if:{{{label9|}}}|{{#if:{{{data9|}}}|<tr><th style="{{{labelstyle|}}}">{{{label9|}}}</th><td class="{{{class9|}}}" style="{{{datastyle|}}}">{{{data9|}}}</td></tr>}}|  {{#if:{{{data9|}}}|<tr><td colspan="2" class="{{{class9|}}}" style="text-align:center; {{{datastyle|}}}">{{{data9|}}}</td></tr>}} }} }}<!--
 +
Row 10
 +
-->{{#if:{{{header10|}}}|<tr><th colspan="2" style="text-align:center; {{{headerstyle|}}}">{{{header10|}}}</th></tr>| {{#if:{{{label10|}}}|{{#if:{{{data10|}}}|<tr><th style="{{{labelstyle|}}}">{{{label10|}}}</th><td class="{{{class10|}}}" style="{{{datastyle|}}}">{{{data10|}}}</td></tr>}}|  {{#if:{{{data10|}}}|<tr><td colspan="2" class="{{{class10|}}}" style="text-align:center; {{{datastyle|}}}">{{{data10|}}}</td></tr>}} }} }}<!--
 +
Row 11
 +
-->{{#if:{{{header11|}}}|<tr><th colspan="2" style="text-align:center; {{{headerstyle|}}}">{{{header11|}}}</th></tr>| {{#if:{{{label11|}}}|{{#if:{{{data11|}}}|<tr><th style="{{{labelstyle|}}}">{{{label11|}}}</th><td class="{{{class11|}}}" style="{{{datastyle|}}}">{{{data11|}}}</td></tr>}}|  {{#if:{{{data11|}}}|<tr><td colspan="2" class="{{{class11|}}}" style="text-align:center; {{{datastyle|}}}">{{{data11|}}}</td></tr>}} }} }}<!--
 +
Row 12
 +
-->{{#if:{{{header12|}}}|<tr><th colspan="2" style="text-align:center; {{{headerstyle|}}}">{{{header12|}}}</th></tr>| {{#if:{{{label12|}}}|{{#if:{{{data12|}}}|<tr><th style="{{{labelstyle|}}}">{{{label12|}}}</th><td class="{{{class12|}}}" style="{{{datastyle|}}}">{{{data12|}}}</td></tr>}}|  {{#if:{{{data12|}}}|<tr><td colspan="2" class="{{{class12|}}}" style="text-align:center; {{{datastyle|}}}">{{{data12|}}}</td></tr>}} }} }}<!--
 +
Row 13
 +
-->{{#if:{{{header13|}}}|<tr><th colspan="2" style="text-align:center; {{{headerstyle|}}}">{{{header13|}}}</th></tr>| {{#if:{{{label13|}}}|{{#if:{{{data13|}}}|<tr><th style="{{{labelstyle|}}}">{{{label13|}}}</th><td class="{{{class13|}}}" style="{{{datastyle|}}}">{{{data13|}}}</td></tr>}}|  {{#if:{{{data13|}}}|<tr><td colspan="2" class="{{{class13|}}}" style="text-align:center; {{{datastyle|}}}">{{{data13|}}}</td></tr>}} }} }}<!--
 +
Row 14
 +
-->{{#if:{{{header14|}}}|<tr><th colspan="2" style="text-align:center; {{{headerstyle|}}}">{{{header14|}}}</th></tr>| {{#if:{{{label14|}}}|{{#if:{{{data14|}}}|<tr><th style="{{{labelstyle|}}}">{{{label14|}}}</th><td class="{{{class14|}}}" style="{{{datastyle|}}}">{{{data14|}}}</td></tr>}}|  {{#if:{{{data14|}}}|<tr><td colspan="2" class="{{{class14|}}}" style="text-align:center; {{{datastyle|}}}">{{{data14|}}}</td></tr>}} }} }}<!--
 +
Row 15
 +
-->{{#if:{{{header15|}}}|<tr><th colspan="2" style="text-align:center; {{{headerstyle|}}}">{{{header15|}}}</th></tr>| {{#if:{{{label15|}}}|{{#if:{{{data15|}}}|<tr><th style="{{{labelstyle|}}}">{{{label15|}}}</th><td class="{{{class15|}}}" style="{{{datastyle|}}}">{{{data15|}}}</td></tr>}}|  {{#if:{{{data15|}}}|<tr><td colspan="2" class="{{{class15|}}}" style="text-align:center; {{{datastyle|}}}">{{{data15|}}}</td></tr>}} }} }}
 +
</table>

Latest revision as of 21:22, 2 March 2009