Actions

Template

Difference between revisions of "MagazineBob"

From NEC Retro

 
(4 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{BobTable|
+
{{#vardefine:magcode|{{{magcode|}}}}}{{BobTablePlus|
{{BobRow||{{{logo|}}}|align=center}}
+
{{BobRowPlus
{{BobRow||{{{magimage|}}}|align=center|default=[[File:Notavailable.svg]]|content=[[File:{{{magimage}}}|{{#if:{{{imagewidth|}}}|{{{imagewidth}}}|320x280}}px]]}}
+
| if={{{logo|}}}
{{BobRow||{{{title|}}}|default=Fast facts on ''{{PAGENAME}}''|content=Fast facts on ''{{{title}}}''|headline=yes|align=center}}
+
| content=[[File:{{{logo}}}|320x100px]]
{{BobRow|Publisher|{{{publisher|}}}}}
+
| align=center
{{BobRow|Country of origin|{{{country|}}}}}
+
}}
{{BobRow||{{{system|}}}|content='''Backed systems:''' {{{system}}} {{
+
{{BobRowPlus
#if: {{#pos:{{{system}}}|PC Engine}} | [[Category:PC Engine magazines]] }}{{
+
| if={{{magimage|}}}
#if: {{#pos:{{{system}}}|TurboGrafx-16}} | [[Category:TurboGrafx-16 magazines]] }}{{
+
| align=center
#if: {{#pos:{{{system}}}|PC-FX}} | [[Category:PC-FX series magazines]] }}{{
+
| default=[[File:Notavailable.svg]]
#if: {{#pos:{{{system}}}|PC-8000 series}} | [[Category:PC-8000 series magazines]] }}{{
+
| content=[[File:{{{magimage|}}}|320x280px]]
#if: {{#pos:{{{system}}}|PC-6000 series}} | [[Category:PC-6000 series magazines]] }}{{
+
}}
#if: {{#pos:{{{system}}}|PC-6600 series}} | [[Category:PC-6600 series magazines]] }}{{
+
{{BobRowPlus
#if: {{#pos:{{{system}}}|PC-8800 series}} | [[Category:PC-8800 series magazines]] }}{{
+
| if={{{title|}}}
#if: {{#pos:{{{system}}}|PC-9800 series}} | [[Category:PC-9800 series magazines]] }}}}
+
| default=''{{PAGENAME}}''
{{BobRow|First issue date|{{{firstissue|}}}}}
+
| content=''{{{title|}}}''
{{BobRow|Last issue date|{{{lastissue|}}}}}
+
| headline=yes
{{BobRow|Number of issues|{{{numberofissues|}}}}}
+
| align=center
{{BobRow|Frequency|{{{frequency|}}}}}
+
}}
{{BobRow|Price|{{{price|}}}}}
+
{{BobRowPlus
{{BobRow|ISSN|{{{ISSN|}}}|content=[http://www.worldcat.org/issn/{{{ISSN}}} {{{ISSN}}}]}}
+
| if={{{publisher|}}}
{{BobRow|Preceded by|{{{predecessor|}}}}}
+
| title=Publisher
{{BobRow|Succeeded by|{{{successor|}}}}}
+
| content={{#vardefine:companyrole|Publisher}}{{company|{{{publisher|}}}|system=MAG|icons=no|inline=yes}}{{#vardefine:companyrole|}}
}}[[Category:All magazines]]
+
}}
<noinclude>
+
{{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}}}|PC Engine}} | [[Category:PC Engine magazines]] }}{{#if: {{#pos:{{{system}}}|TurboGrafx-16}} | [[Category:TurboGrafx-16 magazines]] }}{{#if: {{#pos:{{{system}}}|PC-9800 series}} | [[Category:PC-9800 series 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-NEC 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>{{TODO}}<!-- {{#cargo_declare:
 +
_table = magdefaultratingsystems
 +
|code=Text
 +
|system=Text
 +
|firstissue=Text
 +
}} -->
 
==Usage==
 
==Usage==
 
This template is to be used on articles for NEC-based magazines. Place the following at the top of a page:
 
This template is to be used on articles for NEC-based magazines. Place the following at the top of a page:
  
 
<pre>
 
<pre>
{{MagBob
+
{{MagazineBob
 +
| logo=
 
| magimage=
 
| magimage=
| imagewidth=
 
 
| title=
 
| title=
 
| publisher=
 
| publisher=
 
| system=
 
| system=
 +
| subject=
 
| country=
 
| country=
 
| firstissue=
 
| firstissue=
Line 39: 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]]</noinclude>

Latest revision as of 08:25, 10 April 2024

Notavailable.svg
MagazineBob
First issue date:
48
This task is unfinished
This is a wiki task that requires more thought or peer review. An important issue that needs to be solved, which will appear at the top of NEC Retro:Todo until this message is removed.

Usage

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