Topic on Help talk:TemplateData

teaching the case 'no parameter'

5
Wladek92 (talkcontribs)

when the template has parameters I can fill the array of templatedata => ok

but when all parameters are optionnal i cannot indicate it in the template data since a parameter name is always mandatory. How can i inform this case ?

thanks. --Christian 🇫🇷 FR (talk) 08:21, 5 April 2024 (UTC)

Thiemo Kreuz (WMDE) (talkcontribs)

I'm not exactly sure what the problem is, but I suspect you want "params": {}.

"Optional" parameters – i.e. parameters that are neither required nor suggested – shouldn't be a problem.

Wladek92 (talkcontribs)

that is for need to describe the defaut behaviour of the template when no parameter is provided. Where to put this information in the template data ?

Ponor (talkcontribs)

"description": "..." perhaps?

Wladek92 (talkcontribs)
Reply to "teaching the case 'no parameter'"