Difference between revisions of "CompanyBob"

From Sega Retro

 
(47 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 +
<div itemscope itemtype="https://schema.org/Organization">
 +
<span style="display:none" itemprop="logo">{{filepath:{{{logo}}}}}</span>
 
{{BobTablePlus|
 
{{BobTablePlus|
 
{{BobRowPlus
 
{{BobRowPlus
 
| 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={{PAGENAME}}
+
| default=<span content="name">{{PAGENAME}}</span>{{#if:{{{division|}}}|<br/>Division of {{{division|}}}}}
| content={{{title}}}
+
| content=<span content="name">{{{title}}}</span>{{#if:{{{division|}}}|<br/>Division of {{{division|}}}}}
 
| headline=yes
 
| headline=yes
 
| align=center
 
| align=center
Line 16: Line 18:
 
| if={{{founded|}}}
 
| if={{{founded|}}}
 
| title=Founded
 
| title=Founded
| content={{{founded|}}}
+
| content=<span content="foundingDate">{{{founded|}}}</span>
 
}}
 
}}
 
{{BobRowPlus
 
{{BobRowPlus
 
| if={{{defunct|}}}
 
| if={{{defunct|}}}
 
| title=Defunct
 
| title=Defunct
| content={{{defunct|}}}
+
| content=<span itemprop="dissolutionDate">{{{defunct|}}}</span>
 
}}
 
}}
 
{{BobRowPlus
 
{{BobRowPlus
Line 27: 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}}}}
 
}}
 
}}
 
{{BobRowPlus
 
{{BobRowPlus
Line 37: 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={{{headquarters|}}}
+
| content={{#if:{{{headquarters|}}}|{{LocationInfo
}}
+
|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|}}}
 
| title=
 
| title=
| content=<div style="display: inline-block; text-align:center; min-width:50%;">{{#if:{{{prevdate|}}}|'''{{{prevdate}}}'''|}}</div><div style="display: inline-block; text-align:center; min-width:50%;">'''{{#if:{{{nextdate|}}}|{{{nextdate}}}|}}'''</div><div style="display: inline-block; text-align:left; min-width:50%;">{{#if:{{{prev|}}}|<span style="font-size:1.5em;">←</span> {{{prev}}}|}}</div><div style="display: inline-block; text-align:right; min-width:50%;">{{#if:{{{next|}}}|{{{next}}} <span style="font-size:1.5em;">→</span>|}}</div>
+
| content=<div style="display: inline-block; text-align:center; min-width:50%;">{{#if:{{{prevdate|}}}|'''{{{prevdate}}}'''|}}</div><div style="display: inline-block; text-align:center; min-width:50%;">{{#if:{{{nextdate|}}}|'''{{{nextdate}}}'''|}}</div>
<div style="display: inline-block; text-align:left; min-width:50%;">{{#if:{{{prev2|}}}|<span style="font-size:1.5em;">←</span> {{{prev2}}}|}}</div><div style="display: inline-block; text-align:right; min-width:50%;">{{#if:{{{next2|}}}|{{{next2}}} <span style="font-size:1.5em;">→</span>|}}</div>
+
{{BobPrevNext|{{{prev|}}}|{{{next|}}}}}
 +
{{BobPrevNext|{{{prev2|}}}|{{{next2|}}}}}
 +
{{BobPrevNext|{{{prev3|}}}|{{{next3|}}}}}
 +
{{BobPrevNext|{{{prev4|}}}|{{{next4|}}}}}
 +
}}
 +
}}</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}}]]}}
 +
}}
 
}}
 
}}
}}<div style="display:none;">
+
 
 
{{#seo:
 
{{#seo:
  |og:image={{filepath:{{#if: {{{logo|}}}|{{{logo}}}|Notavailable.svg}}}}
+
  |image={{filepath:{{{logo}}}}}
  |og:site_name=Sega Retro
+
  |site_name=Sega Retro
  |title={{PAGENAME}}
+
  |locale=en_GB
|twitter:card=summary_large_image
 
|twitter:site=@segaretro
 
|twitter:image:src={{filepath:{{#if: {{{logo|}}}|{{{logo}}}|Notavailable.svg}}}}
 
 
  }}</div><noinclude>
 
  }}</div><noinclude>
 +
{{#cargo_declare:
 +
_table = companydetails
 +
|company=Text <!-- page name (formatted) -->
 +
|division=Text
 +
|start=Text
 +
|end=Text
 +
|tseries=Text <!-- t-series code -->
 +
|paddedtseries=Text <!-- for sorting -->
 +
|tseries2=Text <!-- t-series code -->
 +
|paddedtseries2=Text <!-- for sorting -->
 +
}}
 
==Usage==
 
==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.
 
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.
Line 69: Line 130:
 
| mergedwith=
 
| mergedwith=
 
| mergedinto=
 
| mergedinto=
 +
| predecessor=
 +
| successor=
 
| headquarters=
 
| headquarters=
 
}}
 
}}
Line 74: Line 137:
  
 
All fields are optional.
 
All fields are optional.
 
 
[[Category:Breakout box templates]]</noinclude>
 
[[Category:Breakout box templates]]</noinclude>

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.