Template:Infobox motorsport venue: Difference between revisions
Add dark mode infobox styles |
Add Era field to infobox template |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
<templatestyles src="Template:Infobox motorsport venue/styles.css" /> | <templatestyles src="Template:Infobox motorsport venue/styles.css" /> | ||
{{infobox | {{infobox | ||
| bodyclass = vcard | | bodyclass = vcard | ||
| Line 250: | Line 249: | ||
| data112 = {{{nrhp|{{{embedded|}}}}}} | | data112 = {{{nrhp|{{{embedded|}}}}}} | ||
}}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox motorsport venue with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox motorsport venue]] with unknown parameter "_VALUE_"|ignoreblank=y| address | architect | banking | regexp1 = banking[1-9][0-6]* | broke_ground | capacity | caption | closed | construction_cost | coordinates | embedded | events | fia_grade | former_names | homepage | image | image_caption | image_size | layout | length_m | regexp2 = layout[1-9][0-6]* | length_mi | regexp3 = length[1-9][0-6]*_mi | length_km | regexp4 = length[1-9][0-6]*_km | location | logo | logo_caption | logo_size | miles_first | name | nicknames | nrhp | opened | operator | owner | record_car | regexp5 = record_car[1-9][0-6]* | record_class | regexp6 = record_class[1-9][0-6]* | record_driver | regexp7 = record_driver[1-9][0-6]* | record_time | regexp8 = record_time[1-9][0-6]* | record_year | regexp9 = record_year[1-9][0-6]* | surface | regexp10 = surface[1-9][0-6]*| track_map | track_map_caption | track_map_size | turns | regexp11 = turns[1-9][0-6]* | website }}<noinclude>{{documentation}}<!-- please place category links on the /doc sub-page, not here --></noinclude> | |||
| label113 = Era | |||
| data113 = {{{era|}}} | |||
}}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox motorsport venue with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox motorsport venue]] with unknown parameter "_VALUE_"|ignoreblank=y| address | architect | banking | regexp1 = banking[1-9][0-6]* | broke_ground | capacity | caption | closed | construction_cost | coordinates | embedded | events | fia_grade | former_names | homepage | image | image_caption | image_size | layout | length_m | regexp2 = layout[1-9][0-6]* | length_mi | regexp3 = length[1-9][0-6]*_mi | length_km | regexp4 = length[1-9][0-6]*_km | location | logo | logo_caption | logo_size | miles_first | name | nicknames | nrhp | opened | operator | owner | record_car | regexp5 = record_car[1-9][0-6]* | record_class | regexp6 = record_class[1-9][0-6]* | record_driver | regexp7 = record_driver[1-9][0-6]* | record_time | regexp8 = record_time[1-9][0-6]* | record_year | regexp9 = record_year[1-9][0-6]* | surface | regexp10 = surface[1-9][0-6]*| track_map | track_map_caption | track_map_size | turns | regexp11 = turns[1-9][0-6]* | website | |||
| era | |||
}}<noinclude>{{documentation}}<!-- please place category links on the /doc sub-page, not here --></noinclude> | |||
Latest revision as of 00:07, 11 July 2026
| Website | {{#statements:P856}} |
|---|
| Warning | This template is used on many pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
| File:Lua-Logo.svg | This template uses Lua: |
Introduction
[edit source]This template affects all motorsport venues/circuit/tracks around the world, so major changes to this template should be discussed at WP:MOTOR. This template was created to work for pretty much all types of venue including road courses, ovals, rovals, drag strips, and dirt tracks.
Only the Name and Location fields are required. All other fields are optional and can be omitted as appropriate.
Cut-and-paste pro forma
[edit source]<syntaxhighlight lang="wikitext" style="overflow:auto">
| Website | {{#statements:P856}} |
|---|
</syntaxhighlight>
Distance
[edit source]Note that distance should be given in both Kilometres and Miles in order to display correctly. By default, Kilometres will display first followed by Miles in brackets. In order to swap the two add the line
<syntaxhighlight lang="wikitext"> | miles_first = true </syntaxhighlight>
anywhere in the infobox code.
Coordinates
[edit source]For Geographic coordinate system|coordinates, use {{coord}} with display=inline,title. Please do not be .
Image and/or logo
[edit source]Specify full image with the file name onlye.g.
<syntaxhighlight lang="wikitext" style="overflow:auto">
| image = BrooklandsCircuitLayout.png
</syntaxhighlight>
Categories
[edit source]Microformat
[edit source]The HTML markup produced by this template includes an hCard microformat, which makes the place-name and location parsable by computers, either acting automatically to catalogue articles across Wikipedia, or via a browser tool operated by a person, to (for example) add the subject to an address book. Within the hCard is a Peo microformat, which additionally makes the coordinates (latitude & longitude) parsable, so that they can be, say, looked up on a map, or downloaded to a PPS unit. For more information about the use of microformats on Wikipedia, please see the microformat project.
Sub-templates
[edit source]If the place or venue has "established", "founded", "opened" or similar dates, use {{start date}} for the earliest of those dates unless the date is before 1583 CE.
If it has a URL, use {{URL}}.
Please do not remove instances of these sub-templates.
Classes
[edit source]hCard uses HTML classes including:
- adr
- agent
- category
- county-name
- extended-address
- fn
- label
- locality
- nickname
- note
- org
- region
- street-address
- uid
- url
- vcard
Peo is produced by calling {{coord}}, and uses HTML classes:
- geo
- latitude
- longitude
Please do not rename or remove these classes nor collapse nested elements which use them.
Precision
[edit source]When giving coordinates, please use an appropriate level of precision. Do not use {{coord}}'s |name= parameter.
Cars in lap records
[edit source]Following a discussion on the talkpage, use of the "record_team" parameter has been replaced with "record_car" (and "record_team2" replaced with "record_car2"...). Existing articles which have not been updated will still work, but new infoboxes should use the new format.
Template Data
[edit source]TemplateData documentation used by VisualEditor and other tools
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
See a monthly parameter usage report for Template:Infobox motorsport venue in articles based on its TemplateData.
TemplateData for Infobox motorsport venue No description.
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||