Template:Locking Standard/doc View history

(Caption)
(3 examples)
Line 1: Line 1:
Example:
Examples:
 
Simplest, using only defaults except for eliminating the lede, changing captions and changing one lock level (Freeway=5 instead of 4)
 
<nowiki>{{Locking Standard|lede=|caption=Simple Sample Locking Table|Fwy=5}}</nowiki>
 
{{Locking Standard|lede=|caption=Simple Sample Locking Table|Fwy=5}}
 
Complex, has three columns, changes many defaults, including interactions of defaults for the same type across the three columns (but does use default lede and caption; ; note that the caption "state name" is pulled from the template/documentation page, as is not representative of a normal configuration)


<nowiki>{{Locking Standard|caption=Sample Lock Std|title2=Variant 2|title3=Variant 3|MH=5|MH2=3|MH3=4|mH3=3}}</nowiki>
<nowiki>{{Locking Standard|caption=Sample Lock Std|title2=Variant 2|title3=Variant 3|MH=5|MH2=3|MH3=4|mH3=3}}</nowiki>
Line 13: Line 21:
For the second and third columns, if you don't specify them, they take the value of the first column. That may be a value you specified, or the default value if you didn't specify one. If you wish to specify a custom value in the first column, and a default value in a different column, you can't -- you must specify both.
For the second and third columns, if you don't specify them, they take the value of the first column. That may be a value you specified, or the default value if you didn't specify one. If you wish to specify a custom value in the first column, and a default value in a different column, you can't -- you must specify both.


Parameters:
Parameters (exact capitalization matters):


* Lede: Lede paragraph. There is some default text otherwise. To have no lede paragraph, make sure to set it to a blank value: |Lede=|
* lede: Lede paragraph. There is some default text otherwise. To have no lede paragraph, make sure to set it to a blank value: |Lede=|
* caption: The title above the table (not a wiki heading). Defaults to Xyzyz Locking Standard, where Xyzyz is taking from the page title (and would be the state name if you use Kent's state template scheme)
* caption: The title above the table (not a wiki heading). Defaults to Xyzyz Locking Standard, where Xyzyz is taking from the page title (and would be the state name if you use Kent's state template scheme)
* title: The title of the first column of lock values (sometimes the only column). Default value is "Default lock"
* title: The title of the first column of lock values (sometimes the only column). Default value is "Default lock"

Revision as of 02:40, 31 December 2014

Examples:

Simplest, using only defaults except for eliminating the lede, changing captions and changing one lock level (Freeway=5 instead of 4)

{{Locking Standard|lede=|caption=Simple Sample Locking Table|Fwy=5}}


Simple Sample Locking Table
Segment Type Default locks
 Freeway  5
 Ramp  Highest rank of connected segment
 Major Highway  3
 Minor Highway  2
 Primary Street  1
 Street  1
 • • • • Ferry • • • •   5
 |-|-|-|-|-|-|-|-|-| Railroad |-|-|-|-|-|-|-|-|-|  2


Complex, has three columns, changes many defaults, including interactions of defaults for the same type across the three columns (but does use default lede and caption; ; note that the caption "state name" is pulled from the template/documentation page, as is not representative of a normal configuration)

{{Locking Standard|caption=Sample Lock Std|title2=Variant 2|title3=Variant 3|MH=5|MH2=3|MH3=4|mH3=3}}


In Locking Standard we have a set minimum standard for locking roads based on segment type. Any road of a certain segment type must be locked at least to the rank (level) in the chart below. Roads may be locked higher for protection and special situations (areas with construction, tricky design, frequent mistakes, imaging inaccuracies, and the like), but should not be locked lower.

A great time to implement these locks is while bringing the road types of an area into compliance with the current US road type standards (FC and highway systems). Lock the roads based on type after they've been set to current US road type standards.

Sample Lock Std
Segment Type Default locks  Variant 2  Variant 3
 Freeway  4
 Ramp  Highest rank of connected segment
 Major Highway  5 3 4
 Minor Highway  2 3
 Primary Street  1
 Street  1
 • • • • Ferry • • • •   5
 |-|-|-|-|-|-|-|-|-| Railroad |-|-|-|-|-|-|-|-|-|  2


Supports up to three variations per state, with only one required. To add a second, make sure to specify the title for the second variant column e.g., |title2=Urban areas|. To add a third, make sure to add the title for the third variant column e.g., |title3=NYC Only|.

For the first variant, the defaults are 4,3,2,1,1 (Fwy,MH,mH,PS,Street), plus Ramp has the text "highest rank of connected segment," RR=2, Ferry=5. You can override individual values, no values, or all values.

For the second and third columns, if you don't specify them, they take the value of the first column. That may be a value you specified, or the default value if you didn't specify one. If you wish to specify a custom value in the first column, and a default value in a different column, you can't -- you must specify both.

Parameters (exact capitalization matters):

  • lede: Lede paragraph. There is some default text otherwise. To have no lede paragraph, make sure to set it to a blank value: |Lede=|
  • caption: The title above the table (not a wiki heading). Defaults to Xyzyz Locking Standard, where Xyzyz is taking from the page title (and would be the state name if you use Kent's state template scheme)
  • title: The title of the first column of lock values (sometimes the only column). Default value is "Default lock"
  • Title2, Title3: Column titles for second and third variants. If you do not specify a title, the column will not appear. No default.
  • Fwy, Fwy2, Fwy3: The Freeway values, defaults to 4
  • MH, MH2, MH3: Major highway values, defaults to 3
  • mH, mH2, mH3: Minor highway values, defaults to 2
  • PS, Street, PS2, Street2, PS3, Street3: Primary values and Street, defaults to 1