On 9/22/07, Platonides Platonides@gmail.com wrote:
Magnus Manske wrote:
I have checked in a dead-simple extension "TemplateLink". It should solve the ISSN issue (and maybe become a replacement for ISBN as well?), and potentially many more.
Linking to Special:TemplateLink, you can pass a template with parameters as parameter. The separators "|" of the template have to be replaced with "::", otherwise the parser will mess up (or I'll have to mess up the parser;-)
Example: [[Special:TemplateLink/test::param1=value1::param2=value2]] links to a special page that will display "Test" (variation configurable in i18n) as title and {{test|param1=value1|param2=value2}} as content.
Potential problems:
- "::" might be confusing. Then again, this will mostly be hidden in
templates like {{ISSN}} anyway
I don't like having yet another separator.
Me neither, but...
If using a separator in page link, i'd vote for / which already has some special meaning.
That would make passing URLs very odd, as well as titles of subpages.
Or even [[Special:TemplateLink/<custom separator>/test<sep>param1=value1<sep>param2=value2]]
Won't work without ugly parser hacking.
- Limits on template parameters: short, no wiki or HTML markup. Not
fixable unless we move from the [[Special:]] link to tags.
I still think {{Special:TemplateLink}} to create a link would have been a good system. Transclusion-to-link is not more odd than Special-page separators.
So using transclusion syntax to generate a link to a page that shows the transclusion is /less/ odd? ;-)
Maybe we should settle for <templatelink>template|param1|param2</templatelink> Ugly, but no new magic syntax and no parser hacking. Also offers alternate behaviour through tag attributes for future adaptions.
Magnus