Template talk:IComponent.dpl

From Unofficial Homecoming Wiki
Jump to navigation Jump to search

localurl

I just made a very arcane fix to this template. Apparently, page names with apostrophes (such as Gr'ai Matter Component) render with the apostrophe entity encoded instead of as a plain apostrophe when using {{PAGENAME}}, which causes a naive #ifeq to fail. The call to {{localurl}} coerces both formats into a common string-equivalent format that makes #ifeq happy. I'm noting this here so that the code doesn't get removed in the future when someone looks at it and says "why on earth is this template using urlencoding?!". :) -- Sekoia 08:56, 16 January 2012 (UTC)