Difference between revisions of "MagazineBob"

From Sega Retro

 
(33 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{BobTablePlus|
+
{{#vardefine:magcode|{{{magcode|}}}}}{{BobTablePlus|
 +
{{BobRowPlus
 +
| if={{{logo|}}}
 +
| content=[[File:{{{logo}}}|320x100px]]
 +
| align=center
 +
}}
 
{{BobRowPlus
 
{{BobRowPlus
 
| if={{{magimage|}}}
 
| if={{{magimage|}}}
 
| align=center
 
| align=center
 
| default=[[File:Notavailable.svg]]
 
| default=[[File:Notavailable.svg]]
| content=[[File:{{{magimage}}}|320x280px]]
+
| content=[[File:{{{magimage|}}}|320x280px]]
 
}}
 
}}
 
{{BobRowPlus
 
{{BobRowPlus
 
| if={{{title|}}}
 
| if={{{title|}}}
 
| default=''{{PAGENAME}}''
 
| default=''{{PAGENAME}}''
| content=''{{{title}}}''
+
| content=''{{{title|}}}''
 
| headline=yes
 
| headline=yes
 
| align=center
 
| align=center
Line 16: Line 21:
 
| if={{{publisher|}}}
 
| if={{{publisher|}}}
 
| title=Publisher
 
| title=Publisher
| content={{{publisher|}}}
+
| content={{#vardefine:companyrole|Publisher}}{{company|{{{publisher|}}}|system=MAG|icons=no|inline=yes}}{{#vardefine:companyrole|}}
 
}}
 
}}
 
{{BobRowPlus
 
{{BobRowPlus
 
| if={{{country|}}}
 
| if={{{country|}}}
 
| title=Country of origin
 
| title=Country of origin
| content={{{country|}}}{{#if: {{#pos:{{{country}}}|Japan}} | [[Category:JP magazines]] }}
+
| content={{{country|}}}{{#vardefine:country|{{CountryCheck|{{{country|}}}}}}}{{#if:{{#var:country}}|[[Category:Magazines in {{#var:country}}]]|}}
 
}}
 
}}
 
{{BobRowPlus
 
{{BobRowPlus
 
| if={{{system|}}}
 
| if={{{system|}}}
 
| title=Backed systems
 
| 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]] }}
+
| 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]] }}{{#if: {{#pos:{{{system}}}|SC-3000}} | [[Category:SC-3000 magazines]] }}
 +
}}
 +
{{BobRowPlus
 +
| if={{{subject|}}}
 +
| title=Subject(s)
 +
| content={{{subject|}}}{{#vardefine:i|0}}
 +
{{#while:
 +
| {{#if:{{#explode:{{{subject|}}}|,|{{#var:i}}}}|true}}
 +
| {{#vardefine:subject|{{#explode:{{{subject|}}}|,|{{#var:i}}}}}} [[Category:{{#var:subject}} magazines]]{{clearvar|subject}}{{incvar|i}}
 
}}
 
}}
 +
}}{{#if:{{{system|}}}{{{subject|}}}||[[Category:Magazines without subject]]}}
 
{{BobRowPlus
 
{{BobRowPlus
| if={{{firstissue|}}}
+
| if=yes
 
| title=First issue date
 
| title=First issue date
| content={{{firstissue|}}}
+
| content={{#vardefine:startdate|{{MagazineName|{{#var:magcode}}|{{#if:{{{firstissue|}}}|{{{firstissue|}}}|1}}|nomagname=yes|noissuename=yes}}}}{{#var:startdate}}
 
}}
 
}}
 
{{BobRowPlus
 
{{BobRowPlus
 
| if={{{lastissue|}}}
 
| if={{{lastissue|}}}
 
| title=Last issue date
 
| title=Last issue date
| content={{{lastissue|}}}
+
| content={{MagazineName|{{#var:magcode}}|{{{lastissue|}}}|nomagname=yes|noissuename=yes}}
 
}}
 
}}
 
{{BobRowPlus
 
{{BobRowPlus
Line 49: Line 63:
 
}}
 
}}
 
{{BobRowPlus
 
{{BobRowPlus
| if={{{price|}}}
+
| if={{{circulation|}}}
| title=Price
+
| title=Circulation
| content={{{price|}}}
+
| content={{{circulation|}}}
 
}}
 
}}
 
{{BobRowPlus
 
{{BobRowPlus
 
| if={{{ISSN|}}}
 
| if={{{ISSN|}}}
 
| title=ISSN
 
| title=ISSN
| content=[http://www.worldcat.org/issn/{{{ISSN}}} {{{ISSN}}}]
+
| content=[http://www.worldcat.org/issn/{{{ISSN|}}} {{{ISSN|}}}]
 
}}
 
}}
 
{{BobRowPlus
 
{{BobRowPlus
Line 68: Line 82:
 
| content={{{successor|}}}
 
| content={{{successor|}}}
 
}}
 
}}
}}<includeonly>[[Category:All magazines]]</includeonly>
+
}}<includeonly>{{#if:{{{system|}}}|[[Category:Magazines]]|[[Category:Non-Sega magazines]]}}{{StoreRelease
<noinclude>
+
|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 for Sega-based magazines. Place the following at the top of a page:
  
 
<pre>
 
<pre>
 
{{MagazineBob
 
{{MagazineBob
 +
| logo=
 
| magimage=
 
| magimage=
 
| title=
 
| title=
 
| publisher=
 
| publisher=
 
| system=
 
| system=
 +
| subject=
 
| country=
 
| country=
 
| firstissue=
 
| firstissue=
Line 84: Line 138:
 
| numberofissues=
 
| numberofissues=
 
| frequency=
 
| frequency=
| price=
+
| circulation=
 
| ISSN=
 
| ISSN=
 
| predecessor=
 
| predecessor=
 
| successor=
 
| successor=
 +
| defaultratingsystem=
 
}}</pre>
 
}}</pre>
  
 
+
{{MagazineBob
 +
| logo=
 +
| magimage=
 +
| magcode=superconsole
 +
| title=
 +
| publisher=
 +
| subject=Nintendo, PlayStation
 +
| country=Italy
 +
| firstissue=
 +
| lastissue=
 +
| numberofissues=
 +
| frequency=
 +
| ISSN=
 +
| predecessor=
 +
| successor=
 +
| defaultratingsystem=0-10
 +
}}
 
[[Category:Breakout box templates]]</noinclude>
 
[[Category:Breakout box templates]]</noinclude>

Latest revision as of 05:59, 12 March 2024

Notavailable.svg
MagazineBob
First issue date:

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

Usage

This template is to be used on articles for 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=
}}


Notavailable.svg
MagazineBob
Country of origin: Italy
Subject(s): Nintendo, PlayStation
First issue date: 1994-xx-xx