Difference between revisions of "Company"

From Sega Retro

(7 intermediate revisions by the same user not shown)
Line 10: Line 10:
 
| credited={{#ifeq:{{{credited|}}}|no|no}}
 
| credited={{#ifeq:{{{credited|}}}|no|no}}
 
}}
 
}}
}}{{#ifeq:{{#var:multi}}{{{system|}}}|yes|{{#vardefine:i|0}}{{#while:|{{#vardefine:sys|{{#explode:{{#var:systemfull}}|,|{{#var:i}}}}}}{{#var:sys}}
+
}}{{#vardefine:i|0}}{{#while:|{{#vardefine:sys|{{#explode:{{#var:systemfull}}|,|{{#var:i}}}}}}{{#var:sys}}
|{{incvar|i}}{{CompanyStore
+
|{{incvar|i}}{{#vardefine:j|0}}{{#while:|{{#vardefine:comp|{{#explode:{{{1|}}}|,|{{#var:j}}}}}}{{#var:comp}}
 +
|{{incvar|j}}{{CompanyStore
 
| name={{PAGENAME}}
 
| name={{PAGENAME}}
| format={{delink|{{#var:sys}}}}
+
| format={{#if:{{#pos:{{#var:sys}}|Titan Video}}|{{delink|{{#var:sys}}}}|{{#replace:{{delink|{{#var:sys}}}}|Sega |}}}}
| company={{stripref|{{delink|{{{1|}}}}}}}
+
| company={{stripref|{{delink|{{#var:comp}}}}}}
 
| role={{#var:companyrole}}{{#if:{{{region|}}}| ({{{region|}}})}}
 
| role={{#var:companyrole}}{{#if:{{{region|}}}| ({{{region|}}})}}
 
| credited={{#ifeq:{{{credited|}}}|no|no}}
 
| credited={{#ifeq:{{{credited|}}}|no|no}}
Line 64: Line 65:
 
}}
 
}}
 
{{clear}}
 
{{clear}}
'''Test:''' {{company|[[Sega Studio China]]|system=|region=Hong Kong|icons=}}
+
'''Test:''' {{company|[[Sega Studio China]], [[Wonic Team]]|system=|region=Hong Kong|icons=}}
 
 
 
[[Category:Sega Retro templates]]</noinclude>
 
[[Category:Sega Retro templates]]</noinclude>

Revision as of 13:54, 6 January 2020

Usage

{{company|[[Sonic Team]]
|system=PS2,PS3,360
|region=
|inline=no
}}
{{company|[[Sega Studio China]]
|system=360
|region=China
}}
{{company|[[Sega Studio China]]
|system=
|region=
}}, {{company|[[Sega Studio China]]
|system=PS3
|region=Hong Kong
|icons=no
}}
{{clear}}
'''Test:''' {{company|[[Sega Studio China]]
|system=
|region=Hong Kong
|icons=
}}

Test:

Test:

Test:

,

Sega Studio China (Hong Kong)

Test: