Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Trip: Difference between revisions

Template page
No edit summary
Tag: Reverted
No edit summary
 
(17 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
{{#template_params:car (label=Car)|dest (label=Destination)|pax (label=Passenger Count)|depart (label=Departure Time)|crew (label=Crew)}}
{{#template_params:cars (label=Cars in consist)|dest (label=Destination)|revenue (label=Revenue trip?)|pax (label=Passenger count)|depart (label=Departure time)|crew (label=Crew)|questionable (label=Data is questionable)|veracity (label=Veracity of data)|remarks (label=Remarks)}}
{{#cargo_declare:_table=trips|car=Page|dest=String (allowed values=Pantano/Birds Ldg Rd,Gum Grove,Yard Limits)|pax=Integer|depart=Datetime|crew=Text}}
{{#cargo_declare:_table=trips|cars=List (;) of Page|dest=String (allowed values=Molena,Birds Landing,Pantano,Gum Grove,Diablo Vista)|distance=Float|revenue=Boolean|pax=Integer|depart=String|crew=List (,) of Integer|questionable=Boolean|veracity=String (allowed values=Fake,Dubious,Verified)|remarks=Text}}
</noinclude><includeonly>{{#cargo_store:_table=trips}}
</noinclude><includeonly>{{#cargo_store:_table=trips
  |revenue={{{revenue|true}}}
  |cars={{#invoke:Realpath|realpath_list|{{{cars}}} }}
  |distance={{{distance| {{#switch: {{{dest}}}
    | Molena        = 12.11212
    | Birds Landing = 10.71034
    | Pantano      = 9.97152
    | Gum Grove    = 8.0084
    | Diablo Vista  = 1.33
    | 0
  }} }}}
}}
{{#template_display:_format=table}}</includeonly>
{{#template_display:_format=table}}</includeonly>

Latest revision as of 02:15, 6 October 2026

This is the "Trip" template.

It should be called in the following format:

{{Trip
|cars=
|dest=
|revenue=
|pax=
|depart=
|crew=
|questionable=
|veracity=
|remarks=
}}

Edit the page to see the template text.

This template defines the table "trips". View table.