Photo of the Month

All times are UTC [ DST ]




Post new topic Reply to topic  [ 340 posts ]  Go to page Previous  1 ... 12, 13, 14, 15, 16, 17  Next
Author Message
 Post subject: Re: Wiki Issues (Bugs, Feature Requests)
PostPosted: Wed Jan 11, 2012 17:07 
Offline
Site Manager
User avatar

Joined: Mon May 30, 2005 20:36
Posts: 6894
Location: Polbeth, West Lothian
Something has gone wrong with the featured article on the wiki bit on the sabre homepage.

Today I am being treated treated to this gem:

Code:
1922 Road Lists - A100 - A999 : == A100 - A199 == { !style="width:50px;" ! Route !style="width:50%;" Balls Pond Road, Lea Bridge Road) - Woodford == A200 - A299 == { !style="width:50px;" ! Route !style="width:50%;" == A300 - A399 == { !style="width:50px;" ! Route !style="width:50%;" == A400 - A499 == { !style="width:50px;" ! Route !style="width:50%;" == A500 - A599 == { !style="width:50px;" ! Route !style="width:50%;" == A600 -... more

_________________
Minds are like parachutes - they only function when open
Thomas Robert Dewar(1864-1930)
Take the pledge

Know something about roads? Your Wiki needs your help!


Top
 Profile  
 
 Post subject: Re: Wiki Issues (Bugs, Feature Requests)
PostPosted: Wed Jan 11, 2012 17:14 
Offline
Member
User avatar

Joined: Tue Feb 12, 2002 21:39
Posts: 12548
Location: Wolverhampton, Staffordshire
michael769 wrote:
Something has gone wrong with the featured article on the wiki bit on the sabre homepage.

Today I am being treated treated to this gem:

Code:
1922 Road Lists - A100 - A999 : == A100 - A199 == { !style="width:50px;" ! Route !style="width:50%;" Balls Pond Road, Lea Bridge Road) - Woodford == A200 - A299 == { !style="width:50px;" ! Route !style="width:50%;" == A300 - A399 == { !style="width:50px;" ! Route !style="width:50%;" == A400 - A499 == { !style="width:50px;" ! Route !style="width:50%;" == A500 - A599 == { !style="width:50px;" ! Route !style="width:50%;" == A600 -... more


It's because the entry on the home page doesn't understand Wiki code - so it's an issue there rather than the Wiki itself.

_________________
Steven


Top
 Profile  
 
 Post subject: Re: Wiki Issues (Bugs, Feature Requests)
PostPosted: Wed Jan 11, 2012 17:25 
Offline
Member
User avatar

Joined: Tue May 20, 2003 20:40
Posts: 7325
Location: Ashford, Kent
Yes, the script that pulls an article onto the main page only does some cursory formatting of wikicode - it doesn't do the whole lot due to technical reasons that would be too complicated to explain. This has popped up now because it appears somebody has given a 4 star rating to the roads lists.

_________________
--
SABRE Maps - all the best maps in one place....


Top
 Profile  
 
 Post subject: Re: Wiki Issues (Bugs, Feature Requests)
PostPosted: Wed Jan 11, 2012 17:41 
Offline
Member
User avatar

Joined: Tue Feb 12, 2002 21:39
Posts: 12548
Location: Wolverhampton, Staffordshire
I'm planning on making changes to the Navbox and the Place templates on the Wiki at someone point over the next couple of days with a consequent massive increase in the job queue.

The Navbox is the blue box that appears at the bottom of pretty much every page on the Wiki, whilst the Place template is what generates the box with the white heading on the right hand side of non-primary destinations. Examples of both can be seen on Kingsbridge.

The changes are in order to fix the problem where non-primary destinations show up in the Navbox under "Miscellaneous" rather than being hidden like the primary destinations are. In addition, it will stop the issue where the Navbox breaks 99% of the time if a non-primary destination is placed in its own category. Placing non-primary destinations (and indeed, primary ones) in their own categories is valuable so that they appear in the "needs work" lists.

Whilst I'm doing that, are there any other changes to those two templates that people would like me to look at, perhaps the addition of a cat3= parameter?

_________________
Steven


Top
 Profile  
 
 Post subject: Re: Wiki Issues (Bugs, Feature Requests)
PostPosted: Wed Jan 11, 2012 18:45 
Offline
Member
User avatar

Joined: Sat May 31, 2003 13:25
Posts: 8968
Location: Amersham
Steven wrote:
Whilst I'm doing that, are there any other changes to those two templates that people would like me to look at, perhaps the addition of a cat3= parameter?
Yes, and can it not exclude Primary Destinations that are places, if there's to be a list of Places? The Navbox doesn't exclude Crossings/Junctions that are PDs when it parses those things - mostly as they use {{Bridge}} / {{Tunnel}} / {{Crossing}} / {{Junction}} and are manually added to [[Category:Primary Destinations]]. {{Primary Destination}} adds the page to the regional Place category automatically already. (edit:I need to learn to read - you are doing this anyway!)

A cat3= parameter would be wonderful. However, as I've been saying for a while, we need to get a solution for collapsing the {{List Template}} to the header - with three categories, Navboxes will certainly reach the "very large" stage.

_________________
"Give a man a fish and you feed him for a day. Give him a fish every day of his life and you've created a loyal constituent."


Top
 Profile  
 
 Post subject: Re: Wiki Issues (Bugs, Feature Requests)
PostPosted: Wed Jan 11, 2012 19:00 
Offline
Member
User avatar

Joined: Tue Feb 12, 2002 21:39
Posts: 12548
Location: Wolverhampton, Staffordshire
si404 wrote:
Steven wrote:
Whilst I'm doing that, are there any other changes to those two templates that people would like me to look at, perhaps the addition of a cat3= parameter?
Yes, and can it not exclude Primary Destinations that are places, if there's to be a list of Places? The Navbox doesn't exclude Crossings/Junctions that are PDs when it parses those things - mostly as they use {{Bridge}} / {{Tunnel}} / {{Crossing}} / {{Junction}} and are manually added to [[Category:Primary Destinations]]. {{Primary Destination}} adds the page to the regional Place category automatically already. (edit:I need to learn to read - you are doing this anyway!)


Simon, I'm confused. Can you speaka da Eeeenglish?

The plan is to add {{Places}} to Category:Non Primary Destinations, then exclude that category from appearing in the Navbox, just like Category:Primary Destinations.

_________________
Steven


Top
 Profile  
 
 Post subject: Re: Wiki Issues (Bugs, Feature Requests)
PostPosted: Wed Jan 11, 2012 19:21 
Offline
Member
User avatar

Joined: Sat May 31, 2003 13:25
Posts: 8968
Location: Amersham
Steven wrote:
Simon, I'm confused. Can you speaka da Eeeenglish?
So non-primary places won't appear in the Routebox or the Navbox, and Primary Destinations will appear in the Routebox only (unless they are a crossing or junction or airport).

It seems bizarre to have a Navbox that links to all the pages in the category, but to exclude places. It made sense when all the places were primary destinations, a list of which gets generated in the Routebox, but now it seems silly, and rather than excluding non primary places just because their primary destination counterparts are excluded (though not in the way you assume), it makes sense to include primary destinations and to sort them out better.

What I'd like is for a Place category in the Navbox. {{Primary Destination}} puts pages automatically in [[Category:Places in <region>]], but obviously the code that excludes pages with that template on would need removing. It is not a duplicate listing to the primary destination one in the routebox, it's a different listing with some duplicates.

Of course, this wouldn't solve the breaking Navbox problem.
Quote:
The plan is to add {{Places}} to Category:Non Primary Destinations, then exclude that category from appearing in the Navbox, just like Category:Primary Destinations.

If you look at A15 You shall note that the Humber Bridge (rightly) appears in the list of Primary Destinations in the Routebox, and (rightly) appears in the Crossings section of the Navbox (despite being in [[Category:Primary Destinations]]). The Navbox excludes pages with {{Primary Destinations}} on it, as far as I can tell, thus PDs that use {{Crossing}}, {{Bridge}}, {{Tunnel}}, {{Junction}} or {{Airport}} and are manually added to [[Category:Primary Destinations]] can, and do, get including in the Navbox.

In short - the Navbox does NOT exclude pages in [[Category:Primary Destinations]], but rather pages with {{Primary Destination}} on them, so you need a different approach - excluding pages that use {{Place}} to do what you want to do.

Edit:split the two different bits of the reply up for easier reading.

_________________
"Give a man a fish and you feed him for a day. Give him a fish every day of his life and you've created a loyal constituent."


Top
 Profile  
 
 Post subject: Re: Wiki Issues (Bugs, Feature Requests)
PostPosted: Wed Jan 11, 2012 20:03 
Offline
Member
User avatar

Joined: Tue Feb 12, 2002 21:39
Posts: 12548
Location: Wolverhampton, Staffordshire
WARNING: Deeply technical, dull discussion follows. You have been warned!

si404 wrote:
If you look at A15 You shall note that the Humber Bridge (rightly) appears in the list of Primary Destinations in the Routebox, and (rightly) appears in the Crossings section of the Navbox (despite being in [[Category:Primary Destinations]]). The Navbox excludes pages with {{Primary Destinations}} on it, as far as I can tell, thus PDs that use {{Crossing}}, {{Bridge}}, {{Tunnel}}, {{Junction}} or {{Airport}} and are manually added to [[Category:Primary Destinations]] can, and do, get including in the Navbox.

In short - the Navbox does NOT exclude pages in [[Category:Primary Destinations]], but rather pages with {{Primary Destination}} on them, so you need a different approach - excluding pages that use {{Place}} to do what you want to do.


Not quite.

The Navbox is built up in sections. In your example, Humber Bridge appears on the Crossings section of A15 because it's in the Crossings category - whether it's also in another category is irrelevant.

The final section, Miscellaneous, is the one that causes the broken Navboxes. In the A15 example, the Navbox builds everything else, then basically looks at everything in Category:A15. It then ignores anything in the following categories: Primary Destinations, Junctions, Services, All Crossings, Road Projects and Roads - which should have been caught by either the "Primary Destinations" section of the Routebox, or all the other relevant sections of the Navbox. Think of it as a "catch all".

Where it goes horribly wrong is where the only article in a section is the article itself. The Navbox starts to create the "Miscellaneous" section because there's something that gets trapped in the "catch all" box. But, it's not allowed to show the page it's on for obvious reasons, so it has a screaming flake and doesn't know what on earth to do with the rest of the Miscellaneous section, as suddenly there's nothing there. This happens all the time with Non Primary destinations as they fall through to the "catch all", UNLESS there's something else that gets caught in there too, in which case it all works fine.

The change to add add all the Places to the Non Primary Destinations category simply means that I can add another "ignore" to the "catch all" list, and we won't have that problem any more.

If you want a "Places" list in the Navbox, then that will get kind of tricky - it'll work OK with roads, but it is guaranteed to break when you use the Navbox in a place article.

_________________
Steven


Top
 Profile  
 
 Post subject: Re: Wiki Issues (Bugs, Feature Requests)
PostPosted: Fri Jan 13, 2012 10:12 
Offline
Member
User avatar

Joined: Tue Aug 31, 2004 16:06
Posts: 6835
Location: Manchester
Please do NOT edit the Navbox for at least another 48 hours, even if there's a problem with it. It's going to take that long for the current job queue to clear.

There is something seriously wrong with the refreshLinks2 phase of maintenance. It may be that the current templates are too complex to process quickly. Seriously! A single page edit of an A road page is taking 10-15 minutes for the refreshLinks2 phase to run. A B road page takes 2-3 minutes.

(And before anyone says that this never happened on Site5, well the problem would have been hidden by their "kill off a job if it has used more than a second of CPU", which never allowed these tasks to run to completion.)


Top
 Profile  
 
 Post subject: Re: Wiki Issues (Bugs, Feature Requests)
PostPosted: Fri Jan 13, 2012 11:13 
Offline
Member
User avatar

Joined: Tue Feb 12, 2002 21:39
Posts: 12548
Location: Wolverhampton, Staffordshire
Is there any difference between the time taken for a primary A road and a non-primary one?

_________________
Steven


Top
 Profile  
 
 Post subject: Re: Wiki Issues (Bugs, Feature Requests)
PostPosted: Fri Jan 13, 2012 12:30 
Offline
Member
User avatar

Joined: Tue Aug 31, 2004 16:06
Posts: 6835
Location: Manchester
Steven wrote:
Is there any difference between the time taken for a primary A road and a non-primary one?

Not that I've noticed.


Top
 Profile  
 
 Post subject: Re: Wiki Issues (Bugs, Feature Requests)
PostPosted: Fri Apr 06, 2012 18:12 
Offline
Assistant Site Manager

Joined: Sat May 23, 2009 09:18
Posts: 1826
Location: Lochaber
Why has the Navbox broken on Cable Stayed Bridges when it hasn't on Suspension Bridges and as far as I can see I've done exactly the same thing both times :?
Thanks for any help.

_________________
Rob.
My mission is to travel every road and visit every town, village and hamlet in the British Isles.
I don't like thinking about how badly I am doing.


Top
 Profile  
 
 Post subject: Re: Wiki Issues (Bugs, Feature Requests)
PostPosted: Fri Apr 06, 2012 18:58 
Offline
Member
User avatar

Joined: Sat May 31, 2003 13:25
Posts: 8968
Location: Amersham
Because it is the only Misc in the Cable Stayed Bridges category and the Navbox doesn't refer to the page you are on. We fixed the issue for Places. I suggest just taking it out of the category.

_________________
"Give a man a fish and you feed him for a day. Give him a fish every day of his life and you've created a loyal constituent."


Top
 Profile  
 
 Post subject: Re: Wiki Issues (Bugs, Feature Requests)
PostPosted: Fri Apr 06, 2012 19:02 
Offline
Member
User avatar

Joined: Tue Feb 12, 2002 21:39
Posts: 12548
Location: Wolverhampton, Staffordshire
si404 wrote:
Because it is the only Misc in the Cable Stayed Bridges category and the Navbox doesn't refer to the page you are on. We fixed the issue for Places. I suggest just taking it out of the category.

Like so!

_________________
Steven


Top
 Profile  
 
 Post subject: Re: Wiki Issues (Bugs, Feature Requests)
PostPosted: Sat Jun 16, 2012 22:17 
Offline
Member
User avatar

Joined: Tue Aug 18, 2009 10:55
Posts: 1841
Location: Derby
Why does this page:

http://www.sabre-roads.org.uk/wiki/index.php?title=A601/Junctions say 'Junction 7 project' in the introductory paragraph, when it shouldn't.

The relevant code is:
Code:
[[A601/History#Connecting Derby|Connecting Derby]]
, and I have no idea why this says Junction 7 Project...

_________________
"Urban Motorways do not, as many people seem to think, possess some magical property."
-The Buchanan Report


Top
 Profile  
 
 Post subject: Re: Wiki Issues (Bugs, Feature Requests)
PostPosted: Sun Jun 17, 2012 11:36 
Offline
Member
User avatar

Joined: Tue Feb 12, 2002 21:39
Posts: 12548
Location: Wolverhampton, Staffordshire
swarkestonecauseway wrote:
Why does this page:

http://www.sabre-roads.org.uk/wiki/index.php?title=A601/Junctions say 'Junction 7 project' in the introductory paragraph, when it shouldn't.

The relevant code is:
Code:
[[A601/History#Connecting Derby|Connecting Derby]]
, and I have no idea why this says Junction 7 Project...


I don't know why it does this (as I've not delved into the code), but it appears to be an issue with the Junction List templates in that sometimes, just sometimes, it replaces the first link on the page with a copy of the last link. Usually, this manifests itself on the first line of the table, but as you've got a link in the introduction, it's broken that instead.

Strange.

_________________
Steven


Top
 Profile  
 
 Post subject: Re: Wiki Issues (Bugs, Feature Requests)
PostPosted: Sun Jun 17, 2012 14:27 
Offline
Member
User avatar

Joined: Tue Aug 18, 2009 10:55
Posts: 1841
Location: Derby
Have you got any idea about how I could either fix it or work around it so it links to what I want it to?

_________________
"Urban Motorways do not, as many people seem to think, possess some magical property."
-The Buchanan Report


Top
 Profile  
 
 Post subject: Re: Wiki Issues (Bugs, Feature Requests)
PostPosted: Sun Jun 17, 2012 15:55 
Offline
Member
User avatar

Joined: Tue Feb 12, 2002 21:39
Posts: 12548
Location: Wolverhampton, Staffordshire
swarkestonecauseway wrote:
Have you got any idea about how I could either fix it or work around it so it links to what I want it to?


I think it's fixed now - certainly your page is now displaying correctly for me.

_________________
Steven


Top
 Profile  
 
 Post subject: Re: Wiki Issues (Bugs, Feature Requests)
PostPosted: Sat Jul 28, 2012 01:30 
Offline
Member
User avatar

Joined: Fri Jan 27, 2006 18:33
Posts: 3950
Location: Glasgow
There's something very seriously wrong with the current photo of the month gallery. Some of the pictures are missing, replaced with hyperlinks appearing as the text "170px", which link to the upload form when clicked. I have no idea what's gone wrong.

_________________
John

* VMS Simulator - See your own message on an electronic sign!


Top
 Profile  
 
 Post subject: Re: Wiki Issues (Bugs, Feature Requests)
PostPosted: Sat Jul 28, 2012 08:21 
Offline
Member
User avatar

Joined: Tue Feb 12, 2002 21:39
Posts: 12548
Location: Wolverhampton, Staffordshire
jcpren wrote:
There's something very seriously wrong with the current photo of the month gallery. Some of the pictures are missing, replaced with hyperlinks appearing as the text "170px", which link to the upload form when clicked. I have no idea what's gone wrong.


It looks like all pictures uploaded between about 1440 on 23/7 and 0000 on 20/7 are missing, whilst all of the metadata exists.

Check the backup time...

_________________
Steven


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 340 posts ]  Go to page Previous  1 ... 12, 13, 14, 15, 16, 17  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group