Template:RC/Data View history

(Adding bretmcvey to the plains region)
mNo edit summary
 
Line 63: Line 63:
| GA|Georgia = {{RC/Data/Core|{{{2|}}}|state|214|Southeast}}
| GA|Georgia = {{RC/Data/Core|{{{2|}}}|state|214|Southeast}}
<!---->
<!---->
| New England = {{RC/Data/Core|{{{2|}}}|region|945|orbitc||[[CT]]/[[ME]]/[[MA]]/[[NH]]/[[RI]]/[[VT]]|[[Connecticut]]&nbsp;/ [[Maine]]&nbsp;/ [[Massachusetts]]&nbsp;/ [[New&nbsp;Hampshire]]&nbsp;/ [[Rhode&nbsp;Island]]&nbsp;/ [[Vermont]]}}
| New England = {{RC/Data/Core|{{{2|}}}|region|945|orbitc|Banished|[[CT]]/[[ME]]/[[MA]]/[[NH]]/[[RI]]/[[VT]]|[[Connecticut]]&nbsp;/ [[Maine]]&nbsp;/ [[Massachusetts]]&nbsp;/ [[New&nbsp;Hampshire]]&nbsp;/ [[Rhode&nbsp;Island]]&nbsp;/ [[Vermont]]}}
| CT|Connecticut = {{RC/Data/Core|{{{2|}}}|state|247|New England}}
| CT|Connecticut = {{RC/Data/Core|{{{2|}}}|state|247|New England}}
| ME|Maine = {{RC/Data/Core|{{{2|}}}|state|583|New England}}
| ME|Maine = {{RC/Data/Core|{{{2|}}}|state|583|New England}}
Line 71: Line 71:
| VT|Vermont = {{RC/Data/Core|{{{2|}}}|state|587|New England}}
| VT|Vermont = {{RC/Data/Core|{{{2|}}}|state|587|New England}}
<!---->
<!---->
| Northeast = {{RC/Data/Core|{{{2|}}}|region|569|orbitc||[[DE]]/[[NJ]]/[[NY]]/[[PA]]|[[Delaware]]&nbsp;/ [[New&nbsp;Jersey]]&nbsp;/ [[New&nbsp;York]]&nbsp;/ [[Pennsylvania]]}}
| Northeast = {{RC/Data/Core|{{{2|}}}|region|569|orbitc|qwaletee|[[DE]]/[[NJ]]/[[NY]]/[[PA]]|[[Delaware]]&nbsp;/ [[New&nbsp;Jersey]]&nbsp;/ [[New&nbsp;York]]&nbsp;/ [[Pennsylvania]]}}
| DE|Delaware = {{RC/Data/Core|{{{2|}}}|state|575|Northeast}}
| DE|Delaware = {{RC/Data/Core|{{{2|}}}|state|575|Northeast}}
| NJ|New Jersey = {{RC/Data/Core|{{{2|}}}|state|249|Northeast}}
| NJ|New Jersey = {{RC/Data/Core|{{{2|}}}|state|249|Northeast}}

Latest revision as of 19:36, 10 June 2016

Documentation icon Template documentation[view] [edit] [history] [purge]

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

Examples for pagename California
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.