Jump to content

Template:Cite Google Maps/doc: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
m See also: +Bing, Yahoo!
See also: TD header
 
(48 intermediate revisions by 22 users not shown)
Line 1: Line 1:
{{Documentation subpage}}
{{Documentation subpage}}
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
{{High-use}}
This template is used for referencing maps published by [[Google, Inc.]] through their [[Google Maps]] service.
{{cs1 wrapper|type=source|base=cite map}}


This template is used for referencing maps published by [[Google LLC]] through their [[Google Maps]] service.
=== Usage ===
==== Normal ====
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 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 | accessdate = 2008-03-01}}</nowiki></code>
generates this:
* {{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 | accessdate = 2008-03-01}}


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}}.
==== With optional title parameter ====

Using the optional '''title''' parameter:
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.
* <code><nowiki>{{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 | accessdate = 2008-03-01}}</nowiki></code>

generates this:
== Usage ==
* {{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 | accessdate = 2008-03-01}}
<code><nowiki>{{Cite Google Maps|url= |title= |access-date=</nowiki>{{#time: j F Y}}<nowiki>}}</nowiki></code>


=== Parameters ===
=== Parameters ===
* '''url''' – the URL for the map in question
* '''url''' – the URL for the map in question
* '''title''' – use to append a subtitle onto the default URL title (will display as "''Google Maps – {{{title}}}''")
* '''title''' – a "subtitle" for the map. The link text will appear as "&lt;title>" if "title" is used; otherwise, it will be the page name.
* '''accessdate''' – the full retrieval date.
* '''access-date''' – the full retrieval date.
* '''SV''' – set to any value to change the website from [[Google Maps]] to [[Google Street View]].
* '''date''' – date of Street View photography or other map data
* '''link''' – set to "no" to unlink the publisher.
* '''link''' – set to "no" to unlink the publisher.
* '''mode''' –&nbsp;set to "cs2" to use [[Help:Citation Style 2|CS2]] output (lower case only)
=== See also ===
* '''ref''': for Harvard-style referencing, if necessary
*{{tl|Bing maps}}, the counterpart to this template for [[Bing Maps]]
** '''letter''': a letter to append to a date or year for Harvard-style referencing, if necessary (requires {{para|date}})
*{{tl|Yahoo maps}}, the counterpart to this template for [[Yahoo Maps]]

* [[Template:Cite map]]
=== Examples ===
Normal usage with automatic inclusion of page title (i.e. "{{BASEPAGENAME}}", which is taken from the template's full page title "{{FULLPAGENAME}}"):
* <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:
* {{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:
* <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:
* {{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:
* <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>
generates this:
* {{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 ==
*{{tl|Bing maps}}, the counterpart to this template for [[Bing Maps]]
*{{tl|Mapquest}}, the counterpart to this template for [[MapQuest]]
*{{tl|Cite map}}, generic

<includeonly>{{Sandbox other||
<!-- Categories below this line, please; interwikis at Wikidata -->
[[Category:Citation Style 1 specific-source templates]]
[[Category:Google templates]]
[[Category:Specific-source templates]]


<includeonly>
}}</includeonly>
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
[[Category:Google templates|{{PAGENAME}}]]
[[Category:Specific-source templates|{{PAGENAME}}]]


==TemplateData==
[[es:Plantilla:Google maps]]
{{TemplateData header}}
[[tr:Şablon:Google maps]]
<templatedata>
</includeonly>
{
"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>

Latest revision as of 01:47, 9 September 2024

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

[edit]

{{Cite Google Maps|url= |title= |access-date=3 November 2024}}

Parameters

[edit]
  • 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 any value to change the website from Google Maps to Google Street View.
  • date – date of Street View photography or other map data
  • 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 (requires |date=)

Examples

[edit]

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:

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:

See also

[edit]


TemplateData

[edit]
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Cite Google Maps in articles based on its TemplateData.

TemplateData for Cite Google Maps

No description.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
urlurl

the URL for the Google Map

URLrequired
access-dateaccess-date

the full retrieval date

Example
2024-08-09
Datesuggested
titletitle

Give a title for the map; otherwise, it will be the article name.

Example
Sydney Opera House
Stringoptional
Street ViewSV

set to "yes" if this is a Street View

Example
yes
Stringoptional
Street View datedate

date of Street View photography; only required when citing a Street View

Example
May 2021
Dateoptional
letterletter

a letter to append to a date or year for Harvard-style referencing, if necessary

Stringoptional
linklink

set to "no" to unlink the publisher

Stringoptional