Template:Locking Standard/Sandbox View history

m (fixed ramp default)
m (Removed USA subpage links)
 
(18 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude>{{Documentation}}
<noinclude>{{Documentation}}
<!--
######################################
##                                  ##
## DO NOT CHANGE ANY OF THE        ##
## DEFAULT LOCK RANKS IN THE        ##
## TEMPLATE without first getting  ##
## national consensus in the forum, ##
## and notifying the Regional      ##
## Coordinator of every state using ##
## the template to display the      ##
## default value for that road type ##
## on their states pages.          ##
##                                  ##
######################################
-->
[[Category:Transcludable pages]]
[[Category:Transcludable pages]]
</noinclude>
</noinclude>
<onlyinclude>{{{lede|In {{RootPage2}} 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.
<onlyinclude>{{{lede|In {{RootPage2}} 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 performing the FC Upgrade of an area. Lock the roads based on type after they've been set to FC standards.}}}
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 [[Road types#Public roads|current US road type standards]].}}}
<center>
<center>
{| Border=1 style=text-align:center
{| class="wikitable" Border=1 style=text-align:center
|+ '''{{{caption|{{RootPage2}} Minimum Locking Rank Standard}}}'''
|+ '''{{{caption|{{RootPage2}} Minimum Locking Rank Standard}}}'''
! Segment Type
! bgcolor="#e2eef2" | Segment Type
! {{{title|Default locks}}}{{#if:{{{title2|}}}|&nbsp;
! bgcolor="#e2eef2" | {{{title|Default locks}}}{{#if:{{{title2|}}}|&nbsp;
! {{{title2}}}}}{{#if:{{{title3|}}}|&nbsp;
! bgcolor="#e2eef2" {{!}} {{{title2}}}}}{{#if:{{{title3|}}}|&nbsp;
! {{{title3}}}}}
! bgcolor="#e2eef2" {{!}} {{{title3}}}}}
|-
| {{Freeway}}<!--DG Test Freeway-->
|<!--start table row then - LOGIC!-->{{#if:{{{title2|}}}<!-- if there is a second set of values-->
|{{#if:{{{title3|}}}<!--if there is a third set of values-->
|{{#ifeq:{{{Fwy|4}}}|{{{Fwy2|{{{Fwy|4}}}}}}<!--three sets - are the first two the same?-->
|{{#ifeq:{{{Fwy2|{{{Fwy|4}}}}}}|{{{Fwy3|{{{Fwy|4}}}}}}<!--first 2 same, is third also the same?-->
| colspan=3{{!}}{{Anchor|formAbc}}{{{Fwy|4}}}<!-- all 3 same do |colspan=3|value-->
| colspan=2{{!}}{{Anchor|formAbC}}{{{Fwy|4}}}{{!}}{{!}}{{{Fwy3|{{{Fwy|4}}}}}}<!--
...else A=B<>C so do wide col A/B||C ... then end the innermost if 3 same: -->
}}
|{{#ifeq:{{{Fwy2|{{{Fwy|4}}}}}}|{{{Fwy3|{{{Fwy|4}}}}}}<!--else: A<>B, maybe B=C?-->
| {{{Fwy|4}}}{{!}}{{!}}colspan=2{{!}}{{Anchor|formABc}}{{{Fwy2|{{{Fwy|4}}}}}}<!--yup, 1 col A, double col BC-->
| {{{Fwy|4}}}{{!}}{{!}}{{Anchor|formABC}}{{{Fwy2|{{{Fwy|4}}}}}}{{!}}{{!}}{{{Fwy3|{{{Fwy|4}}}}}}<!--3 unique, zero combo-->
}}<!-- end if B=C or not-->
}}<!--end three sets (if from line 3)... now on to two sets-->
|<!--else no 3 sets, must be 2 sets-->{{#ifeq:{{{Fwy|4}}}|{{{Fwy2|{{{Fwy|4}}}}}}<!-- A=B (there is no C)-->
| colspan=2{{!}}{{Anchor|formAb}}{{{Fwy|4}}}<!--output a single column double wide-->
| {{Anchor|formAB}}{{{Fwy|4}}}{{!}}{{!}}{{{Fwy2|{{{Fwy|4}}}}}}<!-- else output two sep cols-->
}}<!--end nested if 3 lines above(2 sets then (check for same or differing))-->
}}<!--end second line if 3/not 3 only 2-->
| {{Anchor|formA}}{{{Fwy|4}}}<!--else of 1st line: if there are 2/else is only 1 set of values, so emit just the first column as a singe column but what col marker?-->
}}<!--close the opening if/DG-->
<!--original code by PZ
 
|-
|-
| {{Freeway}}
| {{Freeway}}
|{{#if:{{{title2|}}}|{{#if:{{{title3|}}}|{{#ifeq:{{{Fwy|4}}}|{{{Fwy2|{{{Fwy|4}}}}}}|{{#ifeq:{{{Fwy2|{{{Fwy|4}}}}}}|{{{Fwy3|{{{Fwy|4}}}}}}|colspan=3{{!}}{{{Fwy|4}}}|colspan=2{{!}}{{{Fwy|4}}}{{!}}{{!}}{{{Fwy3|{{{Fwy|4}}}}}}}}|{{#ifeq:{{{Fwy2|{{{Fwy|4}}}}}}|{{{Fwy3|{{{Fwy|4}}}}}}|{{{Fwy|4}}}{{!}}{{!}}colspan=2{{!}}{{{Fwy2|{{{Fwy|4}}}}}}|{{{Fwy|4}}}{{!}}{{!}}{{{Fwy2|{{{Fwy|4}}}}}}{{!}}{{!}}{{{Fwy3|{{{Fwy|4}}}}}}}}}}|{{#ifeq:{{{Fwy|4}}}|{{{Fwy2|{{{Fwy|4}}}}}}|colspan=2{{!}}{{{Fwy|4}}}|{{{Fwy|4}}}{{!}}{{!}}{{{Fwy2|{{{Fwy|4}}}}}}}}}}|{{{Fwy|4}}}}}
|{{#if:{{{title2|}}}|{{#if:{{{title3|}}}|{{#ifeq:{{{Fwy|4}}}|{{{Fwy2|{{{Fwy|4}}}}}}|{{#ifeq:{{{Fwy2|{{{Fwy|4}}}}}}|{{{Fwy3|{{{Fwy|4}}}}}}|colspan=3{{!}}{{{Fwy|4}}}|colspan=2{{!}}{{{Fwy|4}}}{{!}}{{!}}{{{Fwy3|{{{Fwy|4}}}}}}}}|{{#ifeq:{{{Fwy2|{{{Fwy|4}}}}}}|{{{Fwy3|{{{Fwy|4}}}}}}|{{{Fwy|4}}}{{!}}{{!}}colspan=2{{!}}{{{Fwy2|{{{Fwy|4}}}}}}|{{{Fwy|4}}}{{!}}{{!}}{{{Fwy2|{{{Fwy|4}}}}}}{{!}}{{!}}{{{Fwy3|{{{Fwy|4}}}}}}}}}}|{{#ifeq:{{{Fwy|4}}}|{{{Fwy2|{{{Fwy|4}}}}}}|colspan=2{{!}}{{{Fwy|4}}}|{{{Fwy|4}}}{{!}}{{!}}{{{Fwy2|{{{Fwy|4}}}}}}}}}}|{{{Fwy|4}}}}}
<!-- Here is the code for the other road types based on the above logic, If it turns out to be good we can just implement this code
 
-->|-
-->|- bgcolor=#e2eef2
| {{Ramp}}
| {{Ramp}}
|{{#if:{{{title2|}}}|{{#if:{{{title3|}}}|{{#ifeq:{{{Ramp|highest rank of connected segment}}}|{{{Ramp2|{{{Ramp|highest rank of connected segment}}}}}}|{{#ifeq:{{{Ramp2|{{{Ramp|highest rank of connected segment}}}}}}|{{{Ramp3|{{{Ramp|highest rank of connected segment}}}}}}|colspan=3{{!}}{{{Ramp|highest rank of connected segment}}}|colspan=2{{!}}{{{Ramp|highest rank of connected segment}}}{{!}}{{!}}{{{Ramp3|{{{Ramp|highest rank of connected segment}}}}}}}}|{{#ifeq:{{{Ramp2|{{{Ramp|highest rank of connected segment}}}}}}|{{{Ramp3|{{{Ramp|highest rank of connected segment}}}}}}|{{{Ramp|highest rank of connected segment}}}{{!}}{{!}}colspan=2{{!}}{{{Ramp2|{{{Ramp|highest rank of connected segment}}}}}}|{{{Ramp|highest rank of connected segment}}}{{!}}{{!}}{{{Ramp2|{{{Ramp|highest rank of connected segment}}}}}}{{!}}{{!}}{{{Ramp3|{{{Ramp|highest rank of connected segment}}}}}}}}}}|{{#ifeq:{{{Ramp|highest rank of connected segment}}}|{{{Ramp2|{{{Ramp|highest rank of connected segment}}}}}}|colspan=2{{!}}{{{Ramp|highest rank of connected segment}}}|{{{Ramp|highest rank of connected segment}}}{{!}}{{!}}{{{Ramp2|{{{Ramp|highest rank of connected segment}}}}}}}}}}|{{{Ramp|highest rank of connected segment}}}}}
|{{#if:{{{title2|}}}|{{#if:{{{title3|}}}|{{#ifeq:{{{Ramp|Highest rank of connected segment}}}|{{{Ramp2|{{{Ramp|Highest rank of connected segment}}}}}}|{{#ifeq:{{{Ramp2|{{{Ramp|Highest rank of connected segment}}}}}}|{{{Ramp3|{{{Ramp|Highest rank of connected segment}}}}}}|colspan=3{{!}}{{{Ramp|Highest rank of connected segment}}}|colspan=2{{!}}{{{Ramp|Highest rank of connected segment}}}{{!}}{{!}}{{{Ramp3|{{{Ramp|Highest rank of connected segment}}}}}}}}|{{#ifeq:{{{Ramp2|{{{Ramp|Highest rank of connected segment}}}}}}|{{{Ramp3|{{{Ramp|Highest rank of connected segment}}}}}}|{{{Ramp|Highest rank of connected segment}}}{{!}}{{!}}colspan=2{{!}}{{{Ramp2|{{{Ramp|Highest rank of connected segment}}}}}}|{{{Ramp|Highest rank of connected segment}}}{{!}}{{!}}{{{Ramp2|{{{Ramp|Highest rank of connected segment}}}}}}{{!}}{{!}}{{{Ramp3|{{{Ramp|Highest rank of connected segment}}}}}}}}}}|{{#ifeq:{{{Ramp|Highest rank of connected segment}}}|{{{Ramp2|{{{Ramp|Highest rank of connected segment}}}}}}|colspan=2{{!}}{{{Ramp|Highest rank of connected segment}}}|{{{Ramp|Highest rank of connected segment}}}{{!}}{{!}}{{{Ramp2|{{{Ramp|Highest rank of connected segment}}}}}}}}}}|{{{Ramp|Highest rank of connected segment}}}}}
|-
|-
| {{Major Highway}}
| {{Major Highway}}
|{{#if:{{{title2|}}}|{{#if:{{{title3|}}}|{{#ifeq:{{{MH|4}}}|{{{MH2|{{{MH|4}}}}}}|{{#ifeq:{{{MH2|{{{MH|4}}}}}}|{{{MH3|{{{MH|4}}}}}}|colspan=3{{!}}{{{MH|4}}}|colspan=2{{!}}{{{MH|4}}}{{!}}{{!}}{{{MH3|{{{MH|4}}}}}}}}|{{#ifeq:{{{MH2|{{{MH|4}}}}}}|{{{MH3|{{{MH|4}}}}}}|{{{MH|4}}}{{!}}{{!}}colspan=2{{!}}{{{MH2|{{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4}}}{{!}}{{!}}{{{PS2|{{{PS|4}}}}}}{{!}}{{!}}{{{PS3|{{{PS|4}}}}}}}}}}|{{#ifeq:{{{PS|4}}}|{{{PS2|{{{PS|4}}}}}}|colspan=2{{!}}{{{PS|4}}}|{{{PS|4}}}{{!}}{{!}}{{{PS2|{{{PS|4}}}}}}}}}}|{{{PS|4}}}}}
|{{#if:{{{title2|}}}|{{#if:{{{title3|}}}|{{#ifeq:{{{PS|1}}}|{{{PS2|{{{PS|1}}}}}}|{{#ifeq:{{{PS2|{{{PS|1}}}}}}|{{{PS3|{{{PS|1}}}}}}|colspan=3{{!}}{{{PS|1}}}|colspan=2{{!}}{{{PS|1}}}{{!}}{{!}}{{{PS3|{{{PS|1}}}}}}}}|{{#ifeq:{{{PS2|{{{PS|1}}}}}}|{{{PS3|{{{PS|1}}}}}}|{{{PS|1}}}{{!}}{{!}}colspan=2{{!}}{{{PS2|{{{PS|1}}}}}}|{{{PS|1}}}{{!}}{{!}}{{{PS2|{{{PS|1}}}}}}{{!}}{{!}}{{{PS3|{{{PS|1}}}}}}}}}}|{{#ifeq:{{{PS|1}}}|{{{PS2|{{{PS|1}}}}}}|colspan=2{{!}}{{{PS|1}}}|{{{PS|1}}}{{!}}{{!}}{{{PS2|{{{PS|1}}}}}}}}}}|{{{PS|1}}}}}
|-
|- bgcolor=#e2eef2
| {{Street}}
| {{Street}}
|{{#if:{{{title2|}}}|{{#if:{{{title3|}}}|{{#ifeq:{{{Street|4}}}|{{{Street2|{{{Street|4}}}}}}|{{#ifeq:{{{Street2|{{{Street|4}}}}}}|{{{Street3|{{{Street|4}}}}}}|colspan=3{{!}}{{{Street|4}}}|colspan=2{{!}}{{{Street|4}}}{{!}}{{!}}{{{Street3|{{{Street|4}}}}}}}}|{{#ifeq:{{{Street2|{{{Street|4}}}}}}|{{{Street3|{{{Street|4}}}}}}|{{{Street|4}}}{{!}}{{!}}colspan=2{{!}}{{{Street2|{{{Street|4}}}}}}|{{{Street|4}}}{{!}}{{!}}{{{Street2|{{{Street|4}}}}}}{{!}}{{!}}{{{Street3|{{{Street|4}}}}}}}}}}|{{#ifeq:{{{Street|4}}}|{{{Street2|{{{Street|4}}}}}}|colspan=2{{!}}{{{Street|4}}}|{{{Street|4}}}{{!}}{{!}}{{{Street2|{{{Street|4}}}}}}}}}}|{{{Street|4}}}}}
|{{#if:{{{title2|}}}|{{#if:{{{title3|}}}|{{#ifeq:{{{Street|1}}}|{{{Street2|{{{Street|1}}}}}}|{{#ifeq:{{{Street2|{{{Street|1}}}}}}|{{{Street3|{{{Street|1}}}}}}|colspan=3{{!}}{{{Street|1}}}|colspan=2{{!}}{{{Street|1}}}{{!}}{{!}}{{{Street3|{{{Street|1}}}}}}}}|{{#ifeq:{{{Street2|{{{Street|1}}}}}}|{{{Street3|{{{Street|1}}}}}}|{{{Street|1}}}{{!}}{{!}}colspan=2{{!}}{{{Street2|{{{Street|1}}}}}}|{{{Street|1}}}{{!}}{{!}}{{{Street2|{{{Street|1}}}}}}{{!}}{{!}}{{{Street3|{{{Street|1}}}}}}}}}}|{{#ifeq:{{{Street|1}}}|{{{Street2|{{{Street|1}}}}}}|colspan=2{{!}}{{{Street|1}}}|{{{Street|1}}}{{!}}{{!}}{{{Street2|{{{Street|1}}}}}}}}}}|{{{Street|1}}}}}
<!-- original code for other types
<!-- original code for other types
|-
|-
| {{Ramp}}
| {{Ramp}}
| colspan=1 | {{{ramp|highest rank of connected segment}}}{{#if:{{{title2|}}}|{{!}}{{!}}{{{ramp2|{{{Ramp|highest rank of connected segment}}}}}}}}{{#if:{{{title3|}}}|{{!}}{{!}}{{{ramp3|{{{Ramp|highest rank of connected segment}}}}}}}}
| colspan=1 | {{{ramp|Highest rank of connected segment}}}{{#if:{{{title2|}}}|{{!}}{{!}}{{{ramp2|{{{Ramp|Highest rank of connected segment}}}}}}}}{{#if:{{{title3|}}}|{{!}}{{!}}{{{ramp3|{{{Ramp|Highest rank of connected segment}}}}}}}}
|-
|-
| {{Major Highway}}
| {{Major Highway}}
Line 50: Line 89:
|{{Road|:&#124;:&#124;:&#124;:&#124;:Railroad:&#124;:&#124;:&#124;:&#124;:}}
|{{Road|:&#124;:&#124;:&#124;:&#124;:Railroad:&#124;:&#124;:&#124;:&#124;:}}
| colspan={{#expr:1+{{#if:{{{title2|}}}|1|0}}{{#if:{{{title3|}}}|1|0}}}} | {{{RR|2}}}
| colspan={{#expr:1+{{#if:{{{title2|}}}|1|0}}{{#if:{{{title3|}}}|1|0}}}} | {{{RR|2}}}
|-
|- bgcolor=#e2eef2
| {{Road| style = background-color: Turquoise;|Ferry}}
| {{Road| style = background-color: Turquoise;|Ferry}}
| colspan={{#expr:1+{{#if:{{{title2|}}}|1|0}}{{#if:{{{title3|}}}|1|0}}}} | {{{Ferry|5}}}
| colspan={{#expr:1+{{#if:{{{title2|}}}|1|0}}{{#if:{{{title3|}}}|1|0}}}} | {{{Ferry|5}}}<!--
<!--
-->{{#if:{{{Private|}}}{{{Private2|}}}{{{Private3|}}}|<br>
DG/Test commented version of PZs update
{{!}}-
-->
{{!}} {{Private}}
|-
{{!}}{{#if:{{{title2|}}}|{{#if:{{{title3|}}}|{{#ifeq:{{{Private|1}}}|{{{Private2|{{{Private|1}}}}}}|{{#ifeq:{{{Private2|{{{Private|1}}}}}}|{{{Private3|{{{Private|1}}}}}}|colspan=3{{!}}{{{Private|1}}}|colspan=2{{!}}{{{Private|1}}}{{!}}{{!}}{{{Private3|{{{Private|1}}}}}}}}|{{#ifeq:{{{Private2|{{{Private|1}}}}}}|{{{Private3|{{{Private|1}}}}}}|{{{Private|1}}}{{!}}{{!}}colspan=2{{!}}{{{Private2|{{{Private|1}}}}}}|{{{Private|1}}}{{!}}{{!}}{{{Private2|{{{Private|1}}}}}}{{!}}{{!}}{{{Private3|{{{Private|1}}}}}}}}}}|{{#ifeq:{{{Private|1}}}|{{{Private2|{{{Private|1}}}}}}|colspan=2{{!}}{{{Private|1}}}|{{{Private|1}}}{{!}}{{!}}{{{Private2|{{{Private|1}}}}}}}}}}|{{{Private|1}}}}}}}<!--
| DG Test Freeway
-->{{#if:{{{PLR|}}}{{{PLR2|}}}{{{PLR3|}}}|<br>
|<!--start table row then - LOGIC!-->{{#if:{{{title2|}}}<!-- if there is a second set of values-->
{{!}}- {{#if:{{{Private|}}}{{{Private2|}}}{{{Private3|}}}|bgcolor=#e2eef2}}
|{{#if:{{{title3|}}}<!--if there is a third set of values-->
{{!}} {{Private|Parking Lot Road}}
|{{#ifeq:{{{Fwy|4}}}|{{{Fwy2|{{{Fwy|4}}}}}}<!--three sets - are the first two the same?-->
{{!}}{{#if:{{{title2|}}}|{{#if:{{{title3|}}}|{{#ifeq:{{{PLR|1}}}|{{{PLR2|{{{PLR|1}}}}}}|{{#ifeq:{{{PLR2|{{{PLR|1}}}}}}|{{{PLR3|{{{PLR|1}}}}}}|colspan=3{{!}}{{{PLR|1}}}|colspan=2{{!}}{{{PLR|1}}}{{!}}{{!}}{{{PLR3|{{{PLR|1}}}}}}}}|{{#ifeq:{{{PLR2|{{{PLR|1}}}}}}|{{{PLR3|{{{PLR|1}}}}}}|{{{PLR|1}}}{{!}}{{!}}colspan=2{{!}}{{{PLR2|{{{PLR|1}}}}}}|{{{PLR|1}}}{{!}}{{!}}{{{PLR2|{{{PLR|1}}}}}}{{!}}{{!}}{{{PLR3|{{{PLR|1}}}}}}}}}}|{{#ifeq:{{{PLR|1}}}|{{{PLR2|{{{PLR|1}}}}}}|colspan=2{{!}}{{{PLR|1}}}|{{{PLR|1}}}{{!}}{{!}}{{{PLR2|{{{PLR|1}}}}}}}}}}|{{{PLR|1}}}}}}}
|{{#ifeq:{{{Fwy2|{{{Fwy|4}}}}}}|{{{Fwy3|{{{Fwy|4}}}}}}<!--first 2 same, is third also the same?-->
| colspan=3{{!}}{{Anchor|formAbc}}{{{Fwy|4}}}<!-- all 3 same do |colspan=3|value-->
| colspan=2{{!}}{{Anchor|formAbC}}{{{Fwy|4}}}{{!}}{{!}}{{{Fwy3|{{{Fwy|4}}}}}}<!--
...else A=B<>C so do wide col A/B||C ... then end the innermost if 3 same: -->
}}
|{{#ifeq:{{{Fwy2|{{{Fwy|4}}}}}}|{{{Fwy3|{{{Fwy|4}}}}}}<!--else: A<>B, maybe B=C?-->
| {{{Fwy|4}}}{{!}}{{!}}colspan=2{{!}}{{Anchor|formABc}}{{{Fwy2|{{{Fwy|4}}}}}}<!--yup, 1 col A, double col BC-->
| {{{Fwy|4}}}{{!}}{{!}}{{Anchor|formABC}}{{{Fwy2|{{{Fwy|4}}}}}}{{!}}{{!}}{{{Fwy3|{{{Fwy|4}}}}}}<!--3 unique, zero combo-->
}}<!-- end if B=C or not-->
}}<!--end three sets (if from line 3)... now on to two sets-->
|<!--else no 3 sets, must be 2 sets-->{{#ifeq:{{{Fwy|4}}}|{{{Fwy2|4}}}<!-- A=B (there is no C)-->
| colspan=2{{!}}{{Anchor|formAb}}{{{Fwy|4}}}<!--output a single column double wide-->
| {{Anchor|formAB}}{{{Fwy|4}}}{{!}}{{!}}{{{Fwy2|{{{Fwy|4}}}}}}<!-- else output two sep cols-->
}}<!--end nested if 3 lines above(2 sets then (check for same or differing))-->
}}<!--end second line if 3/not 3 only 2-->
| {{Anchor|formA}}{{{Fwy|4}}}<!--else of 1st line: if there are 2/else is only 1 set of values, so emit just the first column as a singe column but what col marker?-->
}}<!--close the opening if/DG-->
|}
|}
</center>
</center>
{{#if:{{{note|}}}|'''Note: '''}}{{{note|}}}{{#if:{{{note|}}}|<br />
}}{{{append|}}}
[[Category:Locking standards]]</onlyinclude>
[[Category:Locking standards]]</onlyinclude>

Latest revision as of 21:29, 9 May 2017

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

Documentation for Template:Locking Standard/Sandbox, which is the test version of Template:Locking Standard

Parameters

Note: Exact capitalization of parameter names matters:

  • lede: Lead-in 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.
  • note, append: text to be added below the table, which can include full wiki markup. If you use note, the text is automatically started with "Note: " in bold (the rest is not automatically bold
  • Fwy, Fwy2, Fwy3: The Freeway values, defaults to 4; Fwy is the first column, Fwy2 and Fwy3 are the second and third columns
  • MH, MH2, MH3: Major Highway values; defaults to 3 (note that the "m" is uppercase)
  • mH, mH2, mH3: Minor highway values, defaults to 2 (note that the "m" is lowercase)
  • PS, Street, PS2, Street2, PS3, Street3: Primary Street values and Street values; defaults to 1
  • RR, RR2, RR3: Railroad values; defaults to 2
  • Ferry, Ferry2, Ferry3: Ferry values; defaults to 5
  • Private, Private2, Private3: Private Road segment values. If you do not specify any of these three values, no row will display for Private. If you specify Private2 and/or Private3, but not Private, then Private defaults to 1


Samples

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.

Locking Standard Minimum Locking Rank Standard
Segment Type Default locks
 Freeway  4
 Ramp  Highest rank of connected segment
 Major Highway  3
 Minor Highway  2
 Primary Street  1
 Street  1
 :|:|:|:|:Railroad:|:|:|:|:  2
 Ferry  5
  • The above first sample calls the template with no parameters at all, and displays completely default behavior.

x3 - All Default
Segment Type First Column  Second Column  Third Column
 Freeway  4
 Ramp  Highest rank of connected segment
 Major Highway  3
 Minor Highway  2
 Primary Street  1
 Street  1
 :|:|:|:|:Railroad:|:|:|:|:  2
 Ferry  5

Note: This sample uses all defaults for segment lock values, but maxes out all the columns, removes the lead-in text (lede) and adds a "note" at the end

x3 All 5 (manual)
Segment Type First Column  Second Column  Third Column
 Freeway  5
 Ramp  Highest rank of connected segment
 Major Highway  3
 Minor Highway  2
 Primary Street  1
 Street  1
 :|:|:|:|:Railroad:|:|:|:|:  2
 Ferry  5

This sample is the same as the previous. However:

  • Freeway is set to 5 instead of to 4
  • All Freeway values are set to be the same manually, though the additional columns would have inherited the same value (5) anyway from the first column, i.e., the default for columns 2 and 3 is to be the same as column 1, whether column 1 inherits the unspecified default or is set to a different value. The purpose of that is to allow the caller to specify the minimal number of changes from column to column.
  • The "note" is changed to the "append" parameter, which functions similarly except without the bolded "Note: " prefix

x3 A=custom, B=same custom, C=default
Segment Type First Column  Second Column  Third Column
 Freeway  5
 Ramp  Highest rank of connected segment
 Major Highway  3
 Minor Highway  2
 Primary Street  1
 Street  1
 :|:|:|:|:Railroad:|:|:|:|:  2
 Ferry  5


x3 A=custom, B=default, C=same custom
Segment Type First Column  Second Column  Third Column
 Freeway  5
 Ramp  Highest rank of connected segment
 Major Highway  3
 Minor Highway  2
 Primary Street  1
 Street  1
 :|:|:|:|:Railroad:|:|:|:|:  2
 Ferry  5


x3 Region 1 & 2 Match (manual)
Segment Type First Column  Second Column  Third Column
 Freeway  5 3
 Ramp  Highest rank of connected segment
 Major Highway  3
 Minor Highway  2
 Primary Street  1
 Street  1
 :|:|:|:|:Railroad:|:|:|:|:  2
 Ferry  5

x3 Region 2 & 3 Match
Segment Type First Column  Second Column  Third Column
 Freeway  4 5
 Ramp  Highest rank of connected segment
 Major Highway  3
 Minor Highway  2
 Primary Street  1
 Street  1
 :|:|:|:|:Railroad:|:|:|:|:  2
 Ferry  5

x3 All Different
Segment Type First Column  Second Column  Third Column
 Freeway  4 5 3
 Ramp  Highest rank of connected segment
 Major Highway  3
 Minor Highway  2
 Primary Street  1
 Street  1
 :|:|:|:|:Railroad:|:|:|:|:  2
 Ferry  5

x3 A/C match (manual)
Segment Type First Column  Second Column  Third Column
 Freeway  99 5 99
 Ramp  Highest rank of connected segment
 Major Highway  3
 Minor Highway  2
 Primary Street  1
 Street  1
 :|:|:|:|:Railroad:|:|:|:|:  2
 Ferry  5

x3 A/C match (default C)
Segment Type First Column  Second Column  Third Column
 Freeway  313 5 313
 Ramp  Highest rank of connected segment
 Major Highway  3
 Minor Highway  2
 Primary Street  1
 Street  1
 :|:|:|:|:Railroad:|:|:|:|:  2
 Ferry  5


x3 A/C default
Segment Type First Column  Second Column  Third Column
 Freeway  4 144 4
 Ramp  Highest rank of connected segment
 Major Highway  3
 Minor Highway  2
 Primary Street  1
 Street  1
 :|:|:|:|:Railroad:|:|:|:|:  2
 Ferry  5


x2 All Different
Segment Type First Column  Second Column
 Freeway  4 5
 Ramp  Highest rank of connected segment
 Major Highway  3
 Minor Highway  2
 Primary Street  1
 Street  1
 :|:|:|:|:Railroad:|:|:|:|:  2
 Ferry  5

x2 All Default
Segment Type First Column  Second Column
 Freeway  4
 Ramp  Highest rank of connected segment
 Major Highway  3
 Minor Highway  2
 Primary Street  1
 Street  1
 :|:|:|:|:Railroad:|:|:|:|:  2
 Ferry  5

x2 Manual Match
Segment Type First Column  Second Column
 Freeway  5
 Ramp  Highest rank of connected segment
 Major Highway  3
 Minor Highway  2
 Primary Street  1
 Street  1
 :|:|:|:|:Railroad:|:|:|:|:  2
 Ferry  5

x1 Default - no table params
Segment Type Default locks
 Freeway  4
 Ramp  Highest rank of connected segment
 Major Highway  3
 Minor Highway  2
 Primary Street  1
 Street  1
 :|:|:|:|:Railroad:|:|:|:|:  2
 Ferry  5

x1 Custom lock
Segment Type Default locks
 Freeway  5
 Ramp  Highest rank of connected segment
 Major Highway  3
 Minor Highway  2
 Primary Street  1
 Street  1
 :|:|:|:|:Railroad:|:|:|:|:  2
 Ferry  5

x1 custom title and lock
Segment Type custom
 Freeway  5
 Ramp  Highest rank of connected segment
 Major Highway  3
 Minor Highway  2
 Primary Street  1
 Street  1
 :|:|:|:|:Railroad:|:|:|:|:  2
 Ferry  5

private
Segment Type Default locks
 Freeway  4
 Ramp  Highest rank of connected segment
 Major Highway  3
 Minor Highway  2
 Primary Street  1
 Street  1
 :|:|:|:|:Railroad:|:|:|:|:  2
 Ferry  5
 Private Road  3

private and plr
Segment Type Default locks
 Freeway  4
 Ramp  Highest rank of connected segment
 Major Highway  3
 Minor Highway  2
 Primary Street  1
 Street  1
 :|:|:|:|:Railroad:|:|:|:|:  2
 Ferry  5
 Private Road  2
 Parking Lot Road  1

private and plr (default 1, custom 2)
Segment Type Default locks  custom plr
 Freeway  4
 Ramp  Highest rank of connected segment
 Major Highway  3
 Minor Highway  2
 Primary Street  1
 Street  1
 :|:|:|:|:Railroad:|:|:|:|:  2
 Ferry  5
 Private Road  2
 Parking Lot Road  1 2

plr
Segment Type Default locks
 Freeway  4
 Ramp  Highest rank of connected segment
 Major Highway  3
 Minor Highway  2
 Primary Street  1
 Street  1
 :|:|:|:|:Railroad:|:|:|:|:  2
 Ferry  5
 Parking Lot Road  3
The above documentation is transcluded from Template:Locking Standard/Sandbox/doc.
Please add categories to the /doc subpage.
Subpages of this template.

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.

Locking Standard Minimum Locking Rank Standard
Segment Type Default locks
 Freeway  4
 Ramp  Highest rank of connected segment
 Major Highway  3
 Minor Highway  2
 Primary Street  1
 Street  1
 :|:|:|:|:Railroad:|:|:|:|:  2
 Ferry  5