Help:Template:Canadian City

From Freepedia

Somewhere, Someplace, Canada
List of cities in Canada
Image:Flag of Canada.svg
(in detail)
Flags of Canada

}|135px|Somewhere, Someplace Coat of Arms]]}}</div>

{{Hide = {{{Disable Motto Link}}}}}
Motto:
{{Unhide = {{{Disable Motto Link}}}}}
Place Motto here!
{{Canadian City/Location Image is:{{{Location Image Type}}}|[[Image:{{{Location Image}}}|thumbnail|center|250px|Somewhere, Someplace, Canada location.]]}}
</center></div>
Area: XXX.X km²
Population:

City Population (200X)
Metropolitan Population (200X)


XXX, XXX
XXX, XXX

Population density:XXX.X/km²
Time zone: Eastern: UTC -5
{{Hide = {{{Hide Postal Code field}}}}}
Postal code span:
{{Unhide = {{{Hide Postal Code field}}}}}
{{Hide = {{{Hide Postal Code field}}}}}
A1A,A2(A-K)
{{Unhide = {{{Hide Postal Code field}}}}}

Latitude:
Longitude:

00º 00' N
00º 00' W
{{Canadian_City/Map_source_is:{{{CCMapSource}}}|{{{d1}}}|{{{m1}}}|N|{{{d2}}}|{{{m2}}}|W|region:CA_type:city{{{EP}}}_}}
Elevation:XXX.X m MSL
Mayor: Mayor Name
{{Template:Canadian_City/Disable Field={{{Disable Mayor Listing}}}}}

List of mayors of Template:Canadian City</div>
Governing body: Municipal govern-
ment
name

Edit Canadian City Template

1(sc) According to the Canada 0000 Census.
Template help Edit Template Image:Flag of Canada.svg

This Help page refers to the Template:Canadian City which is used as a standard template for displaying City Information, specifically Canadian Cities.

The Template contains a standardized formatting for various information relating Cities. Information includes, City Flag, City Coat of Arms, City Area, Population, Time zone, Latitude Longitude, current City Mayor, the Cities' Governing Body (Municipal), and the city website.

†: indicates an optional argument that can be removed using different settings.

Contents

Sample Template

Here is a Sample usage of the Template:

