Template:Series index: Difference between revisions
RodRedlineM1 (talk | contribs) |
RodRedlineM1 (talk | contribs) |
||
(24 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly><!-- //Set default variables | <noinclude>[[Category:Mattel templates]]</noinclude><includeonly><!-- //Set default variables | ||
-->{{Default variables|year={{{year|}}}}}<!-- | -->{{Default variables|year={{{year|}}}}}<!-- | ||
-->{{#SWITCH:{{{1|}}}<!-- | -->{{#SWITCH:{{{1|}}}<!-- | ||
Line 7: | Line 7: | ||
// Mainline and side series (#id 1 and 2) are currently (going to be) kept separate due to extra complexity | // Mainline and side series (#id 1 and 2) are currently (going to be) kept separate due to extra complexity | ||
-->| M | m | Mainline | mainline = | -->| M | m | Mainline | mainline = | ||
{{#vardefine:ser_type|1}} | |||
{{#vardefine:chase| | {{#vardefine:chase| | ||
{{#switch: {{{chase|}}} | {{#switch: {{{chase|}}} | ||
| C | Chase = C{{#vardefine:chasename|{{Chase}}}}{{#vardefine:chasenote|{{Notes|[[List of Chase vehicles|<span id="chasenote" style="color:red">Chase</span>]]; limited to 20,000}}}} | | C | Chase = | ||
{{#vardefine:chasetext|Chase}}C{{#vardefine:chasename|{{Chase}}}}{{#vardefine:chasenote|{{Notes|[[List of Chase vehicles|<span id="chasenote" style="color:red">Chase</span>]]; limited to 20,000}}}} | |||
| CP = C{{#vardefine:chasename|{{Chase|P}}}} | | CP = C{{#vardefine:chasename|{{Chase|P}}}} | ||
| SC | Super Chase = SC | | SC | Super Chase = SC | ||
{{#vardefine:chasetext|Super Chase}} | |||
{{#vardefine:chase|SC}} | {{#vardefine:chase|SC}} | ||
{{#vardefine:chasenote|{{Notes|[[List of Chase vehicles|<span id="chasenote" style="color:blue">Super Chase</span>]]; limited to 4,000}}}} | {{#vardefine:chasenote|{{Notes|[[List of Chase vehicles|<span id="chasenote" style="color:blue">Super Chase</span>]]; limited to 4,000}}}} | ||
Line 72: | Line 75: | ||
{{#vardefine:ser_id|LE}} | {{#vardefine:ser_id|LE}} | ||
{{#vardefine:ser_name|Lenticular Eyes}} | {{#vardefine:ser_name|Lenticular Eyes}} | ||
{{#vardefine:ser_category|Lenticular Eyes}} | |||
{{#vardefine:ser_link|Lenticular Eyes}} | {{#vardefine:ser_link|Lenticular Eyes}} | ||
{{#switch:{{{year|}}} | {{#switch:{{{year|}}} | ||
Line 89: | Line 93: | ||
{{#vardefine:ser_id|CTC}} | {{#vardefine:ser_id|CTC}} | ||
{{#vardefine:ser_name|Cars Toon Collection}} | {{#vardefine:ser_name|Cars Toon Collection}} | ||
{{#vardefine:ser_category|Cars Toon Collection}} | |||
{{#vardefine:ser_link|Cars Toon Collection}} | {{#vardefine:ser_link|Cars Toon Collection}} | ||
{{#vardefine:c1|purple}} | {{#vardefine:c1|purple}} | ||
Line 360: | Line 365: | ||
| 2017 | 2018 = FCM09 | | 2017 | 2018 = FCM09 | ||
|}} | |}} | ||
| exclusive = TRU | |||
}} | }} | ||
| Micro Drifters Promo | MDP = {{Series variables | | Micro Drifters Promo | MDP = {{Series variables | ||
| type = 4 | | type = 4 | ||
Line 378: | Line 383: | ||
| id = TRS500 | | id = TRS500 | ||
| name = The Radiator Springs 500½ | | name = The Radiator Springs 500½ | ||
| link = The Radiator Springs 500½ (die-cast series) | |||
| asst = Y7822 | | asst = Y7822 | ||
}} | }} | ||
Line 390: | Line 395: | ||
| id = NR | | id = NR | ||
| name = Neon Racers | | name = Neon Racers | ||
|link = Neon Racers (die-cast collection) | |||
}} | }} | ||
| Best of Cars Toons | BoCT | BOCT = {{Series variables | | Best of Cars Toons | BoCT | BOCT = {{Series variables | ||
Line 404: | Line 409: | ||
| id = IR | | id = IR | ||
| name = Ice Racers | | name = Ice Racers | ||
| link = Ice Racers (die-cast collection) | |||
| asst = CDR25 | | asst = CDR25 | ||
| exclusive = Target | | exclusive = Target | ||
Line 432: | Line 437: | ||
| id = MM16 | | id = MM16 | ||
| name = Movie Moments | | name = Movie Moments | ||
|link = Movie Moments (2016) | |||
|category = Movie Moments (2016) | |||
| asst = DPD56 | | asst = DPD56 | ||
}} | }} | ||
Line 439: | Line 445: | ||
| id = E | | id = E | ||
| name = Easter | | name = Easter | ||
| link = Easter (die-cast series) | |||
| asst = {{#switch: {{{year|}}} | | asst = {{#switch: {{{year|}}} | ||
| 2024 = DVV06 | | 2024 = DVV06 | ||
Line 506: | Line 512: | ||
| name = Rocket Racing | | name = Rocket Racing | ||
| asst = GKB87 | | asst = GKB87 | ||
}} | }} | ||
| Drive-In | DI = {{Series variables | | Drive-In | DI = {{Series variables | ||
Line 522: | Line 522: | ||
| type = 4 | | type = 4 | ||
| id = RS24H | | id = RS24H | ||
| name = 24h Endurance Race | | name = RS 24h Endurance Race | ||
| asst = GPN32 | | asst = GPN32 | ||
}} | }} | ||
Line 540: | Line 540: | ||
| name = Welcome to Radiator Springs | | name = Welcome to Radiator Springs | ||
| asst = GYD45 | | asst = GYD45 | ||
| exclusive = TGT | |||
}} | }} | ||
| Wintertime Cruisers | WC = {{Series variables | | Wintertime Cruisers | WC = {{Series variables | ||
Line 558: | Line 559: | ||
| name = Glow Racers | | name = Glow Racers | ||
| link = Glow Racers (die-cast series) | | link = Glow Racers (die-cast series) | ||
| asst = HPG76 | | asst = {{#switch:{{{format|}}} | ||
| Single = HPG76 | |||
| {{n/a}}}} | |||
}} | }} | ||
<!-- | <!-- | ||
Line 571: | Line 574: | ||
| name = Color Changers | | name = Color Changers | ||
| asst = {{#switch: {{{year|}}} | | asst = {{#switch: {{{year|}}} | ||
| 2020 | 2021 | 2022 | 2023 | 2024 = {{#ifeq:{{{format|}}}|Single|GNY94|}} | |||
| 2010 = {{#switch: {{{format|}}} | | 2010 = {{#switch: {{{format|}}} | ||
| Single = T1661 | | Single = T1661 | ||
Line 637: | Line 641: | ||
| name = Red Line Club | | name = Red Line Club | ||
| exclusive = RLC | | exclusive = RLC | ||
| asst = {{n/a}} | |||
| c2 = #af3c46 | |||
}} | }} | ||
{{#ifeq:{{{toy|}}}|L4755|[[Category:2006 Mainline vehicles]]|}} | {{#ifeq:{{{toy|}}}|L4755|[[Category:2006 Mainline vehicles]]|}} | ||
Line 643: | Line 649: | ||
| id = SDCC | | id = SDCC | ||
| name = SDCC Exclusives | | name = SDCC Exclusives | ||
| category = Convention Exclusive | |||
}} | }} | ||
| Mail-in | Mail-ins | Mail Order | Mail order | Promo = {{Series variables | | Mail-in | Mail-ins | Mail Order | Mail order | Promo = {{Series variables | ||
Line 648: | Line 655: | ||
| id = MAIL | | id = MAIL | ||
| name = Mail-in promotions | | name = Mail-in promotions | ||
}} | |||
<!-- | |||
PREMIUM | |||
--> | |||
| Precision Series = {{Series variables | |||
| type = 7 | |||
| id = PREC | |||
| name = Precision Series | |||
}} | |||
| 1:24 | 1:24 Scale Vehicles = {{Series variables | |||
| type = 7 | |||
| id = 124SV | |||
| name = 1:24 Scale Vehicles | |||
| link = 1:24 Die-Cast | |||
| asst = H7091 | |||
}} | }} | ||
<!-- | <!-- | ||
Line 664: | Line 686: | ||
| asst = {{n/a}} | | asst = {{n/a}} | ||
}} | }} | ||
| Mini Racers | [[Mini Racers]] | MR = {{#vardefine:ser_link| | | Mini Racers | [[Mini Racers]] | MR = {{#vardefine:ser_link|Mini Racers}} | ||
{{#vardefine:ser_name|Mini Racers}} | |||
{{#vardefine:ser_id|MR}} | {{#vardefine:ser_id|MR}} | ||
{{#vardefine: | {{#vardefine:ser_type|9}} | ||
{{#vardefine:rowtype|MiniRacer}} | {{#vardefine:rowtype|MiniRacer}} | ||
{{#vardefine:asst|{{#switch:{{{sub|}}} | |||
| Blind Boxes = GKD78 | |||
| Blister | Blisters = GKF65 | |||
|}} | |||
}} | |||
{{#vardefine:colnumber|Mini Racers}} | |||
{{#vardefine:colnumlist_number|{{#var:colnumlist_number}}}} | |||
| Pullbax | PB = {{Series variables | | Pullbax | PB = {{Series variables | ||
| type = 8 | | type = 8 | ||
Line 705: | Line 735: | ||
|}} | |}} | ||
}} | }} | ||
| Smack & Yak | | | Smack & Yak | S&Y = {{Series variables | ||
| type = 8 | | type = 8 | ||
| id = S&Y | | id = S&Y | ||
| name = Smack & Yak | | name = Smack & Yak | ||
| asst = H6451 | | asst = {{#switch:{{{year|}}} | ||
| 2006 = H6451 | |||
| 2007 = L2561 | |||
|}} | |||
}} | }} | ||
| Little Rides | LR = {{Series variables | | Little Rides | LR = {{Series variables | ||
Line 728: | Line 761: | ||
| asst = H6946 | | asst = H6946 | ||
}} | }} | ||
| Pullback Vehicles | PV | PBV = {{Series variables | | Track Talkers | TT = {{Series variables | ||
| type = 8 | |||
| id = TT | |||
| name = Track Talkers | |||
}} | |||
| Pullback Vehicles | PV | PBV | Pullback Racers = {{Series variables | |||
| type = 8 | | type = 8 | ||
| id = PV | | id = PV | ||
| name = Pullback | | name = Pullback Racers | ||
| asst = HGL51 | | asst = HGL51 | ||
}} | }} |
Latest revision as of 20:14, 20 September 2024
This is the definition list for each Mattel Disney Pixar Cars series, as referred inside the major templates ({{vehicle row}}) and {{vehicle list}}). It takes advantage of switch statement functionality to help improve performance speed: Rather than repeatedly putting the series
input through multiple different expressions, and evaluating each variable one at a time, the parser only needs to check the value once to retrieve all the pre-defined variables (and only them) all at the same time.
Some series have multiple "aliases" registered as failsafes, but for maintenance purposes (and general consistency), please only use one of the following calls (under construction):
|
|
|
Design
Returns the three variables necessary for displaying the "series" cell in each {{vehicle row}}: ID
, $name
, and $link
. Simplified visual:
<div id="$ID"> [[$link|$name]] </div>
Case-by-case it also returns pre-sets for asst
and exclusive
as well the colset
when each is needed.