Module:Sandbox/Nihiltres/Testing: Difference between revisions

Content deleted Content added
m Removed table wrapper
m Fixed test based on definition updates
Line 4:
local foo = 'Result of tested Lua snippet would be here.'
local bar = mw.loadData('Module:SandboxClass/Nihiltres/ImportimportDefinitions')
local foo = mw.html.create("td")
local dtc = "ga" --default test class
Line 13:
styleBasics .. string.format("background-color: %s;", class.colour)
)
local img = class.iconDefaulticon.default and string.format(
"[[File:%s|16px|%s|link=|alt=]] ",
class.icon.file,
class.labelFulllabels.full
) or ""
local link = string.format(
"[[:%s|%s]]",
class.category,
class.labelShortlabels.short
)
foo:wikitext(img, link)