Forum:Problem with PAGENAME test on one page

I have a template wich i recently modified so the text of some link would change to something else when it was the same of the PAGENAME. It work perfect on most pages that use that template. Except one page and i dont understand why.

Template : http://fr.guildwars.wikia.com/wiki/Mod%C3%A8le:Miniature_armure

Page with problem : http://fr.guildwars.wikia.com/wiki/Armure_d%27Asura

Example pages where there's no problem :
 * http://fr.guildwars.wikia.com/wiki/Armure_d%27obsidienne
 * http://fr.guildwars.wikia.com/wiki/Armure_de_Shing_Jea
 * http://fr.guildwars.wikia.com/wiki/Armure_de_Luxon

I'm using #ifeq: to test if the page name is the same as the parameter :

And only on the page "Armure d'Asura" there is a problem.

Thanks for any help. — TulipVorlax 13:38, February 22, 2010 (UTC)


 * on the problem page yields  which is not the same as   (the armure parameter). The first working example in your list has it done correctly. Hope this helps. - Adan Aileron (talk) 18:00, February 22, 2010 (UTC)


 * Ok, what i've first done on thoses pages is pasting and it was not working with the &amp;#39; in them, at first. Maybe there was a bit of delay with the cache and i made some other edits too soon.
 * Find it weird though that the magic word give &amp;#39; as if people should know to use that instead of copy~pasting the page name at the top of the page. — TulipVorlax 21:20, February 22, 2010 (UTC)

returns a "ready to print" html safe string, this means all the fun chars like ' are encoded to. If you are comparing anything against it using ifeq, you need to  it first. so in your above example

--Uberfuzzy 15:46, February 23, 2010 (UTC)