Difference between revisions of "Template:Infobox"

From OXPL Wiki
Jump to navigation Jump to search
(Created page)
 
(Added fields)
Line 8: Line 8:
 
|-
 
|-
 
<!-- line 1 -->
 
<!-- line 1 -->
<!-- {{Infobox/+|label={{{label1|}}}|data={{{data1|}}}}} -->
+
{{Infobox/+|label={{{label1|}}}|data={{{data1|}}}|style={{{style|1}}}}}
 +
<!-- line 2 -->
 +
{{Infobox/+|label={{{label2|}}}|data={{{data2|}}}|style={{{style|1}}}}}
 +
<!-- line 3 -->
 +
{{Infobox/+|label={{{label3|}}}|data={{{data3|}}}|style={{{style|1}}}}}
 +
<!-- line 4 -->
 +
{{Infobox/+|label={{{label4|}}}|data={{{data4|}}}|style={{{style|1}}}}}
 +
<!-- line 5 -->
 +
{{Infobox/+|label={{{label5|}}}|data={{{data5|}}}|style={{{style|1}}}}}
 
<!-- end -->
 
<!-- end -->
 
{{!}}- | }}
 
{{!}}- | }}
Line 16: Line 24:
  
 
Example:
 
Example:
<pre>{{Infobox|name=Test}}</pre> generates:
+
<pre>{{Infobox|name=Test|label1=Foo|data1=Data 1|label2=Bar|data2=Data 2|label3=Baz|data3=Data 3}}</pre> generates:
  
{{Infobox|name=Test}}</noinclude>
+
{{Infobox|name=Test|label1=Foo|data1=Data 1|label2=Bar|data2=Data 2|label3=Baz|data3=Data 3}}</noinclude>

Revision as of 19:28, 20 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