Difference between revisions of "Template:Adjacent communities/doc"

From blackwiki
Jump to navigation Jump to search
blackwiki>Thetrick
(fix typo)
blackwiki>Sardanaphalus
(updating, +categories from template page)
Line 1: Line 1:
{{Documentation subpage}}
+
{{documentation subpage}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
+
<!---PLEASE ADD METADATA TO THE <includeonly> SECTION AT THE BOTTOM OF THIS PAGE--->
 
 
 
{{mergefrommulti|GeoCompass|Compass-table}}
 
{{mergefrommulti|GeoCompass|Compass-table}}
 
== Usage ==
 
== Usage ==
  
<pre>{{Geographic Location
+
<pre>
| Centre    =  
+
{{Geographic Location
| North    =  
+
|Centre    =  
| Northeast =  
+
|North    =  
| East      =  
+
|Northeast =  
| Southeast =  
+
|East      =  
| South    =  
+
|Southeast =  
| Southwest =  
+
|South    =  
| West      =  
+
|Southwest =  
| Northwest =  
+
|West      =  
| image    =  
+
|Northwest =  
}}</pre>
+
|image    =  
 +
}}
 +
</pre>
  
 
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 "(add city)" in the centre of the box message if nothing is entered here (''see note below'').  The fields ''Northwest'', ''North'', ''Northeast'', ''West'', ''East'', ''Southwest'', ''South'', and ''Southeast'' 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.)
 
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 "(add city)" in the centre of the box message if nothing is entered here (''see note below'').  The fields ''Northwest'', ''North'', ''Northeast'', ''West'', ''East'', ''Southwest'', ''South'', and ''Southeast'' 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.)
  
 
Here is a demonstration for the fictional town of Centreville:
 
Here is a demonstration for the fictional town of Centreville:
{{Geographic Location (8-way)
+
{{Geographic Location
| Northwest = Norweston|
+
|Northwest = Norweston
| North = Norton<br><small>''Highway 0''</small> |
+
|North     = Norton<br><small>''Highway 0''</small>
| Northeast = ''Unorganized territory''|
+
|Northeast = ''Unorganized territory''
| West = Western Village |
+
|West     = Western Village
| Centre = Centreville |
+
|Centre   = Centreville
| East = Easton |
+
|East     = Easton
| Southwest = |
+
|Southwest =  
| South = Southam City|
+
|South     = Southam City
| Southeast = Southeastopolis|
+
|Southeast = Southeastopolis
 
}}
 
}}
 
<blockquote>*<small>''To ensure that the template does not fail if the American spelling "center" is used, there is coding for both variants. The template will first look for a value in "Centre", then in "Center"; it defaults to the "(add city)" message if both are left blank.''</small></blockquote>
 
<blockquote>*<small>''To ensure that the template does not fail if the American spelling "center" is used, there is coding for both variants. The template will first look for a value in "Centre", then in "Center"; it defaults to the "(add city)" message if both are left blank.''</small></blockquote>
  
 
<includeonly>
 
<includeonly>
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
+
[[Category:Geography and place templates| ]]
 +
[[Category:Templates using ParserFunctions|{{PAGENAME}}]]
  
 
[[fr:Modèle:Localisation ville]]
 
[[fr:Modèle:Localisation ville]]

Revision as of 11:22, 14 July 2008

Template:Mergefrommulti

Usage

{{Geographic Location
|Centre    = 
|North     = 
|Northeast = 
|East      = 
|Southeast = 
|South     = 
|Southwest = 
|West      = 
|Northwest = 
|image     = 
}}

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 "(add city)" in the centre of the box message if nothing is entered here (see note below). The fields Northwest, North, Northeast, West, East, Southwest, South, and Southeast 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.)

Here is a demonstration for the fictional town of Centreville:

*To ensure that the template does not fail if the American spelling "center" is used, there is coding for both variants. The template will first look for a value in "Centre", then in "Center"; it defaults to the "(add city)" message if both are left blank.