On 9/24/07, Mark Clements gmane@kennel17.co.uk wrote:
Hmmm... well if that is the case then perhaps you're approach might be better. I guess it also means it can be written as an extension (which is probably more appropriate anyway) rather than having to build it into the core code.
Yup.
Also, do I understand correctly that <templatelink name="The name of the link">test|param1=value1|param2=value2</templatelink> would also work? And if so, what about:
<templatelink name="The name of the link">test|param1=a long value with multiple lines|param2=value2</templatelink>
It should work like replacing "<templatelink>" with "{{" for transclusion. The only change it'd make is remove newline at the start/end of the text, which should not have any impact on the function. So yes, your example should work as well (as soon as I make modifications, tonight:-)
If both the above will work OK, then the only distinction between the two methods is the use of <templatelink></templatelink> as opposed to a more standard link syntax: [[]] with some modifier. The first is clearer, the second is more concise. If that is the only difference then I agree that clearer is better.
It also has room for further improvements. One could specify the target page title with <templatelink title="The title"> to override automatic naming.
Not sure we want this, or what else we might want. But, there's room...
Magnus