Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to Hide redirects #5

Closed
Krinkle opened this issue Mar 15, 2015 · 2 comments
Closed

Add option to Hide redirects #5

Krinkle opened this issue Mar 15, 2015 · 2 comments

Comments

@Krinkle
Copy link
Member

Krinkle commented Mar 15, 2015

@he7d3r wrote:

I think it would be useful to have an indication of which pages are redirects in the list created by your script, and also an option to show/hide them, as we have on Special:WhatLinksHere. –Helder 15:08, 17 January 2011 (UTC)


Imported from https://meta.wikimedia.org/w/index.php?oldid=11178429.

@Krinkle
Copy link
Member Author

Krinkle commented Aug 18, 2016

@he7d3r The query API doesn't currently expose generic page information about link targets (only about the host page).

Example query: action=query&prop=templates|images|links|iwlinks|extlinks|categories.

But let's say I can get this information (maybe through a generator API), what use case do you have in mind?

Remember that these are outgoing links, not incoming links. So this new option would exclude from the results any link that points to a page that is currently a redirect. The redirect destination would still not be included.

@Krinkle
Copy link
Member Author

Krinkle commented Apr 22, 2024

Exported to https://phabricator.wikimedia.org/T363116.

@Krinkle Krinkle closed this as completed Apr 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

1 participant