Template:Infobox: Difference between revisions
From Dragon Quest Wiki
FlyingRagnar (talk | contribs) mNo edit summary |
Rigel Kent (talk | contribs) (presentation role for accessibility, allow width to get smaller in very small viewports < 480px) |
||
(3 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
<includeonly><onlyinclude>{| class="infobox" cellspacing="5" style="font-size:88%; text-align:left; width:22em; line-height:1.5em;" | <includeonly><onlyinclude>{| role="presentation" class="infobox" cellspacing="5" style="font-size:88%; text-align:left; width:100%; max-width:22em; line-height:1.5em;" | ||
|- | |- | ||
! style="font-size:110%; text-align:center; 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}}} | ||
|- | |- | ||
! colspan="2" style="font-size:125%;text-align:center;"| {{{title}}} | ! colspan="2" style="font-size:125%;text-align:center;"| {{{title}}} | ||
Line 134: | Line 134: | ||
}} | }} | ||
|}</onlyinclude></includeonly><noinclude> | |}</onlyinclude></includeonly><noinclude> | ||
{{{{PAGENAME}}/doc | {{{{PAGENAME}}/doc}} | ||
[[Category:Infobox templates|{{PAGENAME}}]] | [[Category:Infobox templates|{{PAGENAME}}]] | ||
</noinclude> | </noinclude> |
Revision as of 03:41, 26 November 2015
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 ⋮ }}