Difference between revisions of "CompanyHistory"

From Sega Retro

 
(17 intermediate revisions by the same user not shown)
Line 3: Line 3:
 
| {{#vardefine:nameList|{{#var:nameList}},{{#var:value}}}}{{#ifexpr:{{#var:n}} > 1|{{#vardefine:command|{{#var:command}} OR companies.company="{{#var:value}}"}}|}}
 
| {{#vardefine:nameList|{{#var:nameList}},{{#var:value}}}}{{#ifexpr:{{#var:n}} > 1|{{#vardefine:command|{{#var:command}} OR companies.company="{{#var:value}}"}}|}}
 
}}</span>{{#vardefine:results|{{#var:results}}{{#cargo_query:
 
}}</span>{{#vardefine:results|{{#var:results}}{{#cargo_query:
table=companies,releases
+
table=companies,releases,codeformat
|fields=companies.name=companiesname,releases.name=releasesname,releases.date,companies.company,companies.format,companies.role,companies.credited
+
|fields=companies.name=companiesname,releases.name=releasesname,MIN(releases.date),companies.company,companies.format,companies.role,companies.credited,codeformat.code=test,codeformat.format=test2,companies.specificrole
|join on=companies.name=releases.name
+
|join on=companies.name=releases.name,releases.console=codeformat.code
 
|group by=releases.name
 
|group by=releases.name
 +
|order by=MIN(releases.date),releases.name
 +
|where=({{#var:command}}) {{#if:{{{role|}}}|and (companies.role LIKE "{{{role|}}}%")}} {{#ifeq:{{{type|}}}|hardware||{{#if:{{{format|}}}|and (companies.format="{{{format|}}}") and (codeformat.format="{{{format|}}}")}}}} {{#switch:{{{type|}}}
 +
|accessories=and releases.type="1"{{#vardefine:italics|}}
 +
|hardware=and (releases.type="2" or releases.type="-1"){{#vardefine:italics|}}
 +
|#default=and not releases.type="1" and not releases.type="2" and not releases.type="-1"{{#vardefine:italics|yes}}
 +
}}
 +
|format=template
 +
|limit=1000
 +
|template=CompanyHistory/Cargo
 +
|default=
 +
}}{{#ifeq:{{{type|}}}|accessories||{{#cargo_query:
 +
table=unreleased,companies
 +
|fields=companies.name=companiesname,unreleased.name=releasesname,unreleased.date,companies.company,companies.format,companies.role,companies.credited
 +
|join on=unreleased.name=companies.name
 +
|group by=unreleased.name
 +
|order by=unreleased.date,unreleased.name
 
|where=({{#var:command}}) {{#if:{{{role|}}}|and (companies.role LIKE "{{{role|}}}%")}} {{#if:{{{format|}}}|and (companies.format="{{{format|}}}")}}
 
|where=({{#var:command}}) {{#if:{{{role|}}}|and (companies.role LIKE "{{{role|}}}%")}} {{#if:{{{format|}}}|and (companies.format="{{{format|}}}")}}
|order by=releases.date,releases.name
 
 
|format=template
 
|format=template
 
|limit=1000
 
|limit=1000
|template=CompanyHistory/Cargo
+
|template=CompanyHistory/Cargo/Unreleased
 
|default=
 
|default=
}}}}}}{{#var:results}}</includeonly><noinclude>
+
}}}}}}}}{{#var:results}}</includeonly><noinclude>
 
Template to list a company's softography. It's a bit crude.
 
Template to list a company's softography. It's a bit crude.
  
Line 30: Line 45:
 
{{CompanyHistory|Sega|format=32X|role=Licensor}}
 
{{CompanyHistory|Sega|format=32X|role=Licensor}}
  
[[Category:Sega Retro templates]]
+
===Books===
 +
<pre>{{CompanyHistory|IDW Publishing|format=book|role=Publisher}}</pre>
 +
{{CompanyHistory|IDW Publishing|format=book|role=Publisher}}
 +
 
 +
[[Category:Templates]]
 
</noinclude>
 
</noinclude>

Latest revision as of 11:37, 30 October 2022

Template to list a company's softography. It's a bit crude.

e.g. Sega, 32X:

Publisher

{{CompanyHistory|Sega|format=32X|role=Publisher}}

Developer

{{CompanyHistory|Sega|Sega CS|format=32X|role=Developer}}

Licensor

{{CompanyHistory|Sega|format=32X|role=Licensor}}

Books

{{CompanyHistory|IDW Publishing|format=book|role=Publisher}}