I am currently trying to create a template for VisualEditor with TemplateData's suggestedvalues.
I am running MediaWiki 1.37.1 with the latest stable versions of VisualEditor, TemplateData and Semantic MediaWiki. I tried adding
<templatedata>
{
"params": {
"media_type": {
"label": "Type of media",
"example": "Newspaper",
"type": "string",
"description": "In what medium was the article published?",
"suggestedvalues": [
"Journal",
"Book",
"Newspaper",
"Magazine"
]
}
}
}
</templatedata>
to a template an loading it onto a page via VisualEditor and for some reason the dropdown menu with the suggested values doesn't show up. Does anyone have any idea what I might be doing wrong ?
Also I wanted to add that the suggested values don't show up in the TemplateData editor either. and I have no way of adding them via the TemplateData editor despite using one of the supported data types aka string