Difference between revisions of "ProductionHistory"

From Sega Retro

Line 56: Line 56:
 
|fields=credits.role=role,credits.name=name,credits.game=game,credits.console,credits.date,credits.pdf,credits.pdfpage,releases.date
 
|fields=credits.role=role,credits.name=name,credits.game=game,credits.console,credits.date,credits.pdf,credits.pdfpage,releases.date
 
|where=releases.type="3" and ({{#var:command}})
 
|where=releases.type="3" and ({{#var:command}})
 +
|join on=credits.game=releases.name
 +
|order by=releases.date
 +
|group by=credits.console, credits.game, credits.role
 +
|default=
 +
|limit=10000
 +
|format=template
 +
|template=ProductionHistoryLine
 +
}}
 +
}}
 +
 +
<!-- hardware -->
 +
{{#vardefine:hardwareContents|{{#cargo_query:
 +
tables=credits,releases
 +
|fields=credits.role=role,credits.name=name,credits.game=game,credits.console,credits.date,credits.pdf,credits.pdfpage,releases.date
 +
|where=releases.type="2" and ({{#var:command}})
 +
|join on=credits.game=releases.name
 +
|order by=releases.date
 +
|group by=credits.console, credits.game, credits.role
 +
|default=
 +
|limit=10000
 +
|format=template
 +
|template=ProductionHistoryLine
 +
}}
 +
}}
 +
 +
<!-- accessories -->
 +
{{#vardefine:accessoryContents|{{#cargo_query:
 +
tables=credits,releases
 +
|fields=credits.role=role,credits.name=name,credits.game=game,credits.console,credits.date,credits.pdf,credits.pdfpage,releases.date
 +
|where=releases.type="1" and ({{#var:command}})
 
|join on=credits.game=releases.name
 
|join on=credits.game=releases.name
 
|order by=releases.date
 
|order by=releases.date
Line 78: Line 108:
 
{{multicol|{{#var:musicContents}}
 
{{multicol|{{#var:musicContents}}
 
|cols={{#expr:{{MulticolColumnCalc|{{#var:historyCount}}}}-1}}
 
|cols={{#expr:{{MulticolColumnCalc|{{#var:historyCount}}}}-1}}
}}}}<noinclude>Template for listing the production history of a developer. This is all sourced from [[Template:Creditstable]] templates being used in game pages.
+
}}}}{{
 +
#if:{{#var:hardwareContents}}|<h3>Hardware</h3>
 +
{{#var:hardwareContents}}
 +
}}{{
 +
#if:{{#var:accessoryContents}}|<h3>Accessories</h3>
 +
{{#var:accessoryContents}}
 +
}}<noinclude>Template for listing the production history of a developer. This is all sourced from [[Template:Creditstable]] templates being used in game pages.
  
 
==Example==
 
==Example==

Revision as of 07:09, 14 November 2022

Template for listing the production history of a developer. This is all sourced from Template:Creditstable templates being used in game pages.

Example

{{ProductionHistory|Yoshitaka Tamaki|玉木 美孝}}

Produces:

Games

Music