Difference between revisions of "GetCompanyDates"
From Sega Retro
Line 1: | Line 1: | ||
− | <includeonly><div style="display:none;">{{#vardefine: | + | <includeonly><div style="display:none;">{{#vardefine:results|{{stripref|{{#dpl: |
|titlematch={{delink|{{{1|}}}}} | |titlematch={{delink|{{{1|}}}}} | ||
|noresultsheader= | |noresultsheader= | ||
− | |include={CompanyBob}:founded | + | |skipthispage=no |
+ | |include={CompanyBob}:founded,{CompanyBob}:defunct | ||
|mode=userformat | |mode=userformat | ||
− | |secseparators=, | + | |secseparators=, , |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
}}}}}} | }}}}}} | ||
+ | {{#vardefine:companystartdate|{{#explode:{{#var:results}}| |0}}}}{{#vardefine:companyenddate|{{#explode:{{#var:results}}| |1}}}} | ||
{{#ifexpr:{{#len:{{#var:companystartdate}}}} < 10|{{#vardefine:companystartdate|{{#var:companystartdate}}-01}}|}} | {{#ifexpr:{{#len:{{#var:companystartdate}}}} < 10|{{#vardefine:companystartdate|{{#var:companystartdate}}-01}}|}} |
Revision as of 03:07, 29 July 2022
Get start and end dates of a company - store in #var:companystartdate and #var:companyenddate
Examples
{{GetCompanyDates|Sega AM1}} {{#var:companystartdate}} {{#var:companyenddate}}
1992-01-01 1999-05-11
- ↑ http://www.wow-ent.co.jp/jpn/aboutWOW/index.html (Wayback Machine: 2002-06-06 10:46)
- ↑ http://www.wow-ent.co.jp/eng/about_WOW.html