Talk:+5 Agony Infusion
From Guild Wars 2 Wiki
Jump to navigationJump to search
Fails in Template:Item icon[edit]
{{Item icon}} fails for this one. I presume the problem is that #show doesn't like the plus sign. Perhaps we should convert item icon to use ask instead?
Raw | Result |
---|---|
{{#show: +5 Agony Infusion | ?Has game icon | link = none | default = File:Skill.png }} |
File:Skill.png |
{{#ask: [[+5 Agony Infusion]] | ?Has game icon | link = none | default = File:Skill.png | headers = hide | mainlabel = - }} |
File:5 Agony Infusion.png |
-Chieftain Alex 21:21, 16 August 2014 (UTC)
- The entire point of #show is that it's less expensive than the equivalent #ask query, so switching to the more expensive one might have unforeseen consequences on pages with lots of icons. We could add a #replace to {{recipe list result format}} to remove + characters and rely on SMW's redirect equality. That's why listing "5 Agony Infusion" works on Destroyer Heated Stone - SMW equates the redirect with the target and looks up the icon from the target - but it's also why it doesn't work here, since it makes SMW store the target pagename as the ingredient name. —Dr Ishmael 22:14, 16 August 2014 (UTC)