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
Tag: 2017 source edit
Undo revision 4002 by 1F616EMO (talk)
Tag: Undo
 
(15 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 -->  
     <!-- Header part -->  
     <title source="name">  
     <title source="name">  
Line 18: Line 18:
         <alt source="alt"></alt>  
         <alt source="alt"></alt>  
         <caption source="caption"></caption>  
         <caption source="caption"></caption>  
     </image>  
     </image>
    <group>
        <data source="mlanguage">
            <format>{{Infobox in Portable Infobox|{{{mlanguage}}}}}</format>
        </data>
    </group>
     <group>  
     <group>  
         <header>General Information</header>  
         <header>General Information</header>  
Line 31: Line 36:
         </data>
         </data>
         <group show="incomplete">
         <group show="incomplete">
             <data source="address">  
             <data source="location">  
                 <label>Location</label>
                 <label>Location</label>
                 <format>{{Br separated entries|{{{address|}}}|{{{borough|}}}|{{{country|}}}}}</format>  
                 <default>{{Br separated entries|{{{address|}}}|{{{borough|}}}|{{{country|}}}}}</default>  
             </data>
             </data>
            <data source="address"></data>
            <data source="borough"></data>
            <data source="country"></data>
         </group>
         </group>
         <data source="coordinates">  
         <data source="coordinates">  
Line 147: 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|}}}]]}}}}<noinclude>{{doc}}</noinclude>
</infobox>{{ns0|[[Category:Stations]]}}<noinclude>{{doc}}</noinclude>

Latest revision as of 07:55, 9 November 2024