MediaWiki:JSExample.js

// Owner: Rus setTimeout(=> {   let template = Utils.get('JSExample'); // your template name here    if(template == undefined) return;	Utils.clearTemplateDefault(template);    let greeting = Utils.create("div", {textContent: "Hello!", fontSize: "20px"})    let input = Utils.create("textarea")    let div = Utils.create("div")    let button = Utils.create("button", {textContent: "Click me!"})

input.oninput = e => { div.textContent = input.value }

button.onclick = e => { alert(div.textContent); }

template.appendChild(Utils.bundle([greeting, input, div, button])) },500)