Steve Summit wrote:
Minh Nguyen proposed:
>{{#ifeq:
[[{{NAMESPACE}}:{{lcfirst:{{PAGENAME}}}}]] |
>{{:{{NAMESPACE}}:{{lcfirst:{{PAGENAME}}}}}} | | Did you mean
>'''[[{{NAMESPACE}}:{{lcfirst:{{PAGENAME}}}}]]'''? }}
With a bit of tweaking (see below), this seems to work perfectly.
If you're curious, see
http://en.wiktionary.org/wiki/cypriot
http://en.wiktionary.org/wiki/Tamper
http://en.wiktionary.org/wiki/nowordatall
Nice. I've posted a suggestion for a somewhat simplified version at
http://en.wiktionary.org/wiki/MediaWiki_talk:noarticletext .
At some point, once Tim recovers from (or becomes
inured to) his
horror at sending us down this slippery slope in this hell-bent
handbasket, we can think about introducing a proper built-in
{{exists:}} operator, to eliminate the need for the bizarre
compare-the-substitution-to-the-redlink hack. (Though I *am*
appreciative of whoever devised it...)
Agreed. It's not as if it'd even be hard to implement, seeing as
MediaWiki already has a simple method call for checking this.
--
Ilmari Karonen