Template for standard road lock schemes

Moderator: Unholy

Re: Template for standard road lock schemes

Postby qwaletee » Fri Jan 09, 2015 12:44 am

PesachZ wrote:while taking a peek at this code I found what I think is a bug. If you have 3 regions, and use the default value for fwy on all of them the third region gets locked at 3 instead of 4.
current code:
Code: Select all
| {{{Fwy|4}}}{{#if:{{{title2|}}}|{{!}}{{!}}{{{Fwy2|{{{Fwy|4}}}}}}}}{{#if:{{{title3|}}}|{{!}}{{!}}{{{Fwy3|{{{Fwy|3}}}}}}}}

I believe the last "3" at the end of the string should be a 4.


Good catch
US Champ / Country Manager | State Manager NY, NJ, PA, CT, MA, RI, VT, ME, NH | Northeast ARC | Mentor | Responding to Map Issues
qwaletee
EmeritusChamps
EmeritusChamps
 
Posts: 2939
Joined: Wed Feb 13, 2013 1:42 am
Location: NYC Metro - Active throughout NE^2 (Northeast & New England)
Has thanked: 235 times
Been thanked: 1137 times

Re: Template for standard road lock schemes

Postby qwaletee » Tue Jan 13, 2015 5:34 am

Update, everyone.

The two templates are now published. Many state pages now use the {{Lock Standard State|XX}} template, as well as the Texas MapRaid.

The underlying {{Locking Standard}} template is primarily used only by the State Locking Standard.

The system now combines adjacent values with the same value, so you won't see three separate columns containing the number 1 in the Street row, etc. PesachZ did much of the work to improve the formatting. There is a bug where the combined columns do not work for Freeway right now, which we'll probably solve after catching up on some things that have been slipping due to Houston.

There is also a Google Spreadsheet that documents many states together (original concept by Fredo-p). It has a different but similar format.

I did note that the LA MapRaid page lists a CA locking standard that is not quite the same as the one developed through the forums. That should be rationalized. Right now, {{Lock Standard State|CA}} uses the forum parameters, but I have not inserted it into any live page. Once it is rationalized, I can make the template match the consensus, and it can be placed on the CA page.
US Champ / Country Manager | State Manager NY, NJ, PA, CT, MA, RI, VT, ME, NH | Northeast ARC | Mentor | Responding to Map Issues
qwaletee
EmeritusChamps
EmeritusChamps
 
Posts: 2939
Joined: Wed Feb 13, 2013 1:42 am
Location: NYC Metro - Active throughout NE^2 (Northeast & New England)
Has thanked: 235 times
Been thanked: 1137 times

Re: Template for standard road lock schemes

Postby qwaletee » Tue Jan 20, 2015 8:42 am

Just a pair of notes:

1) Pesach is a fantastic partner in code development. We're pretty good at bouncing ideas off one another, and writing to the same code without stepping on each other's toes.

2) There's a discussion going on about how to deal with the railroad row - the default national lock standard may be changing (now or after a break in for new junction rules), and there is some concern that just by existing in the table, the RR entry may be giving some editors a false impression about railroad mapping. As a result, there may be some template changes, and this may affect states/regions that have allowed the RR template default value to stay in. If we change the RR default in the template, such states will have an "unexpected" change in their lock display. We may have to consider a RR row opt-out.
US Champ / Country Manager | State Manager NY, NJ, PA, CT, MA, RI, VT, ME, NH | Northeast ARC | Mentor | Responding to Map Issues
qwaletee
EmeritusChamps
EmeritusChamps
 
Posts: 2939
Joined: Wed Feb 13, 2013 1:42 am
Location: NYC Metro - Active throughout NE^2 (Northeast & New England)
Has thanked: 235 times
Been thanked: 1137 times

Previous

Return to Wiki Updates and Discussion

Who is online

Users browsing this forum: Google [Bot]