Kentsmith9 (talk | contribs) (Created initial doc) |
Kentsmith9 (talk | contribs) (added examples) |
||
Line 26: | Line 26: | ||
::'''region-name''' will return the name of the region, not a URL. | ::'''region-name''' will return the name of the region, not a URL. | ||
== Examples == | |||
Entering: | |||
{{Pre2|<nowiki> | |||
[{{StateForum | AK | state-id}} Alaska forum].</nowiki> | |||
}} | |||
Produces: [{{StateForum | AK | state-id}} Alaska forum]. | |||
Entering: | |||
{{Pre2|<nowiki> | |||
[{{StateForum | AK | region-id}} {{StateForum | AK | region-name}} region forum].</nowiki> | |||
}} | |||
Produces: [{{StateForum | AK | region-id}} {{StateForum | AK | region-name}} region forum]. | |||
<includeonly> | <includeonly> |
Revision as of 06:35, 1 July 2014
This is a documentation subpage for . It contains usage information, categories and other content that is not part of the original template page. |
This template enables the automatic selection of a United States (or US Territory) forum or region name.
Usage
Place {{StateForum}} on a page where either a URL to a state or region forum is desired. Alternately the template can also determine the name of the region based on the state name passed to it.
{{StateForum | STATENAME or STATE ABBREVIATION | state-id or region-id or region-name }}
Parameters
- First parameter
- STATENAME - The full name of the state or territory (Alaska, California, Texas, etc.)
- STATE ABBREVIATION - The two letter state abbreviation (AK, CA, TX, etc.)
- Second parameter
- state-id will return a URL to the state specific forum.
- region-id will return a URL to the forum for that state's region.
- region-name will return the name of the region, not a URL.
Examples
Entering:
[{{StateForum | AK | state-id}} Alaska forum].
Produces: Alaska forum.
Entering:
[{{StateForum | AK | region-id}} {{StateForum | AK | region-name}} region forum].
Produces: http://www.waze.com/forum/viewforum.php?f=Northwest region forum.