Difference between revisions of "Template:Infobox"

From OXPL Wiki
Jump to navigation Jump to search
(Added fields)
(Added more fields)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<onlyinclude><includeonly><div style="float: right; border: 1px solid grey; min-width: 250px; max-width: 350px; margin-left: 10px;">
 
<onlyinclude><includeonly><div style="float: right; border: 1px solid grey; min-width: 250px; max-width: 350px; margin-left: 10px;">
 
{| style="width: 100%; border-spacing: 0;"
 
{| style="width: 100%; border-spacing: 0;"
|colspan="2" style="background-color: #ecf0f1; text-align: center; padding: 5px; font-size: 120%;"| '''{{{name|{{PAGENAME}}}}}'''
+
|colspan="2" style="background-color: #{{{headercolor|ecf0f1}}}; text-align: center; padding: 5px; font-size: 120%;"| '''{{{name|{{PAGENAME}}}}}'''
 
|-
 
|-
 
{{#if: {{{image|}}} | {{!}} colspan="2" style="text-align: center; padding: 5px;"{{!}} [[File:{{{image}}}|{{{imgwidth|200px}}}|{{#if: {{{imgalt|}}} | {{{imgalt}}}|}}]] | }}
 
{{#if: {{{image|}}} | {{!}} colspan="2" style="text-align: center; padding: 5px;"{{!}} [[File:{{{image}}}|{{{imgwidth|200px}}}|{{#if: {{{imgalt|}}} | {{{imgalt}}}|}}]] | }}
Line 17: Line 17:
 
<!-- line 5 -->
 
<!-- line 5 -->
 
{{Infobox/+|label={{{label5|}}}|data={{{data5|}}}|style={{{style|1}}}}}
 
{{Infobox/+|label={{{label5|}}}|data={{{data5|}}}|style={{{style|1}}}}}
 +
<!-- line 6 -->
 +
{{Infobox/+|label={{{label6|}}}|data={{{data6|}}}|style={{{style|1}}}}}
 +
<!-- line 7 -->
 +
{{Infobox/+|label={{{label7|}}}|data={{{data7|}}}|style={{{style|1}}}}}
 +
<!-- line 8 -->
 +
{{Infobox/+|label={{{label8|}}}|data={{{data8|}}}|style={{{style|1}}}}}
 +
<!-- line 9 -->
 +
{{Infobox/+|label={{{label9|}}}|data={{{data9|}}}|style={{{style|1}}}}}
 +
<!-- line 10 -->
 +
{{Infobox/+|label={{{label10|}}}|data={{{data10|}}}|style={{{style|1}}}}}
 +
<!-- line 11 -->
 +
{{Infobox/+|label={{{label11|}}}|data={{{data11|}}}|style={{{style|1}}}}}
 +
<!-- line 12 -->
 +
{{Infobox/+|label={{{label12|}}}|data={{{data12|}}}|style={{{style|1}}}}}
 +
<!-- line 13 -->
 +
{{Infobox/+|label={{{label13|}}}|data={{{data13|}}}|style={{{style|1}}}}}
 +
<!-- line 14 -->
 +
{{Infobox/+|label={{{label14|}}}|data={{{data14|}}}|style={{{style|1}}}}}
 +
<!-- line 15 -->
 +
{{Infobox/+|label={{{label15|}}}|data={{{data15|}}}|style={{{style|1}}}}}
 
<!-- end -->
 
<!-- end -->
 
{{!}}- | }}
 
{{!}}- | }}

Latest revision as of 17:29, 21 January 2021

This template generates infoboxes.

Example:

{{Infobox|name=Test|label1=Foo|data1=Data 1|label2=Bar|data2=Data 2|label3=Baz|data3=Data 3}}

generates:

Test
Foo Data 1
Bar Data 2
Baz Data 3