User:Bottersnike237/Satomi.js

var surfaceModel = ve.init.target.getSurface.getModel; surfaceModel.getFragment.collapseToEnd.insertContent( [    {      type: 'mwTransclusionInline',      attributes: {        mw: {          parts: [            {              template: {                target: {                  href: 'Template:cite web',                  wt: 'cite web'                },                params: {                  first: { wt: 'first name' },                  last: { wt: 'last name' },                  title: { wt: 'title' },                  url: { wt: 'http://en.wikipedia.org' }                }              }            }          ]        }      }    }  ] ).collapseToEnd.select;