Template:Trip: Difference between revisions
Template page
More actions
No edit summary |
No edit summary |
||
| (15 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
{{#template_params: | {{#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| | {{#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.