Module:pollasena-roots/templates: Difference between revisions

No edit summary
No edit summary
 
Line 57: Line 57:
}
}
if parent_args.old then
if parent_args.mid or parent_args.old then
table.insert(ancestor_codes, 1, {code = "lyti-old", options = {optional = not parent_args.old}})
end
if parent_args.mid then
table.insert(ancestor_codes, 1, {code = "lyti-mid", options = {optional = not parent_args.mid}})
table.insert(ancestor_codes, 1, {code = "lyti-mid", options = {optional = not parent_args.mid}})
if parent_args.old then
table.insert(ancestor_codes, parent_args.mid and 2 or 1, {code = "lyti-old", options = {optional = not parent_args.old}})
end
end
end