Kentsmith9 (talk | contribs) (Testing region lookup) |
Kentsmith9 (talk | contribs) (added region lookups) |
||
Line 1: | Line 1: | ||
{{#switch: {{{1}}} | {{#switch: {{{1}}} | ||
| Northwest = {{StateForum/Core|{{{2|}}}|AK/ID/MT/OR/WA/WY|565}} | | Northwest = {{StateForum/Core|{{{2|}}}|AK/ID/MT/OR/WA/WY|565}} | ||
| AK|Alaska = {{StateForum/Core|{{{2|}}}|254|565|Northwest}} | | AK|Alaska = {{StateForum/Core|{{{2|}}}|254|565|Northwest}} | ||
| ID|Idaho = {{StateForum/Core|{{{2|}}}|648|565|Northwest}} | | ID|Idaho = {{StateForum/Core|{{{2|}}}|648|565|Northwest}} | ||
Line 8: | Line 7: | ||
| WA|Washington = {{StateForum/Core|{{{2|}}}|201|565|Northwest}} | | WA|Washington = {{StateForum/Core|{{{2|}}}|201|565|Northwest}} | ||
| WY|Wyoming = {{StateForum/Core|{{{2|}}}|650|565|Northwest}} | | WY|Wyoming = {{StateForum/Core|{{{2|}}}|650|565|Northwest}} | ||
| Southwest = {{StateForum/Core|{{{2|}}}|AZ/CA/CO/HI/NV/NM/UT|566}} | |||
| AZ|Arizona = {{StateForum/Core|{{{2|}}}|652|566|Southwest}} | | AZ|Arizona = {{StateForum/Core|{{{2|}}}|652|566|Southwest}} | ||
Line 17: | Line 18: | ||
| UT|Utah = {{StateForum/Core|{{{2|}}}|364|566|Southwest}} | | UT|Utah = {{StateForum/Core|{{{2|}}}|364|566|Southwest}} | ||
| Plains = {{StateForum/Core|{{{2|}}}|IA/KS/MN/MO/NE/ND/SD|567}} | |||
| IA|Iowa = {{StateForum/Core|{{{2|}}}|632|567|Plains}} | | IA|Iowa = {{StateForum/Core|{{{2|}}}|632|567|Plains}} | ||
| KS|Kansas = {{StateForum/Core|{{{2|}}}|628|567|Plains}} | | KS|Kansas = {{StateForum/Core|{{{2|}}}|628|567|Plains}} | ||
Line 25: | Line 27: | ||
| SD|South Dakota = {{StateForum/Core|{{{2|}}}|626|567|Plains}} | | SD|South Dakota = {{StateForum/Core|{{{2|}}}|626|567|Plains}} | ||
| South Central = {{StateForum/Core|{{{2|}}}|AR/LA/MS/OK/TX|568}} | |||
| AR|Arkansas = {{StateForum/Core|{{{2|}}}|598|568|South Central}} | | AR|Arkansas = {{StateForum/Core|{{{2|}}}|598|568|South Central}} | ||
| LA|Louisiana = {{StateForum/Core|{{{2|}}}|594|568|South Central}} | | LA|Louisiana = {{StateForum/Core|{{{2|}}}|594|568|South Central}} | ||
Line 31: | Line 34: | ||
| TX|Texas = {{StateForum/Core|{{{2|}}}|237|568|South Central}} | | TX|Texas = {{StateForum/Core|{{{2|}}}|237|568|South Central}} | ||
| Great Lakes = {{StateForum/Core|{{{2|}}}|IL/IN/MI/OH/WI|943}} | |||
| IL|Illinois = {{StateForum/Core|{{{2|}}}|253|943|Great Lakes}} | | IL|Illinois = {{StateForum/Core|{{{2|}}}|253|943|Great Lakes}} | ||
| IN|Indiana = {{StateForum/Core|{{{2|}}}|631|943|Great Lakes}} | | IN|Indiana = {{StateForum/Core|{{{2|}}}|631|943|Great Lakes}} | ||
Line 37: | Line 41: | ||
| WI|Wisconsin = {{StateForum/Core|{{{2|}}}|387|943|Great Lakes}} | | WI|Wisconsin = {{StateForum/Core|{{{2|}}}|387|943|Great Lakes}} | ||
| KY|Kentucky = {{StateForum/Core|{{{2|}}}|571| | | South Atlantic = {{StateForum/Core|{{{2|}}}|KY/NC/SC/TN|570}} | ||
| NC|North Carolina = {{StateForum/Core|{{{2|}}}|255| | | KY|Kentucky = {{StateForum/Core|{{{2|}}}|571|570|South Atlantic}} | ||
| SC|South Carolina = {{StateForum/Core|{{{2|}}}|256| | | NC|North Carolina = {{StateForum/Core|{{{2|}}}|255|570|South Atlantic}} | ||
| TN|Tennessee = {{StateForum/Core|{{{2|}}}|210| | | SC|South Carolina = {{StateForum/Core|{{{2|}}}|256|570|South Atlantic}} | ||
| TN|Tennessee = {{StateForum/Core|{{{2|}}}|210|570|South Atlantic}} | |||
| AL|Alabama = {{StateForum/Core|{{{2|}}}|213| | | South East = {{StateForum/Core|{{{2|}}}|AL/FL/GA|944}} | ||
| FL|Florida = {{StateForum/Core|{{{2|}}}|193| | | AL|Alabama = {{StateForum/Core|{{{2|}}}|213|944|South East}} | ||
| GA|Georga = {{StateForum/Core|{{{2|}}}|214| | | FL|Florida = {{StateForum/Core|{{{2|}}}|193|944|South East}} | ||
| GA|Georga = {{StateForum/Core|{{{2|}}}|214|944|South East}} | |||
| CT|Connecticut = {{StateForum/Core|{{{2|}}}|247| | | New England = {{StateForum/Core|{{{2|}}}|CT/ME/MA/NH/RI/VT|945}} | ||
| ME|Maine = {{StateForum/Core|{{{2|}}}|583| | | CT|Connecticut = {{StateForum/Core|{{{2|}}}|247|945|New England}} | ||
| MA|Massachusetts = {{StateForum/Core|{{{2|}}}|618| | | ME|Maine = {{StateForum/Core|{{{2|}}}|583|945|New England}} | ||
| NH|New Hampshire = {{StateForum/Core|{{{2|}}}|585| | | MA|Massachusetts = {{StateForum/Core|{{{2|}}}|618|945|New England}} | ||
| RI|Rhode Island = {{StateForum/Core|{{{2|}}}|577| | | NH|New Hampshire = {{StateForum/Core|{{{2|}}}|585|945|New England}} | ||
| VT|Vermont = {{StateForum/Core|{{{2|}}}|587| | | RI|Rhode Island = {{StateForum/Core|{{{2|}}}|577|945|New England}} | ||
| VT|Vermont = {{StateForum/Core|{{{2|}}}|587|945|New England}} | |||
| DE|Delaware = {{StateForum/Core|{{{2|}}}|575| | | Northeast = {{StateForum/Core|{{{2|}}}|DE/NJ/NY/PA|569}} | ||
| NJ|New Jersey = {{StateForum/Core|{{{2|}}}|249| | | DE|Delaware = {{StateForum/Core|{{{2|}}}|575|569|Northeast}} | ||
| NY|New York = {{StateForum/Core|{{{2|}}}|250| | | NJ|New Jersey = {{StateForum/Core|{{{2|}}}|249|569|Northeast}} | ||
| PA|Pennsylvania = {{StateForum/Core|{{{2|}}}|215| | | NY|New York = {{StateForum/Core|{{{2|}}}|250|569|Northeast}} | ||
| PA|Pennsylvania = {{StateForum/Core|{{{2|}}}|215|569|Northeast}} | |||
| DC|Washington DC|District of Columbia = {{StateForum/Core|{{{2|}}}|258| | | Mid Atlantic = {{StateForum/Core|{{{2|}}}|DC/MD/VA/WV|946}} | ||
| MD|Maryland = {{StateForum/Core|{{{2|}}}|246| | | DC|Washington DC|District of Columbia = {{StateForum/Core|{{{2|}}}|258|946|Mid Atlantic}} | ||
| VA|Virginia = {{StateForum/Core|{{{2|}}}|580| | | MD|Maryland = {{StateForum/Core|{{{2|}}}|246|946|Mid Atlantic}} | ||
| WV|West Virginia = {{StateForum/Core|{{{2|}}}|282| | | VA|Virginia = {{StateForum/Core|{{{2|}}}|580|946|Mid Atlantic}} | ||
| WV|West Virginia = {{StateForum/Core|{{{2|}}}|282|946|Mid Atlantic}} | |||
| PR|Puerto Rico = {{StateForum/Core|{{{2|}}}|202| | | Territories = {{StateForum/Core|{{{2|}}}|PR/VI|953}} | ||
| VI|Virgin Islands = {{StateForum/Core|{{{2|}}}|677| | | PR|Puerto Rico = {{StateForum/Core|{{{2|}}}|202|953|Territories}} | ||
| VI|Virgin Islands = {{StateForum/Core|{{{2|}}}|677|953|Territories}} | |||
<!-- Other territories need to be added --> | <!-- Other territories need to be added --> | ||
Revision as of 14:50, 4 July 2014
Error in Parameter to RC/Data or RC/Forum
This template is a part of {{StateForum}}.
This template serves as a lookup table for the Regional and State/Territory forums mainly in the USA. It could be modified to work for other countries, but currently does not.
Usage
This content is not used directly, but it is used through the {{StateForum}} template.
Content
The content of the page is a lookup table that uses the switch parser function. The order of the content only serves to make it easier to maintain, but does not affect the operation of the template. The names on the left of the = are what is being looked up and are all case sensitive. Multiple spelling variants can be listed separated by | as seen with the state lines.
Each lookup entry uses the {{StateForum/Core}} code to select one of many data sets to return. Regions return different data than states.
Each region is grouped with the region and the associated states.
| Southeast = {{StateForum/Core|{{{2|}}}|JoeUsername|944|[[AL]]/[[FL]]/[[GA]]|[[Alabama]] / [[Florida]] / [[Georga]]}} | AL|Alabama = {{StateForum/Core|{{{2|}}}|213|944|Southeast}} | FL|Florida = {{StateForum/Core|{{{2|}}}|193|944|Southeast}} | GA|Georga = {{StateForum/Core|{{{2|}}}|214|944|Southeast}}
The region lines (Southeast) can return a text regional coordinator text name, the ID for the regional forum, a short list or long list of states for that region in hyperlink format.
The state lines (AL/Alabama) can return a forum URL to the state, a forum URL to the region, or a text name with the region.
The above documentation is transcluded from Template:StateForum/List/doc. Please add categories to the /doc subpage. Subpages of this template. |