On Tue, Jun 30, 2009 at 7:27 PM, Michael Daly<[email protected]> wrote:
> Chad wrote:
>
>> Unless we plan on trying to mass-convert not only years of old revisions
>> but change years-old behavior that millions of users have come to expect?
>> I would expect _any_ change to keep {{sometemplate}} always working,
>> even if the mechanics behind it change.
>
> Why not switch the template syntax for articles to match the syntax for
> tags (which in turn is based on XML or whatever syntax that comes from
> ultimately)?
>
> {{sometemplate|var1=foo|var2=bar}}
>
> becomes
>
> <sometemplate>var1=foo; var2=bar;</sometamplate>
>
> or:
>
> <sometemplate var1="foo" var2="bar"/>
>
> That means that the tag namespace and the Template namespace (where
> namespace is more generic than just the concept of MW namespaces) will
> potentially clash.  This could be handled with something like:
>
> <template name="sometemplate">
> var1=foo;
> var2=bar;
> </sometamplate>
>
> or:
>
> <template name="sometemplate" var1="foo" var2="bar"/>
>
> which is a tad more verbose but more explicit.

Makes it awfully ugly to pass the result of one template to another
template if your syntax is:

<template name="sometemplate" var1="<template name="birthday" val="May
24" />" var2="bar"/>

-Robert Rohde

_______________________________________________
Wikitech-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to