Topic on VisualEditor/Feedback

TemplateData, VisualEditor, suggestedvalues not working

2
Gabrielmuresan (talkcontribs)

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

Gabrielmuresan (talkcontribs)

Figured it out . The issue was that I didn't enable the GUI feature in some configuration JSON.

Reply to "TemplateData, VisualEditor, suggestedvalues not working"