Difference between revisions of "CompanyBob"

From Sega Retro

 
(30 intermediate revisions by 3 users not shown)
Line 5: Line 5:
 
| if={{{logo|}}}
 
| if={{{logo|}}}
 
| align=center
 
| align=center
| default=[[File:Notavailable.svg]][[Category:Companies without logos]]
+
| default=[[File:Notavailable.svg]]<includeonly>{{#if:{{{division|}}}||[[Category:Companies without logos]]}}</includeonly>
 
| content=[[File:{{{logo}}}|320x240px]]
 
| content=[[File:{{{logo}}}|320x240px]]
 
}}
 
}}
 
{{BobRowPlus
 
{{BobRowPlus
 
| if={{{title|}}}
 
| if={{{title|}}}
| default=<span content="name">{{PAGENAME}}</span>
+
| default=<span content="name">{{PAGENAME}}</span>{{#if:{{{division|}}}|<br/>Division of {{{division|}}}}}
| content=<span content="name">{{{title}}}</span>
+
| content=<span content="name">{{{title}}}</span>{{#if:{{{division|}}}|<br/>Division of {{{division|}}}}}
 
| headline=yes
 
| headline=yes
 
| align=center
 
| align=center
Line 28: Line 28:
 
| if={{{tseries|}}}
 
| if={{{tseries|}}}
 
| title=[[Third-party T-series codes|T-series code]]
 
| title=[[Third-party T-series codes|T-series code]]
| content={{{tseries|}}}[[Category:T-series publishers]][[Category:Third-party software publishers]]{{#cargo_store:
+
| content={{{tseries|}}}[[Category:T-series publishers]][[Category:Third-party software publishers]]
_table = tseries
+
{{#vardefine:tseries1|{{#explode:{{Stripformat|{{{tseries|}}}}}|,|0}}}}{{#vardefine:tseries2|{{#explode:{{Stripformat|{{{tseries|}}}}}|,|1}}}}
|company={{#titleparts:{{PAGENAME}}}}
 
|tseries={{{tseries|}}}
 
}}
 
 
}}
 
}}
 
{{BobRowPlus
 
{{BobRowPlus
Line 43: Line 40:
 
| title=Merged into
 
| title=Merged into
 
| content={{{mergedinto|}}}
 
| content={{{mergedinto|}}}
 +
}}
 +
{{BobRowPlus
 +
| if={{{predecessor|}}}
 +
| title=Predecessor
 +
| content={{{predecessor|}}}
 +
}}
 +
{{BobRowPlus
 +
| if={{{successor|}}}
 +
| title=Successor
 +
| content={{{successor|}}}
 
}}
 
}}
 
{{BobRowPlus
 
{{BobRowPlus
 
| if={{{headquarters|}}}
 
| if={{{headquarters|}}}
 
| title=Headquarters
 
| title=Headquarters
| content=<span itemprop="location">{{{headquarters|}}}</span>{{#vardefine:country|{{CountryCheck|{{{headquarters|}}}}}}}{{#if:{{#var:country}}|[[Category:Companies in {{#var:country}}]]|}}
+
| content={{#if:{{{headquarters|}}}|{{LocationInfo
}}{{#if:{{{headquarters}}}||[[Category:No headquarters]]}}
+
|date={{{headquartersdate|}}}
 +
|name={{{headquartersname|}}}
 +
|address=<span itemprop="location">{{{headquarters|}}}</span>
 +
|date2={{{headquartersdate2|}}}
 +
|name2={{{headquartersname2|}}}
 +
|address2={{{headquarters2|}}}
 +
|date3={{{headquartersdate3|}}}
 +
|name3={{{headquartersname3|}}}
 +
|address3={{{headquarters3|}}}
 +
|date4={{{headquartersdate4|}}}
 +
|name4={{{headquartersname4|}}}
 +
|address4={{{headquarters4|}}}
 +
|date5={{{headquartersdate5|}}}
 +
|name5={{{headquartersname5|}}}
 +
|address5={{{headquarters5|}}}
 +
}}}}
 +
}}<includeonly>{{#if:{{{headquarters}}}||[[Category:No headquarters]]}}{{
 +
#cargo_store:
 +
_table = companydetails
 +
|company={{#titleparts:{{PAGENAME}}}}
 +
|division={{{division|}}}
 +
|start={{Stripref|{{{founded|}}}}}
 +
|end={{Stripref|{{{defunct|}}}}}
 +
|tseries={{#var:tseries1}}
 +
|paddedtseries={{padleft:{{#explode:{{#var:tseries1}}|-|1}}|5|0}}
 +
|tseries2={{#var:tseries2}}
 +
|paddedtseries2={{padleft:{{#explode:{{#var:tseries2}}|-|1}}|5|0}}
 +
}}</includeonly>
 
{{BobRowPlus
 
{{BobRowPlus
 
| if={{{prev|}}}{{{next|}}}
 
| if={{{prev|}}}{{{next|}}}
Line 58: Line 92:
 
{{BobPrevNext|{{{prev4|}}}|{{{next4|}}}}}
 
{{BobPrevNext|{{{prev4|}}}|{{{next4|}}}}}
 
}}
 
}}
}}</div>{{#if:{{NAMESPACE}}||{{#ifeq:{{{label|}}}|yes|[[Category:Publishing labels]]|[[Category:Companies]]}}}}<div style="display:none;">
+
}}</div><div style="display:none;">
<div style="display:none;">
+
<!--work out categories -->
 +
 
 +
{{#if:{{NAMESPACE}}||
 +
{{#if:{{{division|}}}|[[Category:{{Delink|{{{division|}}}}} divisions]][[Category:All divisions]]|[[Category:All companies]]
 +
 
 +
{{#vardefine:country|{{CountryCheck|{{{headquarters|}}}}}}}
 +
{{#ifeq:{{#var:country}}|unknown|[[Category:Companies in unknown countries]]|[[Category:Companies in {{#var:country}}]]}}
 +
}}
 +
}}
 +
 
 
{{#seo:
 
{{#seo:
 
  |image={{filepath:{{{logo}}}}}
 
  |image={{filepath:{{{logo}}}}}
 
  |site_name=Sega Retro
 
  |site_name=Sega Retro
 
  |locale=en_GB
 
  |locale=en_GB
  }}</div></div><noinclude>
+
  }}</div><noinclude>
 
{{#cargo_declare:
 
{{#cargo_declare:
_table = tseries
+
_table = companydetails
 
|company=Text <!-- page name (formatted) -->
 
|company=Text <!-- page name (formatted) -->
 +
|division=Text
 +
|start=Text
 +
|end=Text
 
|tseries=Text <!-- t-series code -->  
 
|tseries=Text <!-- t-series code -->  
 +
|paddedtseries=Text <!-- for sorting -->
 +
|tseries2=Text <!-- t-series code -->
 +
|paddedtseries2=Text <!-- for sorting -->
 
}}
 
}}
 
==Usage==
 
==Usage==
Line 81: Line 130:
 
| mergedwith=
 
| mergedwith=
 
| mergedinto=
 
| mergedinto=
 +
| predecessor=
 +
| successor=
 
| headquarters=
 
| headquarters=
 
}}
 
}}

Latest revision as of 16:26, 7 July 2023

Notavailable.svg
CompanyBob


This template defines the table "companydetails". View table.

Usage

This template is to be used on articles on companies, primarily third-party developers. "Merged with" should be used for companies that merge together to make an entirely new company, whereas "merged into" involves companies becoming the property of another company. Merged companies do not go defunct, but should have the date of the merge listed in the merged info space.

{{CompanyBob
| logo=
| founded=
| defunct=
| tseries=
| mergedwith=
| mergedinto=
| predecessor=
| successor=
| headquarters=
}}

All fields are optional.