Module:family tree: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 174: Line 174:
if not val[1] then
if not val[1] then
result:insert('<li>' .. prefix .. branch .. options.sterile_branch_text
result:insert('<li style="margin: 0;">' .. prefix .. branch .. options.sterile_branch_text
.. language_or_family_node .. '</li>')
.. language_or_family_node .. '</li>')
else
else
local customcollapsible_id = get_customcollapsible_id()
local customcollapsible_id = get_customcollapsible_id()
result:insert('<li>' .. prefix .. branch
result:insert('<li style="margin: 0;">' .. prefix .. branch
.. '<span class="familytree-toggle mw-customtoggle-'
.. '<span class="familytree-toggle mw-customtoggle-'
.. customcollapsible_id .. '">───┬</span>')
.. customcollapsible_id .. '">───┬</span>')
Line 213: Line 213:
if flag then
if flag then
result:insert(top_node
result:insert(top_node
.. collapsible_ul .. '<li>' .. prefix
.. collapsible_ul .. '<li style="margin: 0;">' .. prefix
.. (i == length and no_break_space or "│")
.. (i == length and no_break_space or "│")
.. level_separator .. "│")
.. level_separator .. "│")
Line 358: Line 358:
if flag then
if flag then
result:insert('<li>')
result:insert('<li style="margin: 0;">')
result:insert(next_node)
result:insert(next_node)
end
end

Navigation menu