2011/4/11 Daniel Friesen lists@nadir-seen-fire.com
Side thought... why a #switch library? What happened to the old {{Foo/{{{1}}}|...}} trick?
Simply, {{Foo/{{{1}}}|...}} links to different pages, while {{Foo|{{{1}}}|...}} points to the same page. I had been frustrated when I tried to use Labeled Section Transclusion to build template libraries :-), that would be an excellent way to build "collection of objects" into a wiki page, both of "methods" and "attributes"... ... but #lst doesn't parse raw wiki code "from scratch". If it would (t.i.: if #lst would read wiki code "as it is", before any parsing of it, ignoring at all the code outside labelled section: t.i. ignoring noinclude, html comment tags... anything) interesting scenarios would raise.
But, if there's no performance gain with {{Foo|{{{1}}}|...}} trick, I'll use {{Foo/{{{1}}}|...}} for sure. KISS is always a good guide line. :-)
Alex