Template:Series index: Difference between revisions
RodRedlineM1 (talk | contribs) |
RodRedlineM1 (talk | contribs) |
||
(15 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 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 647: | Line 647: | ||
| 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 683: | Line 684: | ||
| 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 755: | Line 764: | ||
| name = Track Talkers | | name = Track Talkers | ||
}} | }} | ||
| Pullback Vehicles | PV | PBV = {{Series variables | | 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 14:39, 19 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.