On 9/24/07, Mark Clements gmane@kennel17.co.uk wrote:
"Magnus Manske" magnusmanske@googlemail.com wrote in message news:fab0ecb70709240654w7db5a2cdj2be2f9fe3439a491@mail.gmail.com...
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...
All sounds good to me!
Now in SVN: <templatelink text="Click on this!" title="This will become the page title!"> test |param1=value1 |param2=value2 </templatelink>
(the single-line version works as well, of course!)
Now someone review this and put it live, and we can boast we answered the ISSN issue in record time! :-)
Magnus