Template:Trams by route/doc
Jump to navigation
Jump to search
Template for categories named "Trams on route/line N [in City]". Creates a navbox and adds appropriate categories.
Parameter | Description | Type | Status | |
---|---|---|---|---|
1 | 1 | Route or line number | Number | required |
2 | 2 | City or tram system name | String | optional |
3 | 3 | Non-empty to add "Category:Tram route/line N in City" | Boolean | optional |
image | image | Filename of an example image (to be displayed in forced width of 120 px) | String | optional |
Variant usages:
- {{Trams by route|N}} – for categories named "Trams on route N"
- Category will be placed into Trams by route number and Number N on trams
- Example: {{Trams by route|104}} at Trams on route 104
- Category will be placed into Trams by route number and Number N on trams
- {{Trams by route|N|City}} – for categories named "Trams on route N in City"
- Category will be placed into Trams on route N, Trams in City by route and, if parameter 3 is set to a non-empty value, Tram route N in City
- Example: {{Trams by route|34|Moscow|+}} at Trams on route 34 in Moscow
- Category will be placed into Trams on route N, Trams in City by route and, if parameter 3 is set to a non-empty value, Tram route N in City
- {{Trams by line|N|City}} – for categories named "Trams on line N in City"
- Category will be placed into Trams on line N, Trams in City by line and, if parameter 3 is set to a non-empty value, Tram line N in City
- Example: {{Trams by line|13|Göteborg}} at Trams on line 13 in Göteborg
- Category will be placed into Trams on line N, Trams in City by line and, if parameter 3 is set to a non-empty value, Tram line N in City
- additional parameter image, optional
By intention, cat only be used with numeric route (line) numbers.