Template:Cite Google Maps/doc: Difference between revisions
m Extraordinary Writ moved page Template:Google maps/doc to Template:Cite Google Maps/doc: Requested by MaterialWorks at WP:RM/TR: Per Template talk:Google maps § Requested move 14 September 2023. Source page is template-editor protected. |
Imzadi1979 (talk | contribs) →Parameters: +parameter |
||
(8 intermediate revisions by 3 users not shown) | |||
Line 2: | Line 2: | ||
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --> |
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --> |
||
{{High-use}} |
{{High-use}} |
||
{{cs1 wrapper|type=source|base= |
{{cs1 wrapper|type=source|base=cite map}} |
||
This template is used for referencing maps published by [[Google LLC]] through their [[Google Maps]] service. |
This template is used for referencing maps published by [[Google LLC]] through their [[Google Maps]] service. |
||
This template can also be set to emulate [[Help:Citation Style 2|Citation Style 2]] (CS2) style. |
The template accepts all parameters that {{tl|cite map}} does, unless {{para|SV|yes}}, in which case it accepts all parameters that {{tl|cite web}} does. This template can also be set to emulate [[Help:Citation Style 2|Citation Style 2]] (CS2) style, via {{para|mode|cs2}}. |
||
Note that unlike paper maps, Google offers dynamic sizing at variable scales. Major citation style guides omit a map scale in that situation so this template does not render any scale output. |
Note that unlike paper maps, Google offers dynamic sizing at variable scales. Major citation style guides omit a map scale in that situation so this template does not render any scale output. |
||
== Usage == |
== Usage == |
||
<code><nowiki>{{Google |
<code><nowiki>{{Cite Google Maps|url= |title= |access-date=</nowiki>{{#time: j F Y}}<nowiki>}}</nowiki></code> |
||
=== Parameters === |
=== Parameters === |
||
Line 20: | Line 20: | ||
** '''date''' – date of Street View photography; only required when {{para|SV|yes}}. |
** '''date''' – date of Street View photography; only required when {{para|SV|yes}}. |
||
* '''link''' – set to "no" to unlink the publisher. |
* '''link''' – set to "no" to unlink the publisher. |
||
* '''mode''' – |
* '''mode''' – set to "cs2" to use [[Help:Citation Style 2|CS2]] output (lower case only) |
||
* '''ref''': for Harvard-style referencing, if necessary |
* '''ref''': for Harvard-style referencing, if necessary |
||
** '''letter''': a letter to append to a date or year for Harvard-style referencing, if necessary |
** '''letter''': a letter to append to a date or year for Harvard-style referencing, if necessary |
||
* '''author''': set to "yes" to list the author in the citation for consistency with other citations in an article |
|||
=== Examples === |
=== Examples === |
||
Normal usage with automatic inclusion of page title (i.e. "{{BASEPAGENAME}}", which is taken from the template's full page title "{{FULLPAGENAME}}"): |
Normal usage with automatic inclusion of page title (i.e. "{{BASEPAGENAME}}", which is taken from the template's full page title "{{FULLPAGENAME}}"): |
||
* <code><nowiki>{{Google |
* <code><nowiki>{{Cite Google Maps |url= http://maps.google.com/maps?hl=en&q=from:+E%20Market%20St/RT-308%20@41.926860,%20-73.912580+to:+RT-308%20@41.970313,%20-73.821096 |access-date= </nowiki>{{#time: j F Y}}<nowiki>}}</nowiki></code> |
||
generates this: |
generates this: |
||
* {{Google |
* {{Cite Google Maps |url= http://maps.google.com/maps?hl=en&q=from:+E%20Market%20St/RT-308%20@41.926860,%20-73.912580+to:+RT-308%20@41.970313,%20-73.821096 |access-date= {{date}}}} |
||
Using the optional "title" parameter: |
Using the optional "title" parameter: |
||
* <code><nowiki>{{Google |
* <code><nowiki>{{Cite Google Maps |url= http://maps.google.com/maps?hl=en&q=from:+E%20Market%20St/RT-308%20@41.926860,%20-73.912580+to:+RT-308%20@41.970313,%20-73.821096 |title= Driving directions to RT-308 |access-date= </nowiki>{{#time: j F Y}}<nowiki>}}</nowiki></code> |
||
generates this: |
generates this: |
||
* {{Google |
* {{Cite Google Maps |url= http://maps.google.com/maps?hl=en&q=from:+E%20Market%20St/RT-308%20@41.926860,%20-73.912580+to:+RT-308%20@41.970313,%20-73.821096 |title= Driving directions to RT-308 |access-date= {{date}}}} |
||
For Google Street View imagery: |
For Google Street View imagery: |
||
* <code><nowiki>{{Google Maps |url = https://goo.gl/maps/u5sTx |SV= yes |date= August 2014 |title = Adirondack Northway, Albany, New York |access-date = July 11, 2015}} |
* <code><nowiki>{{Cite Google Maps |url = https://goo.gl/maps/u5sTx |SV= yes |date= August 2014 |title = Adirondack Northway, Albany, New York |access-date = July 11, 2015}} |
||
</nowiki></code> |
</nowiki></code> |
||
generates this: |
generates this: |
||
* {{Google Maps |url = https://goo.gl/maps/u5sTx |SV= yes |date= August 2014 |title = Adirondack Northway, Albany, New York |access-date = July 11, 2015}} |
* {{Cite Google Maps |url = https://goo.gl/maps/u5sTx |SV= yes |date= August 2014 |title = Adirondack Northway, Albany, New York |access-date = July 11, 2015}} |
||
== See also == |
== See also == |
||
Line 53: | Line 54: | ||
}}</includeonly> |
}}</includeonly> |
||
<templatedata> |
|||
{ |
|||
"params": { |
|||
"url": { |
|||
"label": "url", |
|||
"description": "the URL for the Google Map", |
|||
"type": "url", |
|||
"required": true |
|||
}, |
|||
"access-date": { |
|||
"label": "access-date", |
|||
"description": "the full retrieval date", |
|||
"example": "2024-08-09", |
|||
"type": "date", |
|||
"suggested": true |
|||
}, |
|||
"title": { |
|||
"label": "title", |
|||
"description": "Give a title for the map; otherwise, it will be the article name.", |
|||
"example": "Sydney Opera House", |
|||
"type": "string" |
|||
}, |
|||
"SV": { |
|||
"label": "Street View", |
|||
"description": "set to \"yes\" if this is a Street View", |
|||
"example": "yes", |
|||
"type": "string" |
|||
}, |
|||
"date": { |
|||
"label": "Street View date", |
|||
"description": "date of Street View photography; only required when citing a Street View", |
|||
"example": "May 2021", |
|||
"type": "date" |
|||
}, |
|||
"letter": { |
|||
"label": "letter", |
|||
"description": "a letter to append to a date or year for Harvard-style referencing, if necessary", |
|||
"type": "string" |
|||
}, |
|||
"link": { |
|||
"label": "link", |
|||
"description": "set to \"no\" to unlink the publisher", |
|||
"type": "string" |
|||
} |
|||
}, |
|||
"format": "inline" |
|||
} |
|||
</templatedata> |
Revision as of 14:56, 30 August 2024
This is a documentation subpage for Template:Cite Google Maps. It may contain usage information, categories and other content that is not part of the original template page. |
This template is used on approximately 16,000 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. |
This template is a Citation Style 1 specific-source template based on {{Cite map}}. For centralised Citation Style 1 discussions, see Help talk:Citation Style 1. |
This template is used for referencing maps published by Google LLC through their Google Maps service.
The template accepts all parameters that {{cite map}} does, unless |SV=yes
, in which case it accepts all parameters that {{cite web}} does. This template can also be set to emulate Citation Style 2 (CS2) style, via |mode=cs2
.
Note that unlike paper maps, Google offers dynamic sizing at variable scales. Major citation style guides omit a map scale in that situation so this template does not render any scale output.
Usage
{{Cite Google Maps|url= |title= |access-date=3 November 2024}}
Parameters
- url – the URL for the map in question
- title – a "subtitle" for the map. The link text will appear as "<title>" if "title" is used; otherwise, it will be the page name.
- access-date – the full retrieval date.
- SV – set to "yes" to change the website from Google Maps to Google Street View.
- date – date of Street View photography; only required when
|SV=yes
.
- date – date of Street View photography; only required when
- link – set to "no" to unlink the publisher.
- mode – set to "cs2" to use CS2 output (lower case only)
- ref: for Harvard-style referencing, if necessary
- letter: a letter to append to a date or year for Harvard-style referencing, if necessary
- author: set to "yes" to list the author in the citation for consistency with other citations in an article
Examples
Normal usage with automatic inclusion of page title (i.e. "Cite Google Maps", which is taken from the template's full page title "Template:Cite Google Maps/doc"):
{{Cite Google Maps |url= http://maps.google.com/maps?hl=en&q=from:+E%20Market%20St/RT-308%20@41.926860,%20-73.912580+to:+RT-308%20@41.970313,%20-73.821096 |access-date= 3 November 2024}}
generates this:
- "Cite Google Maps" (Map). Google Maps. Retrieved 3 November 2024.
Using the optional "title" parameter:
{{Cite Google Maps |url= http://maps.google.com/maps?hl=en&q=from:+E%20Market%20St/RT-308%20@41.926860,%20-73.912580+to:+RT-308%20@41.970313,%20-73.821096 |title= Driving directions to RT-308 |access-date= 3 November 2024}}
generates this:
- "Driving directions to RT-308" (Map). Google Maps. Retrieved 3 November 2024.
For Google Street View imagery:
{{Cite Google Maps |url = https://goo.gl/maps/u5sTx |SV= yes |date= August 2014 |title = Adirondack Northway, Albany, New York |access-date = July 11, 2015}}
generates this:
- "Adirondack Northway, Albany, New York". Google Street View. August 2014. Retrieved July 11, 2015.
See also
- {{Bing maps}}, the counterpart to this template for Bing Maps
- {{Mapquest}}, the counterpart to this template for MapQuest
- {{Cite map}}, generic
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
url | url | the URL for the Google Map | URL | required |
access-date | access-date | the full retrieval date
| Date | suggested |
title | title | Give a title for the map; otherwise, it will be the article name.
| String | optional |
Street View | SV | set to "yes" if this is a Street View
| String | optional |
Street View date | date | date of Street View photography; only required when citing a Street View
| Date | optional |
letter | letter | a letter to append to a date or year for Harvard-style referencing, if necessary | String | optional |
link | link | set to "no" to unlink the publisher | String | optional |