Welcome to our new Skyland! Article rewrites are welcome. If you see any missing images, please feel free to add them. Please use the Aboutfile template when uploading and add categories.
We are also aware of some articles being unavailable. Please bear with us while we are working to get them fixed.

Template:Itembox: Difference between revisions

From Skylanders Wiki
Created page with "<infobox> <title source="title1"> <default>{{PAGENAME}}</default> </title> <image source="image1"> <caption source="caption1"/> </image> <data source="row1">..."
 
No edit summary
 
(13 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<infobox>
{| class="infobox" style="background:#{{elementcolor|{{{element|}}}|header}}"
  <title source="title1">
! colspan="2" style="background-color:#{{elementcolor|{{{element|}}}|title}};color:#FFF;font-size:125%" | <span style="text-shadow: 0 0 0.4em black;">{{{title|{{PAGENAME}}}}}</span>
    <default>{{PAGENAME}}</default>
|-
  </title>
|- style="vertical-align: top;"
  <image source="image1">
{{#if:{{{element|}}}|{{!}}-style="background:#{{elementcolor|{{{element|}}}|}}"
    <caption source="caption1"/>
{{!}} '''{{#ifeq:{{{element|}}}|Pandergast|Alignment|Element}}:'''
  </image>
{{!}} {{{element}}}
  <data source="row1">
|}}
    <label>Label</label>
|- style="vertical-align: top"
  </data>
{{#if:{{{terrain|}}}|{{!}}-style="background:#{{elementcolor|{{{element|}}}|}}"
  <data source="row2">
{{!}} '''Terrain:'''
    <label>Label</label>
{{!}} {{{terrain}}}
  </data>
|}}
</infobox>
|-
<noinclude>
| colspan="2" style="text-align:center" | {{{image|}}}
Example usage:<pre>
|- style="vertical-align: top"
{{#if:{{{type|}}}|{{!}}-style="background:#{{elementcolor|{{{element|}}}|}}"
{{!}} '''Type(s):'''
{{!}} {{{type}}}
|}}
|- style="vertical-align: top"
{{#if:{{{role|}}}|{{!}}-style="background:#{{elementcolor|{{{element|}}}|}}"
{{!}} '''Role:'''
{{!}} {{{role}}}
|}}
|- style="vertical-align: top"
{{#if:{{{function|}}}|{{!}}-style="background:#{{elementcolor|{{{element|}}}|}}"
{{!}} '''Function:'''
{{!}} {{{function}}}
|}}
|- style="vertical-align: top"
{{#if:{{{world|}}}|{{!}}-style="background:#{{elementcolor|{{{element|}}}|}}"
{{!}} '''World:'''
{{!}} {{{world}}}
|}}
|- style="vertical-align: top"
{{#if:{{{attack|}}}|{{!}}-style="background:#{{elementcolor|{{{element|}}}|}}"
{{!}} '''Attack(s):'''
{{!}} {{{attack}}}
|}}
|- style="vertical-align: top"
{{#if:{{{appearances|}}}|{{!}}-style="background:#{{elementcolor|{{{element|}}}|}}"
{{!}} '''Appearance(s):'''
{{!}} {{{appearances}}}
|}}
|- style="vertical-align: top"
{{#if:{{{cameos|}}}|{{!}}-style="background:#{{elementcolor|{{{element|}}}|}}"
{{!}} '''Cameo(s):'''
{{!}} {{{cameos}}}
|}}
|- style="vertical-align: top"
{{#if:{{{firstrelease|}}}|{{!}}-style="background:#{{elementcolor|{{{element|}}}|}}"
{{!}} '''First Released:'''
{{!}} {{{firstrelease}}}
|}}
|}<noinclude>
 
==Usage==
<pre>
{{Itembox
{{Itembox
|title1=Example
|name=
|image1=Example
|element=(for elemental items, also accepts "Pandergast")
|caption1=Example
|terrain=(for vehicles and gold trophies)
|row1=Example
|image=
|row2=Example
|type=
|role=
|function=
|world=
|attack=
|appearances=
|cameos=
|firstrelease=
}}
}}
</pre>
</pre>
</noinclude>
[[Category:Infobox templates]]</noinclude><includeonly>[[Category:Items]]</includeonly>

Latest revision as of 08:05, June 4, 2025

Itembox

Usage

{{Itembox
|name=
|element=(for elemental items, also accepts "Pandergast")
|terrain=(for vehicles and gold trophies)
|image=
|type=
|role=
|function=
|world=
|attack=
|appearances=
|cameos=
|firstrelease=
}}