Editing
Module:Adjacent stations/doc
(section)
From Thetacola Wiki
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== Type table (5) === {| class="wikitable" !Parameter !Type !Used in {{Tl|Adjacent stations}} !Description |- |<code>["title"]</code> |String |{{Yes}} |The name of the line type. In {{tl|Adjacent stations}}, this is displayed as normal-sized text below the line name in the middle cell; in {{tl|Rail color box}}, for some options this is displayed after the line name, separated from it by a spaced [[en dash]] (this is also used for the nonstop text). To avoid displaying a type name, set this to <code>""</code>. |- |<code>["short name"]</code> |String |{{No}} |Abbreviated line name used by {{tl|Rail color box}}. |- |<code>["icon"]</code> |String |{{No}} |Image used by {{tl|Rail icon}}. |- |<code>["icon format"]</code> |String |{{No}} |Icon type used by {{tl|Rail icon}}. If specified and not <code>"image"</code>, the value is passed to the function that implements {{tl|Rail color box}}. |- |<code>["color"]</code> |String |{{Yes}} |RGB hex triplet. Lines fall back to the <code>["_default"]</code> colour (if any) or the system's colour if they themselves do not have one; types fall back to the line's colour (if any), to the <code>["_default"]</code> colour (if any) or to the system's colour. This colour is used in the second and fourth columns of {{tl|Adjacent stations}}, and by {{tl|Rail color box}} and {{tl|Rail icon}} as the emphasised colour. By default, if a type and its line both have a colour, then the line's colour will be treated as the background colour (see next section) for the line name in the middle cell. This can be turned off by setting the type's background colour to <code>""</code> or <code>"transparent"</code>. |- |<code>["background color"]</code> |String |{{Yes}} |RGB hex triplet (three or six characters). This colour is optional and is only displayed behind the line name in the middle cell. The module adds transparency so that all text displayed over the background is legible. |- |<code>["border color"]</code> |String |{{No}} |RGB hex triplet used by {{tl|Rail color box}}. |- |<code>["text color"]</code> |String |{{No}} |RGB hex triplet used by {{tl|Rail color box}}. |- |<code>["left terminus"]</code> |String |{{Yes}} |The station which is usually the left terminus of the line. Overrides line terminus. If there are multiple stations by default, the value should be a table containing numbered values (e.g. <code>["left terminus"] = {"Chesham", "Amersham"}</code>). The key <code>["via"]</code> in that table can be used to append 'via' and the value's station link. |- |<code>["right terminus"]</code> |String |{{Yes}} |The station which is usually the right terminus of the line; behaves like <code>["left terminus"]</code>. |- |<code>["note-mid"]</code> |String |{{Yes}} |Default small text below line and type names. Overridden by {{para|note-mid}} in transclusion. |- |<code>["circular"]</code> |Boolean |{{Yes}} |If the value is <code>true</code> then the termini will display without 'toward'/'towards'. <!-- Types currently do not have these parameters. However, it could make sense to add them if the need arises. |- |<code>["oneway-left"]</code> |Boolean |{{Yes}} |If the value is <code>true</code> then 'One-way operation' will display instead of the left terminus. |- |<code>["oneway-right"]</code> |Boolean |{{Yes}} |Right counterpart of oneway-left. --> |}
Summary:
Please note that all contributions to Thetacola Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Project:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Page actions
Module
Discussion
Read
Edit source
History
Page actions
Module
Discussion
More
Tools
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Search
Tools
What links here
Related changes
Special pages
Page information