Difference between revisions of "Template:Google maps"

From blackwiki
Jump to navigation Jump to search
imported>Debresser
m (Standardize.)
imported>Imzadi1979
m (use author-link)
 
Line 1: Line 1:
<includeonly>{{Cite map |author={{#ifeq: {{{link}}}|no|Google|[[Google]]}} |date={{{date|{{{access-date|{{{accessdate|}}}}}}}}}{{{letter|}}} |publisher=Google |title={{#ifeq: {{{link}}}|no|Google Maps|[[Google Maps]]}} |map={{#if:{{{title|}}}|{{{title}}}|{{BASEPAGENAME}}}} |mapurl={{{url|}}} |access-date={{{access-date|{{{accessdate|}}}}}} |mode={{{mode|}}} |ref={{{ref|}}} }}<span class="error">{{#if:{{{url|}}}||&#32;No URL entered.}}</span></includeonly><noinclude>{{Documentation}}</noinclude>
+
<includeonly>{{Cite map |author= Google |author-link = {{#ifeq: {{{link}}}|no| | Google }} |date = {{{date|{{{access-date|{{{accessdate|}}}}}}}}}{{{letter|}}} |map = {{#if:{{{title|}}}|{{{title}}}|{{BASEPAGENAME}}}} |map-url = {{{url|}}} |title = {{#ifeq: {{{link}}}|no|Google Maps|[[Google Maps]]}}
 +
|publisher = Google |access-date = {{{access-date|{{{accessdate|}}}}}} |mode = {{{mode|}}} |ref = {{{ref|}}} }}<span class="error">{{#if:{{{url|}}}||&#32;No URL entered.}}</span></includeonly><noinclude>{{Documentation}}</noinclude>

Latest revision as of 00:26, 27 December 2020

Template documentation[view] [edit] [history] [purge]

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

This template can also be set to emulate Citation Style 2 (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= |access-date=11 September 2025}}

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.
  • 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

Examples

Normal usage with automatic inclusion of page title (i.e. "Google maps", which is taken from the template's full page title "Template:Google maps"):

  • {{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= 11 September 2025}}

generates this:

  • Google (11 September 2025). "Google maps" (Map). Google Maps. Google. Retrieved 11 September 2025.

Using the optional "title" parameter:

  • {{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= 11 September 2025}}

generates this:

See also