{{Canadian City|
  Reference Name=City of {{PAGENAME}}|
  Header Format=Flag and Coat of Arms|
  Motto=City Motto.|
  Latitude Longitude=00º 00' N<br>00º 00' W|
  Elevation=100.0|
  Time zone=EST|
  Postal Code=|
  Population description=City Population (200x)
<br>Metropolitan Population(200x)|
  Population=100 000<br>500 000|
  Population Density=1000.0|
  Area=100.0|
  City Mayor=Mayor Name|
  Governing Body=[[Canadian City Council]]|
  website= [http://www.cityofcanada.ca Canadian City website]|
  Census Year=200x|
  Extra references=None|
}}


{{Canadian City|

Reference Name=City of {{PAGENAME}}|
Header Format=Flag and Coat of Arms|</tt><!--Parameters include "None", "Flag", "Coat of Arms", and "Flag and Coat of Arms"-->
Motto=City Motto.|
Latitude Longitude=00º 00' N<br>00º 00' W|
Elevation=100.0|
Time zone=EST|<!--Parmeters include Time zones include: "PST", "MST", "CST", "EST", "AST", and "NST"-->
Population description=City Population (200x)<br>Metropolitan Population(200x)|
Population=100 000<br>500 000|
Population Density=1000.0|
Area=100.0|
City Mayor=Mayor Name|
Governing Body=[[Canadian City Council]]|
website= [http://www.cityofcanada.ca Canadian City website]|
Census Year=200x|
Extra references=Geographical references|
}}

Blank Template

{{Canadian City|
  Reference Name=City of {{PAGENAME}}|
  Header Format=None|
  Motto=|
  Latitude Longitude=|<!-- Use the following format: 00º 00' N<br>00º 00' W -->
  Elevation=|
  Time zone=|
  Postal Code=|
  Population description=|
  Population=|
  Population Density=|
  Area=|
  City Mayor=|
  Governing Body=|
  website=|
  Census Year=2001|
  Extra references=|
}}

Parameter descriptions

The following describes some of the template modifying parameters.

"Latitude Longitude"

The "Latitude Longitude" parameter should contain information formated as follows

Latitude Longitude=00º 00' N<br>00º 00' W|

because of the inablity to add templates as parameters to other templates, an optional parameter was added to Template:Canadian City to enable the functionality of linking to the Wikipedia:WikiProject Geographical coordinates map source option, according to the Wikipedia:Manual of Style (dates and numbers)#Geographical coordinates format.

usage:

...
Latitude Longitude=|
CCMapSource=coor|d1=00|m1=00|d2=00|m2=00|EP=|
...

d1 and m1 are the degree and minute coordinates for latitude. d2 and m2 are the degree and minute coordinates for longitude. EP is an extra parameter used for linking to the wiki map source page.

where CCMapSource can be any of the following

Value Effect
None does nothing, use Latitude Longitude to add textual information, ignore d1, m1, d2, m2, and EP fields
coor show and link d1, m1, d2, m2 and EP as d1°m1′ N d2°m2′ W
coor br add a break between latitude and longitude
goto coor show the coordinate link as a Goto

other options can be added, see Template talk:Canadian City/Testing (Template:Canadian City/Map source is:XXXXX).

"Time zone" uses {{Time zone is:XST}}

Time zones include: "PST" for Pacific, "MST" for Mountain, "CST" for Central, "EST" for Eastern, "AST" for Atlantic, and "NST" for Newfoundland Standard Time Zone.

So for example:
"Time zone=AST|<tt>"</code>
will give
"Atlantic: UTC -4"
in the Time zone field of {{Canadian City}}

"Header Format"

Standard Header

The standard Header Format can be: "Flag and Coat of Arms", "Flag", "Coat of Arms", or "None".

Using this pattern, the names of the Flag and Coat of Arms Images must conform to the following patterns:
PAGE_NAME_Flag.jpg
PAGE_NAME_Coat_of_Arms.jpg

Where PAGE_NAME is the entire name of the page, example Toronto_Flag.jpg, Windsor,_Otario_Coat_of_Arms.jpg

The use of standard headers is recommened for image name standardization.

example usage:

...
Header Format=Flag and Coat of Arms|
...

Custom Header Images

NOTE: Three Additional headers have been created, are provided in the case that the images do not follow the standard naming scheme. This will allow for the name of the image to be of any wikipedia embed enabled type, instead of only JPEG.

The custom Header Formats are: "Custom Flag and Coat of Arms", "Custom Flag", and "Custom Coat of Arms"

This method only for the names of the images to be specified, and hence two new fields have to be added, namely the "Flag Image", and "Coat Image" fields. Both fields must be added, even if only one is used (i.e. if only the flag is used, define==> "Coat Image=|").

example usage:

...
Header Format=Custom Coat of Arms|
Flag Image=|
Coat Image=City_Coat_Image.png|
...

or

...
Header Format=Custom Flag| Flag Image=FlagName.png| Coat Image=City_Coat_Image.png|
...

"Area" and "Population Density"

"Area" and "Population Density" fields are in km² and people/km² respectively. Units should not be included in the declaration (as shown above).

<tt>"Area=100.0|" :will produce "Area: || 100.0 km²

and

"Population Density=1000.0|" :will produce "Population [[Density]]:||1000.0/km²"

"Postal Code"

List a span of postal codes, for example: if a city has postal codes starting with Z1A; Z1B; and Z1C; these could be represented as "Z1(A-C)".

"Extra references"

use the following "External references" for extra information at the bottom of the info table.

"Extra reference"CodeDisplay
Extra references=|<br>
Extra references=None|<br>
Extra references=Geographic references|<br><sup>GR</sup>[[Geographic references]]
2(gr) Geographic references.

City Location Images [[Image:City,_Province_Location.png]]

Image:Abbotsfordbc.PNG Image:Altacgy.PNG
Image:SK.PNG Image:Winnipegmanitoba.PNG
Image:Onttor.PNG Image:Estrie.PNG
Image:NL.PNG Image:Map of Nova Scotia highlighting Cape Breton County.png
Image:Map of New Brunswick highlighting Gloucester County.png Image:Charlottetown, Prince Edward Island Location.png
Image:NT.PNG Image:Nunavut Qikiqtaaluk Region.png

For location images to be used in the template, the following name pattern is used:

[[Image:{{PAGENAME}}_Location.png]]

i.e. a page named "Ottawa, Ontario" would have the image location reference name "Ottawa,_Ontario_Location.png" and would be linked to using "[[Image:Ottawa,_Ontario_Location.png]]"

custom named location images (optional parameters)

An upgrade to this template allows for the option to specify custom image name (the upgrade was made using fancy <div> tags).

now add the following parameters to the param list and voila, custom image name:

...
Location Image Type=Custom|
Location Image=CityLOC.jpg|
...

where CityLOC.jpg is the name of the image uploaded to wikipedia.

It is still recommended to use the standardized name for the sake of standardization (i.e. the one that is in the following form:"City,Province/Territory Location.png").

Disabling parameter fields

This section deals with customization parameters that can be used for omitting certain elements from the template.

Mayor listing link

To disable the Mayor listing link (i.e. "list of mayors of city") from showing, add the following line to the template parameter list:

...
Disable Mayor Listing=True|
...

Motto link

To disable the Motto Link use:

...
Disable Motto Link=True|
...

Postal Code

To hide the postal code entry, use:

...
Hide Postal Code field=True|
...

NB: This only hides the text entry, but fails to disable table rows/cols, and hence may show a small space. Needs a fix (but works when rendering under Microsoft Internet Explorer).



Views
Personal tools
Similar Links