Pang-bô͘:Geographic location
![]() |
![]() | |||
![]() |
||||
| ||||
![]() | ||||

![]() |
Pún pang-bô͘ hông sú-iōng tī approximately 21,000 ia̍h téng-bīn, só͘-í i-ê kái-piàn ē siū tio̍h tōa hoān-ûi ê chù-ì. Chhiáⁿ tī kài-piàn chìn-chêng seng tī pâng-bô͘ ê /sandbox ia̍h /testcases chhù-ia̍h-bīn chhì-giām, he̍k-chiá sī tī lí ka-tī ê iōng-chiá chhù-ia̍h-bīn. Chhiáⁿ tī si̍t-hêng kái-piàn chìn-cheng khó-lū seng at Wikipedia talk:High-risk templates chham-siông chi̍t--leh. |
Usage
[kái goân-sí-bé]{{Geographic location | Centre = | North = | Northeast = | East = | Southeast = | South = | Southwest = | West = | Northwest = }}
Or:
{{Geographic location | 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. 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.
In order to ensure consistent usage, the following guidelines are suggested:
- Use same-level jurisdictions or equivalent in the directional fields as in the centre. For instance, when using this template for a province, show adjacent provinces; when using it for a municipality, show adjacent municipalities; when using it for unincorporated places, show adjacent unincorporated communities; etc.
- When a municipality borders an international, provincial, or state boundary, try to use a municipality in that adjacent jurisdiction rather than the jurisdiction itself.
- Geographical features such as oceans, rivers, lakes, and mountains should be in italics to differentiate them.
- Avoid cluttering the template with too much detail; it is a general guide, not a detailed map.
Placement in article
[kái goân-sí-bé]- WP:LAYOUTNAV specifies that Navboxes, including geography boxes such as this one, are placed after the External links section.
Examples
[kái goân-sí-bé]Here is an example for Ottawa (capital of Canada) demonstrating the guidelines above:
{{Geographic location | 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:
{{Geographic location | Centre = Knokke-Heist | N = ''[[North Sea]]'' | E = [[Sluis]] ([[Netherlands|NL]]-[[Zeeland|ZE]]) | S = [[Damme]] | W = [[Bruges]] }}
produces:
![]() |
North Sea | ![]() | ||
Bruges | ![]() |
Sluis (NL-ZE) | ||
| ||||
![]() | ||||
Damme |
Title option
[kái goân-sí-bé]An optional title can be added, use |title=
. For example, this is useful where 2 boxes are needed:
![]() |
Pangil | ![]() | ||
Laguna de Bay | ![]() |
Real, Quezon | ||
| ||||
![]() | ||||
Paete |
![]() |
Pililla, Rizal | Mabitac / Pangil | ![]() | |
Jalajala, Rizal | ![]() |
Laguna de Bay | ||
| ||||
![]() | ||||
Jalajala, Rizal |
Suppressing the compass icons
[kái goân-sí-bé]By default, the geographic location box includes compass icons on the left and right side of the box. To remove these icons, and increase the amount of space available for useful content, use |noicon=yes
.
Arnprior | Pontiac, Gatineau (Quebec) Ottawa River |
Lochaber-Partie-Ouest (Quebec) Ottawa River | |
Mississippi Mills Beckwith Montague |
![]() |
Clarence-Rockland | |
| |||
![]() | |||
Merrickville-Wolford | North Grenville, North Dundas | Russell, The Nation |
Nesting the box
[kái goân-sí-bé]By default, the width of the geographic location box is 80%, and is forced to float below any left or right floating elements. To allow the box to nest next to an infobox, image, or other floating element, enter |width=auto
on the first line.
Example infobox | |
---|---|
Label | Data |
Label | Data |
Label | Data |
![]() |
Arnprior | Pontiac, Gatineau (Quebec) Ottawa River |
Lochaber-Partie-Ouest (Quebec) Ottawa River |
![]() |
Mississippi Mills Beckwith Montague |
![]() |
Clarence-Rockland | ||
| ||||
![]() | ||||
Merrickville-Wolford | North Grenville, North Dundas | Russell, The Nation |
Téng-bīn ê bûn-kiāⁿ sī tùi Pang-bô͘:Geographic location/doc khàm-ji̍p--ê. (pian-chi̍p | le̍k-sú) Pian-chip-chiá ē-sái tī chit-ê pang-bô͘ ê soa-a̍p (chhòng-kiàn | mirror) kap chhì-giām-kheh-suh (chhòng-kiàn) ia̍h-bīn chò si̍t-giām. Chhiáⁿ tī chú-ia̍h-bīn /doc lāi-bīn ka-thiam lūi-pia̍t. Pún pang-bô͘ ê chú-ia̍h-bīn. |