Template:Infobox: Difference between revisions

m
(Increase flexibility, and document template)
m (Migrate to Template:Documentation)
 
(One intermediate revision by the same user not shown)
Line 23: Line 23:
       #if:{{{data9|}}}|<tr class="infobox-row">{{#if:{{{label9|}}}|<td class="infobox-label">{{{label9}}}</td>}}<td class="infobox-data" {{#if:{{{label9|}}}||colspan="2"}}>{{{data9}}}</td></tr>}}</table>
       #if:{{{data9|}}}|<tr class="infobox-row">{{#if:{{{label9|}}}|<td class="infobox-label">{{{label9}}}</td>}}<td class="infobox-data" {{#if:{{{label9|}}}||colspan="2"}}>{{{data9}}}</td></tr>}}</table>
   </div>
   </div>
</div></includeonly><noinclude>
</div></includeonly><noinclude>{{Documentation}}</noinclude>
 
Generic template for creating infoboxes.
Please use [[:Category:Infoboxes|other infoboxes]] when possible.
 
== Example ==
 
{{Infobox
|title=Odd Bot
|image=Odd Bot.png
|caption=caption
|header1=header1
|label1=label1
|data1=data1
|data2=data2
}}
 
<pre>
{{Infobox
|title=Odd Bot
|image=Odd Bot.png
|caption=caption
|header1=header1
|label1=label1
|data1=data1
|data2=data2
}}
</pre>
 
== Parameters ==
 
Keywords, where (n) is an integer from 1 to 9:
 
* '''title''': Title for the infobox.
* '''image_url''': Image to be displayed as full syntax.
* '''image''': Name of the image. A simpler version of '''image_url''' parameter.
:* '''image_alt''': Alternative text to provide the image.
* '''caption''': Caption for the image.
* '''header(n)'''.
* '''label(n)''': May be omitted.
* '''data(n)'''.
 
[[Category:Infoboxes| ]]
</noinclude>