Difference between revisions of "User:Graham Phillips 110"

From SVR Wiki
Jump to: navigation, search
Line 7: Line 7:
 
The plan is to try out an "On this day in SVR history" link on the main page. However, to avoid either having to wait until I've created a page for every day of the year, or having dead links, I only want it to show the link if the page exists. I think I've got it now. I know there was a problem with the <nowiki>{{NUMBEROFARTICLES}} and {{NUMBEROFFILES}}</nowiki> links slowing everything down when I tried them ( {{NUMBEROFARTICLES}} articles and {{NUMBEROFFILES}} photos ,since you ask), but this is only looking for the existence of one page, so hopefully shouldn't make any noticeable difference.
 
The plan is to try out an "On this day in SVR history" link on the main page. However, to avoid either having to wait until I've created a page for every day of the year, or having dead links, I only want it to show the link if the page exists. I think I've got it now. I know there was a problem with the <nowiki>{{NUMBEROFARTICLES}} and {{NUMBEROFFILES}}</nowiki> links slowing everything down when I tried them ( {{NUMBEROFARTICLES}} articles and {{NUMBEROFFILES}} photos ,since you ask), but this is only looking for the existence of one page, so hopefully shouldn't make any noticeable difference.
  
{{#ifexist:{{CURRENTMONTHNAME}} {{CURRENTDAY}}|On [[{{CURRENTMONTHNAME}} {{CURRENTDAY}}]] in SVR history.|Nothing happened on {{CURRENTMONTHNAME}} {{#expr: {{CURRENTDAY}} }}}}
+
{{#ifexist:{{#time: F j}}|On [[{{#time: F j}}]] in SVR history.|Nothing happened on {{#time: F j}}}}
  
{{#ifexist:{{CURRENTMONTHNAME}} {{#expr: {{CURRENTDAY}}-1 }}|On [[{{CURRENTMONTHNAME}} {{#expr: {{CURRENTDAY}}-1 }}]] in SVR history.|Nothing happened on {{CURRENTMONTHNAME}} {{#expr: {{CURRENTDAY}}-1 }}}}
+
{{#ifexist:{{#time: F j|-1 day}}|On [[{{#time: F j|-1 day}}]] in SVR history.|Nothing happened on {{#time: F j|-1 day}}}}
  
{{#ifexist:{{CURRENTMONTHNAME}} {{#expr: {{CURRENTDAY}}+1 }}|On [[{{CURRENTMONTHNAME}} {{#expr: {{CURRENTDAY}}+1 }}]] in SVR history.|Nothing happened on {{CURRENTMONTHNAME}} {{#expr: {{CURRENTDAY}}+1 }}}}
+
{{#ifexist:{{#time: F j|+16 day}}|On [[{{#time: F j|+16 day}}]] in SVR history.|Nothing happened on {{#time: F j|+16 day}}}}
 +
 
 +
{{#ifexist:{{CURRENTMONTHNAME}} {{#expr: {{CURRENTDAY}}+16 }}|On [[{{CURRENTMONTHNAME}} {{#expr: {{CURRENTDAY}}+16 }}]] in SVR history.|Nothing happened on {{CURRENTMONTHNAME}} {{#expr: {{CURRENTDAY}}+16 }}}}
  
 
{{#ifexist:November 24|On [[November 24]] in SVR history.|Nothing happened this day}}
 
{{#ifexist:November 24|On [[November 24]] in SVR history.|Nothing happened this day}}

Revision as of 14:17, 16 May 2017

Truck mechanic from Bewdley. Volunteer at Bewdley Carriage & Wagon Works.

Testing stuff

Just in case anyone is wondering... The plan is to try out an "On this day in SVRSevern Valley Railway history" link on the main page. However, to avoid either having to wait until I've created a page for every day of the year, or having dead links, I only want it to show the link if the page exists. I think I've got it now. I know there was a problem with the {{NUMBEROFARTICLES}} and {{NUMBEROFFILES}} links slowing everything down when I tried them ( 1,353 articles and 2,397 photos ,since you ask), but this is only looking for the existence of one page, so hopefully shouldn't make any noticeable difference.

On May 1 in SVRSevern Valley Railway history.

On April 30 in SVRSevern Valley Railway history.

On May 17 in SVRSevern Valley Railway history.

On May 17 in SVRSevern Valley Railway history.

On November 24 in SVRSevern Valley Railway history.

April 30

May 1

May 17


And this one was an attempt to get version 1.27.1 to recognise mobile phones and give directions to lineside features. Various problems, including not being able to get MobileFrontend working, uncertainty over whether svrwiki would be able to ask users for their location without paying for an SSL certificate, and poor phone reception in many areas, means I am now starting to look at creating a From The Window app, but that's a whole 'nother project.