Difference between revisions of "MagazineBob"

From Sega Retro

m (simplified image #if usage)
(39 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{|cellpadding="0" cellspacing="0" class="breakout" style="max-width: 340px; padding: 0px; float: right; margin-left: 15px; display: inline; position: relative"
+
{{#vardefine:magcode|{{{magcode|}}}}}{{BobTablePlus|
| style="text-align: center;"|
+
{{BobRowPlus
[[File:{{#if: {{{magimage|}}}|{{{magimage}}}|Notavailable.svg}}|{{#if: {{{imagewidth|}}}|{{{imagewidth|}}}|}}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: {{{publisher|}}} | '''Publisher''': {{{publisher}}}<br> | }}{{
+
| if={{{magimage|}}}
#if: {{{country|}}} | '''Country of Origin''': {{{country}}}<br> | }}{{
+
| align=center
#if: {{{system|}}} | '''Backed System(s)''': {{{system}}}<br> | }}{{
+
| default=[[File:Notavailable.svg]]
#if: {{{firstissue|}}} | '''First Issue''': {{{firstissue}}}<br> | }}{{
+
| content=[[File:{{{magimage|}}}|320x280px]]
#if: {{{lastissue|}}} | '''Last Issue''': {{{lastissue}}}<br> | }}{{
+
}}
#if: {{{numberofissues|}}} | '''Number of Issues''': {{{numberofissues}}}<br> | }}{{
+
{{BobRowPlus
#if: {{{frequency|}}} | '''Frequency''': {{{frequency}}}<br> | }}{{
+
| if={{{title|}}}
#if: {{{price|}}} | '''Price''': {{{price}}}<br> | }}{{
+
| default=''{{PAGENAME}}''
#if: {{{ISSN|}}} | '''ISSN''': [http://www.worldcat.org/issn/{{{ISSN}}} {{{ISSN}}}]<br> | }}{{
+
| content=''{{{title|}}}''
#if: {{{predecessor|}}} | '''Preceded by''': ''{{{predecessor}}}''<br> | }}{{
+
| headline=yes
#if: {{{successor|}}} | '''Succeeded by''': ''{{{successor}}}''<br> | }}
+
| align=center
|}
+
}}
<noinclude>
+
{{BobRowPlus
 +
| if={{{publisher|}}}
 +
| title=Publisher
 +
| content={{#vardefine:companyrole|Publisher}}{{company|{{{publisher|}}}|system=MAG|icons=no|inline=yes}}{{#vardefine:companyrole|}}
 +
}}
 +
{{BobRowPlus
 +
| if={{{country|}}}
 +
| title=Country of origin
 +
| content={{{country|}}}{{#vardefine:country|{{CountryCheck|{{{country|}}}}}}}{{#if:{{#var:country}}|[[Category:Magazines in {{#var:country}}]]|}}
 +
}}
 +
{{BobRowPlus
 +
| if={{{system|}}}
 +
| title=Backed systems
 +
| content={{{system|}}}{{#if: {{#pos:{{{system}}}|Mega Drive}} | [[Category:Mega Drive magazines]] }}{{#if: {{#pos:{{{system}}}|Master System}} | [[Category:Master System magazines]] }}{{#if: {{#pos:{{{system}}}|Mega-CD}} | [[Category:Mega-CD magazines]] }}{{#if: {{#pos:{{{system}}}|Game Gear}} | [[Category:Game Gear magazines]] }}{{#if: {{#pos:{{{system}}}|Saturn}} | [[Category:Saturn magazines]] }}{{#if: {{#pos:{{{system}}}|Dreamcast}} | [[Category:Dreamcast magazines]] }}
 +
}}
 +
{{BobRowPlus
 +
| if={{{subject|}}}
 +
| title=Subject(s)
 +
| content={{{subject|}}}[[Category:{{{subject|}}} magazines]]
 +
}}{{#if:{{{system|}}}{{{subject|}}}||[[Category:Magazines without subject]]}}
 +
{{BobRowPlus
 +
| if=yes
 +
| title=First issue date
 +
| content={{#vardefine:startdate|{{MagazineName|{{#var:magcode}}|{{#if:{{{firstissue|}}}|{{{firstissue|}}}|1}}|nomagname=yes|noissuename=yes}}}}{{#var:startdate}}
 +
}}
 +
{{BobRowPlus
 +
| if={{{lastissue|}}}
 +
| title=Last issue date
 +
| content={{MagazineName|{{#var:magcode}}|{{{lastissue|}}}|nomagname=yes|noissuename=yes}}
 +
}}
 +
{{BobRowPlus
 +
| if={{{numberofissues|}}}
 +
| title=Number of issues
 +
| content={{{numberofissues|}}}
 +
}}
 +
{{BobRowPlus
 +
| if={{{frequency|}}}
 +
| title=Frequency
 +
| content={{{frequency|}}}
 +
}}
 +
{{BobRowPlus
 +
| if={{{circulation|}}}
 +
| title=Circulation
 +
| content={{{circulation|}}}
 +
}}
 +
{{BobRowPlus
 +
| if={{{ISSN|}}}
 +
| title=ISSN
 +
| content=[http://www.worldcat.org/issn/{{{ISSN|}}} {{{ISSN|}}}]
 +
}}
 +
{{BobRowPlus
 +
| if={{{predecessor|}}}
 +
| title=Preceded by
 +
| content={{{predecessor|}}}
 +
}}
 +
{{BobRowPlus
 +
| if={{{successor|}}}
 +
| title=Succeeded by
 +
| content={{{successor|}}}
 +
}}
 +
}}<includeonly>{{#if:{{{system|}}}|[[Category:Magazines]]|[[Category:Non-Sega magazines]]}}{{StoreRelease
 +
|name={{#titleparts:{{PAGENAME}}}}
 +
|type=99
 +
|console=MAG
 +
|region=
 +
|date=<!-- TODO: make {{#var:startdate}} work -->
 +
|rrp=
 +
|code=
 +
}}{{#if:{{{defaultratingsystem|}}}|{{#cargo_store:
 +
_table = magdefaultratingsystems
 +
|code={{#var:magcode}}
 +
|system={{{defaultratingsystem|}}}
 +
|firstissue=0
 +
}}{{#if:{{{defaultratingsystem2|}}}|{{#cargo_store:
 +
_table = magdefaultratingsystems
 +
|code={{#var:magcode}}
 +
|system={{{defaultratingsystem2|}}}
 +
|firstissue={{padleft:{{{defaultratingsystem2_issue|0}}}|8|0}}
 +
}}}}{{#if:{{{defaultratingsystem3|}}}|{{#cargo_store:
 +
_table = magdefaultratingsystems
 +
|code={{#var:magcode}}
 +
|system={{{defaultratingsystem3|}}}
 +
|firstissue={{padleft:{{{defaultratingsystem3_issue|0}}}|8|0}}
 +
}}}}{{#if:{{{defaultratingsystem4|}}}|{{#cargo_store:
 +
_table = magdefaultratingsystems
 +
|code={{#var:magcode}}
 +
|system={{{defaultratingsystem4|}}}
 +
|firstissue={{padleft:{{{defaultratingsystem4_issue|0}}}|8|0}}
 +
}}}}{{#if:{{{defaultratingsystem5|}}}|{{#cargo_store:
 +
_table = magdefaultratingsystems
 +
|code={{#var:magcode}}
 +
|system={{{defaultratingsystem5|}}}
 +
|firstissue={{padleft:{{{defaultratingsystem5_issue|0}}}|8|0}}
 +
}}}}|[[Category:No rating system]]}}</includeonly>
 +
<noinclude>{{#cargo_declare:
 +
_table = magdefaultratingsystems
 +
|code=Text
 +
|system=Text
 +
|firstissue=Text
 +
}}
 
==Usage==
 
==Usage==
 
This template is to be used on articles Sega-based magazines. Place the following at the top of a page:
 
This template is to be used on articles Sega-based magazines. Place the following at the top of a page:
  
 
<pre>
 
<pre>
{{Magazine
+
{{MagazineBob
 +
| logo=
 
| magimage=
 
| magimage=
| imagewidth=
 
 
| title=
 
| title=
 
| publisher=
 
| publisher=
 
| system=
 
| system=
 +
| subject=
 
| country=
 
| country=
 
| firstissue=
 
| firstissue=
Line 34: Line 134:
 
| numberofissues=
 
| numberofissues=
 
| frequency=
 
| frequency=
| price=
+
| circulation=
 
| ISSN=
 
| ISSN=
 
| predecessor=
 
| predecessor=
 
| successor=
 
| successor=
 +
| defaultratingsystem=
 
}}</pre>
 
}}</pre>
  
 
+
[[Category:Breakout box templates]]</noinclude>
[[Category:Breakout Box Templates|Magazine]]</noinclude>
 

Revision as of 06:21, 4 July 2020

Notavailable.svg
MagazineBob
First issue date:

This template defines the table "magdefaultratingsystems". View table.

Usage

This template is to be used on articles Sega-based magazines. Place the following at the top of a page:

{{MagazineBob
| logo=
| magimage=
| title=
| publisher=
| system=
| subject=
| country=
| firstissue=
| lastissue=
| numberofissues=
| frequency=
| circulation=
| ISSN=
| predecessor=
| successor=
| defaultratingsystem=
}}