Difference between revisions of "Template:JRE Station Numbering"
Jump to navigation
Jump to search
imported>Chiro08 (Margin) |
imported>Chiro08 |
||
| Line 1: | Line 1: | ||
<includeonly>{{#if: {{{seq|}}}<!--multiple lines-->|<span style="position:absolute; vertical-align:middle; top:{{#expr: {{{size|30}}} * 2 / 5}}px; left:{{#expr: {{{size|30}}} / 10 + {{{size|30}}} * 1.1 * ({{{seq|1}}} - 1)}}px; 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; background:White; text-align:center; font-weight:Bold;"><span style="width:{{#expr: {{{size|30}}} * 4 / 5}}px; height:{{#expr: {{{size|30}}} * 3 / 10}}px; text-align:center; line-height:{{#expr: {{{size|30}}} * 3 / 10}}px; font-size:{{#expr: {{{size|30}}} * 3 / 10}}px; color:black; position:absolute; top:{{#expr: {{{size|30}}} / 50}}px; left:0;">{{{name|{{{1}}}}}}</span><span style="width:{{#expr: {{{size|30}}} * 4 / 5}}px; height:{{#expr: {{{size|30}}} * 12 / 25}}px;; text-align:center; line-height:{{#expr: {{{size|30}}} * 12 / 25}}px; font-size:{{#expr: {{{size|30}}} * 12 / 25}}px; color:black; position:absolute; bottom:{{#expr: {{{size|30}}} / 50}}px; left:0;">{{{number|{{{2}}}}}}</span></span> | <includeonly>{{#if: {{{seq|}}}<!--multiple lines-->|<span style="position:absolute; vertical-align:middle; top:{{#expr: {{{size|30}}} * 2 / 5}}px; left:{{#expr: {{{size|30}}} / 10 + {{{size|30}}} * 1.1 * ({{{seq|1}}} - 1)}}px; 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; background:White; text-align:center; font-weight:Bold;"><span style="width:{{#expr: {{{size|30}}} * 4 / 5}}px; height:{{#expr: {{{size|30}}} * 3 / 10}}px; text-align:center; line-height:{{#expr: {{{size|30}}} * 3 / 10}}px; font-size:{{#expr: {{{size|30}}} * 3 / 10}}px; color:black; position:absolute; top:{{#expr: {{{size|30}}} / 50}}px; left:0;">{{{name|{{{1}}}}}}</span><span style="width:{{#expr: {{{size|30}}} * 4 / 5}}px; height:{{#expr: {{{size|30}}} * 12 / 25}}px;; text-align:center; line-height:{{#expr: {{{size|30}}} * 12 / 25}}px; font-size:{{#expr: {{{size|30}}} * 12 / 25}}px; color:black; position:absolute; bottom:{{#expr: {{{size|30}}} / 50}}px; left:0;">{{{number|{{{2}}}}}}</span></span> | ||
| − | |{{#if: {{{tlc|}}}<!--with a three-letter code-->|<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;"><span 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}}}</span><span style="position:absolute; vertical-align:middle; top:{{#expr: {{{size|30}}} * 2 / 5}}px; left:{{#expr: {{{size|30}}} / 10 }}px; 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; background:White; text-align:center; font-weight:Bold;"><span style="width:{{#expr: {{{size|30}}} * 4 / 5}}px; height:{{#expr: {{{size|30}}} * 3 / 10}}px; text-align:center; line-height:{{#expr: {{{size|30}}} * 3 / 10}}px; font-size:{{#expr: {{{size|30}}} * 3 / 10}}px; color:black; position:absolute; top:{{#expr: {{{size|30}}} / 50}}px; left:0;">{{{name|{{{1}}}}}}</span><span style="width:{{#expr: {{{size|30}}} * 4 / 5}}px; height:{{#expr: {{{size|30}}} * 12 / 25}}px;; text-align:center; line-height:{{#expr: {{{size|30}}} * 12 / 25}}px; font-size:{{#expr: {{{size|30}}} * 12 / 25}}px; color:black; position:absolute; bottom:{{#expr: {{{size|30}}} / 50}}px; left:0;">{{{number|{{{2}}}}}}</span></span></div>|<!--a single line, without a three letter code--><span style="display:inline-block; position:relative; vertical-align:middle; border:{{#expr: {{{size|30}}} / 10}}px solid {{{color|{{Ja-rail-color|{{{name|{{{1}}}}}}}}}}}; border-radius:10%; margin:1px; height:{{#expr: {{{size|30}}} * 4 / 5}}px; width:{{#expr: {{{size|30}}} * 4 / 5}}px; background:White; text-align:center; font-weight:Bold;"><span style="width:{{#expr: {{{size|30}}} * 4 / 5}}px; height:{{#expr: {{{size|30}}} * 3 / 10}}px; text-align:center; line-height:{{#expr: {{{size|30}}} * 3 / 10}}px; font-size:{{#expr: {{{size|30}}} * 3 / 10}}px; color:black; position:absolute; top:{{#expr: {{{size|30}}} / 50}}px; left:0;">{{{name|{{{1}}}}}}</span><span style="width:{{#expr: {{{size|30}}} * 4 / 5}}px; height:{{#expr: {{{size|30}}} * 12 / 25}}px;; text-align:center; line-height:{{#expr: {{{size|30}}} * 12 / 25}}px; font-size:{{#expr: {{{size|30}}} * 12 / 25}}px; color:black; position:absolute; bottom:{{#expr: {{{size|30}}} / 50}}px; left:0;">{{{number|{{{2}}}}}}</span></span>}}}}</includeonly><noinclude>{{doc}}</noinclude> | + | |{{#if: {{{tlc|}}}<!--with a three-letter code-->|<div style="display:inline-block; vertical-align:middle; position:relative; border-radius:{{#expr: {{{size|30}}} / 5}}px; margin:1px; 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;"><span 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}}}</span><span style="position:absolute; vertical-align:middle; top:{{#expr: {{{size|30}}} * 2 / 5}}px; left:{{#expr: {{{size|30}}} / 10 }}px; 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; background:White; text-align:center; font-weight:Bold;"><span style="width:{{#expr: {{{size|30}}} * 4 / 5}}px; height:{{#expr: {{{size|30}}} * 3 / 10}}px; text-align:center; line-height:{{#expr: {{{size|30}}} * 3 / 10}}px; font-size:{{#expr: {{{size|30}}} * 3 / 10}}px; color:black; position:absolute; top:{{#expr: {{{size|30}}} / 50}}px; left:0;">{{{name|{{{1}}}}}}</span><span style="width:{{#expr: {{{size|30}}} * 4 / 5}}px; height:{{#expr: {{{size|30}}} * 12 / 25}}px;; text-align:center; line-height:{{#expr: {{{size|30}}} * 12 / 25}}px; font-size:{{#expr: {{{size|30}}} * 12 / 25}}px; color:black; position:absolute; bottom:{{#expr: {{{size|30}}} / 50}}px; left:0;">{{{number|{{{2}}}}}}</span></span></div>|<!--a single line, without a three letter code--><span style="display:inline-block; position:relative; vertical-align:middle; border:{{#expr: {{{size|30}}} / 10}}px solid {{{color|{{Ja-rail-color|{{{name|{{{1}}}}}}}}}}}; border-radius:10%; margin:1px; height:{{#expr: {{{size|30}}} * 4 / 5}}px; width:{{#expr: {{{size|30}}} * 4 / 5}}px; background:White; text-align:center; font-weight:Bold;"><span style="width:{{#expr: {{{size|30}}} * 4 / 5}}px; height:{{#expr: {{{size|30}}} * 3 / 10}}px; text-align:center; line-height:{{#expr: {{{size|30}}} * 3 / 10}}px; font-size:{{#expr: {{{size|30}}} * 3 / 10}}px; color:black; position:absolute; top:{{#expr: {{{size|30}}} / 50}}px; left:0;">{{{name|{{{1}}}}}}</span><span style="width:{{#expr: {{{size|30}}} * 4 / 5}}px; height:{{#expr: {{{size|30}}} * 12 / 25}}px;; text-align:center; line-height:{{#expr: {{{size|30}}} * 12 / 25}}px; font-size:{{#expr: {{{size|30}}} * 12 / 25}}px; color:black; position:absolute; bottom:{{#expr: {{{size|30}}} / 50}}px; left:0;">{{{number|{{{2}}}}}}</span></span>}}}}</includeonly><noinclude>{{doc}}</noinclude> |
Latest revision as of 07:19, 12 March 2018
{{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}}
UENJU02JJ01
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}}
JB02
size (px)
Default: 30(px)
Examples
{{JRSN|name=JB|number=02|size=50}}
JB02
{{JRSN|JB|19|tlc=AKB|size=50}}
AKBJB19
{{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}}
UENJU02JJ01
[[Nishi-Funabashi Station|{{JRSN|JM|10|size=40}}]]
| Line | Code | Example |
|---|---|---|
| Jr Tokaido | {{JRSN|JT}} |
JT01 |
| Jr yOkosuka | {{JRSN|JO}} |
JO01 |
| Jr Keihin-tohoku | {{JRSN|JK}} |
JK01 |
| Jr yokoHama | {{JRSN|JH}} |
JH13 |
| Jr Nambu | {{JRSN|JN}} |
JN01 |
| Jr tsurumI | {{JRSN|JI}} |
JI01 |
| Jr Yamanote | {{JRSN|JY}} |
JY01 |
| Jr Chuo | {{JRSN|JC}} |
JC01 |
| Chuo Outer | {{JRSN|CO}} |
CO33 |
| Jr soBu | {{JRSN|JB}} |
JB01 |
| Jr Utsunomiya | {{JRSN|JU}} |
JU01 |
| Jr sAikyo | {{JRSN|JA}} |
JA08 |
| Jr Joban | {{JRSN|JJ}} |
JJ01 |
| jr Joban Local | {{JRSN|JL}} |
JL19 |
| Jr kEiyo | {{JRSN|JE}} |
JE01 |
| Jr Musashino | {{JRSN|JM}} |
JM10 |
| Jr Shonan-shinjuku | {{JRSN|JS}} |
JS06 |
| tokyo MOnorail | {{JRSN|MO}} |
MO01 |
See also
| The above documentation is transcluded from Template:JRE Station Numbering/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |