Wanted pages on my MediaWiki is not working How do i fix this? - mediawiki

So I have been working on my wiki for a while now and I wanted to check if there are any links that I have missed making. So I clicked on the wanted pages page but there are no links I found this surprising. So I made 10 new pages all with a few Lorim Ipsum text paragraphs and then a link to the same uncreated page. I did this with multiple links so that I could have multiple results. But I get none at all.
The only thing it displays is:
List of non-existing pages with the most links to them, excluding pages which only have redirects linking to them. For a list of non-existent pages that have redirects linking to them, see the list of broken redirects.
The following data is cached and may not be up to date. A maximum of 1,000 results are available in the cache.
There are no results for this report.
So that is a problem What I would want is for the page to work and show every link that is missing. So not just when multiple of the same link is missing. But when there is any missing red link.
how would I go about fixing/doing this?

It seems that you should run maintenance/updateSpecialPages.php. Usually, a cron job is created for this.

Related

How to make Flask app that is usable by multiple people at once?

I have an app made with Flask, and I have a problem. The app is made to be used as a presentation replacement, to be used with little children. The main page houses a bunch of links. They are made in a way that after the link has been used, it is removed from the page.
Problem is that there is only one page, so the children clicking links will remove them for the teacher. I can set a password myself, but first I need to make it so that each user can open their own version of the page.
Here is the link with dummy info.
If you find that there aren't links please feel free to comment that the links ran out. I will restart the page and the links will reappear.

Some broken image links in one browser but all broken in others

I have an image gallery composed of individual albums. All files and images are loaded to the site via single function which just loops through the files passed from the form via a standard html , so every file is loaded in the same way but just put in an appropriate folder.
The gallery was working fine until last night when 4 images loaded to one album would not display. This was traced to file permissions where the server suddenly assigned 600 rather than 644 (no permission assignments are made in the load function or anywhere else). Correcting the permissions resulted in the images displaying. However it was then found that a number of images in other albums were not displaying, whereas they had before. There were no issues with permissions.
Gallery page from Edge Chromium
So in the album page, the first album has a broken link and the second and third are OK, the forth is broken. The display is generated from a loop going through a table of the album metadata and picking up an image at random to display for each album. For the first two albums on the page the html from looking at the page source is,
<div >
<a href="media.php?mode=grid&album=18&activity_id=17">
<img src="media/A18-uke.JPG" width="210px" height="140px">
</a>
Altered Images - Cheryll Yeowell
</div>
<div >
<a href="media.php?mode=grid&album=17&activity_id=17">
<img src="media/A17-IMG_0322_edited-1a.jpg" width="210px" height="140px">
</a>
Chihuly at Kew - Liz Strange
</div>
If I look at the files in the media folder, both the image files are in there and from Filezilla I can view them, so the images are valid. The Filezilla folder listing shows both files the same as in the html above.
Filezilla listing of image files
The file names are the same as in the html above and both have permissions of 644; one is displaying and one not.
Out of interest I then looked at the page in Firefox and Chrome. None of the images displayed in those browsers.
Everything was working fine 3 days ago. No changes to scripts. Today, in Edge, some albums are fine, some only partially work, some not at all. Move to Chrome and Firefox and nothing now works. It's not involved html and, since it is all done in loops, every image is subject to the same code. One user has said that if there are some images showing and then the page is refreshed, all the image links display as broken, but I have not been able to replicate that.
I would welcome another set of eyes to either tell me what the silly mistake is or some inspiration as to what might be causing this apparent illogical behaviour.
Many thanks.
This is totally crazy - I am on my laptop and went to try the gallery on Edge, Firefox and Chrome and it all works perfectly. I haven't had any updates on close down over the past two days on my laptop or desktop and I've just checked the update logs and that doesn't show any. Since originally posting this I've had some more reports of problems from users. How can a facility be so apparently random in its working?
Just to make it more bizarre, today everything is back to normal. I haven't touched the code and all is back to how it should be. What would cause a set of image links to be broken (no other links on the site were broken to my knowledge) in a random fashion for 24 hours and then revert to being OK?

How to get internal link from latest revision of a wikipedia page?

I'm trying to extract internal links from wikipedia pages. This is the query I'm using
/w/api.php?action=query&prop=links&format=xml&plnamespace=0&pllimit=max&titles=pageTitle
However, the result does not reflect what's on the wiki page. Take for example a random article here. There are only a dozen of links on this page. However, when I make the query,
/w/api.php?action=query&prop=links&format=xml&plnamespace=0&pllimit=max&titles=Von_Mises%E2%80%93Fisher_distribution
I got back 187 links. I guess the API might has a database of all the links that have ever added to the page including all the revisions. Is that the case? How can I get the links from only the last revision?
The database has the correct list of the links in the current version of the articles. All the links you get from the API are in fact in the article. However, most of them are hidden in the (twice collapsed) navigation box at the bottom (scroll to the bottom, click "show" on the blue bar, then click "show" on the additional blue bars you now see).
Note that these links are on the page, but not defined in the wikitext - they come from the {{ProbDistributions}} navigation template (and the template that template in turn includes).
Sadly, there is no good way to list only the links that are directly/explicitly defined on a page, since template substitution happens before the actual parsing of the wiki syntax.

Is there a CSS element that will let me add a space?

I am at an impasse with this page I am trying to modify for my institution. The page is somewhat proprietary and not all of the files that comprise the page are accessible to me. The only things I can get access to are 5 different files called a stylesheet(naturally), a head, a top, a bottom, and a print
So this is the page:
http://s5-sandbox.parature.com/ics/support/default.asp?deptID=15028
The issue is that below the page where you have the 2 sections for "Viewed Most Popular Topics" and "Most Recent Topics", is that the words ViewedMost run on together. Additionally the number of views and the first word of the actual topic respective of the views run on together. For example, you'll see 3869What is my Blackboard Username and COM ID?
Given the pages that I have access to, none of them have the ID for that section declared in them. It is in some .ASP page on Parature's backend. I've contacted their support and put in a ticket and did not receive any resolution. I tried emailing someone directly and a man told me something ridiculous:
If you right click on the area and click inspect element you are able to add a space either behind “view” or in
front of “most”. Either works, I’ve tried them both. The same goes for the number and the article.
I already know full well how to use the Chrome inspector but what I told this gentleman was that I don't have access to the page to add a space nor do I even know if there is an element I can use to fix the formatting. I was hoping you guys would be able to see something I do not on the page that would allow me to create the space that I am looking to add.
Thank you all.
.item:after {
content: "\00a0";
}

short list of recently changed pages in mediawiki

I'm using mediawiki to run a wiki for my (relatively small <10 users) team and would like to know if its possible to get a short list of, say, the last 5 changed pages to appear in the side bar. I know I can go to recent changes page, but my users are used to seeing a list of the most recent changed pages on every page.
Thanks
I saw here that you got a hack to put wikitext into the sidebar: http://www.mwusers.com/forums/showthread.php?15842-Show-recent-changes-in-sidebar
Try transcluding the recent changes into a template, then putting that template in the sidebar.