Difference between revisions of "Template:Gbmlink/doc"

From blackwiki
Jump to navigation Jump to search
imported>Droll
(cleaned up)
imported>Vanisaac
m (→‎Usage: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
{{documentation subpage}}
 
{{documentation subpage}}
This template generates a bare link to the geohack page for a specified UK grip reference. It is for use with the {{tl|location map}} family of templates.
+
This template generates a bare link to the geohack page for a specified UK grid reference. It is for use with the {{tl|location map}} family of templates. It uses a tool on the [[Wikimedia Toolserver]].
  
 
== Usage ==
 
== Usage ==
Line 22: Line 22:
 
     |mark = Green pog.svg |link={{gbmlink|SU4629969090}} }}
 
     |mark = Green pog.svg |link={{gbmlink|SU4629969090}} }}
 
   {{Location map~ |Berkshire |lat=51.483889 |long=-0.604444 |label='''Windsor''' |position=left  
 
   {{Location map~ |Berkshire |lat=51.483889 |long=-0.604444 |label='''Windsor''' |position=left  
     |mark=Green pog.svg |link={{gbmlink|SU9701977005}}}}
+
     |mark=Green pog.svg |link={{gbmlink|SU9701977005}} }}
 
}}
 
}}
 
</pre>
 
</pre>
  
<includeonly>
+
<includeonly>{{Sandbox other||
 
<!-- categories and interwiki links -->
 
<!-- categories and interwiki links -->
 
[[Category:Coordinates templates|{{PAGENAME}}]]
 
[[Category:Coordinates templates|{{PAGENAME}}]]
 
[[Category:External link templates|{{PAGENAME}}]]
 
[[Category:External link templates|{{PAGENAME}}]]
  
</includeonly>
+
}}</includeonly>

Latest revision as of 15:19, 25 April 2020

This template generates a bare link to the geohack page for a specified UK grid reference. It is for use with the {{location map}} family of templates. It uses a tool on the Wikimedia Toolserver.

Usage

The only parameter allowed is a UK grip reference. See {{OS coord}} for allowable grid reference formats.

Gbmlink/doc is located in Berkshire
Donnington
Donnington
Windsor
Windsor
Two castles in Berkshire
{{Location map+  |Berkshire |width=300 |float=right |caption=Two castles in Berkshire
  |AlternativeMap=Berkshire UK district map (blank).svg
  |places=
  {{Location map~ |Berkshire |lat=51.419722 |long=-1.338056 |label='''Donnington'''
    |mark = Green pog.svg |link={{gbmlink|SU4629969090}} }}
  {{Location map~ |Berkshire |lat=51.483889 |long=-0.604444 |label='''Windsor''' |position=left 
    |mark=Green pog.svg |link={{gbmlink|SU9701977005}} }}
}}