Topic on Extension talk:Widgets

How to have this code on a mediawiki page using Widgets?

2
Summary by Kghbln

As outlined in the answer.

Farvardyn (talkcontribs)

Hi,

How can I have this code script on a mediawiki page using Widgets? Not on header or footer, I mean just within the content of a page, how can I have this?

Thanks,

<div id="15068716388"><script type="text/JavaScript" src="https://www.aparat.com/embed/aWf7R?data[rnddiv]=15068716388&data[responsive]=yes"></script></div>

Thanks,

Kghbln (talkcontribs)

Just embed the code on a page in the Widgets namespace, e.g. "Widget:MyWidgetName":

<includeonly><div id="15068716388"><script type="text/JavaScript" src="https://www.aparat.com/embed/aWf7R?data[rnddiv]=15068716388&data[responsive]=yes"></script></div></includeonly>

To use the widget go to some page and add

{{#widget:MyWidgetName}}