Template:Case: Difference between revisions

From Pixar Cars Wiki
Jump to navigation Jump to search
(38 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>
<noinclude>{{#cargo_declare:_table=Cases
{|class="wikitable" style="text-align:center"
|Assortment=Wikitext string
{{!}}+{{{count|}}}-count
|Format=String
|width="16%"|[[File:{{{image1|}}}|120px]]
|Code=Wikitext string
|width="16%"|[[File:{{{image2|}}}|120px]]
|Series=Wikitext string
|width="16%"|[[File:{{{image3|}}}|120px]]
|SeriesF=Wikitext string
|width="16%"|[[File:{{{image4|}}}|120px]]
|Letter=Wikitext string
|width="16%"|[[File:{{{image5|}}}|120px]]
|LetterC=String
|width="16%"|[[File:{{{image6|}}}|120px]]
|Year=Wikitext string
|YearF=Wikitext string
|Month=Wikitext string
|Contents=Wikitext string
}}</noinclude><includeonly>{{#cargo_store:_table=Cases
|Assortment={{{asst|}}}
|Code={{{code|}}}
|Letter=[[{{#switch:{{{series|}}}
| Mainline | M | m | mainline = {{{year|}}} (mainline series)
| {{{series|}}}
}}/Case assortments#Case {{{letter|}}}{{!}}{{{letter|}}}]]
|LetterC={{{letter|}}}
|Format={{#switch:{{{type|}}}
| single = Single
| {{{type|}}}}}
|Series={{#switch:{{{series|}}}
| M | m | Mainline | mainline = Mainline
|{{{series|}}}}}
|SeriesF={{M-series/Cargo|series={{{series|}}}|1={{#switch: {{{series}}}
  | Mainline | mainline | M | m = M
  | {{{series}}}}}|2={{{year}}}|tooltip={{{card|}}}}}
|Year={{{year|}}}
|YearF=[[List of vehicles by year/{{{year|}}}|{{{year|}}}]]
|Month={{{month|}}}
|Contents=<br/>{{{car1|}}}{{#if:{{{car2|}}}|<br/>{{{car2|}}}|}}{{#if:{{{car3|}}}|<br/>{{{car3|}}}|}}{{#if:{{{car4|}}}|<br/>{{{car4|}}}|}}{{#if:{{{car5|}}}|<br/>{{{car5|}}}|}}{{#if:{{{car6|}}}|<br/>{{{car6|}}}|}}{{#if:{{{car7|}}}|<br/>{{{car7|}}}|}}{{#if:{{{car8|}}}|<br/>{{{car8|}}}|}}{{#if:{{{car9|}}}|<br/>{{{car9|}}}|}}{{#if:{{{car10|}}}|<br/>{{{car10|}}}|}}{{#if:{{{car11|}}}|<br/>{{{car11|}}}|}}{{#if:{{{car12|}}}|<br/>{{{car12|}}}|}}{{#if:{{{car13|}}}|<br/>{{{car13|}}}|}}{{#if:{{{car14|}}}|<br/>{{{car14|}}}|}}{{#if:{{{car15|}}}|<br/>{{{car15|}}}|}}{{#if:{{{car16|}}}|<br/>{{{car16|}}}|}}{{#if:{{{car17|}}}|<br/>{{{car17|}}}|}}{{#if:{{{car18|}}}|<br/>{{{car18|}}}|}}{{#if:{{{car19|}}}|<br/>{{{car19|}}}|}}{{#if:{{{car20|}}}|<br/>{{{car20|}}}|}}{{#if:{{{car21|}}}|<br/>{{{car21|}}}|}}{{#if:{{{car22|}}}|<br/>{{{car22|}}}|}}{{#if:{{{car23|}}}|<br/>{{{car23|}}}|}}{{#if:{{{car24|}}}|<br/>{{{car24|}}}|}}<br/>
}}
{| style="margin-bottom:-10px;" {{#ifeq: {{{type|}}}|deluxe|width=60%|width=100%}}"
|-
|style="width:20%"|&nbsp;
|style="width:60%;text-align:center|{{#IF:{{{code|}}}|'''{{{asst|}}}-{{{code|}}}{{{letter|}}}'''<br/>|}}{{#IF: {{{country|}}}|'''Made in:''' {{#SWITCH: {{{country|}}}
  | CN | China = China
  | TH | Thailand = Thailand
  | VN | Vietnam = Vietnam
  | China
|}}<br/>|}}'''Count:''' {{{count|}}}{{#IF: {{{date|}}}|<br/>'''Set date:''' {{{date|}}}|}}
|style="width:20%;text-align:right;font-size:small;vertical-align:bottom;padding:0 10px 0 0"|{{#IF: {{{ref1|}}} | References:&nbsp;{{{ref1|}}}&nbsp;{{{ref2|}}}|}}
|}
{|class="wikitable" style="text-align:center;{{#ifeq: {{{type|}}}|deluxe|margin:auto" width=60%|"}}
{{!}}-
{{!}}-
|{{{car1|}}}
{{#switch: {{{type|}}}
|{{{car2|}}}
|single =
|{{{car3|}}}
{{!}}width="16%"{{!}}[[File:{{{image1|}}}|120px]]
|{{{car4|}}}
{{!}}width="16%"{{!}}[[File:{{{image2|}}}|120px]]
|{{{car5|}}}
{{!}}width="16%"{{!}}[[File:{{{image3|}}}|120px]]
|{{{car6|}}}
{{!}}width="16%"{{!}}[[File:{{{image4|}}}|120px]]
{{!}}width="16%"{{!}}[[File:{{{image5|}}}|120px]]
{{!}}width="16%"{{!}}[[File:{{{image6|}}}|120px]]
{{!}}-
{{!}}-
|width="16%"|[[File:{{{image7|}}}|120px]]
{{!}}{{{car1|}}}
|width="16%"|[[File:{{{image8|}}}|120px]]
{{!}}{{{car2|}}}
|width="16%"|[[File:{{{image9|}}}|120px]]
{{!}}{{{car3|}}}
|width="16%"|[[File:{{{image10|}}}|120px]]
{{!}}{{{car4|}}}
|width="16%"|[[File:{{{image11|}}}|120px]]
{{!}}{{{car5|}}}
|width="16%"|[[File:{{{image12|}}}|120px]]
{{!}}{{{car6|}}}
{{!}}-
{{!}}-
|{{{car7|}}}
{{!}}width="16%"{{!}}[[File:{{{image7|}}}|120px]]
|{{{car8|}}}
{{!}}width="16%"{{!}}[[File:{{{image8|}}}|120px]]
|{{{car9|}}}
{{!}}width="16%"{{!}}[[File:{{{image9|}}}|120px]]
|{{{car10|}}}
{{!}}width="16%"{{!}}[[File:{{{image10|}}}|120px]]
|{{{car11|}}}
{{!}}width="16%"{{!}}[[File:{{{image11|}}}|120px]]
|{{{car12|}}}
{{!}}width="16%"{{!}}[[File:{{{image12|}}}|120px]]
{{#ifeq:{{{count|}}}|18|
{{!}}-
{{!}}-
{{!}}{{{car7|}}}
{{!}}{{{car8|}}}
{{!}}{{{car9|}}}
{{!}}{{{car10|}}}
{{!}}{{{car11|}}}
{{!}}{{{car12|}}}
{{#ifeq:{{{count|}}}|18|{{!}}-
{{!}}width="16%"{{!}}[[File:{{{image13|}}}|120px]]
{{!}}width="16%"{{!}}[[File:{{{image13|}}}|120px]]
{{!}}width="16%"{{!}}[[File:{{{image14|}}}|120px]]
{{!}}width="16%"{{!}}[[File:{{{image14|}}}|120px]]
Line 43: Line 88:
{{!}}{{{car16|}}}
{{!}}{{{car16|}}}
{{!}}{{{car17|}}}
{{!}}{{{car17|}}}
{{!}}{{{car18|}}}
{{!}}{{{car18|}}}}}
}}
{{#ifeq:{{{count|}}}|24|{{!}}-
{{#ifeq:{{{count|}}}|24|
{{!}}-
{{!}}width="16%"{{!}}[[File:{{{image13|}}}|120px]]
{{!}}width="16%"{{!}}[[File:{{{image13|}}}|120px]]
{{!}}width="16%"{{!}}[[File:{{{image14|}}}|120px]]
{{!}}width="16%"{{!}}[[File:{{{image14|}}}|120px]]
Line 73: Line 116:
{{!}}{{{car22|}}}
{{!}}{{{car22|}}}
{{!}}{{{car23|}}}
{{!}}{{{car23|}}}
{{!}}{{{car24|}}}
{{!}}{{{car24|}}}}}
|}}
|2-pack={{!}}width="16%"{{!}}[[File:{{{image1|}}}|120px]]
{{!}}width="16%"{{!}}[[File:{{{image2|}}}|120px]]
{{!}}width="16%"{{!}}[[File:{{{image3|}}}|120px]]
{{!}}width="16%"{{!}}[[File:{{{image4|}}}|120px]]
{{!}}width="16%"{{!}}[[File:{{{image5|}}}|120px]]
{{!}}width="16%"{{!}}[[File:{{{image6|}}}|120px]]
{{!}}-
{{!}}{{{pack1L|}}} & {{{pack1R|}}}
{{!}}{{{pack2L|}}} & {{{pack2R|}}}
{{!}}{{{pack3L|}}} & {{{pack3R|}}}
{{!}}{{{pack4L|}}} & {{{pack4R|}}}
{{!}}{{{pack5L|}}} & {{{pack5R|}}}
{{!}}{{{pack6L|}}} & {{{pack6R|}}}
{{!}}-
{{!}}width="16%"{{!}}[[File:{{{image7|}}}|120px]]
{{!}}width="16%"{{!}}[[File:{{{image8|}}}|120px]]
{{!}}width="16%"{{!}}[[File:{{{image9|}}}|120px]]
{{!}}width="16%"{{!}}[[File:{{{image10|}}}|120px]]
{{!}}width="16%"{{!}}[[File:{{{image11|}}}|120px]]
{{!}}width="16%"{{!}}[[File:{{{image12|}}}|120px]]
{{!}}-
{{!}}{{{pack7L|}}} & {{{pack7R|}}}
{{!}}{{{pack8L|}}} & {{{pack8R|}}}
{{!}}{{{pack9L|}}} & {{{pack9R|}}}
{{!}}{{{pack10L|}}} & {{{pack10R|}}}
{{!}}{{{pack11L|}}} & {{{pack11R|}}}
{{!}}{{{pack12L|}}} & {{{pack12R|}}}
|deluxe={{!}}width="33%"{{!}}[[File:{{{image1|}}}|120px]]
{{!}}width="33%"{{!}}[[File:{{{image2|}}}|120px]]
{{!}}width="33%"{{!}}[[File:{{{image3|}}}|120px]]
{{!}}-
{{!}}{{{car1|}}}
{{!}}{{{car2|}}}
{{!}}{{{car3|}}}
{{!}}-
{{!}}width="33%"{{!}}[[File:{{{image4|}}}|120px]]
{{!}}width="33%"{{!}}[[File:{{{image5|}}}|120px]]
{{!}}width="33%"{{!}}[[File:{{{image6|}}}|120px]]
{{!}}-
{{!}}{{{car4|}}}
{{!}}{{{car5|}}}
{{!}}{{{car6|}}}
|8count={{!}}width="25%"{{!}}[[File:{{{image1|}}}|120px]]
{{!}}width="25%"{{!}}[[File:{{{image2|}}}|120px]]
{{!}}width="25%"{{!}}[[File:{{{image3|}}}|120px]]
{{!}}width="25%"{{!}}[[File:{{{image4|}}}|120px]]
{{!}}-
{{!}}{{{car1|}}}
{{!}}{{{car2|}}}
{{!}}{{{car3|}}}
{{!}}{{{car4|}}}
{{!}}-
{{!}}width="25%"{{!}}[[File:{{{image5|}}}|120px]]
{{!}}width="25%"{{!}}[[File:{{{image6|}}}|120px]]
{{!}}width="25%"{{!}}[[File:{{{image7|}}}|120px]]
{{!}}width="25%"{{!}}[[File:{{{image8|}}}|120px]]
{{!}}-
{{!}}{{{car5|}}}
{{!}}{{{car6|}}}
{{!}}{{{car7|}}}
{{!}}{{{car8|}}}
| ERROR: Accepted values <code>single</code>, <code>2-pack</code>, <code>deluxe</code>}}
|}</includeonly><noinclude>
|}</includeonly><noinclude>
Necessary parameters for [[Template:Vehicle row|storage]]:
* {{param|year}} - Should always be the '''series year'''. New series traditionaly begin 2-4 months before the actual change of calendar year - if 2024 Mainline Case A (11/1/23), you should put {{param|year}}{{code|2024}} and {{param|rel_year}}{{code|2023}}
* {{param|series}} - can simply be Mainline if applicable, otherwise a corresponding [[Template:Series index|index]] ID
Display:
*{{param|asst}} 5-digit assortment number
*{{param|code}} 3-digit prefix
*{{param|letter}} Letter ID
==Documentation==
==Documentation==
{|class="wikitable"
{|class="wikitable"
Line 157: Line 270:
|car24=  |image24=
|car24=  |image24=
}}</pre>
}}</pre>
|}</div>
|}
[[Category:Content templates]]
[[Category:Mattel templates]]
</noinclude>
</noinclude>

Revision as of 15:24, 9 September 2024

This template defines the Cargo table "Cases".

View table.

Necessary parameters for storage:

  • |year= - Should always be the series year. New series traditionaly begin 2-4 months before the actual change of calendar year - if 2024 Mainline Case A (11/1/23), you should put |year=2024 and |rel_year=2023
  • |series= - can simply be Mainline if applicable, otherwise a corresponding index ID

Display:

  • |asst= 5-digit assortment number
  • |code= 3-digit prefix
  • |letter= Letter ID

Documentation

|count= Determines number of cars, 6 per row: 12 by default; 18 for three rows, 24 for four
|car1=
|car2=
 etc.
Put name of car, up to 24
|image1=
|image2=
 etc.
Image corresponding to car number
{{Mattel case assortment
|count = 12
|car1=   |image1=
|car2=   |image2=
|car3=   |image3=
|car4=   |image4=
|car5=   |image5=
|car6=   |image6=
|car7=   |image7=
|car8=   |image8=
|car9 =  |image9=
|car10=  |image10=
|car11=  |image11=
|car12=  |image12=
}}
{{Mattel case assortment
|count = 18
|car1=   |image1=
|car2=   |image2=
|car3=   |image3=
|car4=   |image4=
|car5=   |image5=
|car6=   |image6=
|car7=   |image7=
|car8=   |image8=
|car9 =  |image9=
|car10=  |image10=
|car11=  |image11=
|car12=  |image12=
|car13=  |image13=
|car14=  |image14=
|car15=  |image15=
|car16=  |image16=
|car17=  |image17=
|car18=  |image18=
}}
{{Mattel case assortment
|count = 24
|car1=   |image1=
|car2=   |image2=
|car3=   |image3=
|car4=   |image4=
|car5=   |image5=
|car6=   |image6=
|car7=   |image7=
|car8=   |image8=
|car9 =  |image9=
|car10=  |image10=
|car11=  |image11=
|car12=  |image12=
|car13=  |image13=
|car14=  |image14=
|car15=  |image15=
|car16=  |image16=
|car17=  |image17=
|car18=  |image18=
|car19=  |image19=
|car20=  |image20=
|car21=  |image21=
|car22=  |image22=
|car23=  |image23=
|car24=  |image24=
}}