Hi, http://en.wikipedia.org/w/api.php?action=query&list=backlinks&blredi... that there are many articles that redirect to "Plural" when in fact they redirect to other articles. For example 'Companies' is the plural of 'Company' so the article 'Companies' naturally redirects to 'Company', but is also listed as a redirect to 'Plural'. Any input would be appreciated. Thanks, Yishai
On Thu, Dec 18, 2008 at 2:29 PM, yishai goldstein yishag@gmail.com wrote:
Hi, http://en.wikipedia.org/w/api.php?action=query&list=backlinks&blredi... shows that there are many articles that redirect to "Plural" when in fact they redirect to other articles. For example 'Companies' is the plural of 'Company' so the article 'Companies' naturally redirects to 'Company', but is also listed as a redirect to 'Plural'. Any input would be appreciated. Thanks, Yishai
That's because those pages embed {{R from plural}} which links to [[Plural]].
Bryan
"Bryan Tong Minh" bryan.tongminh@gmail.com wrote:
On Thu, Dec 18, 2008 at 2:29 PM, yishai goldstein yishag@gmail.com wrote:
http://en.wikipedia.org/w/api.php?action=query&list=backlinks&blredi... shows that there are many articles that redirect to "Plural" when in fact they redirect to other articles. For example 'Companies' is the plural of 'Company' so the article 'Companies' naturally redirects to 'Company', but is also listed as a redirect to 'Plural'.
...
That's because those pages embed {{R from plural}} which links to [[Plural]].
And that's an excellent example of why redirect templates should ''not'' include wikilinks! See http://bugzilla.wikimedia.org/show_bug.cgi?id=16218 (one of several bug reports that basically are identifying the same problem -- Special:Whatlinkshere/Foo treats any wikilink appearing anywhere on a redirect page as a redirect.
Russ
On Thu, Dec 18, 2008 at 08:49:45AM -0500, Russell Blau wrote:
And that's an excellent example of why redirect templates should ''not'' include wikilinks! See http://bugzilla.wikimedia.org/show_bug.cgi?id=16218 (one of several bug reports that basically are identifying the same problem -- Special:Whatlinkshere/Foo treats any wikilink appearing anywhere on a redirect page as a redirect.
I would think it's an example of why the parser bug should be resolved, personally. There's a separate bug (don't know the number) that causes the contents of a redirect page to be invisible, so that it's impossible to see the info that is transcluded from [[Template:R from plural]].
- Carl
On Thu, Dec 18, 2008 at 4:02 PM, Carl Beckhorn cbeckhorn@fastmail.fmwrote:
On Thu, Dec 18, 2008 at 08:49:45AM -0500, Russell Blau wrote:
And that's an excellent example of why redirect templates should ''not'' include wikilinks! See
http://bugzilla.wikimedia.org/show_bug.cgi?id=16218
(one of several bug reports that basically are identifying the same problem -- Special:Whatlinkshere/Foo treats any wikilink appearing
anywhere
on a redirect page as a redirect.
Why is there a difference between http://en.wikipedia.org/w/api.php?action=query&list=backlinks&blredi..., where the problematic backlinks are not marked separately, and http://en.wikipedia.org/w/api.php?action=query&list=backlinks&blredi..., where they seem to be included under a <redirlinks> element?
-- Avi
On Sun, Dec 28, 2008 at 11:17:25AM +0200, Avi Rosenschein wrote:
Why is there a difference between http://en.wikipedia.org/w/api.php?action=query&list=backlinks&blredi..., where the problematic backlinks are not marked separately, and http://en.wikipedia.org/w/api.php?action=query&list=backlinks&blredi..., where they seem to be included under a <redirlinks> element?
Everything in the <redirlinks> element in your second query is a link to a redirect to the bltitle, rather than a direct link to bltitle. For example, MSFT links to "Stock symbol", which in turn redirects to "Ticker symbol", so it's displayed in a <redirlinks> element under "Stock symbol" in the query.
In the first query, everything returned links directly so <redirlinks> is not needed.
This a longstanding bug in mediawiki; it was originally filed as bug 7304 [1]. The duplicate bug report 12791 [2] is easier to understand. As that report says,
A page like ---- #REDIRECT [[bar]]
'''This''' is a [[foo]]. ---- is shown as a redirect on foo's What links here.
- Carl
1: https://bugzilla.wikimedia.org/show_bug.cgi?id=7304 2: https://bugzilla.wikimedia.org/show_bug.cgi?id=12971
mediawiki-api@lists.wikimedia.org