User:Luccagenes/Sandbox/Maintenance2

day

Current year Revision year

Revision time stamp

Current time stamp

28     Specialty Projects   Specialty Projects   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.

  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:28 <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= | }}

 Wiki Home Page  New to the Genealogy?    New to the Wiki?    Want to Help?       Share your Opinion  We want your feedback Question of the week, enter question here.

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..   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

{{Hub ImageMapTest}}

Note: The effect is the opposite of what I anticipated. The first coordinates laid down receive the highest priority. Later ones (on top of a previous map are not recognized. I anticipated the upper most (last laid) coordinated would be recognized - NOT so.