Template:Infobox: Difference between revisions
Jump to navigation
Jump to search
presentation role for accessibility, allow width to get smaller in very small viewports < 480px |
lets update this too |
||
| Line 1: | Line 1: | ||
<includeonly><onlyinclude>{| role="presentation" class="infobox | <includeonly><onlyinclude>{| role="presentation" class="infobox" style="font-size:88%; padding:5px; text-align:left; width:300px; line-height:1.5em;" | ||
|- | |- | ||
! style="font-size:110%; text-align:center; color:#{{#if: {{{color|}}} | {{{color}}} | 000000}}; background:#{{#if: {{{bgcolor|}}} | {{{bgcolor}}} | DEDEDE}};" colspan="2" | {{{type}}} | ! style="font-size:110%; text-align:center; color:#{{#if: {{{color|}}} | {{{color}}} | 000000}}; background:#{{#if: {{{bgcolor|}}} | {{{bgcolor}}} | DEDEDE}};" colspan="2" | {{{type}}} | ||
Revision as of 18:42, 28 April 2020
Usage
This template is a standard infobox template. It is primarily used as a base template for other more customized infobox template.
{{Infobox
| color = hex color code (optional, default black)
| bgcolor = hex color code (optional, default grey)
| type =
| title =
| image =
| caption =
| label1 = header | data1 = value
| label2 = header | data2 = value
| label3 = header | data3 = value
⋮
}}