Kentsmith9 (talk | contribs) (Added statelist) |
Kentsmith9 (talk | contribs) (Added RC field and Long state list) |
||
Line 1: | Line 1: | ||
{{#switch: {{{2}}} | <!--When changing content here, also change {{StateForum/Core}} | ||
-->{{#switch: {{{2}}} | |||
<!--Forum links are currently all the same output, but listed separately for future --> | |||
| state-id|State-id|State-ID = http://www.waze.com/forum/viewforum.php?f={{StateForum/List|{{{1|}}}|{{{2|}}}}} | | state-id|State-id|State-ID = http://www.waze.com/forum/viewforum.php?f={{StateForum/List|{{{1|}}}|{{{2|}}}}} | ||
| region-id|Region-id|Region-ID = http://www.waze.com/forum/viewforum.php?f={{StateForum/List|{{{1|}}}|{{{2|}}}}} | | region-id|Region-id|Region-ID = http://www.waze.com/forum/viewforum.php?f={{StateForum/List|{{{1|}}}|{{{2|}}}}} | ||
<!--Text output are currently all the same, but listed separately for future --> | |||
| regional-coordinator|Regional-Coordinator|Regional-coordinator = {{StateForum/List|{{{1|}}}|{{{2|}}}}} | |||
| region-name|Region-Name|Region-name = {{StateForum/List|{{{1|}}}|{{{2|}}}}} | | region-name|Region-Name|Region-name = {{StateForum/List|{{{1|}}}|{{{2|}}}}} | ||
| state-list|State-List|State-list = {{StateForum/List|{{{1|}}}|{{{2|}}}}} | | state-list|State-List|State-list = {{StateForum/List|{{{1|}}}|{{{2|}}}}} | ||
| state-list-long|State-List-Long|State-list-long = {{StateForum/List|{{{1|}}}|{{{2|}}}}} | |||
}}<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 22:27, 7 July 2014
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: Alaska forum
Entering: | [{{StateForum | AK | region-id}} {{StateForum | AK | region-name}} region forum] |
Produces: Northwest region forum
Entering: | [{{StateForum | Northwest | region-id}} Northwest region forum] |
Produces: Northwest region forum
Entering: | {{StateForum | Northwest | regional-coordinator}} |
Produces: Error in Parameter to RC/Data or RC/Forum
Entering: | {{Username |{{StateForum | Northwest | regional-coordinator}} }} |
Produces: Error in Parameter to RC/Data or RC/Forum (in Parameter to RC/Data or RC/Forum PM)
(NOTE: The template currently requires no space between the | and the first parameter.)
Entering: | {{StateForum | Northwest | state-list}} |
Entering: | {{StateForum | Northwest | state-list-long}} |
Produces: Alaska / Idaho / Montana / Oregon / Washington / Wyoming
The above documentation is transcluded from Template:StateForum/doc. Please add categories to the /doc subpage. Subpages of this template. |