Difference between revisions of "Template:J-route/doc"

From blackwiki
Jump to navigation Jump to search
imported>Vanisaac
m (→‎Example: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
imported>Jumpytoo
m
 
(2 intermediate revisions by the same user not shown)
Line 32: Line 32:
  
 
}}</includeonly>
 
}}</includeonly>
 +
<templatedata>
 +
{
 +
"params": {
 +
"col": {
 +
"label": "Color",
 +
"description": "Input the background color in form of HTML code (such as #FFFFFF (this means white)) or color code.",
 +
"example": "#FFFFFF",
 +
"type": "string"
 +
},
 +
"f": {
 +
"label": "Text Color Flip",
 +
"description": "If the background is too dark for recognizing the route name, input w to make route name white.",
 +
"example": "w",
 +
"type": "string"
 +
},
 +
"route": {
 +
"label": "Route",
 +
"description": "Input the route name.",
 +
"type": "content",
 +
"required": true
 +
}
 +
},
 +
"description": "This is for showing the railway routes serving the station. Use [[Template:j-railservice start]] and [[Template:j-rserv]] together to show railway routes."
 +
}
 +
</templatedata>

Latest revision as of 23:56, 21 September 2020

This is for showing the railway routes serving the station. Use Template:j-railservice start and Template:j-rserv together to show railway routes.

Parameters

route

Input the route name.

col

Input the background color in form of HTML code (such as #FFFFFF (this means white)) or color code.

f

If the background is too dark for recognizing route name, input w to make route name white.

Example

{{j-railservice start}}
{{j-route|route=Tokyu Toyoko Line|col=#FF0033|f=w}}
{{j-rserv|previous={{ja-stalink|Myōrenji}}|next={{ja-stalink|Ōkurayama||Kanagawa}}|service=Local}}
{{j-rserv|previous={{ja-stalink|Yokohama}}|next={{ja-stalink|Tsunashima}}|service=Express}}
{{j-rserv|previous=Yokohama|next={{ja-stalink|Hiyoshi||Kanagawa}}|service=Commuter Ltd. Express}}
{{j-rserv|previous=Yokohama|next={{ja-stalink|Musashi-Kosugi}}|service=Ltd. Express}}
{{end box}}
« Service »
Tokyu Toyoko Line
Template:STN Local Template:STN
Template:STN Express Template:STN
Yokohama Commuter Ltd. Express Template:STN
Yokohama Ltd. Express Template:STN
  1. REDIRECT Template:S-end


This is for showing the railway routes serving the station. Use [[Template:j-railservice start]] and [[Template:j-rserv]] together to show railway routes.

Template parameters

ParameterDescriptionTypeStatus
Colorcol

Input the background color in form of HTML code (such as #FFFFFF (this means white)) or color code.

Example
#FFFFFF
Stringoptional
Text Color Flipf

If the background is too dark for recognizing the route name, input w to make route name white.

Example
w
Stringoptional
Routeroute

Input the route name.

Contentrequired