Jump to content

Template:Cite Google Maps/doc: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
m fix template
google maps test
Line 17: Line 17:
* '''accessdate''' – the full retrieval date.
* '''accessdate''' – the full retrieval date.
* '''link''' – set to "no" to unlink the publisher.
* '''link''' – set to "no" to unlink the publisher.
*'''mode''' – set to "cs2" to use [[Help:Citation Style 2|Citation Style 2]] output
*'''mode''' – set to "cs2" to use [[Help:Citation Style 2|Citation Style 2]] output


=== Examples ===
=== Examples ===
Line 26: Line 26:


Using the optional '''title''' parameter:
Using the optional '''title''' parameter:
* <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=</nowiki>{{#time: j F Y}}<nowiki> }}</nowiki></code>
* <code><nowiki>{{Google maps|url=https://www.google.com/maps/place/66%C2%B008'49.0%22N+65%C2%B042'31.0%22W/@66.146944,-65.708611,1187m/data=!3m1!1e3!4m5!3m4!1s0x0:0x0!8m2!3d66.146944!4d-65.708611?hl=en | title = Driving directions to RT-308|accessdate=</nowiki>{{#time: j F Y}}<nowiki> }}</nowiki></code>
generates this:
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 | title=Driving directions to RT-308|accessdate={{date}}}}
* {{Google maps|url=https://www.google.com/maps/place/66%C2%B008'49.0%22N+65%C2%B042'31.0%22W/@66.146944,-65.708611,1187m/data=!3m1!1e3!4m5!3m4!1s0x0:0x0!8m2!3d66.146944!4d-65.708611?hl=en | title=Driving directions to RT-308|accessdate={{date}}}}


== See also ==
== See also ==

Revision as of 19:38, 9 January 2018

This template is used for referencing maps published by Google, Inc. through their Google Maps service.

This template can also be set to emulate CS2 style.

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

{{Google maps|url= |title= |accessdate=16 September 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.
  • accessdate – the full retrieval date.
  • link – set to "no" to unlink the publisher.
  • mode – set to "cs2" to use Citation Style 2 output

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"):

  • {{Google maps|url=http://maps.google.com/maps?hl=en&q=from:+E%20Market%20St/RT-308%[email protected],%20-73.912580+to:+RT-308%[email protected],%20-73.821096|accessdate=16 September 2024}}

generates this:

  • "Cite Google Maps" (Map). Google Maps. Retrieved 16 September 2024.

Using the optional title parameter:

  • {{Google maps|url=https://www.google.com/maps/place/66%C2%B008'49.0%22N+65%C2%B042'31.0%22W/@66.146944,-65.708611,1187m/data=!3m1!1e3!4m5!3m4!1s0x0:0x0!8m2!3d66.146944!4d-65.708611?hl=en | title = Driving directions to RT-308|accessdate=16 September 2024 }}

generates this:

See also