Difference between revisions of "Template:Ja-rail-linem"

From blackwiki
Jump to navigation Jump to search
imported>Primefac
m (Protected "Template:Ja-rail-linem": semi-protecting highly-visible templates in response to recent template-space vandalism ([Edit=Require autoconfirmed or confirmed access] (indefinite) [Move=Require autoconfirmed or confirmed access]...)
imported>Clover Tigers
(span parameters)
 
Line 7: Line 7:
 
|2=width={{ #if: {{{lwidth|}}}|{{{lwidth}}}|145}}}} style="{{ #switch: {{{first}}}|1
 
|2=width={{ #if: {{{lwidth|}}}|{{{lwidth}}}|145}}}} style="{{ #switch: {{{first}}}|1
 
|2=border-top:solid 1px gray;|}}border-bottom:solid 1px gray;"|{{ #if:{{{span|}}}|<span style="color:{{ #if: {{{linecol|}}}|{{{linecol}}}|white}}">{{ #ifeq: {{{2}}}|m|'''○'''|■}}</span>&nbsp;{{ #if: {{{nolinkindex|}}}|{{{nolinkindex}}}|{{ #if: {{{lineindex|}}}|[[{{{linename}}}|{{{lineindex}}}]]|[[{{{linename}}}]]|}}}}|{{ #if: {{{next|}}}|{{{dir}}} <small>({{{next}}})</small>|{{{dir}}}}}}}
 
|2=border-top:solid 1px gray;|}}border-bottom:solid 1px gray;"|{{ #if:{{{span|}}}|<span style="color:{{ #if: {{{linecol|}}}|{{{linecol}}}|white}}">{{ #ifeq: {{{2}}}|m|'''○'''|■}}</span>&nbsp;{{ #if: {{{nolinkindex|}}}|{{{nolinkindex}}}|{{ #if: {{{lineindex|}}}|[[{{{linename}}}|{{{lineindex}}}]]|[[{{{linename}}}]]|}}}}|{{ #if: {{{next|}}}|{{{dir}}} <small>({{{next}}})</small>|{{{dir}}}}}}}
|{{ #switch: {{{first}}}|1
+
{{ #if: {{{span|}}}|{{!}}|}} {{ #switch: {{{first}}}|1
 
|2=width={{ #if: {{{dwidth|}}}|{{{dwidth}}}|430}}}} {{ #if: {{{span|}}}|style="{{ #switch: {{{first}}}|1
 
|2=width={{ #if: {{{dwidth|}}}|{{{dwidth}}}|430}}}} {{ #if: {{{span|}}}|style="{{ #switch: {{{first}}}|1
|2=border-top:solid 1px gray;|}}border-bottom:solid 1px gray;"|}}|{{ #if: {{{span|}}}|{{#if:{{{nextstop|}}}|{{{dir}}} <small>({{{nextstop}}})</small>|{{{dir}}}}}|}}
+
|2=border-top:solid 1px gray;|}}border-bottom:solid 1px gray;"|}} {{ #if: {{{span|}}}|{{!}}|}} {{ #if: {{{span|}}}|{{#if:{{{nextstop|}}}|{{{dir}}} <small>({{{nextstop}}})</small>|{{{dir}}}}}|}}{{ #switch: {{{first}}}|3={{!}}}|}}</includeonly><noinclude>
{{ #switch: {{{first}}}|3={{!}}}|}}</includeonly><noinclude>
 
 
{{doc}}
 
{{doc}}
 
</noinclude>
 
</noinclude>

Latest revision as of 13:11, 5 January 2020

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

{{ja-rail-linem|pfn=|(Metro Indicating)|span=|linename=|lineindex=|linecol=|dir=|first=|pwidth=|lwidth=|dwidth=|nextstop=}}


This template is used for showing platform layout and in case the platform is used by multiple lines (if not, use Template:ja-rail-line.)

Parameters

pfn parameter

  • Input platform number in this parameter. If you are inputting second or later line using the platform, don't input any number in this parameter.

span parameter

  • Input the number of lines using this platform in this parameter if you are inputting first line using this platform.

Other parameters

See Template:ja-rail-line. Parameter names are different:

{{ja-rail-line}} {{ja-rail-linem}}
name linename
idx lineindex
nidx nolinkindex
col linecol
These below have no difference.
first
pwidth
lwidth
dwidth
dir
nextstop

Example

{{ja-rail-linem|pfn=1|span=2|first=2|linename=Yokosuka Line|linecol=deepblue
|dir=for {{ja-stalink|Zushi}} and {{ja-stalink|Kurihama}}|nextstop={{Ja-stalink|Ōfuna}}}}
{{ja-rail-linem|first=3|linename=Shonan Shinjuku Line|linecol=#E21F26|
dir=for Zushi}}


1  Yokosuka Line for Template:STN and Template:STN (Template:STN)
 Shonan Shinjuku Line for Zushi