Actions

Template

Difference between revisions of "Company"

From Sega Retro

(actually that might just confuse things)
Tag: Undo
(6 intermediate revisions by the same user not shown)
Line 4: Line 4:
 
}}}} {{{1|}}}{{#if:{{{region|}}}|&#32;({{{region|}}})}}</div>{{#vardefine:i|0}}{{#while:|{{#vardefine:sys|{{#explode:{{{system|}}}|,|{{#var:i}}}}}}{{#var:sys}}
 
}}}} {{{1|}}}{{#if:{{{region|}}}|&#32;({{{region|}}})}}</div>{{#vardefine:i|0}}{{#while:|{{#vardefine:sys|{{#explode:{{{system|}}}|,|{{#var:i}}}}}}{{#var:sys}}
 
|{{incvar|i}}{{CompanyStore
 
|{{incvar|i}}{{CompanyStore
| name={{PAGENAME}}
+
| name={{#replace:{{#titleparts:{{PAGENAME}}}}|"|\"}}
 
| format={{Code2Format|{{#var:sys}}}}
 
| format={{Code2Format|{{#var:sys}}}}
 
| company={{stripref|{{delink|{{{1|}}}}}}}
 
| company={{stripref|{{delink|{{{1|}}}}}}}
Line 10: Line 10:
 
| credited={{#ifeq:{{{credited|}}}|no|no}}
 
| credited={{#ifeq:{{{credited|}}}|no|no}}
 
}}
 
}}
}}{{#vardefine:i|0}}{{#while:|{{#vardefine:sys|{{#explode:{{#var:systemfull}}|,|{{#var:i}}}}}}{{#var:sys}}
+
}}{{#if:{{{system|}}}||{{#vardefine:i|0}}{{#while:|{{#vardefine:sys|{{#explode:{{#var:systemfull}}|,|{{#var:i}}}}}}{{#var:sys}}
 
|{{incvar|i}}{{#vardefine:j|0}}{{#while:|{{#vardefine:comp|{{#explode:{{{1|}}}|,|{{#var:j}}}}}}{{#var:comp}}
 
|{{incvar|i}}{{#vardefine:j|0}}{{#while:|{{#vardefine:comp|{{#explode:{{{1|}}}|,|{{#var:j}}}}}}{{#var:comp}}
 
|{{incvar|j}}{{CompanyStore
 
|{{incvar|j}}{{CompanyStore
| name={{PAGENAME}}
+
| name={{#replace:{{#titleparts:{{PAGENAME}}}}|"|\"}}
 
| format={{#if:{{#pos:{{#var:sys}}|Titan Video}}|{{delink|{{#var:sys}}}}|{{#replace:{{delink|{{#var:sys}}}}|Sega |}}}}
 
| format={{#if:{{#pos:{{#var:sys}}|Titan Video}}|{{delink|{{#var:sys}}}}|{{#replace:{{delink|{{#var:sys}}}}|Sega |}}}}
| company={{stripref|{{delink|{{#var:comp}}}}}}
+
| company={{stripref|{{delink|{{StripBrackets|{{#var:comp}}}}}}}}
 
| role={{#var:companyrole}}{{#if:{{{region|}}}| ({{{region|}}})}}
 
| role={{#var:companyrole}}{{#if:{{{region|}}}| ({{{region|}}})}}
 
| credited={{#ifeq:{{{credited|}}}|no|no}}
 
| credited={{#ifeq:{{{credited|}}}|no|no}}
 +
}}
 
}}
 
}}
 
}}
 
}}

Revision as of 12:09, 9 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: