Kentsmith9 (talk | contribs) (initial creation) |
Kentsmith9 (talk | contribs) (Update template) |
||
Line 1: | Line 1: | ||
{{#switch: {{{ | {{#switch: {{{1}}} | ||
<!-- Northwest --> | <!-- Northwest --> | ||
| AK|Alaska = 565 | | AK|Alaska = {{StateForum/Core|{{{2|}}}|254|565|Northwest}} | ||
| ID|Idaho = 565 | | ID|Idaho = {{StateForum/Core|{{{2|}}}|648|565|Northwest}} | ||
| MT|Montana = 565 | | MT|Montana = {{StateForum/Core|{{{2|}}}|649|565|Northwest}} | ||
| OR|Oregon = 565 | | OR|Oregon = {{StateForum/Core|{{{2|}}}|647|565|Northwest}} | ||
| WA|Washington = 565 | | WA|Washington = {{StateForum/Core|{{{2|}}}|201|565|Northwest}} | ||
| WY|Wyoming = 565 | | WY|Wyoming = {{StateForum/Core|{{{2|}}}|650|565|Northwest}} | ||
<!-- Southwest 566 --> | <!-- Southwest 566 --> | ||
| 129 | | {{StateForum/Core|{{{2|}}}|129|129|USA}} <!-- default USA forum --> | ||
}} | }} | ||
<noinclude>{{documentation}}<!-- | <noinclude>{{documentation}}<!-- | ||
Add categories and interwikis to the /doc subpage, not here! | Add categories and interwikis to the /doc subpage, not here! | ||
--></noinclude> | --></noinclude> |
Revision as of 05:45, 1 July 2014
Error in Parameter to RC/Data or RC/Forum
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 or the states in a region. It uses the data in {{StateForum/List}}.
{{StateForum | STATENAME or STATE ABBREVIATION or REGION NAME | state-id or region-id or region-name or regional-coordinator or state-list or state-list-long }}
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.)
- REGION NAME - The full name of the region (Northwest, New England, 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.
- regional-coordinator will return the username of the regional coordinator.
- state-list will return the abbreviated names of the states in the region.
- state-list-long will return the full names of the states in the region.
Examples
Entering: | [{{StateForum | AK | state-id}} Alaska forum] |
Produces: [565
Alaska forum]
Entering: | [{{StateForum | AK | region-id}} {{StateForum | AK | region-name}} region forum] |
Produces: [565
Northwest region forum]
Entering: | [{{StateForum | Northwest | region-id}} Northwest region forum] |
Produces: [129
Northwest region forum]
Entering: | {{StateForum | Northwest | regional-coordinator}} |
Produces: USA
Entering: | {{Username |{{StateForum | Northwest | regional-coordinator}} }} |
Produces: [[User:USA
|USA]] ([https://www.waze.com/forum/memberlist.php?mode=viewprofile&un=USA PM] [Help])
(NOTE: The template currently requires no space between the | and the first parameter.)
Entering: | {{StateForum | Northwest | state-list}} |
Produces: {{{9}}}
Entering: | {{StateForum | Northwest | state-list-long}} |
Produces: {{{10}}}
The above documentation is transcluded from Template:StateForum/doc. Please add categories to the /doc subpage. Subpages of this template. |