Difference between revisions of "Template:Jcttop/doc"

From blackwiki
Jump to navigation Jump to search
imported>TwinsMetsFan
(Created page with '{{Documentation subpage}} <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> === Usage === This template creates a WP:ELG-compliant heade…')
 
imported>TwinsMetsFan
m (gah)
Line 9: Line 9:
 
*'''length_ref''': a reference for the mileposts or kilometer posts in the table. The reference will be placed next to the "Mile" or "km" heading
 
*'''length_ref''': a reference for the mileposts or kilometer posts in the table. The reference will be placed next to the "Mile" or "km" heading
  
Per an April 2008 change to [[WP:ELG]], this template also accepts additional parameters for intracounty roads:
+
Per an April 2009 change to [[WP:ELG]], this template also accepts additional parameters for intracounty roads:
 
*'''state''': the two-letter postal abbreviation of the state that the road is in
 
*'''state''': the two-letter postal abbreviation of the state that the road is in
 
*'''county''': the name of the county that the road is within
 
*'''county''': the name of the county that the road is within
 
The presence of both parameters will remove the county column from the header and generate the following note above the table: "The entire route is in <nowiki>{{{county}}}</nowiki> County." The county will be wikilinked appropriately.
 
The presence of both parameters will remove the county column from the header and generate the following note above the table: "The entire route is in <nowiki>{{{county}}}</nowiki> County." The county will be wikilinked appropriately.
  
As part of that April 2008 change, more parameters are now accepted for roads within a location, such as a town or city:
+
As part of that April 2009 change, more parameters are now accepted for roads within a location, such as a town or city:
 
*'''location''': the name of the location that the road is within
 
*'''location''': the name of the location that the road is within
 
**'''area''': used to disambiguate between town, city, village, etc.
 
**'''area''': used to disambiguate between town, city, village, etc.

Revision as of 01:48, 11 April 2009

Usage

This template creates a WP:ELG-compliant header for junction lists. It can be combined with {{jctint}} to create a complete, standardized junction list for a route.

This template accepts these parameters, all optional:

  • location_ref: a reference for the locations in the table. The reference will be placed next to the "Location" heading
  • length_ref: a reference for the mileposts or kilometer posts in the table. The reference will be placed next to the "Mile" or "km" heading

Per an April 2009 change to WP:ELG, this template also accepts additional parameters for intracounty roads:

  • state: the two-letter postal abbreviation of the state that the road is in
  • county: the name of the county that the road is within

The presence of both parameters will remove the county column from the header and generate the following note above the table: "The entire route is in {{{county}}} County." The county will be wikilinked appropriately.

As part of that April 2009 change, more parameters are now accepted for roads within a location, such as a town or city:

  • location: the name of the location that the road is within
    • area: used to disambiguate between town, city, village, etc.
    • ctdab: further disambiguation by county

The presence of the location parameter will remove the location column from the header and generate the following note above the table: "The entire route is in {{{location}}}, {{{county}}} County." The location and county will be wikilinked appropriately.

See also

  • {{jctint}}, a template for creating junction list entries