Difference between revisions of "Template:Google maps/doc"

From blackwiki
Jump to navigation Jump to search
imported>Funandtrvl
(updte, ce)
imported>Debresser
m (Standardize.)
 
(22 intermediate revisions by 10 users not shown)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
+
{{cs1 wrapper|type=source|base=Cite map}}
 +
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
 +
 
 
This template is used for referencing maps published by [[Google|Google, Inc.]] through their [[Google Maps]] service.
 
This template is used for referencing maps published by [[Google|Google, Inc.]] through their [[Google Maps]] service.
  
=== Usage ===
+
This template can also be set to emulate [[Help:Citation Style 2|Citation Style 2]] (CS2) style.
==== Normal ====
+
 
Normal usage with automatic inclusion of page title (i.e. "{{BASEPAGENAME}}", which is taken from the template's full page title "{{FULLPAGENAME}}"):
+
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 | accessdate = </nowiki>{{#time: j F Y}}<nowiki> }}</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 = {{date}}}}
 
  
==== With optional title parameter ====
+
== Usage ==
Using the optional '''title''' parameter:
+
<code><nowiki>{{Google maps|url= |title= |access-date=</nowiki>{{#time: j F Y}}<nowiki>}}</nowiki></code>
* <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>
 
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}}}}
 
  
 
=== 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 "<title>" if "title" is used; otherwise, it will be the page name.
* '''accessdate''' – the full retrieval date.
+
* '''access-date''' – 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|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. "{{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 |access-date= </nowiki>{{#time: j F Y}}<nowiki>}}</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 |access-date= {{date}}}}
 +
 +
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 |access-date= </nowiki>{{#time: j F Y}}<nowiki>}}</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 |title= Driving directions to RT-308 |access-date= {{date}}}}
  
=== See also ===
+
== See also ==
 
*{{tl|Bing maps}}, the counterpart to this template for [[Bing Maps]]
 
*{{tl|Bing maps}}, the counterpart to this template for [[Bing Maps]]
*{{tl|Yahoo maps}}, the counterpart to this template for [[Yahoo Maps]]
+
*{{tl|Mapquest}}, the counterpart to this template for [[MapQuest]]
 
*{{tl|Cite map}}, generic  
 
*{{tl|Cite map}}, generic  
 
+
<includeonly>{{Sandbox other||
<includeonly>
+
<!-- Categories below this line, please; interwikis at Wikidata -->
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
 
 
[[Category:Citation Style 1 specific-source templates]]
 
[[Category:Citation Style 1 specific-source templates]]
 
[[Category:Google templates]]
 
[[Category:Google templates]]
 
[[Category:Specific-source templates]]
 
[[Category:Specific-source templates]]
 
+
}}</includeonly>
[[es:Plantilla:Google maps]]
 
[[ja:Template:Google maps]]
 
[[tr:Şablon:Google maps]]
 
</includeonly>
 

Latest revision as of 17:03, 30 August 2020

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=21 January 2026}}

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

  • {{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= 21 January 2026}}

generates this:

  • Google (21 January 2026). "Google maps" (Map). Google Maps. Google. Retrieved 21 January 2026.

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= 21 January 2026}}

generates this:

See also