The District of Joban Difference between revisions of "Template:InfoBox station"

Difference between revisions of "Template:InfoBox station"

Template page
(Created page with "<div class="infobox"> {{#if:{{{nameSmall|}}}|<div class="infobox-title"><small>{{{nameSmall}}}</small></div>}} {{#if:{{{nameLarge|}}}|<div class="infobox-title">{{{nameLarge}}}</div>}} {{#if:{{{image|}}}|<div class="infobox-image">[[File:{{{image}}}|250px]]</div>}} {{#if:{{{imgdesc|}}}|<div class="infobox-imgdesc">{{{imgdesc}}}</div>}} {{#if:{{{generalCategory|}}}|<div class="infobox-category">{{{generalCategory}}}</div>}} <table> {{#if:{{{location|}}}|<tr> <th>Loca...")
 
Line 1: Line 1:
<includeonly>
<div class="infobox">
<div class="infobox">
{{#if:{{{nameSmall|}}}|<div class="infobox-title"><small>{{{nameSmall}}}</small></div>}}
{{#if:{{{name_small|}}}|<div class="infobox-title"><small>{{{name_small}}}</small></div>}}
{{#if:{{{nameLarge|}}}|<div class="infobox-title">{{{nameLarge}}}</div>}}
{{#if:{{{name_large|}}}|<div class="infobox-title">{{{name_large}}}</div>}}
{{#if:{{{image|}}}|<div class="infobox-image">[[File:{{{image}}}|250px]]</div>}}
{{#if:{{{image|}}}|<div class="infobox-image">[[File:{{{image}}}|250px]]</div>}}
{{#if:{{{imgdesc|}}}|<div class="infobox-imgdesc">{{{imgdesc}}}</div>}}
{{#if:{{{image_desc|}}}|<div class="infobox-imgdesc">{{{image_desc}}}</div>}}
{{#if:{{{name_category|}}}|<div class="infobox-category">{{{name_category}}}</div>}}
<table>
{{#if:{{{chin_trad|}}}|<tr>
    <th>Traditional Chinese</th>
    <td>{{{chin_trad}}}</td>
</tr>}}
{{#if:{{{chin_trad|}}}|<tr>
    <th>Simplified Chinese</th>
    <td>{{{chin_simp}}}</td>
</tr>}}


{{#if:{{{generalCategory|}}}|<div class="infobox-category">{{{generalCategory}}}</div>}}
{{#if:{{{Jyutping|}}}|<tr>
    <th>Jyutping</th>
    <td>{{{Jyutping}}}</td>
</tr>}}
</table>
 
{{#if:{{{general_category|}}}|<div class="infobox-category">{{{general_category}}}</div>}}
<table>
<table>
{{#if:{{{location|}}}|<tr>
{{#if:{{{location|}}}|<tr>
Line 34: Line 51:
     <th>Tracks</th>
     <th>Tracks</th>
     <td>{{{tracks}}}</td>
     <td>{{{tracks}}}</td>
</tr>}}
{{#if:{{{connections|}}}|<tr>
    <th>Connections</th>
    <td>{{{connections}}}</td>
</tr>}}
</table>
{{#if:{{{construction_category|}}}|<div class="infobox-category">{{{construction_category}}}</div>}}
<table>
{{#if:{{{structure_type|}}}|<tr>
    <th>Structure Type</th>
    <td>{{{structure_type}}}</td>
</tr>}}
{{#if:{{{platform_levels|}}}|<tr>
    <th>Platform Levels</th>
    <td>{{{platform_levels}}}</td>
</tr>}}
{{#if:{{{disabled_access|}}}|<tr>
    <th>Disabled Access</th>
    <td>{{{disabled_access}}}</td>
</tr>}}
</table>
{{#if:{{{other_category|}}}|<div class="infobox-category">{{{other_category}}}</div>}}
<table>
{{#if:{{{stn_code|}}}|<tr>
    <th>Station Code</th>
    <td>{{{stn_code}}}</td>
</tr>}}
</table>
{{#if:{{{history_category|}}}|<div class="infobox-category">{{{history_category}}}</div>}}
<table>
{{#if:{{{stn_opened|}}}|<tr>
    <th>Opened</th>
    <td>{{{stn_opened|}}}</td>
</tr>}}
{{#if:{{{stn_closed|}}}|<tr>
    <th>Closed</th>
    <td>{{{stn_closed|}}}</td>
</tr>}}
</tr>}}
</table>
</table>
</div>
</div>
</includeonly>


<noinclude>
<noinclude>
{{Infobox station
Infobox for stations, WIP.
|nameSmall = 中文
{{InfoBox station
|nameLarge = English
|name_small = 中文
|name_large = English
|image = joban_logo_transparent.png
|image_desc = Insert station photo
|general_category = General information
|location = Joban
|coords = 4984 -1053
|platforms = 14
|tracks = 14
|connections = Bus
|construction_category = Construction
|structure_type = At-Grade
|platform_levels = 2
|disabled_access = Yes
|other_category = Other information
|stn_code = ADM
|history_category = History
|stn_opened = Jan 3, 2003
}}
}}
</noinclude>
<noinclude>
==General Information (general_category)==
{|class="wikitable"
! ID
! Displayed Content
! Example
|-
|location
|Location
|A district/city/country
|-
|coords
|Coordinates
|X, Z
|-
|platforms
|Platforms
|Amount of Platforms
|-
|tracks
|Tracks
|Amount of tracks
|-
|connections
|Connections
|Other transport on that stations
|}
</noinclude>
</noinclude>

Revision as of 19:01, 13 April 2022


Infobox for stations, WIP.

中文
English
Joban logo transparent.png
Insert station photo
General information
Location Joban
Coordinates 4984 -1053
Platforms 14
Tracks 14
Connections Bus
Construction
Structure Type At-Grade
Platform Levels 2
Disabled Access Yes
Other information
Station Code ADM
History
Opened Jan 3, 2003





General Information (general_category)

ID Displayed Content Example
location Location A district/city/country
coords Coordinates X, Z
platforms Platforms Amount of Platforms
tracks Tracks Amount of tracks
connections Connections Other transport on that stations