Difference between revisions of "Template:Infobox motorway services"

From blackwiki
Jump to navigation Jump to search
imported>Imzadi1979
m (removing colons from labels as infoboxes have standardized not to use them)
imported>Primefac
 
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|}}}|
Line 97: Line 101:
 
|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