User:PesachZ/SyncScratch View history

m (Copying text of wiki page for coparison with the "Template:Lock Standard State/doc" page)
m (Copying text of wiki page for coparison with the "New York/Closures/Major" page)
 
(26 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{doc subpage}}
<!-- ========================
<!-- ADD DOCUMENTATION BELOW THIS LINE -->
    ↓  EDITS TO THIS TABLE ARE MADE BELOW THE INSTRUCTIONS    ↓
{{mbox|type=critical|text=This template is transcluded into many state pages to define their locking standards. Any errant changes to this page can affect lots of state wiki pages relying on this template. '''Please be sure you fully comprehend this template and how [http://www.mediawiki.org/wiki/Help:Extension:ParserFunctions#.23switch parser switch functions] work before editing it. If you need help please ask someone.
==============================
This page is only viewed directly in the Major Events table on the Closures subpage.--><noinclude>[[Category:{{RootPage2}}]]
[{{fullurl:{{BasePage2}}/Closures|action{{=}}purge}} {{u|Click here to return to the {{RootPage2}}/Closures Subpage}}]<br/>


These rows fill the major Event table, and are modified using the template {{tl|Event/Item}}. If you are working on a Major Event in {{RootPage2}}, please add add that event to this table. If the event is already listed, please add your username to the row, preceded by a pipe (|), and change the date to today's date in the <code>updated=</code> parameter.


Please do not make changes to any state or regions defined settings without first getting consensus in the local forum, or approval from the RC.'''}}


