Template:Postal: Difference between revisions
Robertbaxter (talk | contribs) No edit summary |
Robertbaxter (talk | contribs) No edit summary |
||
Line 25: | Line 25: | ||
} | } | ||
</templatedata> | </templatedata> | ||
</noinclude><includeonly> | </noinclude><includeonly><!-- | ||
{{#switch: {{{1}}} | -->{{#switch: {{{1}}} | ||
| Alabama = AL | | Alabama = AL | ||
| Alaska = AK | | Alaska = AK | ||
Line 100: | Line 100: | ||
| Yukon = YT | | Yukon = YT | ||
| {{{1}}} | | {{{1}}} | ||
}} | }}<!-- | ||
--></includeonly> |
Revision as of 15:37, 3 September 2025
This template replaces a state or province with the equivalent 2-letter postal code.
Usage
The state or province should be passed as the only parameter of template. If the provided text is not recognized in the list on this page, the original text is displayed.
{{postal|Wisconsin}} {{postal|Arizona}} {{postal|Quebec}}
WI AZ QC
TemplateData
A postal abbreviation transform.
Parameter | Description | Type | Status | |
---|---|---|---|---|
State/province | 1 | The state or province | String | required |