Difference between revisions of "Template:Infobox motorway services"
Jump to navigation
Jump to search
imported>WOSlinker (lat / long no longer used as per Wikipedia:Coordinates in infoboxes) |
imported>Imzadi1979 m (removing colons from labels as infoboxes have standardized not to use them) |
||
| Line 15: | Line 15: | ||
|header1= {{#if:{{{county|}}}{{{road|}}}{{{lat|}}}{{{coordinates|}}}{{{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|}}} | ||
| − | |label3= Road | + | |label3= Road |
|data3= {{{road|}}} | |data3= {{{road|}}} | ||
|label4=[[Geographic coordinate system|Coordinates]]: | |label4=[[Geographic coordinate system|Coordinates]]: | ||
|data4={{#if:{{{coordinates|}}}|{{#invoke:Coordinates|coordinsert|{{{coordinates}}}|type:landmark}} }} | |data4={{#if:{{{coordinates|}}}|{{#invoke:Coordinates|coordinsert|{{{coordinates}}}|type:landmark}} }} | ||
| − | |label5= Facilities | + | |label5= Facilities |
|data5= {{{facilities|}}} | |data5= {{{facilities|}}} | ||
| − | |label6= Operator | + | |label6= Operator |
|data6= {{{operator|}}} | |data6= {{{operator|}}} | ||
| − | |label7= Previous operator(s) | + | |label7= Previous operator(s) |
|data7= {{{previousoperator|}}} | |data7= {{{previousoperator|}}} | ||
| − | |label8= Previous name(s) | + | |label8= Previous name(s) |
|data8= {{{previousnames|}}} | |data8= {{{previousnames|}}} | ||
| − | |label9= Date opened | + | |label9= Date opened |
|data9= {{{dateopened|}}} | |data9= {{{dateopened|}}} | ||
| − | |label10= Fuel | + | |label10= Fuel |
|data10= {{{fuelbrand|}}} | |data10= {{{fuelbrand|}}} | ||
| − | |label11= Website | + | |label11= Website |
|data11= {{{website|}}} | |data11= {{{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 54: | ||
|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_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> | ||
Revision as of 16:22, 29 May 2019
| 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. |