This template<noinclude>, [[Template:Lock Standard State]],</noinclude> simplifies calls to the [[Template:Locking Standard|Locking Standard]] template. The parameter list is somewhat long, and easy to confuse should there be multiple variations of locking standards within the state. To simplify this, a second template -- this one -- can be used to ''can'' the call for each area. You put all the complex code for your states locks in here, and just add the simple one line code to call this template on your states page.
This template accepts many parameters which must be separated from each other using pipe characters (|), but can be placed in any order and will automatically  the correct parts of the table. To use a parameter you must keep the name of parameter (the part before the equals sign (=) identical to this list, and only modify what goes after the equals sign (=).


You call this template as follows:<br/>
==Accepted parameters:==


{{tlx|Lock Standard State|XY}}<br/>
*<code>name=</code> The name of the event.
...where XY is use a USPS state abbreviation or the like. But the list of abbreviations "and the like" must be predefined in this template.
*<code>area=</code> The county or are the event takes place in.
*<code>date=</code> The estimated date(s) this event happens on.
*<code>road=</code> The main road(s) affected by this event.
*<code>pl=</code> A [[permalink]] to the affected road(s), or a link to documenting listing all the affected roads (usually a Waze event closure document).
*<code>source=</code> A link to an official information source for this event, a government website, the hosting organizations webpage, etc.
*<code>status=</code> Whether this event has been submitted to Waze yet for this season. It accepts the following options spelled only exactly as listed here in order to correctly change the color of the row, filled with anything else will display with a white background
**<code>not submitted</code> produces a red background
**<code>submitted</code> produces a light green background
**<code>in progress</code> produces an orange background.
*Up to six editors can be listed in the table for any event. These can be the editors who are working to get it submitted, maintain the segments, or just have special knowledge of the event/area. They are entered as unnamed parameters. Meaning they are to be entered between two pipe (|) characters of the adjacent parameters. Each editors name (without any spaces) should be separated with a pipe (|).
*<code>updated=</code> the date this event was last updated in this table. This is used to keep the table current, and identify stale entries.




==Defining a new states locks==
The updated parameter (<code>|updated=YY/MM(/DD)|</code>) should be updated any time you update a row. Put the date you are modifying the row after the equals sign (=).


The template is a large [http://www.mediawiki.org/wiki/Help:Extension:ParserFunctions#.23switch "switch"] statement that shows all the "states" (or provinces, regions, etc.) for which it is programmed.


To program a new state, you must first know how to use the {{Tl|Locking Standard}} template -- this template doesn't eliminate that work. This template just self-documents the resulting code, makes your states wiki page code look much cleaner, and less likely to accidentally break. '''(However, anyone touching the code here can break a lot of state pages!)'''
The <code>|date=|</code>, and <code>|updated=|</code> parameters should use the format YY/MM/DD. The day of the month is optional. Using this format will make it easier to sort the list by updated date. This will help ensure the information on the list is current, and make it easy to find stale rows which may need to be adopted by other editors.


Once you have developed the code to define your states locking table using the {{Tl|Locking Standard}} template, use the following guidance to add a new state/region/group of localities/etc to this template.


* Each state abbreviation must be in all UPPER CASE, and entered on a new line starting with a pipe character (the vertical bar |).
For example an Event row should look like this;
** Multiple states or regions can be set to use a single definition using the [http://www.mediawiki.org/wiki/Help:Extension:ParserFunctions#Grouping_results "fall through" technique]. If you want this state to use the same values as another defined state/region; do ''not'' put the equals sign (=) following the state/region name, make sure this state/region name is added above the defined state/region you want to use. When there is no (=) after the name, it will use the next defined set of values below.
** Do not add any new states below the default settings at the bottom of the template.
* To define this state put a equals sign (=) after the state abbreviation and then start the {{tl|Locking Standard}} template code.
** Now add a wiki comment describing the source of the information, your username, and the date. These comments are only visible in the code, and displayed in the wiki, they help to keep track of changes and for maintenance. To start a comment use <!-- anything after this is part of the comment. To end a comment use --> anything after this is displayed in the wiki.
*** For example {{pre2|XX{{!}}<nowiki>{{Locking Standard <!-- as per state forum http://www.waze.com/forum/... Username, 2015-01-27 --></nowiki>}}
** On the next line start adding in the parameters to build your state table for the {{tl|Locking Standard}} template. To make this template easy to read you can add line breaks and indents before new parameters. You can start each parameter or group of parameters with the pipe on a new line, and use regular spaces to indent before the pipe, showing context.
** Remember to end your defining template code with a closing pair of braces (}}).
* Now add the {{tlx|Lock Standard State|XX}} template code to your states wiki page.
* {{red|After saving any changes to this template, '''please''' check the output for your state, and all the examples listed in <includeonly>the [[/doc]]</includeonly><noinclude>this doc</noinclude> page, to ensure they are producing the correct output.}}
** If you notice that the output for your state or some of the examples listed here in the doc page are wrong, please {{red|'''"UNDO"''' your changes}} using the link by your edit on the [http://wiki.waze.com/wiki/index.php?title=Template:Lock_Standard_State&action=history history tab].


{{pre2|{{!}}AB {{=}} <nowiki>{{Locking Standard <!--comment explaining source of information, etc., the dashes, ! and LT/GT are part of the wiki code and must be present--></nowiki>
{{Tlx|Event/Item|name=''EVENT NAME''|date{{=}}14/10|in progress|username|updated{{=}}14/08}}
  {{!}}parameterA {{=}} value value value
  {{!}}parameterB {{=}} text text text
  {{!}}Fwy {{=}} 1 {{!}} Fwy2 {{=}} 2
  {{!}}MH {{=}} 4 {{!}} mH {{=}} 3
  {{!}}MH2 {{=}} 5 {{!}} mH2 {{=}} 5<nowiki>}}</nowiki>
{{!}}FG {{=}} <nowiki>{{Locking Standard <!-- comment explaining source of information, etc., the dashes, ! and LT/GT are part of the wiki code and must be present--></nowiki>
  {{!}}Title1 {{=}} value value value
      {{!}}Fwy {{=}} 1 {{!}} MH {{=}} 2 {{!}} mH {{=}} 3
  {{!}}Title2 {{=}} text text text
      {{!}}Fwy2 {{=}} 5 {{!}}MH2 {{=}} 5 {{!}} mH2 {{=}} 5<nowiki>}}</nowiki>
{{!}} CD {{=}} <nowiki>{{Locking Standard}} <!--simple case, uses no parameters, only defaults--></nowiki>
{{!}} REGION9
{{!}} REGION9PROVINCE1
{{!}} REGION9PROVINCE2
{{!}} REGION9PROVINCE3 {{=}} <nowiki>{{</nowiki>Locking Standard
  {{!}}lede{{=}}This locking standard applies to the entire Region 9 (all three member provinces, Province1, Province2, Province3)
  {{!}}Fwy{{=}}5<nowiki>}}</nowiki>
{{!}} NEW SMALLVILLE
{{!}} NEW BIGVILLE {{=}} <nowiki>{{Locking Standard <!--New Smallville and New Bigville share the same setup, so only one of them has to actually have the code (always the last one), and the others don't have an {{=}} {{Locking Standard... the wiki understands to just pick the next one actually specified. (Just as Region 9 above) This is called "Fall through".--></nowiki>
  {{!}}Fwy {{=}} 4<nowiki>}}</nowiki>}}


==Examples==


Note that due to the peculiarities of the underlying Locking Standard template, the state name is only picked up correctly when used as intended in State Pages. It otherwise picks up the rather nonsensical (in context) name of the current page for the caption/lede.
If there are multiple editors it should look like this


{{tlx|Lock Standard State|CA}}
{{Tlx|Event/Item|name=''EVENT NAME''|date{{=}}14/10|in progress|username1|username2|updated{{=}}14/08}}


{{mbox|image=none|text={{Lock Standard State|CA}}}}




----
'''Whenever you edit this table, please be sure to include the name of the event you are editing in the summary field under the edit box.'''
————————————————————————————————————


{{tlx|Lock Standard State|NM}}


{{mbox|image=none|text={{Lock Standard State|NM}}}}


''The actual contents of this page '''will only be visible''' in the [[{{BasePage2 }}/Closures|Major Events table]], or when editing this page.''


----
==TO EDIT THIS TABLE CLICK HERE >> ==
</noinclude><includeonly><!--
------ DO NOT MODIFY ABOVE THIS LINE -----
======                              ======
======                              ======
======                              ======
====== DO NOT MODIFY ABOVE THIS LINE ====-->
{{Event/Item|name=New Years Celebration|area=NYC|road=Times Sq/Coney Island|pl=https://docs.google.com/spreadsheets/d/1Ira6IdyS3x3YtAlTqoXbU1Muw4ANl8rq7af2zKLcCtM/edit#gid=1716991474|date=12/31-01/01 annual|status=submitted|Rfrsw101|jdelosa|johnsninja58|PesachZ|updated=2017/02/08}}


{{tlx|Lock Standard State|NEW ENGLAND}}
{{Event/Item|name=NYC 1/2 Marathon & St. Patricks' Day Parade|date=03 annual|pl=https://docs.google.com/spreadsheets/d/1Ira6IdyS3x3YtAlTqoXbU1Muw4ANl8rq7af2zKLcCtM/edit#gid=339510355|area=NYC|road=5 Boroughs|status=submitted|updated=2017/02/09|Rfrsw101|jdelosa|johnsninja58|PesachZ}}


{{mbox|image=none|text={{Lock Standard State|NEW ENGLAND}}}}
{{Event/Item|name=July 4th Celebration|area=NYC|status=submitted|updated=2017/02/12|Rfrsw101|jdelosa|johnsninja58|PesachZ|road=FDR Dr|date=07/04 annual|pl=https://docs.google.com/spreadsheets/d/1Ira6IdyS3x3YtAlTqoXbU1Muw4ANl8rq7af2zKLcCtM/edit#gid=1864894199|source=http://www.nyc.gov/html/dot/html/motorist/wkndtraf.shtml}}


{{Event/Item|name=Summer Streets|road=Park Ave|pl=https://docs.google.com/spreadsheets/d/1Ira6IdyS3x3YtAlTqoXbU1Muw4ANl8rq7af2zKLcCtM/edit#gid=1984749524|source=http://www.nyc.gov/html/dot/summerstreets/html/home/home.shtml|date=08 First 3 Sundays|area=NYC|status=submitted|updated=2017/02/10|Rfrsw101|jdelosa|johnsninja58|PesachZ}}


----
{{Event/Item|name=West Indian Day Parade|date=09 Labor Day annual|area=Kings|road=Eastern Pkwy, Classon-Rochester St Johns-Empire|source=http://maps.nyc.gov/streetclosure/|pl=https://docs.google.com/spreadsheets/d/1Ira6IdyS3x3YtAlTqoXbU1Muw4ANl8rq7af2zKLcCtM/edit#gid=1605830763|status=submitted|Rfrsw101|jdelosa|johnsninja58|PesachZ|updated=2017/02/10}}


{{tlx|Lock Standard State|NORTHEAST}}
{{Event/Item|name=TD 5 Boro Bike Tour|area=NYC|date=05 First Sunday annual|road=5 Boroughs|pl=https://docs.google.com/spreadsheets/d/1Ira6IdyS3x3YtAlTqoXbU1Muw4ANl8rq7af2zKLcCtM/edit#gid=790135118|Rfrsw101|jdelosa|johnsninja58|PesachZ|status=submitted|updated=2017/02/08}}


{{mbox|image=none|text={{Lock Standard State|NORTHEAST}}}}
{{Event/Item|name=NYC TCS Marathon|area=NYC|date=11 First Weekend annual|pl=https://docs.google.com/spreadsheets/d/1Ira6IdyS3x3YtAlTqoXbU1Muw4ANl8rq7af2zKLcCtM/edit#gid=0|road=5 Boroughs|source=http://www.tcsnycmarathon.org/race-day/course|Rfrsw101|jdelosa|johnsninja58|PesachZ|status=submitted|updated=2017/02/07}}


{{Event/Item|name=UN General Assembly|area=NYC|road=East Midtown|date=09 Last Two Weeks Annual|pl=https://docs.google.com/spreadsheets/d/1Ira6IdyS3x3YtAlTqoXbU1Muw4ANl8rq7af2zKLcCtM/edit#gid=1895099030|Rfrsw101|jdelosa|johnsninja58|PesachZ|status=submitted|updated=2017/02/08}}


----
{{Event/Item|name=Macy's Thanksgiving Day Parade|area=NYC|road=Herald Square|pl=https://docs.google.com/spreadsheets/d/1Ira6IdyS3x3YtAlTqoXbU1Muw4ANl8rq7af2zKLcCtM/edit#gid=1774745119|date=11 Last Thursday Annual|source=http://social.macys.com/parade/#route|status=submitted|Rfrsw101|jdelosa|johnsninja58|PesachZ|updated=2017/02/08}}
 
{{tlx|Lock Standard State|NY}}
 
{{mbox|image=none|text={{Lock Standard State|NY}}}}
 
<includeonly>
<!-- ADD CATEGORIES BELOW THIS LINE -->
 
<!-- ADD INTERWIKIS BELOW THIS LINE -->


{{Event/Item|name=Chinese New Year Parades|date=01 or 02 annual|pl=https://docs.google.com/spreadsheets/d/1Ira6IdyS3x3YtAlTqoXbU1Muw4ANl8rq7af2zKLcCtM/edit#gid=1190958434|area=NYC|road=Chinatown/8th Avenue/Flushing|status=submitted|updated=2017/02/08|Rfrsw101|jdelosa|johnsninja58|PesachZ}}
<!--- DO NOT MODIFY BELOW THIS LINE ------=====                                =====
=====                                =====
=====                                =====
----- DO NOT MODIFY BELOW THIS LINE ----->
</includeonly>
</includeonly>

Latest revision as of 05:15, 19 February 2017

Click here to return to the PesachZ/Closures Subpage

These rows fill the major Event table, and are modified using the template {{Event/Item}}. If you are working on a Major Event in PesachZ, please add add that event to this table. If the event is already listed, please add your username to the row, preceded by a pipe (|), and change the date to today's date in the updated= parameter.


This template accepts many parameters which must be separated from each other using pipe characters (|), but can be placed in any order and will automatically the correct parts of the table. To use a parameter you must keep the name of parameter (the part before the equals sign (=) identical to this list, and only modify what goes after the equals sign (=).

Accepted parameters:

  • name= The name of the event.
  • area= The county or are the event takes place in.
  • date= The estimated date(s) this event happens on.
  • road= The main road(s) affected by this event.
  • pl= A permalink to the affected road(s), or a link to documenting listing all the affected roads (usually a Waze event closure document).
  • source= A link to an official information source for this event, a government website, the hosting organizations webpage, etc.
  • status= Whether this event has been submitted to Waze yet for this season. It accepts the following options spelled only exactly as listed here in order to correctly change the color of the row, filled with anything else will display with a white background
    • not submitted produces a red background
    • submitted produces a light green background
    • in progress produces an orange background.
  • Up to six editors can be listed in the table for any event. These can be the editors who are working to get it submitted, maintain the segments, or just have special knowledge of the event/area. They are entered as unnamed parameters. Meaning they are to be entered between two pipe (|) characters of the adjacent parameters. Each editors name (without any spaces) should be separated with a pipe (|).
  • updated= the date this event was last updated in this table. This is used to keep the table current, and identify stale entries.


The updated parameter (|updated=YY/MM(/DD)|) should be updated any time you update a row. Put the date you are modifying the row after the equals sign (=).


The |date=|, and |updated=| parameters should use the format YY/MM/DD. The day of the month is optional. Using this format will make it easier to sort the list by updated date. This will help ensure the information on the list is current, and make it easy to find stale rows which may need to be adopted by other editors.


For example an Event row should look like this;

{{Event/Item|date=14/10|in progress|username|updated=14/08}}


If there are multiple editors it should look like this

{{Event/Item|date=14/10|in progress|username1|username2|updated=14/08}}


Whenever you edit this table, please be sure to include the name of the event you are editing in the summary field under the edit box. ————————————————————————————————————


The actual contents of this page will only be visible in the Major Events table, or when editing this page.

TO EDIT THIS TABLE CLICK HERE >>