« Modèle:RC/Forum/doc Voir l’historique

(fixed double redirect)
m (Adding category to the page)
Ligne 1 : Ligne 1 :
#REDIRECT [[Creating and editing road segments#Alternate_street_names]]
{{doc subpage}}
<!-- ADD DOCUMENTATION BELOW THIS LINE -->
This template enables the automatic selection of a forum for one of the United States or US Territories.
 
== Usage ==
Place {{tl|RC/Forum}} on a page where a URL to a state or region forum is desired. It uses the data in {{tl|RC/Data}}.
 
{{Pre2|<nowiki>
{{RC/Forum
| STATENAME or
  STATE ABBREVIATION or
  REGION NAME
| state-id or
  region-id
}}</nowiki>
}}
 
== 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 region specific forum.
 
::(Note: the parameters are maintained in {{tl|RC/Data/Core}}.
 
== Examples ==
{|
| Entering:
| {{Pre2|<nowiki>
[{{RC/Forum | AK | state-id}} Alaska forum]</nowiki>
}}
|}
Produces: [{{RC/Forum | AK | state-id}} Alaska forum]
----
{|
| Entering:
| {{Pre2|<nowiki>
[{{RC/Forum | Northwest | region-id}} Northwest region forum]</nowiki>
}}
|}
Produces: [{{RC/Forum | Northwest | region-id}} Northwest region forum]
 
== Related templates ==
{{RC/TemplateSuite}}
 
 
<includeonly>
<!-- ADD CATEGORIES BELOW THIS LINE -->
[[Category:Templates for or part of the state template]]
[[Category:Forum templates]]
<!-- ADD INTERWIKIS BELOW THIS LINE -->
 
</includeonly>

Version du 28 août 2016 à 11:09

This is a documentation subpage for Modèle:RC/Forum.
It contains usage information, categories and other content that is not part of the original modèle page.

This template enables the automatic selection of a forum for one of the United States or US Territories.

Usage

Place {{RC/Forum}} on a page where a URL to a state or region forum is desired. It uses the data in {{RC/Data}}.

{{RC/Forum
| STATENAME or 
  STATE ABBREVIATION or
  REGION NAME
| state-id or 
  region-id
}}

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 region specific forum.
(Note: the parameters are maintained in {{RC/Data/Core}}.

Examples

Entering:
[{{RC/Forum | AK | state-id}} Alaska forum]

Produces: <!-- 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. ---- ---- province = area-type | province-id | coordinator | arc1 | arc2 | arc3 | arc4 ---- ---- ---- ---- Changes to coordinators should also be changed on Template:RC/Editors ---- (if set up). ---- --><includeonly><!--includeonly here prevents error display on the template page when viewed directly -->{{#switch: {{{1}}} | Alberta = {{RC/Data/Core|{{{2|}}}|province|355|Manoeuvre}} <!----> | British Columbia = {{RC/Data/Core|{{{2|}}}|province|350|Manoeuvre}} <!----> | Manitoba = {{RC/Data/Core|{{{2|}}}|region|348|Manoeuvre}} <!----> | New Brunswick = {{RC/Data/Core|{{{2|}}}|province|346|Manoeuvre}} <!----> | Newfoundland-Labrador = {{RC/Data/Core|{{{2|}}}|region|357|Manoeuvre}} <!----> | Nova Scotia = {{RC/Data/Core|{{{2|}}}|region|344|Manoeuvre}} <!----> | Ontario = {{RC/Data/Core|{{{2|}}}|region|339|Manoeuvre}} <!----> | PEI = {{RC/Data/Core|{{{2|}}}|region|351|Manoeuvre}} <!----> | Quebec = {{RC/Data/Core|{{{2|}}}|region|342|Manoeuvre}} <!----> | Saskatchewan = {{RC/Data/Core|{{{2|}}}|region|353|Manoeuvre}} <!----> <!-- Other territories need to be added --> <!----> <!-- This below is for the CommonProvince template pages when viewed directly --> | Testing|RC|CommonRegion|RC/CommonRegion = {{RC/Data/Core|{{{2|}}}|province|192|UserName1|UserName2|UserName3|UserName4|UserName5|[[XX]]/[[YY]]|[[XXXX]] / [[YYYY]]}} | TestProvince|Canada|CommonProvince|Intro|Forum|Canada/CommonProvince = {{RC/Data/Core|{{{2|}}}|province|192|Testing}} <!----> <!-- Default Canada forum; doesn't work perfectly for all combos, but can show errors --> | {{RC/Data/Core|{{{2|}}}|province|57|Canada}}<!-- default Province forum--> }}</includeonly><noinclude>{{documentation}}<!-- Add categories and interwikis to the /doc subpage, not here! --></noinclude> Alaska forum


Entering:
[{{RC/Forum | Northwest | region-id}} Northwest region forum]

Produces: <!-- 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. ---- ---- province = area-type | province-id | coordinator | arc1 | arc2 | arc3 | arc4 ---- ---- ---- ---- Changes to coordinators should also be changed on Template:RC/Editors ---- (if set up). ---- --><includeonly><!--includeonly here prevents error display on the template page when viewed directly -->{{#switch: {{{1}}} | Alberta = {{RC/Data/Core|{{{2|}}}|province|355|Manoeuvre}} <!----> | British Columbia = {{RC/Data/Core|{{{2|}}}|province|350|Manoeuvre}} <!----> | Manitoba = {{RC/Data/Core|{{{2|}}}|region|348|Manoeuvre}} <!----> | New Brunswick = {{RC/Data/Core|{{{2|}}}|province|346|Manoeuvre}} <!----> | Newfoundland-Labrador = {{RC/Data/Core|{{{2|}}}|region|357|Manoeuvre}} <!----> | Nova Scotia = {{RC/Data/Core|{{{2|}}}|region|344|Manoeuvre}} <!----> | Ontario = {{RC/Data/Core|{{{2|}}}|region|339|Manoeuvre}} <!----> | PEI = {{RC/Data/Core|{{{2|}}}|region|351|Manoeuvre}} <!----> | Quebec = {{RC/Data/Core|{{{2|}}}|region|342|Manoeuvre}} <!----> | Saskatchewan = {{RC/Data/Core|{{{2|}}}|region|353|Manoeuvre}} <!----> <!-- Other territories need to be added --> <!----> <!-- This below is for the CommonProvince template pages when viewed directly --> | Testing|RC|CommonRegion|RC/CommonRegion = {{RC/Data/Core|{{{2|}}}|province|192|UserName1|UserName2|UserName3|UserName4|UserName5|[[XX]]/[[YY]]|[[XXXX]] / [[YYYY]]}} | TestProvince|Canada|CommonProvince|Intro|Forum|Canada/CommonProvince = {{RC/Data/Core|{{{2|}}}|province|192|Testing}} <!----> <!-- Default Canada forum; doesn't work perfectly for all combos, but can show errors --> | {{RC/Data/Core|{{{2|}}}|province|57|Canada}}<!-- default Province forum--> }}</includeonly><noinclude>{{documentation}}<!-- Add categories and interwikis to the /doc subpage, not here! --></noinclude> Northwest region forum

Related templates

This template suite also uses the following templates:

  • {{RC/Canada}} - Link to Canadian Wiki page and forum
  • {{RC/Province}} - Link to Province Wiki page and forum
  • {{RC/CommonProvince}} - Default content for provincial pages if not already created
  • {{RC/Forum}} - Generates HTML link based on Province name and requested data
  • {{RC/Data}} - The database holding all the 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.