{{ Comunidades adyacentes | Centro = | Norte = | Noreste = | Este = | Sureste = | Sureste = | Suroeste = | Oeste = | Noroeste = }}
O:
{{ Comunidades adyacentes | Centro = | norte = | NE = | mi = | SE = | S = | SO = | W = | NO = }}
Esta plantilla proporciona una práctica ayuda de navegación basada en brújula para artículos sobre comunidades. Le permite mostrar las comunidades que rodean el tema de su artículo.
Si bien esta plantilla puede resultar útil para las ciudades, sin duda es redundante para continentes, países y otras áreas geográficas grandes, como estados, provincias e islas. En los párrafos iniciales de este tipo de artículos, se mencionan y vinculan invariablemente todos los países y características circundantes y, por lo general, también hay un mapa en el cuadro de información.
El único campo obligatorio es |Centre=
; la plantilla tiene como valor predeterminado un "(ingresar ubicación)" en el centro del cuadro de mensaje si no se introduce nada aquí (ver nota a continuación). Los campos |Northwest=
( |NW=
), |North=
( |N=
), |Northeast=
( |NE=
), |West=
( |W=
) , |East=
( |E=
), |Southwest=
( |SW=
), |South=
( |S=
) y |Southeast=
( |SE=
) son opcionales. Se ocultarán cuando no se utilicen; cuando se introduzcan valores para los parámetros pertinentes, los campos aparecerán automáticamente. (Se puede utilizar el marcado Wiki normal en los campos, como enlaces, colores y negrita/cursiva).
La plantilla está codificada para manejar la ortografía estadounidense "center". Primero busca un valor en |Centre=
, luego en |Center=
; por defecto, muestra el mensaje "(ingresar ubicación)" si ambos se dejan en blanco.
Para garantizar un uso coherente, se aplican las siguientes pautas:
A continuación se muestra un ejemplo para Ottawa (capital de Canadá) que demuestra las pautas anteriores:
{{ Comunidades adyacentes | Centro = Ottawa | Norte = [[ Pontiac, Quebec | Pontiac ]] , [[ Gatineau ]] ( [[ Quebec ]] ) < br /> '' [[ Río Ottawa ]] '' | Noreste = [[ Lochaber-Partie-Ouest, Quebec | Lochaber-Partie-Ouest ]] ( [[ Quebec ]] ) < br /> '' [[ Río Ottawa ]] '' | Este = [[ Clarence-Rockland, Ontario | Clarence-Rockland ]] | Sureste = [[ Russell, Ontario | Russell ]] , [[ The Nation, Ontario | The Nation ]] | Sur = [[ North Grenville, Ontario | North Grenville ]] , [[ North Dundas, Ontario | North Dundas ]] | Suroeste = [[ Merrickville-Wolford, Ontario | Merrickville-Wolford ]] | Oeste = [[ Mississippi Mills, Ontario | Molinos de Mississippi ]]< br />[[ Beckwith, Ontario | Beckwith ]]< br />[[ Montague, Ontario | Montague ]] | Noroeste = [[ Arnprior, Ontario | Arnprior ]] }}
produce:
No es necesario completar necesariamente todas las direcciones.
{{ Comunidades adyacentes | Centro = Knokke-Heist | N = '' [[ Mar del Norte ]] '' | E = [[ Sluis ]] ( [[ Países Bajos | NL ]] - [[ Zelanda | ZE ]] ) | S = [[ Señora ]] | W = [[ Brujas ]] }}
produce:
El título predeterminado es "Lugares adyacentes a {{PAGENAME}}". Para anularlo, se puede agregar un título opcional; utilice |title=
. Esto es particularmente útil cuando se necesitan 2 cuadros. Por ejemplo, produce:|title=Eastern part (includes the poblacion)
De manera predeterminada, el ancho del cuadro de ubicación geográfica es del 100 % y se debe despejar por debajo de cualquier elemento flotante izquierdo o derecho. Para permitir que el cuadro se ubique junto a un cuadro de información, una imagen u otro elemento flotante, ingrese |width=auto
en la primera línea.
Úselo |state=expanded
para forzar el cuadro al estado expandido o |state=collapsed
para ocultarlo.