Difference between pages "File:wiki-hackathon-logo-500x500.png" and "Template:GMap"

From LCA2015 Delegate wiki
(Difference between pages)
Jump to: navigation, search
({{CC-BY-3.0|Remix of the official lca2015 logo. Remixed by <font color="#703931">'''ᏜᏠᎶᏠᏑ'''</font> using GIMP, for the Wiki Hackathon.}} Category:Images)
 
(Created a template for displaying a link to Google Map as a hatnote.)
 
Line 1: Line 1:
{{CC-BY-3.0|Remix of the official lca2015 logo. Remixed by [[User:Augur_.|<font color="#703931">'''ᏜᏠᎶᏠᏑ'''</font>]] using GIMP, for the [[Wiki Hackathon]].}}
+
<includeonly>: <small>[[File:location-162102.png|16px|baseline|Google Maps|link={{{1}}}]] ''Google map:'' [{{{1}}} {{{2}}}]</small></includeonly><noinclude>
[[Category:Images]]
+
[[Category:Markup Templates]]
 +
== Description ==
 +
Places a hatnote with a link to a specific Google Map. Should only be used at the beginning of a new line.
 +
 
 +
== Parameters ==
 +
{| class="wikitable"
 +
! colspan=3 | Template:GMap
 +
|-
 +
! Parameter !! Scope !! Description
 +
|-
 +
| <code>1</code> || required || First unnamed param. The URL link to the specified Google Map.
 +
|-
 +
| <code>2</code> || required || Second unnamed param. The name/title of the specified Google Map.
 +
|}
 +
 
 +
== Example ==
 +
<pre>{{GMap|https://www.google.co.nz/maps/search/dining/@-36.8528995,174.7713,15z/data=!3m1!4b1!4m4
 +
!2m3!3m2!1sdining!2s-36.8529,+174.7713|Dining locations near the OGGB building.}}</pre>
 +
 
 +
Will display as...
 +
{{GMap|https://www.google.co.nz/maps/search/dining/@-36.8528995,174.7713,15z/data=!3m1!4b1!4m4!2m3!3m2!1sdining!2s-36.8529,+174.7713|Dining locations near the OGGB building.}}
 +
 
 +
</noinclude>

Revision as of 21:52, 1 January 2015

Description

Places a hatnote with a link to a specific Google Map. Should only be used at the beginning of a new line.

Parameters

Template:GMap
Parameter Scope Description
1 required First unnamed param. The URL link to the specified Google Map.
2 required Second unnamed param. The name/title of the specified Google Map.

Example

{{GMap|https://www.google.co.nz/maps/search/dining/@-36.8528995,174.7713,15z/data=!3m1!4b1!4m4
!2m3!3m2!1sdining!2s-36.8529,+174.7713|Dining locations near the OGGB building.}}

Will display as...

link={{{url}}} Google map: [{{{url}}} {{{title}}}]


File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current12:36, 1 January 2015Thumbnail for version as of 12:36, 1 January 2015500 × 500 (47 KB)Augur . (Talk | contribs){{CC-BY-3.0|Remix of the official lca2015 logo. Remixed by <font color="#703931">'''ᏜᏠᎶᏠᏑ'''</font> using GIMP, for the Wiki Hackathon.}} Category:Images
  • You cannot overwrite this file.

The following 2 pages link to this file:

Metadata