Template:RC/Data/doc View history

Revision as of 00:03, 9 July 2014 by Kentsmith9 (talk | contribs) (fixed order)
This is a documentation subpage for Template:RC/Data.
It contains usage information, categories and other content that is not part of the original template page.

This template is a part of {{RC}}.

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 through {{RC/Data/Forum}}.

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.