Difference between revisions of "ToyBob"

From Sega Retro

(ok it has to be something in the releases template... maybe?)
m (+licensor)
 
(15 intermediate revisions by 6 users not shown)
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:systemfull|Toy}}{{#vardefine:type|5}}{{BobTablePlus|
| style="text-align: center;"|
+
{{BobRowPlus
[[File:{{#if: {{{toyimage|}}}|{{{toyimage}}}|Notavailable.svg}}|{{#if: {{{imgwidth|}}}|{{{imgwidth|}}}|}}px|{{{title|{{PAGENAME}}}}}]]
+
| if={{{logo|}}}
|-
+
| content=[[File:{{{logo}}}|320x100px]]
! '''''{{ #if: {{{title|}}} | {{{title}}} | {{PAGENAME}} }}'''''
+
| align=center
|-
+
}}
| style="padding: 0.3em; line-height: 1.5em; padding-left: 5px;"|{{
+
{{BobRowPlus
#if: {{{manufacturer|}}} | <p style="margin-top:0px; margin-bottom:0px;">'''Manufacturer''': {{{manufacturer}}}</p> | }}{{
+
| if={{{toyimage|}}}
#if: {{{distributor|}}} | <p style="margin-top:0px; margin-bottom:0px;">'''Distributor(s)''': {{{distributor}}}</p> | }}{{
+
| align=center
#if: {{{releases|}}} | {{{releases}}} | <br/> }}
+
| default=[[File:Notavailable.svg]]
|}<noinclude>
+
| content=[[File:{{{toyimage}}}|{{#if:{{{toyimage2|}}}|160x240|320x240}}px]]{{#if:{{{toyimage2|}}}|[[File:{{{toyimage2|}}}|160x240px]]}}
 +
}}
 +
{{BobRowPlus
 +
| if={{{title|}}}
 +
| default={{PAGENAME}}
 +
| content={{{title}}}
 +
| headline=yes
 +
| align=center
 +
}}
 +
{{#vardefine:companyrole|Manufacturer}}{{BobRowPlus
 +
| if={{{manufacturer|}}}
 +
| title=Manufacturer
 +
| content={{#if:{{#pos:{{{manufacturer|}}}|<}}|{{{manufacturer|}}}|{{company|{{{manufacturer|}}}}}}}
 +
}}
 +
{{#vardefine:companyrole|Publisher}}{{BobRowPlus
 +
| if={{{publisher|}}}
 +
| title=Publisher
 +
| content={{#if:{{#pos:{{{publisher|}}}|<}}|{{{publisher|}}}|{{company|{{{publisher|}}}}}}}
 +
}}
 +
{{#vardefine:companyrole|Distributor}}{{BobRowPlus
 +
| if={{{distributor|}}}
 +
| title=Distributor
 +
| content={{#if:{{#pos:{{{distributor|}}}|<}}|{{{distributor|}}}|{{company|{{{distributor|}}}}}}}
 +
}}
 +
{{#vardefine:companyrole|Licensor}}{{BobRowPlus
 +
| if={{{licensor|}}}
 +
| title=Licensor
 +
| content={{#if:{{#pos:{{{licensor|}}}|<}}|{{{licensor|}}}|{{company|{{{licensor|}}}}}}}
 +
}}
 +
{{BobRowPlus
 +
| if={{{releases|}}}
 +
| content={{releasesHeader}}
 +
{{{releases}}}
 +
{{releasesEnd}}
 +
}}
 +
}}<includeonly>[[Category:Toys]]</includeonly><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:
  
Line 15: Line 50:
 
{{ToyBob
 
{{ToyBob
 
| toyimage=
 
| toyimage=
| imgwidth=
 
 
| title=
 
| title=
 
| manufacturer=
 
| manufacturer=
 
| distributor=
 
| distributor=
| releases={{releases
+
| licensor=
 +
| releases={{releasesToy
 
...
 
...
 
}}
 
}}
Line 25: Line 60:
 
</pre>
 
</pre>
  
All fields except "toyimage" are optional. See [[:Template:Releases]] for how to add individual releases and variants of the toy.
+
All fields are optional. See [[:Template:Releases]] for how to add individual releases and variants of the toy.
 
 
  
[[Category:Breakout box templates|ToyBob]]</noinclude>
+
[[Category:Breakout box templates]]</noinclude>

Latest revision as of 22:53, 7 December 2021

Notavailable.svg
ToyBob

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

{{ToyBob
| toyimage=
| title=
| manufacturer=
| distributor=
| licensor=
| releases={{releasesToy
...
}}
}}

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