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)





test multiple switch functions. {{#switch:{{#expr:{{CURRENTDAY}} <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:{{#expr:{{#expr:trunc{{#expr:{{CURRENTTIMESTAMP}}*0.01}}}} mod 2}}| 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..   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