Difference between revisions of "MagazineBob"

From Sega Retro

Line 1: Line 1:
{{BobTablePlus|
+
{{#vardefine:magcode|{{{magcode|}}}}}{{BobTablePlus|
 
{{BobRowPlus
 
{{BobRowPlus
 
| if={{{logo|}}}
 
| if={{{logo|}}}
Line 9: Line 9:
 
| 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 26: Line 26:
 
| if={{{country|}}}
 
| if={{{country|}}}
 
| title=Country of origin
 
| title=Country of origin
| content={{{country|}}}{{#if: {{#pos:{{{country}}}|Japan}} | [[Category:JP magazines]] }}
+
| content={{{country|}}}{{#if: {{#pos:{{{country|}}}|Japan}} | [[Category:JP magazines]] }}
 
}}
 
}}
 
{{BobRowPlus
 
{{BobRowPlus
Line 34: Line 34:
 
}}
 
}}
 
{{BobRowPlus
 
{{BobRowPlus
| if={{{firstissue|}}}
+
| if=yes
 
| title=First issue date
 
| title=First issue date
| content={{{firstissue|}}}
+
| content={{MagazineName|{{#var:magcode}}|{{#if:{{{firstissue|}}}|{{{firstissue|}}}|1}}|nomagname=yes|noissuename=yes}}
 
}}
 
}}
 
{{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 52: Line 52:
 
| 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 90: Line 85:
 
| numberofissues=
 
| numberofissues=
 
| frequency=
 
| frequency=
| price=
 
 
| ISSN=
 
| ISSN=
 
| predecessor=
 
| predecessor=

Revision as of 18:34, 16 February 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=
| country=
| firstissue=
| lastissue=
| numberofissues=
| frequency=
| ISSN=
| predecessor=
| successor=
}}