return RSet.groupJOListByStrAndJA(rs.getJOofJOStream("pages"), "title", "templates", "title");
}
public static HashMap<String, HashMap<String, String>> globalUsage(Wiki wiki, ArrayList<String> titles)
{
HashMap<String, HashMap<String, String>> hlx = new HashMap<>();
<BUG>for (Reply r : new SQ(wiki, "gulimit", FL.pMap("prop", "globalusage")).multiTitleQuery("titles", titles).getJOofJO("pages"))
</BUG>
{
JSONArray ja = r.has("globalusage") ? r.getJSONArray("globalusage") : new JSONArray();
FL.mapListMerge(hlx, r.getString("title"), RSet.strTuplesFromJAofJO(ja, "title", "wiki"));

return RSet.groupJOListByStrAndJA(rs.getJOofJOStream("pages"), "title", "templates", "title");
}
public static HashMap<String, HashMap<String, String>> globalUsage(Wiki wiki, ArrayList<String> titles)
{
HashMap<String, HashMap<String, String>> hlx = new HashMap<>();
for (Reply r : SQ.with(wiki, "gulimit", FL.pMap("prop", "globalusage")).multiTitleQuery("titles", titles).getJOofJO("pages"))
{
JSONArray ja = r.has("globalusage") ? r.getJSONArray("globalusage") : new JSONArray();
FL.mapListMerge(hlx, r.getString("title"), RSet.strTuplesFromJAofJO(ja, "title", "wiki"));
