Jump to content

Topic on Project:Support desk

Fixing argument to template

1
Tule-hog (talkcontribs)

Say a template {{A}} accepts n named parameters, i, j, k, ..., and {{B}} is another template which invokes {{A}}, but fixes i=foo and passes all other parameters on.

Is there a way to create {{B}} without manually specifying all the named parameters of {{A}} in B's source code?

I think one technique I've seen to accomplish this is creating a dedicated module to parse the arguments, which I would be interested in learning, but I am also interested if there is a simpler approach.

Reply to "Fixing argument to template"