393
edits
No edit summary |
No edit summary |
||
Line 53: | Line 53: | ||
end | end | ||
local html = mw.html.create('div'): | local html = mw.html.create('div'):css({ | ||
background = '#333', | |||
color = '#fff', | |||
padding = '10px', | |||
['border-radius'] = '5px' | |||
}):wikitext('This is a skill tree node') | |||
for _, node in ipairs(skillNodes) do | for _, node in ipairs(skillNodes) do | ||
local nodeDiv = html:tag('div') | local nodeDiv = html:tag('div') | ||
:tag('h4'):wikitext(node.name):done() | :tag('h4'):wikitext(node.name):done() | ||
:tag('p'):wikitext('Points: ' .. node.costs.points):done() | :tag('p'):wikitext('Points: ' .. node.costs.points):done() |
edits