Difference between revisions of "Template:JRE Station Numbering"

From blackwiki
Jump to navigation Jump to search
imported>Chiro08
imported>WOSlinker
(tag fix)
Line 1: Line 1:
<includeonly>{{#if: {{{seq|}}}|<div style="border:{{#expr: {{{size|30}}} / 10}}px solid {{{color|{{Ja-rail-color|{{{name|{{{1}}}}}}}}}}}; border-radius:10%; height:{{#expr: {{{size|30}}} * 4 / 5}}px; width:{{#expr: {{{size|30}}} * 4 / 5}}px; position:absolute; top:{{#expr: {{{size|30}}} * 2 / 5}}px; left:{{#expr: {{{size|30}}} / 10 + {{{size|30}}} * 1.1 * ({{{seq|1}}} - 1)}}px; line-height:125%; background:White; text-align:center; font-weight:Bold; font-size:{{#expr: {{{size|30}}} * 3 / 10}}px;"><span style="color:black">{{{name|{{{1}}}}}}</span><br><span style="font-size:160%; color:black">{{{number|{{{2}}}}}}</span></div>|{{#if: {{{tlc|}}} | <div style="display:inline-block; vertical-align:middle; position:relative; border-radius:{{#expr: {{{size|30}}} / 5}}px; height:{{#expr: {{{size|30}}} * 3 / 2}}px; width:{{#expr: {{{size|30}}} * 6 / 5}}px; line-height:100%; background:black; text-align:center; font-weight:Bold; font-size:{{#expr: {{{size|30}}} * 3 / 10}}px><div style="color:white; font-size:110%; width: {{{size|30}}}px; position:absolute; top:{{#expr: {{{size|30}}} / 20}}px; left:{{#expr: {{{size|30}}} / 10}}px">{{{tlc}}}</div><div style="border:{{#expr: {{{size|30}}} / 10}}px solid {{{color|{{Ja-rail-color|{{{name|{{{1}}}}}}}}}}}; border-radius:10%; height:{{#expr: {{{size|30}}} * 4 / 5}}px; width:{{#expr: {{{size|30}}} * 4 / 5}}px; position:absolute; top:{{#expr: {{{size|30}}} * 2 / 5}}px; left:{{#expr: {{{size|30}}} / 10}}px; line-height:125%; background:White; text-align:center; font-weight:Bold; font-size:{{#expr: {{{size|30}}} * 3 / 10}}px;"><span style="color:black">{{{name|{{{1}}}}}}</span><br><span style="font-size:160%; color:black">{{{number|{{{2}}}}}}</span></div></div>|<div style="display:inline-block; vertical-align:middle; border:{{#expr: {{{size|30}}} / 10}}px solid {{{color|{{Ja-rail-color|{{{name|{{{1}}}}}}}}}}}; border-radius:10%; height:{{#expr: {{{size|30}}} * 4 / 5}}px; width:{{#expr: {{{size|30}}} * 4 / 5}}px; line-height:125%; background:White; text-align:center; font-weight:Bold; font-size:{{#expr: {{{size|30}}} * 3 / 10}}px;"><span style="color:black">{{{name|{{{1}}}}}}</span><br><span style="font-size:160%; color:black">{{{number|{{{2}}}}}}</span></div>}}}}</includeonly><noinclude>{{doc}}</noinclude>
+
<includeonly>{{#if: {{{seq|}}}|<div style="border:{{#expr: {{{size|30}}} / 10}}px solid {{{color|{{Ja-rail-color|{{{name|{{{1}}}}}}}}}}}; border-radius:10%; height:{{#expr: {{{size|30}}} * 4 / 5}}px; width:{{#expr: {{{size|30}}} * 4 / 5}}px; position:absolute; top:{{#expr: {{{size|30}}} * 2 / 5}}px; left:{{#expr: {{{size|30}}} / 10 + {{{size|30}}} * 1.1 * ({{{seq|1}}} - 1)}}px; line-height:125%; background:White; text-align:center; font-weight:Bold; font-size:{{#expr: {{{size|30}}} * 3 / 10}}px;"><span style="color:black">{{{name|{{{1}}}}}}</span><br><span style="font-size:160%; color:black">{{{number|{{{2}}}}}}</span></div>|{{#if: {{{tlc|}}} | <div style="display:inline-block; vertical-align:middle; position:relative; border-radius:{{#expr: {{{size|30}}} / 5}}px; height:{{#expr: {{{size|30}}} * 3 / 2}}px; width:{{#expr: {{{size|30}}} * 6 / 5}}px; line-height:100%; background:black; text-align:center; font-weight:Bold; font-size:{{#expr: {{{size|30}}} * 3 / 10}}px;"><div style="color:white; font-size:110%; width: {{{size|30}}}px; position:absolute; top:{{#expr: {{{size|30}}} / 20}}px; left:{{#expr: {{{size|30}}} / 10}}px">{{{tlc}}}</div><div style="border:{{#expr: {{{size|30}}} / 10}}px solid {{{color|{{Ja-rail-color|{{{name|{{{1}}}}}}}}}}}; border-radius:10%; height:{{#expr: {{{size|30}}} * 4 / 5}}px; width:{{#expr: {{{size|30}}} * 4 / 5}}px; position:absolute; top:{{#expr: {{{size|30}}} * 2 / 5}}px; left:{{#expr: {{{size|30}}} / 10}}px; line-height:125%; background:White; text-align:center; font-weight:Bold; font-size:{{#expr: {{{size|30}}} * 3 / 10}}px;"><span style="color:black">{{{name|{{{1}}}}}}</span><br><span style="font-size:160%; color:black">{{{number|{{{2}}}}}}</span></div></div>|<div style="display:inline-block; vertical-align:middle; border:{{#expr: {{{size|30}}} / 10}}px solid {{{color|{{Ja-rail-color|{{{name|{{{1}}}}}}}}}}}; border-radius:10%; height:{{#expr: {{{size|30}}} * 4 / 5}}px; width:{{#expr: {{{size|30}}} * 4 / 5}}px; line-height:125%; background:White; text-align:center; font-weight:Bold; font-size:{{#expr: {{{size|30}}} * 3 / 10}}px;"><span style="color:black">{{{name|{{{1}}}}}}</span><br><span style="font-size:160%; color:black">{{{number|{{{2}}}}}}</span></div>}}}}</includeonly><noinclude>{{doc}}</noinclude>

Revision as of 20:37, 15 December 2017

Template documentation[view] [edit] [history] [purge]

{{JRE Station Numbering|name=|number=|seq=|tlc=|size=(|color=)}}

Shortcut {{JRSN|(name)|(number)|seq=|tlc=|size=(|color=)}}

Parameters

name

JT, JO, JK, JH, JN, JI, JY, JC, CO, JB, JU, JA, JJ, JL, JE, JM, JS, or MO

number

01, 02, ...

seq

Input the number of order. Use it only when the {{JRE Station Numbering Header}} template is used.

{{JRSNH|span=2|tlc=UEN|size=50}}{{JRSN|seq=1|name=JU|number=02|size=50}}{{JRSN|seq=2|name=JJ|number=01|size=50}}{{JRSNF}}
UEN
JU
02
JJ
01

tlc

Input the three-letter code. When it is not used, the template shows line name and station number only.

{{JRSN|JB|02|size=50}}
JB
02

size (px)

Default: 30(px)

Examples

{{JRSN|name=JB|number=02|size=50}}
JB
02


{{JRSN|JB|19|tlc=AKB|size=50}}
AKB
JB
19


{{JRSNH|span=2|tlc=UEN|size=50}}{{JRSN|seq=1|name=JU|number=02|size=50}}{{JRSN|seq=2|name=JJ|number=01|size=50}}{{JRSNF}}
UEN
JU
02
JJ
01


[[Nishi-Funabashi Station|{{JRSN|JM|10|size=40}}]]

Line Code Example
Jr Tokaido {{JRSN|JT}}
JT
01
Jr yOkosuka {{JRSN|JO}}
JO
01
Jr Keihin-tohoku {{JRSN|JK}}
JK
01
Jr yokoHama {{JRSN|JH}}
JH
13
Jr Nambu {{JRSN|JN}}
JN
01
Jr tsurumI {{JRSN|JI}}
JI
01
Jr Yamanote {{JRSN|JY}}
JY
01
Jr Chuo {{JRSN|JC}}
JC
01
Chuo Outer {{JRSN|CO}}
CO
33
Jr soBu {{JRSN|JB}}
JB
01
Jr Utsunomiya {{JRSN|JU}}
JU
01
Jr sAikyo {{JRSN|JA}}
JA
08
Jr Joban {{JRSN|JJ}}
JJ
01
jr Joban Local {{JRSN|JL}}
JL
19
Jr kEiyo {{JRSN|JE}}
JE
01
Jr Musashino {{JRSN|JM}}
JM
10
Jr Shonan-shinjuku {{JRSN|JS}}
JS
06
tokyo MOnorail {{JRSN|MO}}
MO
01

See also

Template:SNList