แม่แบบ:CanProvName/doc

จากวิกิพีเดีย สารานุกรมเสรี

This template converts the names of Canadian provinces to their two-letter codes or vice versa. This is useful because some templates ask for province names as input and others ask for province code, so one type of template could not be nested in the other without translation between the two formats.

Usage[แก้]

Use the province name in the first parameter to get the code. Put name in the second parameter to get the full province name. For example:

Input Output
{{CanProvName|Saskatchewan}} SK
{{CanProvName|N.W.T.}} NT
{{CanProvName|Northwest Territories}} NT
{{CanProvName|Canada}} CA
{{CanProvName|QC|name}} Quebec
{{CanProvName|NB|name}} New Brunswick
{{CanProvName|P.E.I.|name}} Prince Edward Island

See also[แก้]