Difference between revisions of "Template:Infobox motorway services"

From blackwiki
Jump to navigation Jump to search
imported>WOSlinker
(lat / long no longer used as per Wikipedia:Coordinates in infoboxes)
imported>Primefac
 
(One intermediate revision by one other user not shown)
Line 14: Line 14:
 
|image2= {{#if:{{{location_map|}}}| {{Location map | {{{location_map}}} | relief = {{{relief|}}} | coordinates = {{{coordinates|}}} | width = 290 }} }}
 
|image2= {{#if:{{{location_map|}}}| {{Location map | {{{location_map}}} | relief = {{{relief|}}} | coordinates = {{{coordinates|}}} | width = 290 }} }}
  
|header1= {{#if:{{{county|}}}{{{road|}}}{{{lat|}}}{{{coordinates|}}}{{{facilities|}}}{{{operator|}}}{{{previousoperator|}}}{{{previousnames|}}}{{{dateopened|}}}{{{fuelbrand|}}}{{{website|}}} | Information}}
+
|header1= {{#if:{{{native_name|}}}{{{county|}}}{{{road|}}}{{{lat|}}}{{{coordinates|}}}{{{facilities|}}}{{{operator|}}}{{{previousoperator|}}}{{{previousnames|}}}{{{dateopened|}}}{{{fuelbrand|}}}{{{website|}}} | Information}}
|label2= County:
+
| label2     = Native name
|data2= {{{county|}}}
+
| data2      = {{#if:{{{native_name|}}}|<span class="nickname" {{#if:{{{native_name_lang|}}}|lang="{{{native_name_lang}}}" xml:lang="{{{native_name_lang}}}"}}>{{{native_name}}}</span> }}
|label3= Road:
+
|label3= County
|data3= {{{road|}}}
+
|data3= {{{county|}}}
|label4=[[Geographic coordinate system|Coordinates]]:
+
|label4= Road
|data4={{#if:{{{coordinates|}}}|{{#invoke:Coordinates|coordinsert|{{{coordinates}}}|type:landmark}} }}
+
|data4= {{{road|}}}
|label5= Facilities:
+
|label5 = Location
|data5= {{{facilities|}}}
+
|data5 = {{{location|}}}
|label6= Operator:
+
|label6=[[Geographic coordinate system|Coordinates]]:
|data6= {{{operator|}}}
+
|data6={{#if:{{{coordinates|}}}|{{#invoke:Coordinates|coordinsert|{{{coordinates}}}|type:landmark}} }}
|label7= Previous operator(s):
+
|label7= Facilities
|data7= {{{previousoperator|}}}
+
|data7= {{{facilities|}}}
|label8= Previous name(s):
+
|label8= Operator
|data8= {{{previousnames|}}}
+
|data8= {{{operator|}}}
|label9= Date opened:
+
|label9= Previous operator(s)
|data9= {{{dateopened|}}}
+
|data9= {{{previousoperator|}}}
|label10= Fuel:
+
|label10= Previous name(s)
|data10= {{{fuelbrand|}}}
+
|data10= {{{previousnames|}}}
|label11= Website:
+
|label11= Date opened
|data11= {{{website|}}}
+
|data11= {{{dateopened|}}}
 +
|label12= Fuel
 +
|data12= {{{fuelbrand|}}}
 +
|label13= Website
 +
|data13= {{{website|}}}
  
 
|header20={{#if:{{{North_facilities|}}}{{{North_operator|}}}{{{North_dateopened|}}}{{{North_fuelbrand|}}}{{{North_website|}}}{{{North_os_grid_reference|}}}|
 
|header20={{#if:{{{North_facilities|}}}{{{North_operator|}}}{{{North_dateopened|}}}{{{North_fuelbrand|}}}{{{North_website|}}}{{{North_os_grid_reference|}}}|
 
Northbound services}}
 
Northbound services}}
|label21= Facilities:
+
|label21= Facilities
 
|data21= {{{North_facilities|}}}
 
|data21= {{{North_facilities|}}}
|label22= Operator:
+
|label22= Operator
 
|data22= {{{North_operator|}}}
 
|data22= {{{North_operator|}}}
|label23= Date opened:
+
|label23= Date opened
 
|data23= {{{North_dateopened|}}}
 
|data23= {{{North_dateopened|}}}
|label24= Fuel:
+
|label24= Fuel
 
|data24= {{{North_fuelbrand|}}}
 
|data24= {{{North_fuelbrand|}}}
|label25= Website:
+
|label25= Website
 
|data25= {{{North_website|}}}
 
|data25= {{{North_website|}}}
|label26=[[British national grid reference system|OS grid reference]]:
+
|label26=[[British national grid reference system|OS grid reference]]
 
|data26=  {{#if:{{{North_os_grid_reference|}}} | {{gbmapscaled|{{{North_os_grid_reference}}}|25|{{{North_os_grid_reference}}} }} }}
 
|data26=  {{#if:{{{North_os_grid_reference|}}} | {{gbmapscaled|{{{North_os_grid_reference}}}|25|{{{North_os_grid_reference}}} }} }}
 
|class26="plainlinks nourlexpansion"
 
|class26="plainlinks nourlexpansion"
Line 54: Line 58:
 
|header30={{#if:{{{South_facilities|}}}{{{South_operator|}}}{{{South_dateopened|}}}{{{South_fuelbrand|}}}{{{South_website|}}}{{{South_os_grid_reference|}}}|
 
|header30={{#if:{{{South_facilities|}}}{{{South_operator|}}}{{{South_dateopened|}}}{{{South_fuelbrand|}}}{{{South_website|}}}{{{South_os_grid_reference|}}}|
 
Southbound services}}
 
Southbound services}}
|label31= Facilities:
+
|label31= Facilities
 
|data31= {{{South_facilities|}}}
 
|data31= {{{South_facilities|}}}
|label32= Operator:
+
|label32= Operator
 
|data32= {{{South_operator|}}}
 
|data32= {{{South_operator|}}}
|label33= Date opened:
+
|label33= Date opened
 
|data33= {{{South_dateopened|}}}
 
|data33= {{{South_dateopened|}}}
|label34= Fuel:
+
|label34= Fuel
 
|data34= {{{South_fuelbrand|}}}
 
|data34= {{{South_fuelbrand|}}}
|label35= Website:
+
|label35= Website
 
|data35= {{{South_website|}}}
 
|data35= {{{South_website|}}}
|label36=[[British national grid reference system|OS grid reference]]:
+
|label36=[[British national grid reference system|OS grid reference]]
 
|data36=  {{#if:{{{South_os_grid_reference|}}} | {{gbmapscaled|{{{South_os_grid_reference}}}|25|{{{South_os_grid_reference}}} }} }}
 
|data36=  {{#if:{{{South_os_grid_reference|}}} | {{gbmapscaled|{{{South_os_grid_reference}}}|25|{{{South_os_grid_reference}}} }} }}
 
|class36= "plainlinks nourlexpansion"
 
|class36= "plainlinks nourlexpansion"
  
 
|header40={{#if:{{{East_facilities|}}}{{{East_operator|}}}{{{East_dateopened|}}}{{{East_fuelbrand|}}}{{{East_website|}}}{{{East_os_grid_reference|}}}|Eastbound services}}
 
|header40={{#if:{{{East_facilities|}}}{{{East_operator|}}}{{{East_dateopened|}}}{{{East_fuelbrand|}}}{{{East_website|}}}{{{East_os_grid_reference|}}}|Eastbound services}}
|label41= Facilities:
+
|label41= Facilities
 
|data41= {{{East_facilities|}}}
 
|data41= {{{East_facilities|}}}
|label42= Operator:
+
|label42= Operator
 
|data42= {{{East_operator|}}}
 
|data42= {{{East_operator|}}}
|label43= Date opened:
+
|label43= Date opened
 
|data43= {{{East_dateopened|}}}
 
|data43= {{{East_dateopened|}}}
|label44= Fuel:
+
|label44= Fuel
 
|data44= {{{East_fuelbrand|}}}
 
|data44= {{{East_fuelbrand|}}}
|label45= Website:
+
|label45= Website
 
|data45= {{{East_website|}}}
 
|data45= {{{East_website|}}}
|label46= [[British national grid reference system|OS grid reference]]:
+
|label46= [[British national grid reference system|OS grid reference]]
 
|data46=  {{#if:{{{East_os_grid_reference|}}} | {{gbmapscaled|{{{East_os_grid_reference}}}|25|{{{East_os_grid_reference}}} }} }}
 
|data46=  {{#if:{{{East_os_grid_reference|}}} | {{gbmapscaled|{{{East_os_grid_reference}}}|25|{{{East_os_grid_reference}}} }} }}
 
|class46= "plainlinks nourlexpansion"
 
|class46= "plainlinks nourlexpansion"
  
 
|header50={{#if:{{{West_facilities|}}}{{{West_operator|}}}{{{West_dateopened|}}}{{{West_fuelbrand|}}}{{{West_website|}}}{{{West_os_grid_reference|}}}| Westbound services}}
 
|header50={{#if:{{{West_facilities|}}}{{{West_operator|}}}{{{West_dateopened|}}}{{{West_fuelbrand|}}}{{{West_website|}}}{{{West_os_grid_reference|}}}| Westbound services}}
|label51= Facilities:
+
|label51= Facilities
 
|data51= {{{West_facilities|}}}
 
|data51= {{{West_facilities|}}}
|label52= Operator:
+
|label52= Operator
 
|data52= {{{West_operator|}}}
 
|data52= {{{West_operator|}}}
|label53= Date opened:
+
|label53= Date opened
 
|data53= {{{West_dateopened|}}}
 
|data53= {{{West_dateopened|}}}
|label54= Fuel:
+
|label54= Fuel
 
|data54= {{{West_fuelbrand|}}}
 
|data54= {{{West_fuelbrand|}}}
|label55= Website:
+
|label55= Website
 
|data55= {{{West_website|}}}
 
|data55= {{{West_website|}}}
|label56=[[British national grid reference system|OS grid reference]]:
+
|label56=[[British national grid reference system|OS grid reference]]
 
|data56= {{#if:{{{West_os_grid_reference|}}} | {{gbmapscaled|{{{West_os_grid_reference}}}|25|{{{West_os_grid_reference}}} }} }}
 
|data56= {{#if:{{{West_os_grid_reference|}}} | {{gbmapscaled|{{{West_os_grid_reference}}}|25|{{{West_os_grid_reference}}} }} }}
 
|class56= "plainlinks nourlexpansion"
 
|class56= "plainlinks nourlexpansion"
}}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox motorway services with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox motorway services]] with unknown parameter "_VALUE_"|ignoreblank=y| coordinates | county | dateopened | East_dateopened | East_facilities | East_fuelbrand | East_operator | East_os_grid_reference | East_website | facilities | fuelbrand | image | image_alt | image_caption | image_size | location_map | logo | logo_alt | logo_alt2 | logo_size | logo_size2 | logo2 | name | North_dateopened | North_facilities | North_fuelbrand | North_operator | North_os_grid_reference | North_website | operator | previousnames | previousoperator | relief | road | South_dateopened | South_facilities | South_fuelbrand | South_operator | South_os_grid_reference | South_website | website | West_dateopened | West_facilities | West_fuelbrand | West_operator | West_os_grid_reference | West_website }}<noinclude>{{documentation}}<!-- please place category and language links on the /doc sub-page, not here --></noinclude>
+
}}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox motorway services with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox motorway services]] with unknown parameter "_VALUE_"|ignoreblank=y| coordinates | county | dateopened | East_dateopened | East_facilities | East_fuelbrand | East_operator | East_os_grid_reference | East_website | facilities | fuelbrand | image | image_alt | image_caption | image_size | location | location_map | logo | logo_alt | logo_alt2 | logo_size | logo_size2 | logo2 | name | native_name | North_dateopened | North_facilities | North_fuelbrand | North_operator | North_os_grid_reference | North_website | operator | previousnames | previousoperator | relief | road | South_dateopened | South_facilities | South_fuelbrand | South_operator | South_os_grid_reference | South_website | website | West_dateopened | West_facilities | West_fuelbrand | West_operator | West_os_grid_reference | West_website }}<noinclude>{{documentation}}<!-- please place category and language links on the /doc sub-page, not here --></noinclude>

Latest revision as of 00:53, 2 May 2020

Template:PAGENAMEBASE

[[Category:Infobox templates|Template:Remove first word]]

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

Usage

Template:Parameter names example

{{Infobox motorway services
| name                    = 
| logo                    = 
| logo_size               = 
| logo2                   = 
| logo_size2              = 
| image                   = 
| image_size              = 
| image_caption           = 
| county                  = 
| road                    = 
| coordinates             = {{coord}}
| facilities              = 
| operator                = 
| previousoperator        = 
| previousnames           = 
| dateopened              = 
| fuelbrand               = 
| website                 = 
| location_map            = 
| North_facilities        = 
| North_operator          = 
| North_dateopened        = 
| North_fuelbrand         = 
| North_website           = 
| North_os_grid_reference = 
| South_facilities        = 
| South_operator          = 
| South_dateopened        = 
| South_fuelbrand         = 
| South_website           = 
| South_os_grid_reference = 
| East_facilities         = 
| East_operator           = 
| East_dateopened         = 
| East_fuelbrand          = 
| East_website            = 
| East_os_grid_reference  = 
| West_facilities         = 
| West_operator           = 
| West_dateopened         = 
| West_fuelbrand          = 
| West_website            = 
| West_os_grid_reference  = 
}}

Microformats

Template:UF-hcard-org

Tracking category