Difference between revisions of "Template:Infobox"

From Nookipedia, the Animal Crossing wiki
(Adding new parameter)
(Adding ability to have second image below the first one. Update documentation.)
Line 6: Line 6:
 
{{!}} style="background: #{{{secondarycolor|d9d9d9}}}; {{roundy|10px}}" colspan="2" {{!}} ''<small>"{{{subtitle}}}"</small>''|}}
 
{{!}} style="background: #{{{secondarycolor|d9d9d9}}}; {{roundy|10px}}" colspan="2" {{!}} ''<small>"{{{subtitle}}}"</small>''|}}
 
|-
 
|-
| style="background: #ffffff; text-align:center; {{roundy|9px}}" colspan="2" | {{#if:{{{image|}}}|{{{image}}}|Have an image of this boxart?<br>Then please '''[[Special:Upload|upload]]''' it!}}{{#if:{{{caption|}}}|<br>{{{caption}}}}}
+
| style="background: #ffffff; text-align:center; {{roundy|9px}}" colspan="2" | {{#if:{{{image|}}}|{{{image}}}|Have an image of this boxart?<br>Then please '''[[Special:Upload|upload]]''' it!}}{{#if:{{{caption|}}}|<br>{{{caption}}}}}<br>{{#if:{{{image2|}}}|{{{image}}}|}}{{#if:{{{caption2|}}}|<br>{{{caption}}}}}
 
|- {{#if: {{{subtitlebelow|}}}|
 
|- {{#if: {{{subtitlebelow|}}}|
 
{{!-}} align="center"
 
{{!-}} align="center"
Line 103: Line 103:
 
<noinclude>
 
<noinclude>
 
==Usage==
 
==Usage==
 +
This is a very complex template that has been designed to accommodate multiple different use cases for infoboxes. Please see the below for the full list of parameters.
 
<pre>
 
<pre>
 
{{Infobox
 
{{Infobox
Line 111: Line 112:
 
|subtitleabove  =
 
|subtitleabove  =
 
|subtitlebelow  =
 
|subtitlebelow  =
|image          = {{{image|}}}
+
|image          =
|caption        = {{{caption|}}}
+
|caption        =
 +
|image2        =
 +
|caption2      =
 +
|widelabelsolo  =
 +
|widedatasolo  =
 
|widelabel      =
 
|widelabel      =
 
|widedata      =
 
|widedata      =
Line 147: Line 152:
 
|labelend      =  
 
|labelend      =  
 
|dataend        =  
 
|dataend        =  
|strategywiki  = {{{strategywiki|}}}
+
|strategywiki  =
 
}}</pre>
 
}}</pre>
 
[[Category:Infobox templates]]
 
[[Category:Infobox templates]]
 
</noinclude>
 
</noinclude>

Revision as of 06:34, March 1, 2020

Infobox
Have an image of this boxart?
Then please upload it!
{{{label}}}

Usage

This is a very complex template that has been designed to accommodate multiple different use cases for infoboxes. Please see the below for the full list of parameters.

{{Infobox
|bordercolor    = 
|primarycolor   = 
|secondarycolor = 
|title          = 
|subtitleabove  =
|subtitlebelow  =
|image          =
|caption        =
|image2         =
|caption2       =
|widelabelsolo  =
|widedatasolo   =
|widelabel      =
|widedata       =
|widelabel2     =
|widedata2      =
|widelabel3     =
|widedata3      =
|widelabel4     =
|widedata4      =
|widelabelend   =
|widedataend    =
|label          = 
|data           = 
|label2         = 
|data2          = 
|label3         = 
|data3          = 
|label4         = 
|data4          = 
|label5         = 
|data5          = 
|label6         = 
|data6          = 
|label7         = 
|data7          = 
|label8         = 
|data8          = 
|label9         = 
|data9          = 
|label10        = 
|data10         = 
|label11        = 
|data11         = 
|labelend       = 
|dataend        = 
|strategywiki   =
}}