Jump to content

Module:AutosortTable/testcases

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Jfd34 (talk | contribs) at 11:45, 15 February 2014. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
local p = {}

function p:test_hello()
    return self:preprocess([[
{{#invoke: AutosortTable|create

| class = wikitable
| style = width: 50%;
| separator = --
| order = 2, 1
| numeric = 2
| header =  -- Name -- Age

| -- Bob -- 20
| -- Peter -- 35
| -- John -- 35
| -- James -- 50
| background-color: #FFDDDD -- Henry -- 45

}}
]])
end

return p