Template:Case/printContent
Jump to navigation
Jump to search
This template is a component of another, as to help organize (and/or optimize) a larger structure of code. It is not meant to be called individually and should never be placed into an article.
| Diecast Project code | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||
| Templates | ||||||||||
| series list • series infobox • poster sort case • case header | ||||||||||
| Value indexes | ||||||||||
| ||||||||||
| Functions | ||||||||||
| Global: name escape • product no. • sortkey • numberSort Row output: m-series • m-segment • m-country • card checker • note checker* • edit shortcut Cases: printContent • storeContent Query tools: col - makeSeriesColumn • getCaseStats | ||||||||||
| Messages | ||||||||||
| Landing: top • bottom • year nav Search: results-header • results • button text | ||||||||||
| [src] |
This is the output template for a Mattel case, as the Cargo query template format value. This is the code looped for each individual content; it handles what to print for the image and name.
Sub-functions
- {{Case/printContent/addCardSlot}} - HTML template specifically for the photo; receives
{{#var:card_column_val}}as|card_file_name=.
Parameters
As provided by {{case}}'s Cargo query via named args configuration, passing the respective values from Releases and Case_Contents.
| Parameter | Column | Notes |
|---|---|---|
Model Name
|
Releases.Model_Name | Formatted |model_name= input, with an anchored link to the respective Vehicle: page row.
|
Sort Name
|
Releases.Sort_Name | Escaped version of the |model_name= input, i.e. stripped of quotations; HTML title attribute corresponding to the "Name" sort option.
|
Toy Number
|
Releases.Toy_Number | Basic five-digit product number string. Fed as the id HTML attribute, corresponding to the "Toy #" sort option. If the item row has no |toy= value, the column provides the {{cargo null}} value—ZZZ—causing it to sort at the end when that option is used.
|
Toy Sortkey
|
Releases.Toy_Sortkey | 01 or 02 representing the WDDDD or WWWDD number format, so the former correctly sorts ahead of the latter.
|
Year
|
Releases.Year | Exclusively for multipacks, so {{getPackName}} can retrieve the correct item title. |
Pair
|
Releases.Pair | Tells whether a release is paired, and therefore needs to print two model names instead of just one before moving on. |
| Card slots | ||
Carded photo
|
Releases.Carded_photo | As specified by the modifier string. |
Card2
|
Releases.Card2 | |
Card3
|
Releases.Card3 | |
Int Card
|
Releases.Int_Card | |
Int Card2
|
Releases.Int_Card2 | |
Loose Photo
|
Releases.Loose_Photo | |