Difference between revisions of "Company"

From Sega Retro

(simplified a bit; removed inline option because it wasn't being used)
Line 1: Line 1:
<div style="{{#switch:{{{inline|}}}|yes=display:inline;|no=font-size:8pt;|{{#if:{{{system|}}}|font-size:8pt;|display:inline;}}}}">{{#vardefine:i|0}}{{#if:{{{system|}}}|
+
<includeonly><span style="{{#if:{{{system|}}}|font-size:8pt;display:block;line-height:0px}}">{{#vardefine:i|0}}{{#if:{{{system|}}}|{{#while:|{{#vardefine:icon|{{#explode:{{{system|}}}|,|{{#var:i}}}}}}{{#var:icon}}|{{incvar|i}}{{{{#var:icon}}|}}}}{{#vardefine:syslist|{{{system|}}}}}|{{#vardefine:syslist|{{#var:systemfull}}}}}} {{{1|}}}{{#if:{{{region|}}}|&#32;({{{region|}}})}}</span>{{#vardefine:i|0}}{{#while:|{{#vardefine:sys|{{#explode:{{#var:syslist}}|,|{{#var:i}}}}}}{{#var:sys}}
{{#ifeq:{{{icons|}}}|no||{{#while:|{{#vardefine:icon|{{#explode:{{{system|}}}|,|{{#var:i}}}}}}{{#var:icon}}|{{incvar|i}}{{{{#var:icon}}|}}}}
 
|{{{{{system|}}}}}
 
}}}} {{{1|}}}{{#if:{{{region|}}}|&#32;({{{region|}}})}}</div>{{#vardefine:i|0}}{{#while:|{{#vardefine:sys|{{#explode:{{{system|}}}|,|{{#var:i}}}}}}{{#var:sys}}
 
|{{incvar|i}}{{CompanyStore
 
| name={{#replace:{{#titleparts:{{PAGENAME}}}}|"|\"}}
 
| format={{Code2Format|{{#var:sys}}}}
 
| company={{stripref|{{delink|{{{1|}}}}}}}
 
| role={{#var:companyrole}}{{#if:{{{region|}}}| ({{{region|}}})}}
 
| credited={{#ifeq:{{{credited|}}}|no|no}}
 
}}
 
}}{{#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={{#replace:{{#titleparts:{{PAGENAME}}}}|"|\"}}
 
| name={{#replace:{{#titleparts:{{PAGENAME}}}}|"|\"}}
| format={{#if:{{#pos:{{#var:sys}}|Titan Video}}|{{delink|{{#var:sys}}}}|{{#replace:{{delink|{{#var:sys}}}}|Sega |}}}}
+
| format={{#if:{{{system|}}}|{{Code2Format|{{#var:sys}}}}|{{#if:{{#pos:{{#var:sys}}|Titan Video}}|{{delink|{{#var:sys}}}}|{{#replace:{{delink|{{#var:sys}}}}|Sega |}}}}}}
| company={{stripref|{{delink|{{StripBrackets|{{#var:comp}}}}}}}}
+
| company={{delink|{{StripBrackets|{{stripref|{{#var:comp}}}}}}}}
 
| role={{#var:companyrole}}{{#if:{{{region|}}}| ({{{region|}}})}}
 
| role={{#var:companyrole}}{{#if:{{{region|}}}| ({{{region|}}})}}
 
| credited={{#ifeq:{{{credited|}}}|no|no}}
 
| credited={{#ifeq:{{{credited|}}}|no|no}}
 
}}
 
}}
 
}}
 
}}
}}
+
}}</includeonly><noinclude>
}}<noinclude>
 
 
==Usage==
 
==Usage==
 
<pre>
 
<pre>
 
{{company|[[Sonic Team]]
 
{{company|[[Sonic Team]]
|system=PS2,PS3,360
+
| system=PS2,PS3,360
|region=
+
| region=
|inline=no
 
 
}}
 
}}
{{company|[[Sega Studio China]]
+
{{company|[[Sega Studio China]]| system=360
|system=360
+
| region=China
|region=China
 
 
}}
 
}}
{{company|[[Sega Studio China]]
+
{{clear}}
|system=
+
'''Test:''' {{company|[[Sega Studio China]]
|region=
+
| system=
}}, {{company|[[Sega Studio China]]
+
| region=Hong Kong
|system=PS3
 
|region=Hong Kong
 
|icons=no
 
 
}}
 
}}
 
{{clear}}
 
{{clear}}
'''Test:''' {{company|[[Sega Studio China]]
+
{{company|[[Sega Studio China]], [[Wonic Team]]
|system=
+
| system=PS2,PS3,360
|region=Hong Kong
 
|icons=
 
 
}}
 
}}
 
</pre>
 
</pre>
  
'''Test:''' {{company|[[Sonic Team]]
+
{{company|[[Sonic Team]]
|system=PS2,PS3,360
+
| system=PS2,PS3,360
|region=
+
| region=
|inline=no
+
}}
 +
{{company|[[Sega Studio China]]| system=360
 +
| region=China
 
}}
 
}}
 
{{clear}}
 
{{clear}}
 
'''Test:''' {{company|[[Sega Studio China]]
 
'''Test:''' {{company|[[Sega Studio China]]
|system=360
+
| system=
|region=China
+
| region=Hong Kong
 
}}
 
}}
 
{{clear}}
 
{{clear}}
'''Test:''' {{company|[[Sega Studio China]]}}, {{company|[[Sega Studio China]]
+
{{company|[[Sega Studio China]], [[Wonic Team]]
|system=PS3
+
| system=PS2,PS3,360
|region=Hong Kong
 
|icons=no
 
 
}}
 
}}
{{clear}}
 
'''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 23:46, 23 January 2020

Usage

{{company|[[Sonic Team]]
| system=PS2,PS3,360
| region=
}}
{{company|[[Sega Studio China]]| system=360
| region=China
}}
{{clear}}
'''Test:''' {{company|[[Sega Studio China]]
| system=
| region=Hong Kong
}}
{{clear}}
{{company|[[Sega Studio China]], [[Wonic Team]]
| system=PS2,PS3,360
}}
Sony PlayStation 2
Sony PlayStation 3
Xbox 360
Sonic Team

Xbox 360
Sega Studio China (China)

Test: Sega Studio China (Hong Kong)

Sony PlayStation 2
Sony PlayStation 3
Xbox 360
Sega Studio China, Wonic Team