Change wiki preprocessing script to read redirect pages

The script that preprocess keys and tags metadata from the wiki
was filtering redirect pages when looking for wiki pages with the
template `KeyDescription`.

Some wiki pages like `Key:admin_level` currently redirects to others
like `Tag:boundary=administrative`, but even so, they still contain
a `KeyDescription` template so their metadata can be read by other
programs.

The parameter `eifilterredir` was changed and tested. For more
details, see this parameter in the feature `list=embeddedin` from
https://www.mediawiki.org/w/api.php.
This commit is contained in:
João G. Packer 2014-05-23 17:44:28 -03:00 committed by Tom Hughes
parent 503446c0fb
commit 8d0b4ca40a

View file

@ -128,7 +128,7 @@ sub get_embeddedin
action => 'query',
list => 'embeddedin',
eititle => $title,
eifilterredir => 'nonredirects',
eifilterredir => 'all',
# Doesn't work for De:* and anything non-en. Odd.
# einamespace => '0|8',
eilimit => '200',