Module talk:Redirect: Difference between revisions

Content deleted Content added
Line 209:
However, there are redirects that intentionally have their own Wikidata objects. See [[:Category:Wikidata_redirects]]. In that case I want that template to give the QID of the source page, and not of the redirect destination page. Should I implement that in the template as an ugly work-around, or could this module take care of that problem?
 
For example, <nowiki>{{Q|{{get QID|388282 ʻAkepa}}}}</wnoikinowiki> gives {{Q|{{get QID|388282 ʻAkepa}}}}. But I want it to result in {{Q|Q32037018}} instead of {{Q|18678271}}.
 
Meaning: <nowiki>[[{{#invoke:redirect|main|388282 ʻAkepa}}]]</nowiki> now gives [[{{#invoke:redirect|main|388282 ʻAkepa}}]], but my question is if it can make an exception because the page belongs to the above mentioned category, and respond with [[388282 ʻAkepa]] ?