Difference between revisions of "ToyBob"

From Sega Retro

(not going to put the width restrictions on here; if you want you can do it - but these should be in for consistency)
Line 1: Line 1:
 
{{#vardefine:type|0}}{{#vardefine:genre|0}}{|cellpadding="0" cellspacing="0" class="breakout" style="width:auto !important; max-width: 400px; padding: 0px; float: right; margin-left: 15px; display: inline; position: relative"
 
{{#vardefine:type|0}}{{#vardefine:genre|0}}{|cellpadding="0" cellspacing="0" class="breakout" style="width:auto !important; max-width: 400px; padding: 0px; float: right; margin-left: 15px; display: inline; position: relative"
| style="text-align: center; padding: 0px; overflow: hidden;"|
+
{{BobRow||{{{toyimage|}}}|align=center|default=[[File:Notavailable.svg]]|content=[[File:{{{toyimage}}}|{{#if:{{{imagewidth|}}}|{{{imagewidth}}}|320x240}}px]]}}
[[File:{{#if: {{{toyimage|}}}|{{{toyimage}}}|Notavailable.svg}}|{{#if: {{{imgwidth|}}}|{{{imgwidth|}}}|}}px|{{{title|{{PAGENAME}}}}}]]
 
|-
 
 
! '''''{{ #if: {{{title|}}} | {{{title}}} | {{PAGENAME}} }}'''''
 
! '''''{{ #if: {{{title|}}} | {{{title}}} | {{PAGENAME}} }}'''''
 
|-
 
|-
|style="padding: 0.3em; line-height: 1.5em; padding-left: 5px;" |{{
+
{{BobRow|Manufacturer|{{{manufacturer|}}}}}
#if: {{{manufacturer|}}} | <p style="margin-top:0px; margin-bottom:0px;">'''Manufacturer''': {{{manufacturer}}}</p> | }}{{
+
{{BobRow|Publisher|{{{publisher|}}}}}
#if: {{{distributor|}}} | <p style="margin-top:0px; margin-bottom:0px;">'''Distributor(s)''': {{{distributor}}}</p> | }}{{
+
{{BobRow|Distributor(s)|{{{distributor|}}}}}
#if: {{{releases|}}} | {{releasesHeader}}
+
{{BobRow||{{{releases|}}}|content={{releasesHeader}}
 
{{{releases}}}
 
{{{releases}}}
{{releasesEnd}} | <br/> }}
+
{{releasesEnd}}}}
 
|}<noinclude>
 
|}<noinclude>
 
This template is to be used on articles about toys. Place the following at the top of a page:
 
This template is to be used on articles about toys. Place the following at the top of a page:

Revision as of 20:57, 9 July 2015

Notavailable.svg
ToyBob

This template is to be used on articles about toys. Place the following at the top of a page:

{{ToyBob
| toyimage=
| imgwidth=
| title=
| manufacturer=
| distributor=
| releases={{releases
...
}}
}}

All fields except "toyimage" are optional. See Template:Releases for how to add individual releases and variants of the toy.