Template:Infobox: Difference between revisions

From Dragon Quest Wiki
Jump to navigation Jump to search
m added doc
mNo edit summary
 
(9 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{| class="infobox" cellspacing="5" style="font-size:88%; text-align:left; width:22em; line-height:1.5em;"
<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;background:#{{#if: {{{bgcolor|}}} | {{{bgcolor}}} | DEDEDE}};" colspan="2" | {{{type}}}
! style="font-size:110%; text-align:center; color:#{{{color|000000}}}; background:#{{{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 133: Line 133:
{{!}} {{{data25}}}
{{!}} {{{data25}}}
}}
}}
|}
|}</onlyinclude></includeonly><noinclude>
<noinclude>
{{Infobox/doc}}
 
[[Category:Infobox templates]]
== Usage ==
This template is a standard infobox template.  It is primarily used as a ''base'' template for other more customized infobox template. 
bgcolor is the background color of the area where ''type'' is. bgcolor uses HTML color code, if none is entered, by default it is '''DEDEDE''' (light grey).
{| style="float: left; background: transparent;"
|
<pre>{{Infobox
| bgcolor = HTML color value (optional)
| type    =
| title  =
| image  =
| caption =
| header | value
| header | value
| header | value
| header | value
| header | value
| header | value
| header | value
| header | value
| header | value
| header | value
| header | value
| header | value
}}</pre>
|}
[[Category:Infobox templates|{{PAGENAME}}]]
</noinclude>
</noinclude>

Latest revision as of 04:04, 3 March 2026

Usage[edit source]

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
⋮
}}