Template:Infobox: Difference between revisions

From Dragon Quest Wiki
m (added 2 more label/data pairs)
(lets update this too)
 
(26 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{| class="infobox" style="font-size:90%;width:22em;"
<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:#DEDEE2;" 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 9: Line 9:
}}
}}
|-
|-
! {{{1}}}
{{#if:{{{data1|}}}|
| {{{2}}}
! {{{label1}}}
{{!}} {{{data1}}}
}}
|-
{{#if:{{{data2|}}}|
! {{{label2}}}
{{!}} {{{data2}}}
}}
|-
{{#if:{{{data3|}}}|
! {{{label3}}}
{{!}} {{{data3}}}
}}
|-
{{#if:{{{data4|}}}|
! {{{label4}}}
{{!}} {{{data4}}}
}}
|-
|-
{{#if:{{{3|}}}|
{{#if:{{{data5|}}}|
! {{{3}}}
! {{{label5}}}
{{!}} {{{4}}}
{{!}} {{{data5}}}
}}
}}
|-
|-
{{#if:{{{5|}}}|
{{#if:{{{data6|}}}|
! {{{5}}}
! {{{label6}}}
{{!}} {{{6}}}
{{!}} {{{data6}}}
}}
}}
|-
|-
{{#if:{{{7|}}}|
{{#if:{{{data7|}}}|
! {{{7}}}
! {{{label7}}}
{{!}} {{{8}}}
{{!}} {{{data7}}}
}}
}}
|-
|-
{{#if:{{{9|}}}|
{{#if:{{{data8|}}}|
! {{{9}}}
! {{{label8}}}
{{!}} {{{10}}}
{{!}} {{{data8}}}
}}
}}
|-
|-
{{#if:{{{11|}}}|
{{#if:{{{data9|}}}|
! {{{11}}}
! {{{label9}}}
{{!}} {{{12}}}
{{!}} {{{data9}}}
}}
}}
|-
|-
{{#if:{{{13|}}}|
{{#if:{{{data10|}}}|
! {{{13}}}
! {{{label10}}}
{{!}} {{{14}}}
{{!}} {{{data10}}}
}}
}}
|-
|-
{{#if:{{{15|}}}|
{{#if:{{{data11|}}}|
! {{{15}}}
! {{{label11}}}
{{!}} {{{16}}}
{{!}} {{{data11}}}
}}
}}
|-
|-
{{#if:{{{17|}}}|
{{#if:{{{data12|}}}|
! {{{17}}}
! {{{label12}}}
{{!}} {{{18}}}
{{!}} {{{data12}}}
}}
}}
|-
|-
{{#if:{{{19|}}}|
{{#if:{{{data13|}}}|
! {{{19}}}
! {{{label13}}}
{{!}} {{{20}}}
{{!}} {{{data13}}}
}}
|-
|-
{{#if:{{{21|}}}|
{{#if:{{{data14|}}}|
! {{{21}}}
! {{{label14}}}
{{!}} {{{22}}}
{{!}} {{{data14}}}
}}
|-
{{#if:{{{data15|}}}|
! {{{label15}}}
{{!}} {{{data15}}}
}}
|-
{{#if:{{{data16|}}}|
! {{{label16}}}
{{!}} {{{data16}}}
}}
|-
{{#if:{{{data17|}}}|
! {{{label17}}}
{{!}} {{{data17}}}
}}
|-
{{#if:{{{data18|}}}|
! {{{label18}}}
{{!}} {{{data18}}}
}}
|-
{{#if:{{{data19|}}}|
! {{{label19}}}
{{!}} {{{data19}}}
}}
|-
{{#if:{{{data20|}}}|
! {{{label20}}}
{{!}} {{{data20}}}
}}
|-
{{#if:{{{data21|}}}|
! {{{label21}}}
{{!}} {{{data21}}}
}}
|-
{{#if:{{{data22|}}}|
! {{{label22}}}
{{!}} {{{data22}}}
}}
|-
{{#if:{{{data23|}}}|
! {{{label23}}}
{{!}} {{{data23}}}
}}
|-
{{#if:{{{data24|}}}|
! {{{label24}}}
{{!}} {{{data24}}}
}}
|-
|-
{{#if:{{{23|}}}|
{{#if:{{{data25|}}}|
! {{{23}}}
! {{{label25}}}
{{!}} {{{24}}}
{{!}} {{{data25}}}
}}
}}
|}
|}</onlyinclude></includeonly><noinclude>
<includeonly>[[Category:{{{Type}}}]]</includeonly><noinclude>
{{{{PAGENAME}}/doc}}
 
[[Category:Infobox templates|{{PAGENAME}}]]
== Usage ==
{| style="float: left; background: transparent;"
|
<pre>{{Infobox
| 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>
|}
</noinclude>
</noinclude>

Latest revision as of 18:42, 28 April 2020

Usage[edit]

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