Difference between revisions of "Template:Infobox motorway services"
Jump to navigation
Jump to search
imported>Zyxw m (replace {{PAGENAME}} with {{PAGENAMEBASE}} to remove any disambiguation if article name is used as infobox title, using AWB) |
imported>Jonesey95 (Convert coords to new parameters. See Wikipedia:Coordinates in infoboxes.; Adding unknown parameter tracking through Category:Pages using infobox motorway services with unknown parameters using Module:check for unknown parameters) |
||
| Line 12: | Line 12: | ||
| image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|}}}|alt={{{image_alt|}}}}} | | image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|}}}|alt={{{image_alt|}}}}} | ||
|caption= {{{image_caption|}}} | |caption= {{{image_caption|}}} | ||
| − | |image2= {{#if:{{{location_map|}}}| {{Location map | {{{location_map}}} | relief = {{{relief|}}} | lat = {{{lat|}}} | long = {{{long|}}} | width = 290 }} }} | + | |image2= {{#if:{{{location_map|}}}| {{Location map | {{{location_map}}} | relief = {{{relief|}}} | coordinates = {{{coordinates|}}} | lat = {{{lat|}}} | long = {{{long|}}} | width = 290 }} }} |
| − | |header1= {{#if:{{{county|}}}{{{road|}}}{{{lat|}}}{{{facilities|}}}{{{operator|}}}{{{previousoperator|}}}{{{previousnames|}}}{{{dateopened|}}}{{{fuelbrand|}}}{{{website|}}} | Information}} | + | |header1= {{#if:{{{county|}}}{{{road|}}}{{{lat|}}}{{{coordinates|}}}{{{facilities|}}}{{{operator|}}}{{{previousoperator|}}}{{{previousnames|}}}{{{dateopened|}}}{{{fuelbrand|}}}{{{website|}}} | Information}} |
|label2= County: | |label2= County: | ||
|data2= {{{county|}}} | |data2= {{{county|}}} | ||
| Line 20: | Line 20: | ||
|data3= {{{road|}}} | |data3= {{{road|}}} | ||
|label4=[[Geographic coordinate system|Coordinates]]: | |label4=[[Geographic coordinate system|Coordinates]]: | ||
| − | |data4={{#if:{{{lat|}}}| {{coord|{{{lat}}}|{{{long}}}|type:landmark{{#if:{{{coord_region|}}}|_region:{{{coord_region}}}}}|display=inline, title}} }} | + | |data4={{#if:{{{coordinates|}}}|{{#invoke:Coordinates|coordinsert|{{{coordinates}}}|type:landmark}} | {{#if:{{{lat|}}}|[[Category:Pages using deprecated coordinates format|motorway services]] {{coord|{{{lat}}}|{{{long}}}|type:landmark{{#if:{{{coord_region|}}}|_region:{{{coord_region}}}}}|display=inline, title}} }} }} |
|label5= Facilities: | |label5= Facilities: | ||
|data5= {{{facilities|}}} | |data5= {{{facilities|}}} | ||
| Line 97: | Line 97: | ||
|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" | ||
| − | }}<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| coord_region | 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 | lat | location_map | logo | logo_alt | logo_alt2 | logo_size | logo_size2 | logo2 | long | 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> |
Revision as of 15:50, 2 June 2017
| Template:PAGENAMEBASE |
|---|
[[Category:Infobox templates|Template:Remove first word]]
| This template uses Lua: |
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
Tracking category
| The above documentation is transcluded from Template:Infobox motorway services/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |