From: Temlakos <tem...@gm...> - 2008-06-03 00:02:17
|
Anyone: How do I check the value of {{PAGENAME}} against a test string containing the English single-quote character commonly used as an apostrophe? I have a page name containing an apostrophe in a French-language wiki. I want to apply a template that checks the page name against a small set of names and apply semantic annotation if the page name is a member of the set, and use an unannotated internal link if it does not. Here is the important part of the code: [[{{#switch: {{PAGENAME}}|Zone de Kuiper|Disque d'éparpillage|Nuage d'Oort|Némésis=Membre de::Objets trans-neptuniens|Objets trans-neptuniens}}|Objets trans-neptuniens]] If the page name is "Zone de Kuiper" it will work. But it will not work with "Nuage d'Oort". Why not? Any suggestions would be appreciated. Temlakos PS: Whether the page "Objets trans-neptuniens" currently exists or not should be irrelevant. The equivalent code in English is: [[{{#switch: {{PAGENAME}}|Kuiper belt|Scatter disk|Oort cloud|Nemesis=Member of::Trans-Neptunian Objects|Trans-Neptunian Objects}}|Trans-Neptunian Objects]] and /that/ code works for the article titled "Oort cloud," even though "Trans-Neptunian objects" does not yet exist. Temlakos |