Template:M-series: Difference between revisions

From Pixar Cars Wiki
Jump to navigation Jump to search
 
(22 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><!--
<includeonly><div style="display:none">{{{year|}}}_{{#var:asst_sortkey}}{{#var:secondary_sortkey}}</div><!--
//Include Chase category (prevents from being defined inside series index)
-->{{#ifeq:{{{released|}}}|X
-->{{#switch:{{{chase|}}}
|<div class="c-row" style="background:gray">''[[List of unreleased Mattel Disney Pixar Cars vehicles|Unreleased]]''{{#if:{{{series|}}}|<br/><div><small>({{#var:ser_finallink}})</small></div>|}}</div>
| Chase | C | CP = [[Category:Chase vehicles]]
| {{#SWITCH: {{{series|}}}<!--
| Super Chase | SC = [[Category:Super Chase vehicles]]
// mainline
|}}{{#ifeq:{{{released|}}}|X|<div class="c-row" style="background:gray">''[[List of unreleased Mattel Disney Pixar Cars vehicles|Unreleased]]''{{#if:{{{series|}}}|<br/><div><small>({{#var:ser_finallink}})</small></div>|}}</div>|{{#SWITCH: {{{1|}}}
--> | M | m | Mainline | mainline = {{#ifeq:{{{cats|false}}}|true|[[Category:{{#switch:{{{year|}}}
| M | Mainline | mainline = {{#ifeq:{{{cats|}}}|true|[[Category:{{{2|}}} Mainline vehicles]]|}}<div class="M_{{{2|}}} c-row"><div class="c-rowtext">[[{{#if:{{{sub|}}}|{{#switch:{{{sub|}}}
|2018 = 2018-2019
|Spring = 2017
|2017 = {{#switch:{{{sub|}}}
|Cars 3 = 2017 Cars 3
|Spring = Spring 2017
|}}
|Cars 3 = 2017 Cars 3
|{{{2|}}}}} (mainline series)|Mainline]]{{#ifeq:{{{version|}}}|International|&nbsp;''(Int.)''|}}</div><div class="mainline-year" style="font-size:70%;margin-top:-5px">{{#SWITCH: {{{2|}}}
|}}
|{{{year|}}}}} Mainline vehicles]]}}<div class="M_{{{year|}}} c-row"><div class="c-rowtext">[[{{#switch:{{{sub|}}}
|Spring = Spring 2017
|Cars 3 = 2017 Cars 3
|{{{year|}}}}} (mainline series)|Mainline]]{{#ifeq:{{{version|}}}|International|&nbsp;''(Int.)''|}}</div><div class="mainline-year" style="font-size:70%;margin-top:-5px">{{#SWITCH: {{{year|}}}
| 2017 = {{#switch:{{{sub|}}}
| 2017 = {{#switch:{{{sub|}}}
| Spring = Spring 2017
| Spring = Spring 2017
| Cars 3 = 2017 Cars 3
| Cars 3 = 2017 Cars 3
|}}
|}}
    | 2018 | 2018-19 | 2018-2019 = 2018-2019[[Category:2018-19 Mainline vehicles]]
     | {{{year|}}}}}</div><div class="mobile-only" style="font-size:12px;padding-bottom:20%">• See card</div></div>
     | {{{2|}}}}}</div><div class="mobile-only" style="font-size:12px;padding-bottom:20%">• See card</div></div>
<!--
  | Mini Racers | [[Mini Racers]] = <div class="c-row"><div class="c-rowtext" id="MR-series" style="display:flex;height: 100%;font-weight:bold;">[[File:MiniRacers.png|50px]]<div style="background-color: #fb3d49; text-align: center;width: 100%;"><span id="MR-seriesno">Series 1</span></div></div></div>
// other
  | <div class="c-row m-col-name" style="text-align:center; background: linear-gradient(to right, {{#var:c1}} 0, {{#var:c1}} 10%, {{#var:c2}} 10%, {{#var:c2}} 30%, #fff 30%, #fff 100%)">{{#var:ser_finallink}}{{#ifeq:{{{type|}}}|row|[[Category:{{#if:{{#var:ser_category}}|{{#var:ser_category}}|{{#var:ser_name}}}} vehicles]]|}}</div> }}}}</includeonly><noinclude>
-->  | Mini Racers = <div class="c-row"><div class="c-rowtext" id="MR-series" style="display:flex;height: 100%;font-weight:bold;">[[File:MiniRacers.png|50px]]<!--#fb3d49--><div style="background-color: #fff; text-align: center;width: 100%;"><span id="MR-seriesno">{{{sub|}}}{{#if:{{#var:sub_number}}|<br/>Series {{#var:sub_number}}|}}</span></div></div></div>
| {{M-collection}}{{#ifeq:{{{cats|false}}}|true|[[Category:{{#var:ser_category}} vehicles]]|}}<!-- this currently needs to be transcluded presumably due to a pipe in one of the variables --> }}
}}</includeonly><noinclude>
==Documentation==
==Documentation==
Alternate version of {{tem|M-series}} for use with auto-include categories in {{tem|die-cast row}}
Alternate version of {{tem|M-series}} for use with auto-include categories in {{tem|die-cast row}}


[[Category:Content templates]]</noinclude>
[[Category:Mattel templates]]</noinclude>

Latest revision as of 13:59, 19 September 2024

Documentation

Alternate version of {{M-series}} for use with auto-include categories in {{die-cast row}}