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
Aura24 (talk | contribs)
No edit summary
Aura24 (talk | contribs)
No edit summary
Line 1: Line 1:
<infobox layout="stacked" theme-source="element">
{| class="infobox" style="background:white"
<title source="name"><default>{{PAGENAME}}</default></title>
! colspan="2" style="background-color:#663399;color:#FFF;font-size:125%" | ''{{{title|{{PAGENAME}}}}}''
<data source="alignment"><format>{{Itembox/Align|alignment={{{alignment|}}}|element={{{element|}}}|terrain={{{terrain|}}}}}</format></data>
|-
<image source="image"/>
|- style="vertical-align: top;"
    <group collapse="open"><header>Info</header>
{{#if:{{{alignment|}}}|{{!}}-style="background:#DDD3EE"
  <data source="type"><label>Type:</label></data>
{{!}} '''Alignment:'''
  <data source="role"><label>Role:</label></data>
{{!}} {{{alignment}}}
  <data source="function"><label>Function:</label></data>
|}}
  <data source="world"><label>World:</label></data>
|- style="vertical-align: top"
  <data source="attack"><label>Attacks:</label></data>
{{#if:{{{terrain|}}}|{{!}}-style="background:#DDD3EE"
</group>
{{!}} '''Terrain:'''
<group collapse="open"><header>Appearances</header>
{{!}} {{{terrain}}}
  <data source="appearances"><label>Appears in:</label></data>
|}}
  <data source="cameos"><label>Cameos:</label></data>
|-
  <data source="firstrelease"><label>First Release:</label></data>
| colspan="2" style="text-align:center" | {{{image|}}}
</group>
|- style="vertical-align: top"
</infobox>
{{#if:{{{type|}}}|{{!}}-style="background:#DDD3EE"
<noinclude>
{{!}} '''Type(s):'''
{{!}} {{{type}}}
|}}
|- style="vertical-align: top"
{{#if:{{{role|}}}|{{!}}-style="background:#DDD3EE"
{{!}} '''Role:'''
{{!}} {{{role}}}
|}}
|- style="vertical-align: top"
{{#if:{{{function|}}}|{{!}}-style="background:#DDD3EE"
{{!}} '''Function:'''
{{!}} {{{function}}}
|}}
|- style="vertical-align: top"
{{#if:{{{world|}}}|{{!}}-style="background:#DDD3EE"
{{!}} '''World:'''
{{!}} {{{world}}}
|}}
|- style="vertical-align: top"
{{#if:{{{attack|}}}|{{!}}-style="background:#DDD3EE"
{{!}} '''Attack(s):'''
{{!}} {{{attack}}}
|}}
|- style="vertical-align: top"
{{#if:{{{appearances|}}}|{{!}}-style="background:#DDD3EE"
{{!}} '''Appearance(s):'''
{{!}} {{{appearances}}}
|}}
|- style="vertical-align: top"
{{#if:{{{cameos|}}}|{{!}}-style="background:#DDD3EE"
{{!}} '''Cameo(s):'''
{{!}} {{{cameos}}}
|}}
|- style="vertical-align: top"
{{#if:{{{firstrelease|}}}|{{!}}-style="background:#DDD3EE"
{{!}} '''First Released:'''
{{!}} {{{firstrelease}}}
|}}
|}<noinclude>


==Usage & preview==
==Usage==
Type in this:
<pre>
<pre>
{{Itembox
{{Itembox
Line 37: Line 74:
}}
}}
</pre>
</pre>
 
[[Category:Infobox templates]]</noinclude><includeonly>[[Category:Items]]</includeonly>
to see this:
 
{{Characterbox
|name=This is a test
|alignment=
|element=
|terrain=
|image=This is a test
|role=This is a test
|type=This is a test
|function=This is a test
|world=This is a test
|attack=This is a test
|appearances=This is a test
|cameos=This is a test
|firstrelease=This is a test
}}
 
[{{fullurl:{{ns:Template}}:{{PAGENAME}}}}?action=purge Click here to refresh the preview above]
</noinclude>

Revision as of 22:43, May 10, 2025

Itembox

Usage

{{Itembox
|name=
|alignment=accepted values: pandergast/villain/element, leave blank to disable
|element=
|terrain=(for vehicles)
|image=
|type=
|role=
|function=
|world=
|attack=
|appearances=
|cameos=
|firstrelease=
}}