Template talk:Vfd-new3
Add topicCan't get parameter 1 to work
[edit]With this template currently reading as follows:
{{Wikiquote:Votes for deletion/{{{pg|{{{1}}}}}}}}
That's supposed to translate to "use named parameter 'pg' if it exists, otherwise use the first positional parameter". I just noticed that my attempt to invoke this template using parameter 1 instead of parameter "pg":
- {{subst:vfd-new3|Charlie Haas}}
yielded an entry on WQ:VFD like so:
- {{Wikiquote:Votes for deletion/{{{pg|Charlie Haas}}}}}
Fortunately, it still operates as expected in WQ:VFD (presumably because there is no "pg" parameter when the template is transcluded). But I don't understand why it didn't just substitute "Charlie Haas" for the whole conditional parameter string. Similar testing for {{vfd-new2}} with two positional-or-named parameters worked with all the variations I tried.
I thought I'd found one too few end braces. (There should be 3 to close "1", 3 to close "pg", and 2 to close the final template transclusion, for a total of 8.) But as often happens with these LISP-y nested groupings, I found a bug where there was none, and added another brace, then reverted it when I came to my senses.
Until we figure this out, I'd recommend using the named "pg" parameter only. (And thanks to Fys for fixing the resultant malformed transclusion in WQ:VFD.) ~ Jeff Q (talk) 23:05, 3 February 2007 (UTC)