Difference between revisions of "MagazineBob"

From Sega Retro

(16 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{BobTablePlus|
+
{{#vardefine:magcode|{{{magcode|}}}}}{{BobTablePlus|
 +
{{BobRowPlus
 +
| if={{{logo|}}}
 +
| content={{{logo|}}}
 +
| 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
Line 29: Line 34:
 
}}
 
}}
 
{{BobRowPlus
 
{{BobRowPlus
| if={{{firstissue|}}}
+
| if={{{subject|}}}
 +
| title=Subject(s)
 +
| content={{{subject|}}}[[Category:{{{subject|}}} magazines]]
 +
}}{{#if:{{{system|}}}{{{subject|}}}||[[Category:Magazines without subject]]}}
 +
{{BobRowPlus
 +
| 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 47: Line 57:
 
| title=Frequency
 
| title=Frequency
 
| content={{{frequency|}}}
 
| content={{{frequency|}}}
}}
 
{{BobRowPlus
 
| if={{{price|}}}
 
| title=Price
 
| content={{{price|}}}[[Category:Old price field]]
 
 
}}
 
}}
 
{{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 73:
 
| content={{{successor|}}}
 
| content={{{successor|}}}
 
}}
 
}}
}}<includeonly>[[Category:All magazines]]</includeonly>
+
}}<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=
 +
}}</includeonly>
 
<noinclude>
 
<noinclude>
 
==Usage==
 
==Usage==
Line 75: Line 88:
 
<pre>
 
<pre>
 
{{MagazineBob
 
{{MagazineBob
 +
| logo=
 
| magimage=
 
| magimage=
 
| title=
 
| title=
 
| publisher=
 
| publisher=
 
| system=
 
| system=
 +
| subject=
 
| country=
 
| country=
 
| firstissue=
 
| firstissue=
Line 84: Line 99:
 
| numberofissues=
 
| numberofissues=
 
| frequency=
 
| frequency=
| price=
 
 
| ISSN=
 
| ISSN=
 
| predecessor=
 
| predecessor=

Revision as of 17:41, 20 March 2020

Notavailable.svg
MagazineBob
First issue date:

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=
| ISSN=
| predecessor=
| successor=
}}