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

From blackwiki
Jump to navigation Jump to search
imported>Wikid77
(note "mode=cs2")
imported>Wikid77
(ce spacing +wikilinks; pre-spaced cite bars to clarify and avoid missing bars "|")
Line 5: Line 5:
 
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.
  
This template can also be set to emulate CS2 style (by adding: |mode=cs2).
+
This template can also be set to emulate [[wp:CS2]] style (by adding: |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.
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 as "mode=cs2" to use  [[Help:Citation Style 2|Citation Style 2]] output
  
 
=== 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 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>
+
* <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:
 
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}}}}
+
* {{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}} }}
  
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= 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:
 
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= 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}}}}
  
 
== 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|Cite map}}, generic  
 
*{{tl|Cite map}}, generic  
 
+
<includeonly>
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
+
{{#ifeq:{{SUBPAGENAME}}|sandbox | |<!-- Categories below this line, please; interwikis at Wikidata -->
<!-- Categories below this line, please; interwikis at Wikidata -->
 
 
[[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>
 
}}</includeonly>

Revision as of 21:38, 19 August 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 wp:CS2 style (by adding: |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

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

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

generates this:

  • Google (17 January 2026). "Google maps" (Map). Google Maps. Google. Retrieved 17 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 |accessdate= 17 January 2026 }}

generates this:

See also