From 8d0b4ca40a5e3456dc881cf746dd7143abca5acb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jo=C3=A3o=20G=2E=20Packer?= Date: Fri, 23 May 2014 17:44:28 -0300 Subject: [PATCH] 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. --- script/misc/update-wiki-pages | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/misc/update-wiki-pages b/script/misc/update-wiki-pages index 7cd40e59e..e01e9cae0 100755 --- a/script/misc/update-wiki-pages +++ b/script/misc/update-wiki-pages @@ -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', -- 2.43.2