Module:Infobox: Difference between revisions
Appearance
fix for {{infobox}} with no input args generating an empty <table class="infobox"></table> per talk page |
nix |
||
Line 426: | Line 426: | ||
}) | }) | ||
end | |||
-- common functions between the child and non child cases | |||
local function structure_infobox_common() | |||
renderSubheaders() | |||
renderImages() | |||
preprocessRows() | |||
renderRows() | |||
renderBelowRow() | |||
renderNavBar() | |||
renderItalicTitle() | |||
renderEmptyRowCategories() | |||
renderTrackingCategories() | |||
cleanInfobox() | |||
end | end | ||
Line 442: | Line 456: | ||
renderTitle() | renderTitle() | ||
renderAboveRow() | renderAboveRow() | ||
structure_infobox_common() | |||
return loadTemplateStyles() .. root | |||
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 | end | ||