Erik Moeller-3 wrote:
On 4/6/06, Jakob Voss jakob.voss@nichtich.de wrote:
- Make it usable in the template namespace only
I think that could be a reasonable restriction. Template code already tends to be messy, and these new functions might actually make it cleaner in a few cases. But I'd rather not see calculation functions and such used in the article namespace.
Is this actually workable? If a template is transcluded into an mainspace article, is the function not then being used in the main namespace?
As for the syntax, might it make sense to use a double colon instead of a single colon, e.g. {{if:: <condition> | <then text> | <else text> }}? I'm not a big fan of the semantic overload we have with single colon prefixes.
I suggested at some point using {{#if:…}} which AFAICT conflicts with nothing.
What I don't know yet is whether it is a simple matter to tell the parser to allow that, or very complicated...
I have added this suggestion to Tim's vote.
HTH HAND -- View this message in context: http://www.nabble.com/Mathematical-expressions-and-conditional-constructs%2C... Sent from the Wikipedia Developers forum at Nabble.com.