Template:Infobox: Difference between revisions
Jump to navigation
Jump to search
Created page with "<includeonly> <table style="float:right; border:1px solid #aaa; background:#f9f9f9; padding:0.4em; margin:0.4em;"> <tr><th colspan="2" style="text-align:center;">{{{title|Infobox}}}</th></tr> {{{body|<tr><td>Example</td><td>Value</td></tr>}}} </table> </includeonly> <noinclude>{{Documentation}}</noinclude>" |
mNo edit summary |
||
| Line 1: | Line 1: | ||
<table class="infobox" style="width:22em; border:1px solid #aaa; background:#f9f9f9; font-size:90%; line-height:1.4em; margin:0 0 1em 1em; float:right; clear:right;"> | |||
<table style=" | {{#if:{{{title|}}}| | ||
<tr><th colspan="2" style="text-align:center;">{{{title | <tr> | ||
{{{ | <th colspan="2" style="text-align:center; font-size:110%; background:#ccc;">{{{title}}}</th> | ||
</tr>}} | |||
<!-- Image support: either named |image= or positional pair 1=img,2=FileName.png --> | |||
{{#if:{{{image|}}}| | |||
<tr> | |||
<td colspan="2" style="text-align:center;"> | |||
[[File:{{{image}}}|{{{image_size|200px}}}]] | |||
{{#if:{{{image_caption|}}}|<br/>{{{image_caption}}}|}} | |||
</td> | |||
</tr>}} | |||
{{#ifeq:{{lc:{{{1|}}}}}|img| | |||
<tr> | |||
<td colspan="2" style="text-align:center;"> | |||
[[File:{{{2}}}|{{{image_size|200px}}}]] | |||
{{#if:{{{image_caption|}}}|<br/>{{{image_caption}}}|}} | |||
</td> | |||
</tr>| | |||
}} | |||
<!-- Rows from positional pairs: (3,4), (5,6), ... up to (29,30) --> | |||
{{Infobox row | label={{{1|}}} | value={{{2|}}} }}<!-- will auto-skip if label is img --> | |||
{{Infobox row | label={{{3|}}} | value={{{4|}}} }} | |||
{{Infobox row | label={{{5|}}} | value={{{6|}}} }} | |||
{{Infobox row | label={{{7|}}} | value={{{8|}}} }} | |||
{{Infobox row | label={{{9|}}} | value={{{10|}}} }} | |||
{{Infobox row | label={{{11|}}} | value={{{12|}}} }} | |||
{{Infobox row | label={{{13|}}} | value={{{14|}}} }} | |||
{{Infobox row | label={{{15|}}} | value={{{16|}}} }} | |||
{{Infobox row | label={{{17|}}} | value={{{18|}}} }} | |||
{{Infobox row | label={{{19|}}} | value={{{20|}}} }} | |||
{{Infobox row | label={{{21|}}} | value={{{22|}}} }} | |||
{{Infobox row | label={{{23|}}} | value={{{24|}}} }} | |||
{{Infobox row | label={{{25|}}} | value={{{26|}}} }} | |||
{{Infobox row | label={{{27|}}} | value={{{28|}}} }} | |||
{{Infobox row | label={{{29|}}} | value={{{30|}}} }} | |||
</table> | </table> | ||