How many lines should have a script, and how many parameters are needed,
 to get anything from anywhere (into MediaWiki world) and to do anything
with the result?

Well, I'm surprised that the answer of both questions is: one.

function getHtmlNew(parametri) {
   $.ajax(parametri.ajax).done(function (data) {
      parametri.callback( parametri, data);
      });
}

Yes, parametri a pretty complex object, and callback() could be very simple
or extremely complex, anyway it runs and it is a script of one line,
needing one parameter only.

It runs too using Wikidata API.

Alex brollo
_______________________________________________
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to