On 26/06/2009, at 3:32 PM, Brian wrote:
On Fri, Jun 26, 2009 at 2:44 AM, Stephen Bain
<stephen.bain(a)gmail.com>wrote;wrote:
In the good old days someone would have solved
the same problem by
mentioning in the template's documentation that the parameter should
use full URLs. Both the template and instances of it would be
readable.
Template programmers are not going to create accessible templates
because they have a programming mindset, and set out to solve
problems in ways like Brian's code above.
The good old days are long gone. If you believe there is never a
valid case
for basic programming constructs such as conditionals you should have
objected when ParserFunctions were first implemented.
The fact that we, at some stage, made the mistake of adding
programming-like functions does not oblige us to complete the job.
If we could make ParserFunctions go away, we would. ParserFunctions is
there now, and there's too much code dependent on it to remove it
right now. That analysis does not apply to StringFunctions.
--
Andrew Garrett
Contract Developer, Wikimedia Foundation
agarrett(a)wikimedia.org
http://werdn.us