Need help in understanding how to edit table content added using tag - {{HTMLRefTable({"include":["Web Components"],"elements":["shadow"]})}}

Hi,

I am trying to edit https://developer.mozilla.org/en-US/docs/Web/HTML/Element$edit#Web_Components. I want to do minor editing in description of an element of WebComponents category. How can I edit content added via template like {{HTMLRefTable({“include”:[“Web Components”],“elements”:[“shadow”]})}} ?

Thanks,
Ram

Hi @ram1, this content is generated by scraping other elements’ pages. To edit the result, you’ll need to edit one of these pages. To be more precise, the HTMLRefTablemacro fetches the summary of each page that has the “Web Components” tag or which is the HTML page for <shadow>.

Basically, on the article in reading mode, click the link of the element you’re interested in and edit the first sentences. After that, refresh the https://developer.mozilla.org/en-US/docs/Web/HTML/Element page (it might takes few seconds for changes to be applied).

If you are comfortable with JavaScript and want to dig further, you can take a look at the HTMLRefTableitself: https://github.com/mozilla/kumascript/blob/master/macros/HTMLRefTable.ejs :slight_smile:

I hope this will help,
Julien