Difference between revisions of "CompanyHistory"

From Sega Retro

(3 intermediate revisions by the same user not shown)
Line 8: Line 8:
 
|group by=releases.name
 
|group by=releases.name
 
|order by=releases.date,releases.name
 
|order by=releases.date,releases.name
|where=({{#var:command}}) {{#if:{{{role|}}}|and (companies.role LIKE "{{{role|}}}%")}} {{#if:{{{format|}}}|and (companies.format="{{{format|}}}") and (codeformat.format="{{{format|}}}")}} {{#switch:{{{type|}}}
+
|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|}}
 
|accessories=and releases.type="1"{{#vardefine:italics|}}
|hardware=and releases.type="2"{{#vardefine:italics|}}
+
|hardware=and (releases.type="2" or releases.type="-1"){{#vardefine:italics|}}
|#default=and not releases.type="1" and not releases.type="2"{{#vardefine:italics|yes}}
+
|#default=and not releases.type="1" and not releases.type="2" and not releases.type="-1"{{#vardefine:italics|yes}}
 
}}
 
}}
 
|format=template
 
|format=template
Line 45: Line 45:
 
{{CompanyHistory|Sega|format=32X|role=Licensor}}
 
{{CompanyHistory|Sega|format=32X|role=Licensor}}
  
[[Category:Sega Retro templates]]
+
[[Category:Templates]]
 
</noinclude>
 
</noinclude>

Revision as of 13:56, 1 January 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}}