User:Luccagenes/Sandbox/Maintenance2

__NORICHEDITOR__

State time calculations =current time =current am/pm =adjusted standard 24 hour time =adjusted standard 12 hour time daylight savings (-1 hour)





test1 test2 test3 test4

United States Arkansas  Johnson County Genealogy Research Home Online Resources Archives and Local Resources Ideas and Fixes   Overview  Content Projects   Wiki Clean Up   Meet &amp; Talk
 * Johnson County, Arkansas Home
 * County Websites
 * Courthouse and Local Resources

Current date (basic formula = #time:z

with zeros

without zeros and expression

actual date entered (Jan 29, 2014)

Current year Revision year

Current minus Revision year

Test "ifeq" function works

Test "switch" function (choice = Curr-Rev or 365-Rev+Curr or error)

Calcutate difference of Current minus Revision (in days based on day of year)

Revision time stamp

Current time stamp

27     Specialty Projects   Specialty Projects  <div style="position:absolute; font-size:28px; top:25px; left:0px; width:450px; height:25px; padding-left:10px; font-family:museo; color:#4d4d4a;"> Specialty Projects

Notes: Determine the best equation to get most flexibility and how to configure the manual selection option that will allow the user to "browse" all the NEWS highlights at their discretion. Also note that templates could be randomly inserted if excess space is available and "fillers" could be dispersed here and there (a filler could be an image in combination with a "thought of the day", an "inspirational quote", or "words to live by".

Which equation is best: (each of the two adboxes, and the sidebar could have different timers)

Could switch on an ODD EVEN basis using minutes, hours, days, weeks, or months. Very limited as only two options (displays) would be available.

Could switch hourly (24 options plus could group by leaving blanks, 3 hours with same display) but this would result in limited versatility (every night at same time, the same display).

Could switch daily based on a week interval (7 options at most) provides good versatility assuming the user does not access the page only on Tuesdays, for example, as this would repeat week after week unless changed.

Could switch daily based on a month interval (31 options but blanks and repeats out of order would increase variety). Once set, it could be ignored for several months unless new templates were added. If templates were modified (outside the equation) this would be easier for editors. Problem is the long list (31 item spaces) and how to gain "manual access and display all 31 efficiently. Good question-no answer yet.

Could switch monthly (12 options but using 2 to 12 different templates which could be randomized). Might be good for the sidebar changes and this is a manageable amount of options.

Could switch weekly (52 options) but this would make the "manual" access even worse than the 31 choices for the daily switch.

Note: There is also a problem with how to link and display the "News cycle" for example, should the template number be displayed or the position number or just one instance of each template number. The latter would eliminate the long list (31) and is probably the way to go as the user will not care about how the system works (only the option to check out other "news". Possibly call it something other than "cycle". More thought needed.


 * Update: change the name "news cycle" to "Current news clips" and then only display the appropriate links and not all 31 numbers.

<div style="position:absolute; font-size:14px; top:0px; left:0px; width:465px; height:240px; background: linear-gradient(white 0%, white 50%, #E0E0E0 90%, #D0D0D0 100%); box-shadow:0px 4px 2px 0px #aaaaaa; padding:1px; color:white"> <div style="position:absolute; font-size:28px; top:25px; left:0px; width:420px; height:25px; padding-left:10px; font-family:museo; color:#4d4d4a;"> Wiki Projects highlights

| 1=Adbox1 News1 | 2= Adbox1 News2 | 3=Adbox1 News3|4=Adbox1 News4 | 5=Adbox1 News5 | 6=Adbox1 News6 | 7=Adbox1 News7|      default error }}

test multiple switch functions. {{#switch:{{#expr:27 <8}} | 0=result1 | 1={{#switch:{{#expr:{{CURRENTDAY}} <16}} | 0 = result2 | 1={{#switch:{{#expr:{{CURRENTDAY}} <24}} | 0 = result3 | 1={{#switch:{{#expr:{{CURRENTDAY}} <32}} | 0 = result4 | error

Current day of month (31 max) - - - current day is {{CURRENTDAY}} - - - current display is: {{#switch:{{CURRENTDAY}} }}
 * 1={{Template:Adbox1 News1}}
 * 2={{Template:Adbox1 News2}}
 * 3={{Template:Adbox1 News3}}
 * 4={{Template:Adbox1 News4}}
 * 5={{Template:Adbox1 News5}}
 * 6={{Template:Adbox1 News6}}
 * 7={{Template:Adbox1 News7}}
 * 8={{Template:Adbox1 News4}}
 * 9={{Template:Adbox1 News1}}
 * 10={{Template:Adbox1 News6}}
 * 11={{Template:Adbox1 News3}}
 * 12={{Template:Adbox1 News2}}
 * 13={{Template:Adbox1 News6}}
 * 14
 * 15={{Template:Adbox1 News1}}
 * 16={{Template:Adbox1 News7}}
 * 17={{Template:Adbox1 News3}}
 * 18={{Template:Adbox1 News5}}
 * 19={{Template:Adbox1 News2}}
 * 20={{Template:Adbox1 News5}}
 * 21={{Template:Adbox1 News6}}
 * 22={{Template:Adbox1 News3}}
 * 23={{Template:Adbox1 News2}}
 * 24={{Template:Adbox1 News4}}
 * 25={{Template:Adbox1 News7}}
 * 26={{Template:Adbox1 News2}}
 * 27={{Template:Adbox1 News1}}
 * 28={{Template:Adbox1 News4}}
 * 29={{Template:Adbox1 News5}}
 * 30={{Template:Adbox1 News3}}
 * 31={{Template:Adbox1 News7}}
 * error

Template display for Adbox1 {{Template:Adbox1 News1}} {{Template:Adbox1 News2}} {{Template:Adbox1 News3}} {{Template:Adbox1 News4}} {{Template:Adbox1 News5}} {{Template:Adbox1 News6}} {{Template:Adbox1 News7}}

Current day of month (31 max) - - - current day is {{CURRENTDAY}} - - - current display is: {{#switch:{{CURRENTDAY}} }}
 * 1={{Template:Adbox2 News1}}
 * 2={{Template:Adbox2 News2}}
 * 3={{Template:Adbox2 News3}}
 * 4={{Template:Adbox2 News4}}
 * 5={{Template:Adbox2 News5}}
 * 6={{Template:Adbox2 News6}}
 * 7={{Template:Adbox2 News7}}
 * 8={{Template:Adbox2 News4}}
 * 9={{Template:Adbox2 News1}}
 * 10={{Template:Adbox2 News6}}
 * 11={{Template:Adbox2 News3}}
 * 12={{Template:Adbox2 News2}}
 * 13={{Template:Adbox2 News6}}
 * 14
 * 15={{Template:Adbox2 News1}}
 * 16={{Template:Adbox2 News7}}
 * 17={{Template:Adbox2 News3}}
 * 18={{Template:Adbox2 News5}}
 * 19={{Template:Adbox2 News2}}
 * 20={{Template:Adbox2 News5}}
 * 21={{Template:Adbox2 News6}}
 * 22={{Template:Adbox2 News3}}
 * 23={{Template:Adbox2 News2}}
 * 24={{Template:Adbox2 News4}}
 * 25={{Template:Adbox2 News7}}
 * 26={{Template:Adbox2 News2}}
 * 27={{Template:Adbox2 News1}}
 * 28={{Template:Adbox2 News4}}
 * 29={{Template:Adbox2 News5}}
 * 30={{Template:Adbox2 News3}}
 * 31={{Template:Adbox2 News7}}
 * error

Template display for Adbox2 {{Template:Adbox2 News1}} {{Template:Adbox2 News2}} {{Template:Adbox2 News3}} {{Template:Adbox2 News4}} {{Template:Adbox2 News5}} {{Template:Adbox2 News6}} {{Template:Adbox2 News7}}

{{#switch:| 0= | 1= |  }}   truncated minutes

minute {{#switch:{{#expr:{{#expr:trunc{{#expr:{{CURRENTTIMESTAMP}}*0.01}}}} mod 2}}| 0= | 1= | }}

hour {{#switch:{{#expr:{{#expr:trunc{{#expr:{{CURRENTTIMESTAMP}}*0.0001}}}} mod 2}}| 0= | 1= | }}

day {{#switch:{{#expr:{{#expr:trunc{{#expr:{{CURRENTTIMESTAMP}}*0.000001}}}} mod 2}}| 0= | 1= | }}

month {{#switch:{{#expr:{{#expr:trunc{{#expr:{{CURRENTTIMESTAMP}}*0.00000001}}}} mod 2}}| 0= | 1= | }}

year{{#switch:{{#expr:{{#expr:trunc{{#expr:{{CURRENTTIMESTAMP}}*0.0000000001}}}} mod 2}}| 0= | 1= | }}

Note for future reference: If the EasyAccessSeries is successful, a page called EasyAccessSeries should be created for search purposes (it could also list all pages in the series). Currently if EasyAccessSeries is entered in search box it will bring up all related articles but the full "word" has to be used. Searching " "familysearch wiki:e" wil display all related articles in the dropdown but a specific article may make searching easier..  <div style="position:absolute; font-size:12px; top:0px; left:0px; width:640px; height:175px; padding-bottom:1px;background-color:#ffffff; color:gray; border:5px double #d2bbff"> The "Easy Access Series" of articles provides a focused approach (a hub) to find a number of wiki pages related to a specific topic.             If you have suggestions for pages or topic that might benefit from this format: enter suggestion here. I