Template talk:Get QID

Redirect doesn't work when substituted
I recently edited the template to allow substituting, but substituting doesn't seem to work on redirects e.g.  &rarr; Q52 and &rarr; This doesn't seem to affect transclusion. Any idea why this happens? @Tomastvivlaren &#8213; Qwerfjkl  talk  21:11, 13 March 2022 (UTC)


 * To clarify, the substitution problem only occurs in case 4:
 * &rarr;
 * &rarr; Q52
 * &rarr;
 * &rarr;
 * &rarr;
 * &rarr; Q29571349
 * &rarr;
 * &rarr; Q52


 * I'll think about it. Tomastvivlaren (talk) 22:03, 17 March 2022 (UTC)
 * I guess the nice beta Module:Redirect causes the problem, allthoguh it can be substituted:
 * &rarr;
 * &rarr; Universe
 * I can not explain this issue. Tomastvivlaren (talk) 08:58, 18 March 2022 (UTC)

After this edit of the template it works: [ I can not explain why. I used the instead of  to avoid calculating the "a" twice. When combined with safesubst, the substition all of a sudden works. Tomastvivlaren (talk) 22:53, 18 March 2022 (UTC)
 * 1)   &rarr;
 * 2)   &rarr;Q52
 * 3)   &rarr;
 * 4)   &rarr; Q52
 * 5)   &rarr;
 * 6)   &rarr; Q29571349
 * 7)   &rarr;
 * 8)   &rarr; Q52
 * It may be due to whitespace, then. Templates retain whitespace passed as a parameter, but parser functions don't. &#8213; Qwerfjkl  talk  07:05, 19 March 2022 (UTC)