Content deleted Content added
incorporate legends into table |
add color IDs in full list of available values |
||
Line 614:
for _, _row in pairs(rows) do
out:node(_row)
end
end
for name, color in pairs(colors) do
if cats[name] == nil then
local row = mw.html.create("tr")
:node(mw.html.create("td"):wikitext(name))
:node(mw.html.create("td")
:attr("colspan", "2")
:wikitext("''<span style=\"color:gray\">not available due to ambiguous ID</span>''"))
:node(mw.html.create("td")
:attr("style", "background-color: #" .. color .. "; padding: 0; width: 1.8em"))
:node(mw.html.create("td")
:wikitext("#" .. color))
:node(mw.html.create("td")
:attr("colspan", "2")
:wikitext("''<span style=\"color:gray\">not available due to ambiguous ID</span>''"))
out:node(row)
end
end
|