Difference between revisions of "Template:Infobox"

From Bronies.wiki
Jump to navigation Jump to search
(First pass infobox metatemplate.)
 
(Rearrange image position + add caption)
Line 1: Line 1:
<div class="infobox">
+
<table class="box {{{color|gray}}} infobox">
{{#if: {{{image|}}} | [[File:{{{image}}}|200px|frameless]] }}
 
<table class="box {{{color|gray}}} infobox__table">
 
 
<caption class="infobox__title">{{{title | {{ROOTPAGENAME}}}}}</caption>
 
<caption class="infobox__title">{{{title | {{ROOTPAGENAME}}}}}</caption>
 +
{{#if: {{{image|}}}
 +
  | <tr><td class="infobox__image" colspan="2">[[File:{{{image}}}|320px|frameless]]</td></tr>
 +
}}
 +
{{#if: {{{image_caption|}}}
 +
  | <tr><td class="infobox__caption" colspan="2">{{{image_caption}}}</td></tr>
 +
}}
 
{{Infobox/Row | {{{heading1|}}} | {{{key1|}}} | {{{value1|}}} | color={{{color|gray}}} }}
 
{{Infobox/Row | {{{heading1|}}} | {{{key1|}}} | {{{value1|}}} | color={{{color|gray}}} }}
 
{{Infobox/Row | {{{heading2|}}} | {{{key2|}}} | {{{value2|}}} | color={{{color|gray}}} }}
 
{{Infobox/Row | {{{heading2|}}} | {{{key2|}}} | {{{value2|}}} | color={{{color|gray}}} }}
Line 54: Line 58:
 
{{Infobox/Row | {{{heading50|}}} | {{{key50|}}} | {{{value50|}}} | color={{{color|gray}}} }}
 
{{Infobox/Row | {{{heading50|}}} | {{{key50|}}} | {{{value50|}}} | color={{{color|gray}}} }}
 
{{#if: {{{extension|}}} | <tr><td colspan="2">{{{extension}}}</td></tr> }}
 
{{#if: {{{extension|}}} | <tr><td colspan="2">{{{extension}}}</td></tr> }}
</table>
+
</table><noinclude>
</div><noinclude>
 
 
{{Documentation}}</noinclude>
 
{{Documentation}}</noinclude>

Revision as of 18:44, 6 October 2020

Infobox
This documentation is transcluded from Template:Infobox/doc and needs to be edited separately.

Template:Infobox/doc