Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Infobox station PI: Difference between revisions

Template page
No edit summary
Tags: Reverted 2017 source edit
Undo revision 4002 by 1F616EMO (talk)
Tag: Undo
 
(19 intermediate revisions by the same user not shown)
Line 1: Line 1:
<TemplateStyles src="Infobox station DI/styles.css" /><infobox type="station">  
<TemplateStyles src="Infobox station PI/styles.css" /><infobox type="station">
    <!-- Header part -->
    <title source="name">
        <format>
            <div style="display:inline" class="fn org" {{#if:{{{name_lang|}}}|lang="{{{name_lang}}}" }}>
                {{#if:{{{name|}}}|{{{name}}}|{{PAGENAMEBASE}}}}</div>
        </format>
    </title>
    <title source="native_name">
        <format>
            <div class="nickname" style="display:inline" {{#if:{{{native_name_lang|}}}|lang="{{{native_name_lang}}}"
                {{#switch:{{lc:{{{native_name_lang}}}}}|zh|zh-hans|zh-hans-cn|zh-hant|zh-hant-tw|zh-hant-hk|zh-cn|zh-hk|zh-mo|zh-tw|zh-sg|ko|ko-kr|ko-kp|ko-cn|ja=style="font-weight: normal"
                }}}}>{{{native_name}}}</div>
        </format>
    </title>
    <title source="type"></title>
    <image source="image">
        <alt source="alt"></alt>
        <caption source="caption"></caption>
    </image>
     <group>
     <group>
         <title source="name">  
         <data source="mlanguage">
             <format><div style="display:inline" class="fn org" {{#if:{{{name_lang|}}}|lang="{{{name_lang}}}" }}> {{#if:{{{name|}}}|{{{name}}}|{{PAGENAMEBASE}}}}</div></format>  
             <format>{{Infobox in Portable Infobox|{{{mlanguage}}}}}</format>
         </title>
         </data>
        <title source="native_name">
            <format>
                <div class="nickname" style="display:inline" {{#if:{{{native_name_lang|}}}|lang="{{{native_name_lang}}}"
                    {{#switch:{{lc:{{{native_name_lang}}}}}|zh|zh-hans|zh-hans-cn|zh-hant|zh-hant-tw|zh-hant-hk|zh-cn|zh-hk|zh-mo|zh-tw|zh-sg|ko|ko-kr|ko-kp|ko-cn|ja=style="font-weight: normal"
                    }}}}>{{{native_name}}}</div>
            </format>
        </title>
        <title source="type"></title>
        <image source="image">
            <alt source="alt"></alt>
            <caption source="caption"></caption>
        </image>
     </group>
     </group>
     <group>  
     <group>  
Line 21: Line 28:
         <data source="other_name">  
         <data source="other_name">  
             <label>Other names</label>  
             <label>Other names</label>  
         </data>  
         </data>
         <data source="address">  
         <data source="address">
             <label>Location</label>  
             <label>Address</label>
            <format>{{Br separated entries|{{{address|}}}|{{{borough|}}}|{{{country|}}}}}</format>  
        </data>
         </data>  
        <data source="borough">
            <label>Area</label>
        </data>
        <group show="incomplete">
            <data source="location">
                <label>Location</label>
                <default>{{Br separated entries|{{{address|}}}|{{{borough|}}}|{{{country|}}}}}</default>
            </data>
            <data source="address"></data>
            <data source="borough"></data>
            <data source="country"></data>
         </group>
         <data source="coordinates">  
         <data source="coordinates">  
             <label>Coordinates</label>  
             <label>Coordinates</label>  
Line 137: Line 155:
     <!-- Key Dates -->  
     <!-- Key Dates -->  
     <!-- Passengers -->  
     <!-- Passengers -->  
     <group>  
     <group collapsed="{{#switch:{{{services_collapsible|}}}|1|yes|collapsible=closed|#default=}}">  
         <header>Services</header>  
         <header>{{{services_header|Services}}}</header>  
         <data source="services">
         <data source="services">
             <format>{{#if:{{#invoke:String|match|1={{{services|}}}|2=class="wikitable adjacent-stations|plain=true|nomatch=}}|{{{services|}}}|{{#invoke:string|replace|1={{S-rail-start|noclear=yes}}{{{services}}}{{S-end}}|2=white%-space: *nowrap([^"]*"{{!}})|3=%1|plain=false}}}}</format>
             <format>{{#if:{{#invoke:String|match|1={{{services|}}}|2=class="wikitable adjacent-stations|plain=true|nomatch=}}|{{{services|}}}|{{#invoke:string|replace|1={{S-rail-start|noclear=yes}}{{{services}}}{{S-end}}|2=white%-space: *nowrap([^"]*"{{!}})|3=%1|plain=false}}}}</format>
        </data>
    </group>
    <group collapsed="{{#switch:{{{other_services_collapsible|}}}|1|yes|collapsible=closed|#default=}}">
        <header>{{{other_services_header|Other services}}}</header>
        <data source="services">
            <format>{{#if:{{#invoke:String|match|1={{{other_services|}}}|2=class="wikitable adjacent-stations|plain=true|nomatch=}}|{{{other_services|}}}|{{#invoke:string|replace|1={{S-rail-start|noclear=yes}}{{{other_services}}}{{S-end}}|2=white%-space: *nowrap([^"]*"{{!}})|3=%1|plain=false}}}}</format>
        </data>
    </group>
    <group collapsed="{{#switch:{{{other_services2_collapsible|}}}|1|yes|collapsible=closed|#default=}}">
        <header>{{{other_services2_header|Other services}}}</header>
        <data source="services">
            <format>{{#if:{{#invoke:String|match|1={{{other_services2|}}}|2=class="wikitable adjacent-stations|plain=true|nomatch=}}|{{{other_services2|}}}|{{#invoke:string|replace|1={{S-rail-start|noclear=yes}}{{{other_services2}}}{{S-end}}|2=white%-space: *nowrap([^"]*"{{!}})|3=%1|plain=false}}}}</format>
         </data>
         </data>
     </group>  
     </group>  
</infobox>{{ns0|[[Category:Stations]]{{#if:{{{county|}}}|{{#if:{{{borough|}}}|[[Category:Stations in {{{borough|}}}, {{{county|}}}]]}}[[Category:Stations in {{{county|}}}]]}}}}
</infobox>{{ns0|[[Category:Stations]]}}<noinclude>{{doc}}</noinclude>

Latest revision as of 07:55, 9 November 2024