Template:Vehicle row: Difference between revisions
RodRedlineM1 (talk | contribs) |
RodRedlineM1 (talk | contribs) |
||
Line 70: | Line 70: | ||
|delimiter=, | |delimiter=, | ||
|limit=36 | |limit=36 | ||
}}|}}}} |}}</span>}} | }}|}}}} |}}</span>}}<!-- | ||
<!-- store data --> | // display the first given card | ||
{{#cargo_store:_table=Releases | -->{{#vardefine:card_given|{{{card|{{{card2|}}}}}}}}<!-- | ||
//store data | |||
-->{{#cargo_store:_table=Releases | |||
|Model_name={{#if:{{{paired_names|}}}|{{{paired_names|}}}|[[{{FULLPAGENAME}}#{{{toy|}}}_{{{year|}}}|{{{model_name|{{PAGENAME}}}}}]]}}{{#var:chasename}} | |Model_name={{#if:{{{paired_names|}}}|{{{paired_names|}}}|[[{{FULLPAGENAME}}#{{{toy|}}}_{{{year|}}}|{{{model_name|{{PAGENAME}}}}}]]}}{{#var:chasename}} | ||
|Type={{#var:series_type}} | |Type={{#var:series_type}} | ||
Line 119: | Line 121: | ||
|'''{{{model_name|{{PAGENAME}}}}}''' | |'''{{{model_name|{{PAGENAME}}}}}''' | ||
|class="field_Year" |{{#if:{{{year|}}}|[[List of vehicles by year/{{{year|}}}|{{{year|}}}]]|{{n/a}}}} | |class="field_Year" |{{#if:{{{year|}}}|[[List of vehicles by year/{{{year|}}}|{{{year|}}}]]|{{n/a}}}} | ||
|class="field_Series" | {{tooltip|text={{M-series|cats={{#var:cats}}|version={{{version|}}}|chase={{{chase|}}}|released={{{released|}}}|series={{{series|null}}}|year={{{year|}}}|sub={{{sub|}}}}}|content={{#if:{{ | |class="field_Series" | {{tooltip|text={{M-series|cats={{#var:cats}}|version={{{version|}}}|chase={{{chase|}}}|released={{{released|}}}|series={{{series|null}}}|year={{{year|}}}|sub={{{sub|}}}}}|content={{#if:{{#var:card_given}}|[[File:{{#var:card_given}}|120px]]|{{no-image}}}}}} | ||
|class="field_Segment" | {{M-segment|{{{segment|}}}}}{{#ifeq:{{{paired|false}}}|true||{{#if:{{{segment|}}}|[[Category:{{#var:segment_category}}]]|}}}}{{Sortkey|{{{toy|}}}_{{{year|}}}}}<!--ensure 2-pack rows only combine with themselves--> | |class="field_Segment" | {{M-segment|{{{segment|}}}}}{{#ifeq:{{{paired|false}}}|true||{{#if:{{{segment|}}}|[[Category:{{#var:segment_category}}]]|}}}}{{Sortkey|{{{toy|}}}_{{{year|}}}}}<!--ensure 2-pack rows only combine with themselves--> | ||
|{{#if:{{{cast|}}}|<span class="plainlinks">[https://www.pixarcarswiki.com/index.php?title=Special%3ACargoQuery&tables=Releases&fields=Loose_photo%3DLoose+photo%2C+Model_name%3DModel+name%2C+Collector_number%3DCol+no.%2C+Year%3DYear%2C+Series%3DSeries%2C+Segment%3DSegment%2C+Country%3DMade+in%2C+Cast_number%3DCast+no.%2C+Toy_number%3DToy+no.%2C+Notes%3DNotes%2C+Edit%3DEdit+&where=Cast_number+like+%27%25{{{cast|}}}%25%27&join_on=&group_by=&having=&order_by%5B0%5D=Releases.Year%2CReleases.Toy_number&order_by_options%5B0%5D=ASC&limit=500&offset=&format= {{{cast|}}}]</span>|{{TBA}}}} | |{{#if:{{{cast|}}}|<span class="plainlinks">[https://www.pixarcarswiki.com/index.php?title=Special%3ACargoQuery&tables=Releases&fields=Loose_photo%3DLoose+photo%2C+Model_name%3DModel+name%2C+Collector_number%3DCol+no.%2C+Year%3DYear%2C+Series%3DSeries%2C+Segment%3DSegment%2C+Country%3DMade+in%2C+Cast_number%3DCast+no.%2C+Toy_number%3DToy+no.%2C+Notes%3DNotes%2C+Edit%3DEdit+&where=Cast_number+like+%27%25{{{cast|}}}%25%27&join_on=&group_by=&having=&order_by%5B0%5D=Releases.Year%2CReleases.Toy_number&order_by_options%5B0%5D=ASC&limit=500&offset=&format= {{{cast|}}}]</span>|{{TBA}}}} |
Revision as of 06:37, 14 September 2024
Diecast Project documentation | |
---|---|
Help pages | |
Vehicles · Releases · Series | |
Templates | |
Core | Utility |
infobox · table · row · list · case | poster sort · paired row · colno amend · series nav |
This template defines the Cargo table "Releases". |
Usage
The vehicle row
is the backbone of all Mattel Disney Pixar Cars coverage on the Pixar Cars Wiki. Compared to the {{vehicle infobox}}, which opens each vehicle page with a summarized overview, a number of vehicle rows form the core data table. – each one holding detailed, extensive information about an individual release of the vehicle thereof, allowing us to form a complete year-by-year, series-by-series, item-by-item record of that vehicle's history.
Component, needs to be wrapped by a {{table start}} {|
and {{table end}} |}
; The structured output is automated by the recommended entry form.
The stored data goes straight into a database table, allowing every other page on the wiki to access and use it. In short: A single vehicle row within a vehicle page defines the data for its respective release, which then every style of List page - whether series, #Cast lists|cast/item, or Chases - reads and includes in its generation. This gives a release the ability to appear on multiple pages, while only requiring a single edit to update everywhere else.
{| {{vehicle header}} |- {{vehicle row}} {{vehicle row}} {{vehicle row}} {{table end}}
Parameters
{{Vehicle row |model_name= |year= |series= |segment= |colno= |cast= |toy= |country= |photo= |size= |card= |note1= |note2= |note3= etc... }} |
|
Extra configuration
The following settings are not available in the main form, but can be configured in source mode.
|sort_name=
can be set to modify the "model name" that will be called by a {{vehicle list}}. This is useful in situations where more than one Vehicle within the same series have the same model name -- an example being Green, Yellow, and Purple Ramone in the 2007 Mainline. Setting the latter's|sort_name=
toPurple Ramone
makes it so when the same is put in {{poster sort}} template on the series page, it can identify said Ramone.|asst=
manually sets/overrides the assortment number. Most are covered automatically but for certain series/items where the programming cannot determine its identity (such as Piston Cup Nights and its varying multipack assortments), this is necessary.|exclusive=
sets the exclusive status of an item. Retailer-specific series display by default, but this works for individual items/overrides the default setting.
Temporary:
|sub=
allows for an extra level of specificity within series|card2=
and|int_card=
for alternate cardbacks; Walmart Cars and 2023 Mainline are examples
Also see {{paired row}} for paired singles