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:SBook: Difference between revisions

From Skylanders Wiki
Aura24 (talk | contribs)
No edit summary
Tag: sourceedit
Aura24 (talk | contribs)
Infobox updated using the portable infobox migration tool
Line 1: Line 1:
<includeonly>
<infobox layout="stacked">
{|class="infobox" style="border:solid 3px #008B8B; -moz-border-radius:10px; float:right;" width="400px"
<title source="name"><default>{{PAGENAME}}</default></title>
|- valign="top"
<image source="image"/>
{{#if: {{{name|}}}|
<data source="author"><label>'''Author:'''</label></data>
{{!}} class="ussi" colspan="2" style="text-align:center; font-size: large; background:#20B2AA; -moz-border-radius-topleft: 0.5em; -moz-border-radius-topright: 0.5em;"{{!}}
<data source="publish"><label>'''Publisher(s):'''</label></data>
{{{name|}}}}}
<data source="release date"><label>'''Release Date:'''</label></data>
|- valign="top"
<data source="pages"><label>'''Pages:'''</label></data>
{{#if: {{{image|}}}|
<data source="art"><label>'''Art by:'''</label></data>
{{!}} class="ussi" colspan="2" style="text-align:center; background:#FFFFFF"{{!}}
<data source="category"><label>'''Category:'''</label></data>
{{{image|}}}}}
<data source="based on"><label>'''Based on:'''</label></data>
|- valign="top"
</infobox>
{{#if:{{{author|}}} |
<noinclude>
! class="ussl" style="background:#20B2AA" width="44%" {{!}} '''Author:'''
== Usage & preview ==
{{!}} class="ussr" style="background:#66CDAA" {{!}} {{{author|}}}
Type in this:
 
<pre>
{{SBook
|name=
|image=
|author=
|publish=
|release date=
|pages=
|art=
|category=
|based on=
}}
}}
|- valign="top"
 
{{#if:{{{publish|}}} |
</pre>
! class="ussl" style="background:#20B2AA" width="44%" {{!}} '''Publisher(s):'''
 
{{!}} class="ussr" style="background:#66CDAA" {{!}} {{{publish|}}}
to see this:
}}
 
|- valign="top"
{{SBook
{{#if:{{{release date|}}} |
|name=This is a test
! class="ussl" style="background:#20B2AA" width="44%" {{!}} '''Release Date:'''
|image=This is a test
{{!}} class="ussr" style="background:#66CDAA" {{!}} {{{release date|}}}
|author=This is a test
}}
|publish=This is a test
|- valign="top"
|release date=This is a test
{{#if:{{{pages|}}} |
|pages=This is a test
! class="ussl" style="background:#20B2AA" width="44%" {{!}} '''Pages:'''
|art=This is a test
{{!}} class="ussr" style="background:#66CDAA" {{!}} {{{pages|}}}
|category=This is a test
}}
|based on=This is a test
|- valign="top"
{{#if: {{{art|}}}|
! class="ussl" style="background:#20B2AA" width="44%" {{!}} '''Art by:'''
{{!}} class="ussr" style="background:#66CDAA" {{!}} {{{art|}}}
}}
|- valign="top"
{{#if:{{{category|}}} |
! class="ussl" style="background:#20B2AA" width="44%" {{!}} '''Category:'''
{{!}} class="ussr" style="background:#66CDAA" {{!}} {{{category|}}}
}}
|- valign="top"
{{#if:{{{based on|}}} |
! class="ussl" style="background:#20B2AA" width="44%" {{!}} '''Based on:'''
{{!}} class="ussr" style="background:#66CDAA" {{!}} <i>{{{based on|}}}</i>
}}
}}
|}
</includeonly><noinclude>




This is a template used on the books related to Skylanders and should be placed at the top of the articles. To use it, simply add the following code to a page:
[{{fullurl:{{ns:Template}}:{{PAGENAME}}}}?action=purge Click here to refresh the preview above]
<pre>{{SBook}}</pre>
</noinclude>

Revision as of 10:36, December 18, 2015

<infobox layout="stacked"> <title source="name"><default>SBook</default></title> <image source="image"/> <label>Author:</label> <label>Publisher(s):</label> <label>Release Date:</label> <label>Pages:</label> <label>Art by:</label> <label>Category:</label> <label>Based on:</label> </infobox>

Usage & preview

Type in this:

{{SBook
|name=
|image=
|author=
|publish=
|release date=
|pages=
|art=
|category=
|based on=
}}

to see this:

<infobox layout="stacked"> <title source="name"><default>SBook</default></title> <image source="image"/> <label>Author:</label> <label>Publisher(s):</label> <label>Release Date:</label> <label>Pages:</label> <label>Art by:</label> <label>Category:</label> <label>Based on:</label> </infobox>


Click here to refresh the preview above