Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Os-grid-nav: Difference between revisions

Template page
Content deleted Content added
m Borderman moved page Template:OS-grid-nav to Template:Os-grid-nav
centre number size increased / n,s,e,w made bold
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
{| class="mw-collapsible" class="wikitabl" style="float:right; width:21em; border:1px solid #ccc; background:#f9f9f9; text-align:center; vertical-align:middle; font-size:90%; padding:4px; margin: 0 0 1em 1.5em;"
{|style="float:right; width:19em; border:none; background:#f9f9f9; text-align:center; vertical-align:middle; font-size:90%; padding:4px; margin:0 0 1em 1.5em; box-shadow:0 4px 4px rgba(0,0,0,0.1); "
|-
|-
!style="background:#cfe2f3; font-size:120%; padding-left:45px;" colspan="3" | OS grid navigation
!style="background:#cfe2f3; font-size:120%;" colspan="3" | {{{grid-number}}}
|-
|-
|style="padding-top:4px;" colspan="3" |<center>{{#display_map:{{{lat}}},{{{long}}}|service=leaflet|static=yes|fullscreen=yes|zoom={{{zoom}}}|width=280|height=320}}{{clear}}</center>
|style="padding-top:4px;" colspan="3" |<center>{{#display_map:{{{lat}}},{{{long}}}|service=leaflet|static=no|fullscreen=yes|zoom={{{zoom}}}|width=350|height=350}}{{clear}}</center>
|-
|-
| style="width:7em; padding:5px; background:#f4f4f4; text-align:;" | [[:Category:{{{osgrid-nw}}}|{{{osgrid-nw}}}]]
| style="width:7em; padding:5px; background:#f4f4f4; text-align:;" | [[:Category:{{{osgrid-nw}}}|{{{osgrid-nw}}}]]
| style="width:7em; padding:5px; background:#eaeaea;"| [[:Category:{{{osgrid-n}}}|{{{osgrid-n}}}]]
| style="width:7em; padding:5px; background:#eaeaea;"| '''[[:Category:{{{osgrid-n}}}|{{{osgrid-n}}}]]'''
| style="width:7em; padding:5px; background:#f4f4f4;"| [[:Category:{{{osgrid-ne}}}|{{{osgrid-ne}}}]]
| style="width:7em; padding:5px; background:#f4f4f4;"| [[:Category:{{{osgrid-ne}}}|{{{osgrid-ne}}}]]
|-
|-
| style="width:7em; padding:5px; background:#eaeaea;" | [[:Category:{{{osgrid-w}}}|{{{osgrid-w}}}]]
| style="width:7em; padding:5px; background:#eaeaea;"| '''[[:Category:{{{osgrid-w}}}|{{{osgrid-w}}}]]'''
| style="width:7em; padding:5px; background:#dbdbdb;"| '''[[:Category:{{{osgrid-c}}}|{{{osgrid-c}}}]]'''
| style="width:7em; padding:5px; background:#dbdbdb; font-size:120%;"| '''[[:Category:{{{osgrid-c}}}|{{{osgrid-c}}}]]'''
| style="width:7em; padding:5px; background:#eaeaea;"| [[:Category:{{{osgrid-e}}}|{{{osgrid-e}}}]]
| style="width:7em; padding:5px; background:#eaeaea;"| '''[[:Category:{{{osgrid-e}}}|{{{osgrid-e}}}]]'''
|-
|-
| style="width:7em; padding:5px; background:#f4f4f4;"| [[:Category:{{{osgrid-sw}}}|{{{osgrid-sw}}}]]
| style="width:7em; padding:5px; background:#f4f4f4;"| [[:Category:{{{osgrid-sw}}}|{{{osgrid-sw}}}]]
| style="width:7em; padding:5px; background:#eaeaea;"| [[:Category:{{{osgrid-s}}}|{{{osgrid-s}}}]]
| style="width:7em; padding:5px; background:#eaeaea;"| '''[[:Category:{{{osgrid-s}}}|{{{osgrid-s}}}]]'''
| style="width:7em; padding:5px; background:#f4f4f4;"| [[:Category:{{{osgrid-se}}}|{{{osgrid-se}}}]]
| style="width:7em; padding:5px; background:#f4f4f4;"| [[:Category:{{{osgrid-se}}}|{{{osgrid-se}}}]]
|}<noinclude>{{doc|{{os-grid-nav/doc}}}}</noinclude>
|}<noinclude>{{doc|{{os-grid-nav/doc}}}}</noinclude>

Latest revision as of 12:01, 6 April 2023

{{{grid-number}}}
Loading map...
[[:Category:{{{osgrid-nw}}}|{{{osgrid-nw}}}]] [[:Category:{{{osgrid-n}}}|{{{osgrid-n}}}]] [[:Category:{{{osgrid-ne}}}|{{{osgrid-ne}}}]]
[[:Category:{{{osgrid-w}}}|{{{osgrid-w}}}]] [[:Category:{{{osgrid-c}}}|{{{osgrid-c}}}]] [[:Category:{{{osgrid-e}}}|{{{osgrid-e}}}]]
[[:Category:{{{osgrid-sw}}}|{{{osgrid-sw}}}]] [[:Category:{{{osgrid-s}}}|{{{osgrid-s}}}]] [[:Category:{{{osgrid-se}}}|{{{osgrid-se}}}]]
Template documentation

Usage

Copy and paste the following syntax into the details tab/page and fill out accordingly.

  • lat and long: Should be in decimal degrees, i.e., 54.587016 and -3.1381819
  • zoom: level works well at about 14.
  • osgrid-n is the grid number immediately North of the centre number.
  • osgrid-s is the grid number immediately South of the centre number.
  • All the remaining grid numbers correspond to which direction they are located: -nw = north-west, -se = south-east etc.
{{location
<!-------------MAP-->
 |lat        =
 |long       =
 |zoom       =
<!-------------GRID LINKS-->
 |osgrid-nw  =
 |osgrid-n   =
 |osgrid-ne  =
 |osgrid-w   =
 |osgrid-c   = centre grid number
 |osgrid-e   =
 |osgrid-sw  =
 |osgrid-s   =
 |osgrid-se  =
}}
The above documentation is transcluded from Template:Os-grid-nav/doc.
Contents
Cookies help us deliver our services. By using our services, you agree to our use of cookies.