Kentsmith9 (talk | contribs) (fixed parameter order) |
mNo edit summary |
||
(39 intermediate revisions by 6 users not shown) | |||
Line 1: | Line 1: | ||
<!-- Region = region-id | regional-coordinator1 | regional-coordinator2 | state-list | state-list-long | <!-- If changes are made to the order of variables, the same change must be made | ||
---- | ---- on Template:RC/Data. First variable listed is area-type to then determine | ||
---- which variables can be extracted from then on. | |||
-- | ---- | ||
---- Region = area-type | region-id | regional-coordinator1 | regional-coordinator2 | |||
| AK|Alaska = {{RC/Data/Core|{{{2|}}}|254|Northwest}} | ---- | state-list | state-list-long | ||
| ID|Idaho = {{RC/Data/Core|{{{2|}}}|648|Northwest}} | ---- | ||
| MT|Montana = {{RC/Data/Core|{{{2|}}}|649|Northwest}} | ---- State = area-type | state-id | region-name | ||
| OR|Oregon = {{RC/Data/Core|{{{2|}}}|647|Northwest}} | ---- | ||
| WA|Washington = {{RC/Data/Core|{{{2|}}}|201|Northwest}} | ---- Changes to regional coordinators should also be changed on Template:RC/Editors | ||
| WY|Wyoming = {{RC/Data/Core|{{{2|}}}|650|Northwest}} | ---- (if set up). | ||
---- | |||
| Southwest = {{RC/Data/Core|{{{2|}}}|566|jemay||[[AZ]]/[[CA]]/[[CO]]/[[HI]]/[[NV]]/[[NM]]/[[UT]]|[[Arizona]] / [[California]] / [[Colorado]] / [[Hawaii]] / [[Nevada]] / [[New Mexico]] / [[Utah]]}} | --><includeonly><!--includeonly here prevents error display on the template page when viewed directly -->{{#switch: {{{1}}} | ||
| AZ|Arizona = {{RC/Data/Core|{{{2|}}}|652|Southwest}} | | Northwest = {{RC/Data/Core|{{{2|}}}|region|565|AlanOfTheBerg||[[AK]]/[[ID]]/[[MT]]/[[OR]]/[[WA]]/[[WY]]|[[Alaska]] / [[Idaho]] / [[Montana]] / [[Oregon]] / [[Washington]] / [[Wyoming]]}} | ||
| CA|California = {{RC/Data/Core|{{{2|}}}|251|Southwest}} | | AK|Alaska = {{RC/Data/Core|{{{2|}}}|state|254|Northwest}} | ||
| CO|Colorado = {{RC/Data/Core|{{{2|}}}|654|Southwest}} | | ID|Idaho = {{RC/Data/Core|{{{2|}}}|state|648|Northwest}} | ||
| HI|Hawaii = {{RC/Data/Core|{{{2|}}}|305|Southwest}} | | MT|Montana = {{RC/Data/Core|{{{2|}}}|state|649|Northwest}} | ||
| NV|Nevada = {{RC/Data/Core|{{{2|}}}|651|Southwest}} | | OR|Oregon = {{RC/Data/Core|{{{2|}}}|state|647|Northwest}} | ||
| NM|New Mexico = {{RC/Data/Core|{{{2|}}}|653|Southwest}} | | WA|Washington = {{RC/Data/Core|{{{2|}}}|state|201|Northwest}} | ||
| UT|Utah = {{RC/Data/Core|{{{2|}}}|364|Southwest}} | | WY|Wyoming = {{RC/Data/Core|{{{2|}}}|state|650|Northwest}} | ||
<!----> | |||
| Plains = {{RC/Data/Core|{{{2|}}}|567|the1who||[[IA]]/[[KS]]/[[MN]]/[[MO]]/[[NE]]/[[ND]]/[[SD]]|[[Iowa]] / [[Kansas]] / [[Minnesota]] / [[Missouri]] / [[Nebraska]] / [[North Dakota]] / [[South Dakota]]}} | | Southwest = {{RC/Data/Core|{{{2|}}}|region|566|jemay|tonestertm|[[AZ]]/[[CA]]/[[CO]]/[[HI]]/[[NV]]/[[NM]]/[[UT]]|[[Arizona]] / [[California]] / [[Colorado]] / [[Hawaii]] / [[Nevada]] / [[New Mexico]] / [[Utah]]}} | ||
| IA|Iowa = {{RC/Data/Core|{{{2|}}}|632|Plains}} | | AZ|Arizona = {{RC/Data/Core|{{{2|}}}|state|652|Southwest}} | ||
| KS|Kansas = {{RC/Data/Core|{{{2|}}}|628|Plains}} | | CA|California = {{RC/Data/Core|{{{2|}}}|state|251|Southwest}} | ||
| MN|Minnesota = {{RC/Data/Core|{{{2|}}}|259|Plains}} | | CO|Colorado = {{RC/Data/Core|{{{2|}}}|state|654|Southwest}} | ||
| MO|Missouri = {{RC/Data/Core|{{{2|}}}|414|Plains}} | | HI|Hawaii = {{RC/Data/Core|{{{2|}}}|state|305|Southwest}} | ||
| NE|Nebraska = {{RC/Data/Core|{{{2|}}}|634|Plains}} | | NV|Nevada = {{RC/Data/Core|{{{2|}}}|state|651|Southwest}} | ||
| ND|North Dakota = {{RC/Data/Core|{{{2|}}}|624|Plains}} | | NM|New Mexico = {{RC/Data/Core|{{{2|}}}|state|653|Southwest}} | ||
| SD|South Dakota = {{RC/Data/Core|{{{2|}}}|626|Plains}} | | UT|Utah = {{RC/Data/Core|{{{2|}}}|state|364|Southwest}} | ||
<!----> | |||
| South Central = {{RC/Data/Core|{{{2|}}}|568|Jasonh300| | | Plains = {{RC/Data/Core|{{{2|}}}|region|567|the1who|bretmcvey|[[IA]]/[[KS]]/[[MN]]/[[MO]]/[[NE]]/[[ND]]/[[SD]]|[[Iowa]] / [[Kansas]] / [[Minnesota]] / [[Missouri]] / [[Nebraska]] / [[North Dakota]] / [[South Dakota]]}} | ||
| AR|Arkansas = {{RC/Data/Core|{{{2|}}}|598|South Central}} | | IA|Iowa = {{RC/Data/Core|{{{2|}}}|state|632|Plains}} | ||
| LA|Louisiana = {{RC/Data/Core|{{{2|}}}|594|South Central}} | | KS|Kansas = {{RC/Data/Core|{{{2|}}}|state|628|Plains}} | ||
| MS|Mississippi = {{RC/Data/Core|{{{2|}}}|596|South Central}} | | MN|Minnesota = {{RC/Data/Core|{{{2|}}}|state|259|Plains}} | ||
| OK|Oklahoma = {{RC/Data/Core|{{{2|}}}|600|South Central}} | | MO|Missouri = {{RC/Data/Core|{{{2|}}}|state|414|Plains}} | ||
| TX|Texas = {{RC/Data/Core|{{{2|}}}|237|South Central}} | | NE|Nebraska = {{RC/Data/Core|{{{2|}}}|state|634|Plains}} | ||
| ND|North Dakota = {{RC/Data/Core|{{{2|}}}|state|624|Plains}} | |||
| Great Lakes = {{RC/Data/Core|{{{2|}}}|943|GizmoGuy411||[[IL]]/[[IN]]/[[MI]]/[[OH]]/[[WI]]|[[Illinois]] / [[Indiana]] / [[Michigan]] / [[Ohio]] / [[Wisconsin]]}} | | SD|South Dakota = {{RC/Data/Core|{{{2|}}}|state|626|Plains}} | ||
| IL|Illinois = {{RC/Data/Core|{{{2|}}}|253|Great Lakes}} | <!----> | ||
| IN|Indiana = {{RC/Data/Core|{{{2|}}}|631|Great Lakes}} | | South Central = {{RC/Data/Core|{{{2|}}}|region|568|Jasonh300|karlcr9911|[[AR]]/[[LA]]/[[MS]]/[[OK]]/[[TX]]|[[Arkansas]] / [[Louisiana]] / [[Mississippi]] / [[Oklahoma]] / [[Texas]]}} | ||
| MI|Michigan = {{RC/Data/Core|{{{2|}}}|630|Great Lakes}} | | AR|Arkansas = {{RC/Data/Core|{{{2|}}}|state|598|South Central}} | ||
| OH|Ohio = {{RC/Data/Core|{{{2|}}}|261|Great Lakes}} | | LA|Louisiana = {{RC/Data/Core|{{{2|}}}|state|594|South Central}} | ||
| WI|Wisconsin = {{RC/Data/Core|{{{2|}}}|387|Great Lakes}} | | MS|Mississippi = {{RC/Data/Core|{{{2|}}}|state|596|South Central}} | ||
| OK|Oklahoma = {{RC/Data/Core|{{{2|}}}|state|600|South Central}} | |||
| South Atlantic = {{RC/Data/Core|{{{2|}}}|570| | | TX|Texas = {{RC/Data/Core|{{{2|}}}|state|237|South Central}} | ||
| KY|Kentucky = {{RC/Data/Core|{{{2|}}}|571|South Atlantic}} | <!----> | ||
| NC|North Carolina = {{RC/Data/Core|{{{2|}}}|255|South Atlantic}} | | Great Lakes = {{RC/Data/Core|{{{2|}}}|region|943|GizmoGuy411|SkiDooGuy|[[IL]]/[[IN]]/[[MI]]/[[OH]]/[[WI]]|[[Illinois]] / [[Indiana]] / [[Michigan]] / [[Ohio]] / [[Wisconsin]]}} | ||
| SC|South Carolina = {{RC/Data/Core|{{{2|}}}|256|South Atlantic}} | | IL|Illinois = {{RC/Data/Core|{{{2|}}}|state|253|Great Lakes}} | ||
| TN|Tennessee = {{RC/Data/Core|{{{2|}}}|210|South Atlantic}} | | IN|Indiana = {{RC/Data/Core|{{{2|}}}|state|631|Great Lakes}} | ||
| MI|Michigan = {{RC/Data/Core|{{{2|}}}|state|630|Great Lakes}} | |||
| Southeast = {{RC/Data/Core|{{{2|}}}|944| | | OH|Ohio = {{RC/Data/Core|{{{2|}}}|state|261|Great Lakes}} | ||
| AL|Alabama = {{RC/Data/Core|{{{2|}}}|213|Southeast}} | | WI|Wisconsin = {{RC/Data/Core|{{{2|}}}|state|387|Great Lakes}} | ||
| FL|Florida = {{RC/Data/Core|{{{2|}}}|193|Southeast}} | <!----> | ||
| GA| | | South Atlantic = {{RC/Data/Core|{{{2|}}}|region|570|ottonomy||[[KY]]/[[NC]]/[[SC]]/[[TN]]|[[Kentucky]] / [[North Carolina]] / [[South Carolina]] / [[Tennessee]]}} | ||
| KY|Kentucky = {{RC/Data/Core|{{{2|}}}|state|571|South Atlantic}} | |||
| New England = {{RC/Data/Core|{{{2|}}}|945|orbitc||[[CT]]/[[ME]]/[[MA]]/[[NH]]/[[RI]]/[[VT]]|[[Connecticut]] / [[Maine]] / [[Massachusetts]] / [[New Hampshire]] / [[Rhode Island]] / [[Vermont]]}} | | NC|North Carolina = {{RC/Data/Core|{{{2|}}}|state|255|South Atlantic}} | ||
| CT|Connecticut = {{RC/Data/Core|{{{2|}}}|247|New England}} | | SC|South Carolina = {{RC/Data/Core|{{{2|}}}|state|256|South Atlantic}} | ||
| ME|Maine = {{RC/Data/Core|{{{2|}}}|583|New England}} | | TN|Tennessee = {{RC/Data/Core|{{{2|}}}|state|210|South Atlantic}} | ||
| MA|Massachusetts = {{RC/Data/Core|{{{2|}}}|618|New England}} | <!----> | ||
| NH|New Hampshire = {{RC/Data/Core|{{{2|}}}|585|New England}} | | Southeast = {{RC/Data/Core|{{{2|}}}|region|944|driving79||[[AL]]/[[FL]]/[[GA]]|[[Alabama]] / [[Florida]] / [[Georgia]]}} | ||
| RI|Rhode Island = {{RC/Data/Core|{{{2|}}}|577|New England}} | | AL|Alabama = {{RC/Data/Core|{{{2|}}}|state|213|Southeast}} | ||
| VT|Vermont = {{RC/Data/Core|{{{2|}}}|587|New England}} | | FL|Florida = {{RC/Data/Core|{{{2|}}}|state|193|Southeast}} | ||
| GA|Georgia = {{RC/Data/Core|{{{2|}}}|state|214|Southeast}} | |||
| Northeast = {{RC/Data/Core|{{{2|}}}|569|orbitc||[[DE]]/[[NJ]]/[[NY]]/[[PA]]|[[Delaware]] / [[New Jersey]] / [[New York]] / [[Pennsylvania]]}} | <!----> | ||
| DE|Delaware = {{RC/Data/Core|{{{2|}}}|575|Northeast}} | | New England = {{RC/Data/Core|{{{2|}}}|region|945|orbitc|Banished|[[CT]]/[[ME]]/[[MA]]/[[NH]]/[[RI]]/[[VT]]|[[Connecticut]] / [[Maine]] / [[Massachusetts]] / [[New Hampshire]] / [[Rhode Island]] / [[Vermont]]}} | ||
| NJ|New Jersey = {{RC/Data/Core|{{{2|}}}|249|Northeast}} | | CT|Connecticut = {{RC/Data/Core|{{{2|}}}|state|247|New England}} | ||
| NY|New York = {{RC/Data/Core|{{{2|}}}|250|Northeast}} | | ME|Maine = {{RC/Data/Core|{{{2|}}}|state|583|New England}} | ||
| PA|Pennsylvania = {{RC/Data/Core|{{{2|}}}|215|Northeast}} | | MA|Massachusetts = {{RC/Data/Core|{{{2|}}}|state|618|New England}} | ||
| NH|New Hampshire = {{RC/Data/Core|{{{2|}}}|state|585|New England}} | |||
| Mid Atlantic = {{RC/Data/Core|{{{2|}}}|946|CBenson||[[DC]]/[[MD]]/[[VA]]/[[WV]]|[[District of Columbia]] / [[Maryland]] / [[Virginia]] / [[West Virginia]]}} | | RI|Rhode Island = {{RC/Data/Core|{{{2|}}}|state|577|New England}} | ||
| DC|Washington DC|District of Columbia = {{RC/Data/Core|{{{2|}}}|258 | | VT|Vermont = {{RC/Data/Core|{{{2|}}}|state|587|New England}} | ||
| MD|Maryland = {{RC/Data/Core|{{{2|}}}|246|Mid Atlantic}} | <!----> | ||
| VA|Virginia = {{RC/Data/Core|{{{2|}}}|580|Mid Atlantic}} | | Northeast = {{RC/Data/Core|{{{2|}}}|region|569|orbitc|qwaletee|[[DE]]/[[NJ]]/[[NY]]/[[PA]]|[[Delaware]] / [[New Jersey]] / [[New York]] / [[Pennsylvania]]}} | ||
| WV|West Virginia = {{RC/Data/Core|{{{2|}}}| | | DE|Delaware = {{RC/Data/Core|{{{2|}}}|state|575|Northeast}} | ||
| NJ|New Jersey = {{RC/Data/Core|{{{2|}}}|state|249|Northeast}} | |||
| Territories = {{RC/Data/Core|{{{2|}}}|953| | | NY|New York = {{RC/Data/Core|{{{2|}}}|state|250|Northeast}} | ||
| PA|Pennsylvania = {{RC/Data/Core|{{{2|}}}|state|215|Northeast}} | |||
<!----> | |||
| Mid Atlantic = {{RC/Data/Core|{{{2|}}}|region|946|CBenson|ply8808|[[DC]]/[[MD]]/[[VA]]/[[WV]]|[[District of Columbia]] / [[Maryland]] / [[Virginia]] / [[West Virginia]]}} | |||
| DC|Washington DC|District of Columbia = {{RC/Data/Core|{{{2|}}}|district|258|Mid Atlantic}} | |||
| MD|Maryland = {{RC/Data/Core|{{{2|}}}|state|246|Mid Atlantic}} | |||
| VA|Virginia = {{RC/Data/Core|{{{2|}}}|state|580|Mid Atlantic}} | |||
| WV|West Virginia = {{RC/Data/Core|{{{2|}}}|state|582|Mid Atlantic}} | |||
<!----> | |||
| Territories = {{RC/Data/Core|{{{2|}}}|region|953|nnote||[[AS]]/[[GU]]/[[MP]]/[[PR]]/[[VI]]|[[American Samoa]] / [[Guam]] / [[Northern Mariana Islands]] / [[Puerto Rico]] / [[Virgin Islands]]}} | |||
| AS|American Samoa = {{RC/Data/Core|{{{2|}}}|territory|954|Territories}} | |||
| GU|Guam = {{RC/Data/Core|{{{2|}}}|territory|954|Territories}} | |||
| MP|Northern Mariana Islands = {{RC/Data/Core|{{{2|}}}|territory|954|Territories}} | |||
| PR|Puerto Rico = {{RC/Data/Core|{{{2|}}}|territory|202|Territories}} | |||
| VI|Virgin Islands = {{RC/Data/Core|{{{2|}}}|territory|677|Territories}} | |||
| South Pacific Territories = {{RC/Data/Core|{{{2|}}}|territory|954|Territories}} | |||
<!-- Other territories need to be added --> | <!-- Other territories need to be added --> | ||
<!----> | |||
<!-- This below is for the CommonState template pages when viewed directly --> | <!-- This below is for the CommonState template pages when viewed directly --> | ||
| Testing|CommonRegion|RC/CommonRegion = {{RC/Data/Core|{{{2|}}}|192|UserName1|UserName2|[[XX]]/[[YY]]|[[XXXX]] / [[YYYY]]}} | | Testing|RC|CommonRegion|RC/CommonRegion = {{RC/Data/Core|{{{2|}}}|region|192|UserName1|UserName2|[[XX]]/[[YY]]|[[XXXX]] / [[YYYY]]}} | ||
| CommonState|Intro|Forum = {{RC/Data/Core|{{{2|}}}|192|Testing}} | | TestState|USA|CommonState|Intro|Forum|USA/CommonState | ||
= {{RC/Data/Core|{{{2|}}}|state|192|Testing}} | |||
<!-- Default USA forum; doesn't work perfectly for all | <!----> | ||
| {{RC/Data/Core|{{{2|}}}|129|USA}}<!-- default USA forum --> | <!-- Default USA forum; doesn't work perfectly for all combos, but can show errors --> | ||
}}<noinclude>{{documentation}}<!-- | | {{RC/Data/Core|{{{2|}}}|state|129|USA}}<!-- default USA forum--> | ||
}}</includeonly><noinclude>{{documentation}}<!-- | |||
Add categories and interwikis to the /doc subpage, not here! | Add categories and interwikis to the /doc subpage, not here! | ||
--></noinclude> | --></noinclude> |
Latest revision as of 19:36, 10 June 2016
This template is a part of a suite of subpage templates (listed below) used for the Regional Coordinator table.
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 used directly and also through the {{RC/Forum}} template.
Examples
Template | Result |
---|---|
{{RootPage2}} | California |
{{RC/Data|{{RootPage2}}|region-name}}
|
Southwest |
{{RC/Data|{{RC/Data|{{RootPage2}}|region-name}}|state-list-long}}
|
Arizona / California / Colorado / Hawaii / Nevada / New Mexico / Utah |
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 {{RC/Data/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 = {{RC/Data/Core|{{{2|}}}|944|JoeUsername|JimUsername|[[AL]]/[[FL]]/[[GA]]|[[Alabama]] / [[Florida]] / [[Georga]]}} | AL|Alabama = {{RC/Data/Core|{{{2|}}}|213|Southeast}} | FL|Florida = {{RC/Data/Core|{{{2|}}}|193|Southeast}} | GA|Georga = {{RC/Data/Core|{{{2|}}}|214|Southeast}}
The region lines (Southeast example) can return one of two regional coordinators text names, 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 example) can return the ID for the state forum or a text name with the region.
Related templates
This template suite also uses the following templates:
{{RC/USA}}
- Link to USA Wiki page and forum{{RC/Region}}
- Link to Region Wiki page and forum{{RC/CommonRegion}}
- Default content for regional pages if not already created{{RC/Forum}}
- Generates HTML link based on Region name and requested data{{RC/Data}}
- The database holding all the regional coordinator related data{{RC/Data/Core}}
- The translation of text for parameters to the{{RC/Data}}
content{{RC/TableRow}}
- Generates the main content for the RC table
{{Username|NAME_OF_USER}}
to create user page and PM links.
{{PM|NAME_OF_USER}}
to create PM links.
The above documentation is transcluded from Template:RC/Data/doc. Please add categories to the /doc subpage. Subpages of this template. |