Template:Infobox set/doc

This is the newest layout for all train sets on the TrainStation Wiki. The syntax is fairly simple. The template accepts one locomotive and up to twelve normal-width wagons (called "cars" in this template) and up to two wide-width wagons. This page contains a blank template for editors to copy. Refer to the syntax below the blank template for explanations and instructions.

As of 2018, Template:Infobox set now accepts up to 14 different wagons.

Blank template
This blank template makes it easy to create a new page for a train set, or to edit an older page that is missing information. Copy the entire template and paste it into the Classic Editor. Please remove unused parameters!

Basic information
Basic information for each train set includes four required pieces of data.
 * type (required) - The type of locomotive the set uses:
 * for Steam
 * for Diesel
 * for Electric
 * for Maglev
 * for Hyperloop
 * setsize (required) - The power of the locomotive
 * setbonus (required) - The bonus applied to wagons when the set is constructed correctly. Use only the number. For example, for a set bonus of +20%, enter.
 * cargo (required) - The types of cargo the set hauls, which can be a combination of the following codes:
 * for Freight (can also use  to indicate a Complete Freight set can be purchased for gold/gems)
 * for Passengers (can also use  for multiple types of cargo)
 * for Mail (can also use  for multiple types of cargo)
 * for Special Wagons (can also be added to any cargo codes to include XP)
 * for Gems (this is typically only used for the Gem Express)
 * for Random Material/Gems (this is for specific trains, such as Ling Reward Set)
 * source (optional) - The source of the Set, which can any combination of the following codes. However, please only use codes for methods where the entire Set can be obtained:
 * for Shop
 * for Offers (such as from Special, Vintage, or Limited Offers)
 * for Reward (such as from Contracts, Achievements, Mystery Boxes, Offer Boxes)
 * for Portal Only (used with Shop 's' code to categorize Set into Portal Only).

Locomotive
The locomotive has one required and two optional pieces of data.
 * loco (required) - The name of the article page for the locomotive.
 * lococost (optional) - Enter the name of the cost resource the locomotive can be bought for:
 * Gems -
 * Gold -
 * Dual - (gold or gems)
 * locosrc (optional) - If awarded, the source of the award. Accepts any combination of the following codes:
 * for Mystery Depot
 * for Offer Box
 * for Reward (such as from Contracts, Achievements, Mystery Boxes, Offer Boxes)
 * for Gift

Cars (Wagons)
Each car has two required and two optional pieces of data. For each piece of data listed below, replace  with a digit, starting with 1 and ending with the number of different cars in the set (maximum of 12).
 * car# (required) - The name of the article page for the car.
 * car#cost (optional) - Enter the name of the cost resource when the wagon can be bought for:
 * Gems -
 * Gold -
 * Dual -
 * car#src (optional) - If awarded, the source of the award. Accepts any combination of the following codes:
 * for Mystery Depot
 * for Offer Box
 * for Reward (such as from Contracts, Achievements, Mystery Boxes, Offer Boxes)
 * for Gift
 * car#type (required) - Enter the first four letters of the cargo of the car:
 * pass - Passenger Wagon
 * mail - Mail Wagon
 * comb - For Combined cars that carry both passengers and mail
 * (Freight) - Enter ONLY the first 4 letters of the material carried by the wagon (ie. wood, marb, tita, sili, etc..)
 * spec - For Special Wagons carrying XP

Wide car
If the set has one or two wide cars (usually a Connect/long Tail), the template will accept "wide" and "wide2" parameters. Use the following parameters in the same way as the Cars parameters above.
 * wide (optional)
 * widecost (optional)
 * widesrc (optional)
 * widetype (optional)
 * wide2 (optional)
 * wide2cost (optional)
 * wide2src (optional)
 * wide2type (optional)