Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  

































Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 



















Contents

   



(Top)
 


1 Usage  



1.1  How to use and not use this template  





1.2  Placement in article  





1.3  Examples  







2 Optional parameters  



2.1  Title  





2.2  Width (nesting/floating box)  





2.3  Expansion state  







3 Tracking category  














Template:Adjacent communities






Afrikaans
Алтай тил
العربية
Asturianu
Azərbaycanca
تۆرکجه
Basa Bali

Banjar
 / Bân-lâm-gú
Basa Banyumasan
Башҡортса
Беларуская (тарашкевіца)
Bikol Central
Български
Bosanski
Català
Čeština
Dansk
Eesti
Ελληνικά
Эрзянь
Español
Esperanto
Euskara
فارسی
Français
Galego


/Hak-kâ-ngî

Հայերեն
ि
Ilokano
Bahasa Indonesia
Jawa

Kurdî
Lëtzebuergesch
Lietuvių
Magyar
ि
Македонски




مازِرونی
Bahasa Melayu
Minangkabau
 / Mìng-dĕ̤ng-nḡ
Мокшень

Nāhuatl
Nederlands
Nedersaksies


Norsk bokmål
Norsk nynorsk
ି
Oʻzbekcha / ўзбекча

Pangasinan

Português
Română
Русский


Scots
Shqip

Simple English
Slovenčina
Slovenščina
Soomaaliga
کوردی
Српски / srpski
Sunda
Svenska
ி
Татарча / tatarça
 


Türkçe
Українська
اردو
Tiếng Vit




 

Edit links
 









Template
Talk
 

















Read
View source
View history
 








Tools
   


Actions  



Read
View source
View history
 




General  



What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Get shortened URL
Download QR code
Wikidata item
 




Print/export  



Download as PDF
Printable version
 




In other projects  



Wikimedia Commons
 
















Appearance
   

 





Permanently protected template

From Wikipedia, the free encyclopedia
 

(Redirected from Template:Geographic location)

Usage

{{Adjacent communities
 | Centre    = 
 | North     = 
 | Northeast = 
 | East      = 
 | Southeast = 
 | South     = 
 | Southwest = 
 | West      = 
 | Northwest = 
}}

Or:

{{Adjacent communities
 | Centre = 
 |N= 
 |NE= 
 |E= 
 |SE= 
 |S= 
 |SW= 
 |W= 
 |NW= 
}}

This template provides for a convenient compass-based navigational aid for articles about communities. It allows you to display the communities surrounding the subject of your article.

While this template may be useful for cities, it certainly is redundant for continents, countries and other large geographical areas like states, provinces and islands. In the lead paragraphs of those types of articles, all surrounding countries and features are invariably stated and linked and there's usually a map in the infobox too.

The only required field is |Centre=; the template defaults to an "(enter location)" in the centre of the box message if nothing is entered here (see note below). The fields |Northwest= (|NW=), |North= (|N=), |Northeast= (|NE=), |West= (|W=), |East= (|E=), |Southwest= (|SW=), |South= (|S=), and |Southeast= (|SE=) are optional. They will be hidden when not used; when values are entered for the relevant parameters, the fields will automatically appear. (Normal Wiki markup can be used in the fields, such as links, colours, and bold/italics.)

The template is coded to handle the American spelling "center". It first looks for a value in |Centre=, then in |Center=; it defaults to the "(enter location)" message if both are left blank.

How to use and not use this template

In order to ensure consistent usage, the following guidelines apply:

Placement in article

Examples

Here is an example for Ottawa (capital of Canada) demonstrating the guidelines above:

{{Adjacent communities
 | Centre    = Ottawa
 | North     = [[Pontiac, Quebec|Pontiac]], [[Gatineau]] ([[Quebec]])<br/>''[[Ottawa River]]''
 | Northeast = [[Lochaber-Partie-Ouest, Quebec|Lochaber-Partie-Ouest]] ([[Quebec]])<br/>''[[Ottawa River]]''
 | East      = [[Clarence-Rockland, Ontario|Clarence-Rockland]]
 | Southeast = [[Russell, Ontario|Russell]], [[The Nation, Ontario|The Nation]]
 | South     = [[North Grenville, Ontario|North Grenville]], [[North Dundas, Ontario|North Dundas]]
 | Southwest = [[Merrickville-Wolford, Ontario|Merrickville-Wolford]]
 | West      = [[Mississippi Mills, Ontario|Mississippi Mills]]<br/>[[Beckwith, Ontario|Beckwith]]<br/>[[Montague, Ontario|Montague]]
 | Northwest = [[Arnprior, Ontario|Arnprior]]
}}

produces:


Not all directions necessarily need to be filled.

{{Adjacent communities
 | Centre = Knokke-Heist
 |N= ''[[North Sea]]''
 |E= [[Sluis]] ([[Netherlands|NL]]-[[Zeeland|ZE]])
 |S= [[Damme]]
 |W= [[Bruges]]
}}

produces:

Optional parameters

Title

The default title is "Places adjacent to {{PAGENAME}}". To override this, an optional title can be added; use |title=. This is particularly useful where 2 boxes are needed. For example, |title=Eastern part (includes the poblacion) produces:

Width (nesting/floating box)

By default, the width of the geographic location box is 100%, and is forced to clear below any left or right floating elements. To allow the box to position next to an infobox, image, or other floating element, enter |width=auto on the first line.

Example infobox
LabelData
LabelData
LabelData

Expansion state

Use |state=expanded to force the box to the expanded state, or |state=collapsed to hide it.

Tracking category


Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Adjacent_communities&oldid=1059292964"

Categories: 
Lua-based templates
Geography navigational boxes
Hidden categories: 
Navigational boxes without horizontal lists
Wikipedia template-protected templates
Templates that are not mobile friendly
Templates that add a tracking category
 



This page was last edited on 8 December 2021, at 16:31 (UTC).

Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.



Privacy policy

About Wikipedia

Disclaimers

Contact Wikipedia

Code of Conduct

Developers

Statistics

Cookie statement

Mobile view



Wikimedia Foundation
Powered by MediaWiki