Francais | English | Espanõl

Help:Template:Canadian City

From Wikipedia, the free encyclopedia

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

</div>

Motto:
{{Unhide = {{{}}}}}
Place Motto here!
Location
</center></div>
City Information
Established:{{{Established}}}
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 = {{{}}}}}
Postal code span:
{{Unhide = {{{}}}}}
{{Hide = {{{}}}}}
A1A, A2(A-K)
{{Unhide = {{{}}}}}
{{Hide = {{{}}}}}
Local area code:
{{Unhide = {{{}}}}}
{{Hide = {{{}}}}}
{{Unhide = {{{}}}}}

Latitude:
Longitude:

00°00′N
00°00′W
{{Canadian_City/Map_source_is:{{{CCMapSource}}}|d1|m1|N|d2|m2|W|region:CA_type:city(100,000)_}}
Elevation:XXX.X m MSL
Government
Mayor: Mayor Name
{{Hide = {{{Disable Mayor Listing}}}}}

List of mayors of Template:Canadian City
{{Unhide = {{{Disable Mayor Listing}}}}}
Governing body: Municipal govern-
ment
name
Members of Parliament:
{{{MPs}}}
Provincial Representatives:
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

[edit] 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={{coors dm|00|00|N|00|00|W|region:CA}}|
  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|
  Mayor=Mayor Name|
  Governing Body=[[Canadian City Council]]|
  website= [http://www.cityofcanada.ca Canadian City website]|
  Census Year=200x|
  Footnotes=|
}}


{{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|
Mayor=Mayor Name|
Governing Body=[[Canadian City Council]]|
website= [http://www.cityofcanada.ca Canadian City website]|
Census Year=200x|
Extra references=Geographical references|
}}

[edit] Blank Template

{{Canadian City|
  Reference Name=City of {{PAGENAME}}|
  Header Format=None|
  Motto=|
  Latitude Longitude=|{{coors dm|00|00|N|00|00|W|region:CA}}
  Elevation=|
  Time zone=|
  Postal Code=|
  Population description=|
  Population=|
  Population Density=|
  Area=|
  Mayor=|
  Governing Body=|
  website=|
  Census Year=2001|
  Footnotes=|
}}

[edit] Parameter descriptions

The following describes some of the template modifying parameters.

[edit] Standard parameters

[edit] "Reference Name"[t]

Optional parameter used for idenfifing the standard name of the City, default:City of Template:Canadian City.

[edit] "Custom header link"[t]

The Custom header link is not required in the template, but does offer the option of changing, or removing the link to other cities that appears between the Template Title and Table. In the case of Custom header link being defined as:

...
Custom header link=[[List of cities in Canada]]
...

gives:

City of Template:Canadian City, Canada
List of cities in Canada
...

no change observed, as the default value is substituted back into the parameter, but

...
Custom header link=[[List of cities in Canada]]
...

will result in:

City of Template:Canadian City, Canada
...

[edit] "Header Format"

[edit] 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 recommenced for image name standardization.

example usage:

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

[edit] Custom Header Images (to be merged into standard header via redirect)

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 allows 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=|"). If Custom Header Option is specified, but either "Flag Image" or "Coat Image" is not specified, then the default image names are used (i.e. PAGE_NAME_Flag.jpg and PAGE_NAME_Coat_of_Arms.jpg).

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|
...

[edit] "Motto"

Parameter for the city motto, or nickname. Use "motto" for no formatting version, and "Motto" for full formatting version. Example usage:

...
motto=the motto of the city.
...

gives:

the motto of the city

while

...
Motto=the motto of the city.
...

gives:

Motto:the motto of the city.

[edit] "Area"

The area field for the template is ment for storing the surface area of the city that the template resides. The default parameter name is for defining area is "Area", and is meant to be a value in km². Variants of the paramenter exist for added flexibility, example if "area" is the defined parameter instead of "Area", the template will not automatically place the units km² at the end of the given value, and hence that formatting would have to be entered with the parameter value. "scArea" is similar to "Area" except it adds a link to statistics Canada link (present at bottom of template by default).

area=100.0 {{ref label|Stats_Canada|1|1(sc)}} [[1 E6 m²|km²]]|
Area=100.0 {{ref label|Stats_Canada|1|1(sc)}}|

and

scArea=100.0|

all produce the same result ==>

Area:100.0 [1] km²
...
Area+=<br />Area note, or other Area information|
...

The "Area+" parameter places information directly after the information in either "area", "Area", or "scArea". For example:

...
Area=(city) 100.0|
Area+=<br />(metro) 1000.0 km²|
...

gives:

Area:(city) 100.0 km²
(metro) 1000.0 km²

[edit] "Population Description" and "Population"

"Population Description" contains the labeled titles for information in the Population field.

"Population" contains the information such as current population estimate, census population, and other information.

...
Population Description= - City (2001)<br /> - Metro (2001)|
Population=200 000 {{ref label|Stats_Canada|1|1(sc)}} <br />1 000 000 {{ref label|Stats_Canada|1|1(sc)}}|
...

gives:

Population:

 - City (2001)
- Metro (2001)


200 000 [1]
1 000 000 [1]

[edit] "Population Density"

The "Population Density" field is in the unit people/km² by default

...
Population Density=10.0|
...

will produce:

Population density:10.0/km²

[edit] "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}}

[edit] "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)".

[edit] "Latitude Longitude"

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

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

but since templates can now be set as parameter input, {{coor}} can be used. Example

...
Latitude Longitude={{coor dm|d1|d2|N|m1|m2|}}|
...

which results in:

Latitude:
Longitude:
d1°d2′N m1°m2′

because of the inability 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).


[edit] "Extra references" (still supported, but outdated by "#Footnotes")

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.

[edit] Footnotes

This parameter allows for reference data to be more easily placed into the template, using the template {{note label}} from the Wikipedia:Footnotes guide.

...
Footnotes={{note label|Reference_name|2|RN}} This is a test reference<br />|
...
or
...
References={{note label|Reference_name|2|RN}} This is a test reference<br />|
...

gives:

1(sc) According to the Canada 2001 Census.
RN  This is a test reference
Template help Edit Template Image:Flag of Canada.svg

while no pre formatting option is defined (lowercase):

...
footnotes={{note label|Reference_name|2|RN}} This is a test reference<br />|
...
or
...
references={{note label|Reference_name|2|RN}} This is a test reference<br />|
...

and gives:

RN  This is a test reference
</small>Template help Edit Template Image:Flag of Canada.svg

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

British Columbia Regional District Map Alberta Census Division Map
Image:SK.PNG Manitoba Census Division Map
Ontario County & District Map Quebec Regional County Municipality Map
Image:NL.PNG Nova Scotia County Map
New Brunswick County Map PEI County Map
Image:NT.PNG Nunavut Region Map

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]]"

[edit] 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").

[edit] Disabling parameter fields

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

[edit] 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|
...

[edit] Motto link

Note:this function has been replaced by use of "motto" instead of "Motto", but can still be performed using "Disable Motto Link=True" To disable the Motto Link use:

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

[edit] 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).

Personal tools