In a template the default value of a parameter can be set to the value of another parameter. For example, parameter 2 can default to the value of parameter 1...
{{{2|{{{1}}}}}}
What is the correct way to represent this relationship in templatedata so that Visual Editor will handle the default properly? I've tried the approach below, but instead of showing the value of parameter 1 the template shows the number 1.
# This approach results in the wrong default behavior # when the template is added with Visual Editor <templatedata> { "params": { "1": {…}, "2": { "label": "optional value", "description": "if this value is empty, show the value of parameter 1 instead", "suggested": true, "default": "{{{1}}}" }, "paramOrder": […], "format": "inline" } </templatedata>