Difference between revisions of "Template:Google maps/doc"
Jump to navigation
Jump to search
imported>Imzadi1979 m (→Examples: fix) |
imported>Imzadi1979 m (preferred format) |
||
| Line 10: | Line 10: | ||
== Usage == | == Usage == | ||
| − | <code><nowiki>{{Google maps|url= |title= | | + | <code><nowiki>{{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''' – a "subtitle" for the map. The link text will appear as "<title>" if "title" is used; otherwise, it will be the page name. | * '''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. | * '''link''' – set to "no" to unlink the publisher. | ||
*'''mode''' – set to "cs2" to use [[Help:Citation Style 2|CS2]] output | *'''mode''' – set to "cs2" to use [[Help:Citation Style 2|CS2]] output | ||
| Line 21: | Line 21: | ||
=== 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 | | + | * <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: | 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 | | + | * {{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: | 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 | | + | * <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: | 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 | | + | * {{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 == | ||
Revision as of 22:07, 19 August 2018
| 40px | This is a documentation subpage for Template:Google maps. It contains usage information, categories and other content that is not part of the original template page. |
| 40x40px | This template is a Citation Style 1 specific-source template based on {{Cite map}}. For centralised Citation Style 1 discussions, see Help talk:Citation Style 1. |
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.
Contents
Usage
{{Google maps|url= |title= |access-date=16 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
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= 16 January 2026}}
generates this:
- Google (16 January 2026). "Google maps" (Map). Google Maps. Google. Retrieved 16 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= 16 January 2026 }}
generates this:
- Google (16 January 2026). "Driving directions to RT-308" (Map). Google Maps. Google. Retrieved 16 January 2026.