2 Jul 2011 15:11
"What links here" and DPL problem
Anne Wilson <annew <at> kde.org>
2011-07-02 13:11:30 GMT
2011-07-02 13:11:30 GMT
Last week we became aware that "What links here" searches were missing some
items. Evidence appeared to point to interference by the Special:myLanguage
links that we are using (according to Nikerabbit WhatLinksHere should not find
pages containing such links), so we set out to find ways around this, starting
with a DPL query. Gradually other factors became clear - some links had a
space in the name and others had an underscore. Finally, links were not
always on the same namespace. At that point a template was made:
<quote>
Finding all pages linking to {{{1}}}: <code><nowiki>{{LinksTo</nowiki>{{!}}
{{{1}}}<nowiki>}}</nowiki></code>
{{#dpl:
| namespace = Main
| nottitleregexp = .*(/..(-..)?{{!}}_[(].*[)])$
| include = *
| includematch = <at> \[\[([Ss]pecial\:[mM]y[lL]anguage/)?{{{1}}}(\]{{!}}\{{!}}
{{!}}#) <at>
| includemaxlength = 0
| format = ,\n* [[%PAGE%|%TITLE%]],,
}}
{{#dpl:
| namespace = User
| nottitleregexp = .*(/..(-..)?{{!}}_[(].*[)])$
| include = *
| includematch = <at> \[\[([Ss]pecial\:[mM]y[lL]anguage/)?{{{1}}}(\]{{!}}\{{!}}
{{!}}#) <at>
| includemaxlength = 0
| format = ,\n* [[%PAGE%|%TITLE%]],,
}}
(Continue reading)
RSS Feed