Difference between revisions of "CompanyHistory"

From Sega Retro

Line 10: Line 10:
 
|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|}}}
 
|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 42: Line 42:
  
 
===Licensor===
 
===Licensor===
<pre>{{CompanyHistory|Sega|format=32X|role=Licensor}}</pre>
+
<pre>{{CompanyHistory|Sega|format=32X|role=Licensor|format=hardware}}</pre>
{{CompanyHistory|Sega|format=32X|role=Licensor}}
+
{{CompanyHistory|Columbus Circle|format=hardware}}
  
 
[[Category:Sega Retro templates]]
 
[[Category:Sega Retro templates]]
 
</noinclude>
 
</noinclude>

Revision as of 11:26, 4 June 2021

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|format=hardware}}