Papi

offers simple API to edit template parameters.

Usage
When loaded, the script fires papi.ready event via mw.hook interface, using API as 1st parameter.

Functions

 * load(string title): loads title; returns promise, that resolves with article text as 1st parameter.
 * make(array params, string [data]): replaces parameters in data (by default: last loaded data) by params values.
 * parse(string text): parses text; returns array of parameters, where parameter is object: {full, name, delim, value, ending}.
 * save(string data, string [title]): saves data to title (by default: last loaded title).