Module:Navbox: Difference between revisions

Ganaram inukshuk (talk | contribs)
No edit summary
Ganaram inukshuk (talk | contribs)
mNo edit summary
Line 18: Line 18:
row = row
row = row
.. '<td style="width:5%; text-align:center; background-color:#eaecf0; white-space:nowrap; padding:0em; border:1px solid white" colspan="2">\n'
.. '<td style="width:5%; text-align:center; background-color:#eaecf0; white-space:nowrap; padding:0em; border:1px solid white" colspan="2">\n'
        .. row_content[1]
        .. row_data
    .. '</td>\n'
    .. '</td>\n'
else
else
Line 24: Line 24:
row = row
row = row
.. '<td style="width:5%; text-align:center; background-color:#eaecf0; white-space:nowrap; padding:0em; border:1px solid white" colspan="2">\n'
.. '<td style="width:5%; text-align:center; background-color:#eaecf0; white-space:nowrap; padding:0em; border:1px solid white" colspan="2">\n'
        .. '<div style="padding:0.25em 0.5em">' .. row_content[1] .. '</div>\n'
        .. '<div style="padding:0.25em 0.5em">' .. row_data .. '</div>\n'
    .. '</td>\n'
    .. '</td>\n'
     end
     end
Line 31: Line 31:
if is_row_navbox then
if is_row_navbox then
row = row
row = row
.. '<th style="width:5%; text-align:right; background-color:#eaecf0; white-space:nowrap; padding:0.25em 0.5em; border:1px solid white">' .. row_content[1] .. '</th>\n'
.. '<th style="width:5%; text-align:right; background-color:#eaecf0; white-space:nowrap; padding:0.25em 0.5em; border:1px solid white">' .. row_header .. '</th>\n'
.. '<td style="padding:0em">\n'
.. '<td style="padding:0em">\n'
.. row_content[2]
.. row_data
.. '</td>\n'
.. '</td>\n'
else
else
row = row
row = row
.. '<th style="width:5%; text-align:right; background-color:#eaecf0; white-space:nowrap; padding:0.25em 0.5em; border:1px solid white">' .. row_content[1] .. '</th>\n'
.. '<th style="width:5%; text-align:right; background-color:#eaecf0; white-space:nowrap; padding:0.25em 0.5em; border:1px solid white">' .. row_header .. '</th>\n'
.. '<td style="padding:0em">\n'
.. '<td style="padding:0em">\n'
.. '<div style="padding:0.25em 0.5em">' .. row_content[2] .. '</div>\n'
.. '<div style="padding:0.25em 0.5em">' .. row_data .. '</div>\n'
.. '</td>\n'
.. '</td>\n'
end
end