2048 MP/plugin/ranking
var area = document.getElementById('rankingZone');
var json = MediaWikiAPI().getDocument('2048 MP/plugin');
var text = "";
var un = mw.config.get('wgUserName');
if(un !== null && json['rank'][un] !== undefined){
text = "당신의 등수: " + json[rank][un] + "등 <br> ";
}
text += "<ul> ";
for(var i=0; i<json['data'].length; i++){
text += "<li> " + (i+1) + "등: " + json['data'][i].name + ", " + json['data'][i].score + "점 </li>";
}
text += "</ul>";
area.innerHTML = text;