Difference between revisions of "Template:Infobox"

From collargoggle codex
(Created page with "<table class="box {{{color|gray}}} infobox"> <caption class="infobox__title">{{{title | {{ROOTPAGENAME}}}}}</caption> {{#if: {{{image|}}} | <tr><td class="infobox__image" c...")
 
(Add subtitle option)
Line 1: Line 1:
 
<table class="box {{{color|gray}}} infobox">
 
<table class="box {{{color|gray}}} infobox">
 
<caption class="infobox__title">{{{title | {{ROOTPAGENAME}}}}}</caption>
 
<caption class="infobox__title">{{{title | {{ROOTPAGENAME}}}}}</caption>
 +
{{#if: {{{subtitle|}}}
 +
  | <tr><td colspan="2" align="center">{{{subtitle}}}</td></tr>
 +
}}
 
{{#if: {{{image|}}}  
 
{{#if: {{{image|}}}  
 
   | <tr><td class="infobox__image" colspan="2">[[File:{{{image}}}|300px|frameless]]</td></tr>
 
   | <tr><td class="infobox__image" colspan="2">[[File:{{{image}}}|300px|frameless]]</td></tr>

Revision as of 20:54, 30 March 2021

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

Template:Infobox/doc