MediaWiki:Wikia.js/to-do-list.js

importArticles({   type: "style",    articles: [        'u:htmlcss:MediaWiki:To-do-list.css'    ] });

$(function{   function createList(name, content){        var l =            ' \                 \                    ' + name + ' \                \                ' + content + ' \            ';        $('#to-do-list').append(l);    }    function createSection(group){        var m =            ' \                 \                    ' + group + ' \                ';        m += ' ';        return m;    }    function generateList(group){        $.ajax({ type: 'GET', dataType: "json", url: '/api.php?action=parse&text=&format=json', success: function(data){ var code = data.parse.text['*']; $('.tdl-group[data-group="' + group + '"]').append(code); }       });    }    createList('Needs to be completed', (createSection('Standard') + createSection('Administrative')));    generateList('Standard');    generateList('Administrative');    createList('Completed', createSection('Completed'));    generateList('Completed'); });