- https://www.mediawiki.org/wiki/Project:Sandbox?action=edit
- Insert Template
- Name "Phpi"
- Content parameter "$foo = foo();"
- Insert
Observed Network requests (XHR):
- Via ve.dm.MWTransclusionModel.insertTransclusionNode originating from OO.ui.ProcessDialog.executeAction from OO.ui.Dialog.onActionClick
# Request POST https://www.mediawiki.org/w/api.php Request Data action:visualeditor format:json paction:parsefragment page:Project:Sandbox wikitext:{{Phpi|1=$foo = foo();}} pst:1 # Response content-length:290 content-type:application/json; charset=utf-8 date:Mon, 30 Jan 2017 23:40:43 GMT server:mw1234.eqiad.wmnet {"visualeditor":{"result":"success","content":"<p id=\"mwAQ\"> ... `
- Via ve.ce.MWTransclusionNode.generateContents, ve.ce.GeneratedContentNode.forceUpdate, originating from ve.dm.SurfaceFragment.insertContent.
# Request POST https://www.mediawiki.org/w/api.php Form Data action:visualeditor format:json paction:parsefragment page:Project:Sandbox wikitext:{{Phpi|1=$foo = foo();}} pst:1 # Response content-length:290 content-type:application/json; charset=utf-8 date:Mon, 30 Jan 2017 23:40:43 GMT server:mw1199.eqiad.wmnet {"visualeditor":{"result":"success","content":"<p id=\"mwAQ\"> ...