Difference between revisions of "CompanyBob"
From Sega Retro
(18 intermediate revisions by 2 users not shown) | |||
Line 5: | Line 5: | ||
| if={{{logo|}}} | | if={{{logo|}}} | ||
| align=center | | align=center | ||
− | | default=[[File:Notavailable.svg]]<includeonly>[[Category:Companies without logos]]</includeonly> | + | | 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 29: | Line 29: | ||
| 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]] | | content={{{tseries|}}}[[Category:T-series publishers]][[Category:Third-party software publishers]] | ||
− | {{#vardefine:tseries1|{{#explode:{{Stripformat|{{{tseries|}}}}}|,|0}}}}{{#vardefine:tseries2|{{#explode:{{Stripformat|{{{tseries|}}}}}|,|1}} | + | {{#vardefine:tseries1|{{#explode:{{Stripformat|{{{tseries|}}}}}|,|0}}}}{{#vardefine:tseries2|{{#explode:{{Stripformat|{{{tseries|}}}}}|,|1}}}} |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
}} | }} | ||
{{BobRowPlus | {{BobRowPlus | ||
Line 54: | 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 | ||
Line 60: | Line 56: | ||
| content={{#if:{{{headquarters|}}}|{{LocationInfo | | content={{#if:{{{headquarters|}}}|{{LocationInfo | ||
|date={{{headquartersdate|}}} | |date={{{headquartersdate|}}} | ||
+ | |name={{{headquartersname|}}} | ||
|address=<span itemprop="location">{{{headquarters|}}}</span> | |address=<span itemprop="location">{{{headquarters|}}}</span> | ||
|date2={{{headquartersdate2|}}} | |date2={{{headquartersdate2|}}} | ||
+ | |name2={{{headquartersname2|}}} | ||
|address2={{{headquarters2|}}} | |address2={{{headquarters2|}}} | ||
|date3={{{headquartersdate3|}}} | |date3={{{headquartersdate3|}}} | ||
− | | | + | |name3={{{headquartersname3|}}} |
+ | |address3={{{headquarters3|}}} | ||
|date4={{{headquartersdate4|}}} | |date4={{{headquartersdate4|}}} | ||
+ | |name4={{{headquartersname4|}}} | ||
|address4={{{headquarters4|}}} | |address4={{{headquarters4|}}} | ||
|date5={{{headquartersdate5|}}} | |date5={{{headquartersdate5|}}} | ||
+ | |name5={{{headquartersname5|}}} | ||
|address5={{{headquarters5|}}} | |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 80: | Line 92: | ||
{{BobPrevNext|{{{prev4|}}}|{{{next4|}}}}} | {{BobPrevNext|{{{prev4|}}}|{{{next4|}}}}} | ||
}} | }} | ||
− | }}</div>{{#if:{{NAMESPACE}}||{{# | + | }}</div><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><noinclude> |
{{#cargo_declare: | {{#cargo_declare: | ||
− | _table = | + | _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 --> | |paddedtseries=Text <!-- for sorting --> | ||
+ | |tseries2=Text <!-- t-series code --> | ||
+ | |paddedtseries2=Text <!-- for sorting --> | ||
}} | }} | ||
==Usage== | ==Usage== | ||
Line 104: | Line 130: | ||
| mergedwith= | | mergedwith= | ||
| mergedinto= | | mergedinto= | ||
+ | | predecessor= | ||
+ | | successor= | ||
| headquarters= | | headquarters= | ||
}} | }} |
Latest revision as of 16:26, 7 July 2023
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.