Module:Infobox: Difference between revisions
From The Kodiak Republic Wiki
Content added Content deleted
(fix for {{infobox}} with no input args generating an empty <table class="infobox"></table> per talk page) |
(nix) |
||
Line 426: | Line 426: | ||
}) |
}) |
||
⚫ | |||
-- common functions between the child and non child cases |
|||
local function structure_infobox_common() |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
end |
end |
||
Line 442: | Line 456: | ||
renderTitle() |
renderTitle() |
||
renderAboveRow() |
renderAboveRow() |
||
structure_infobox_common() |
|||
⚫ | |||
else |
else |
||
root = mw.html.create() |
root = mw.html.create() |
||
Line 447: | Line 464: | ||
root |
root |
||
:wikitext(args.title) |
:wikitext(args.title) |
||
⚫ | |||
structure_infobox_common() |
|||
⚫ | |||
return root |
|||
⚫ | |||
end |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
end |
end |
||