Module:family tree: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 40: Line 40:
category_name = canonical_name .. ' language'
category_name = canonical_name .. ' language'
class = "familytree-lang"
class = "familytree-lang"
style = ''
if is_protolanguage_or_has_protolanguage then
if is_protolanguage_or_has_protolanguage then
class = class .. ' familytree-protolang'
icon = proto_language_icon
icon = proto_language_icon
end
end
Line 66: Line 66:
.. '[[:Category:' .. (category_name or canonical_name) .. '|'
.. '[[:Category:' .. (category_name or canonical_name) .. '|'
.. canonical_name
.. canonical_name
.. ' <span class="familytree-code">(' .. code .. ')</span>]]'
.. ' <span class="familytree-code" style="color: green;">(' .. code .. ')</span>]]'
.. (icon and ' <span class="familytree-icon">' .. icon .. '</span>' or '')
.. (icon and ' <span class="familytree-icon" style="background: green; background: #005ab3;">' .. icon .. '</span>' or '')
.. '</span>'
.. '</span>'
end
end
Line 378: Line 378:
result:insert('</ul></div>')
result:insert('</ul></div>')
result:insert(require("Module:TemplateStyles")("Module:family tree/style.css"))
return result:concat()
return result:concat()

Navigation menu