Module:Navbox: Difference between revisions
mNo edit summary |
mNo edit summary |
||
Line 30: | Line 30: | ||
-- Simple row with header and data | -- Simple row with header and data | ||
if is_row_navbox then | if is_row_navbox then | ||
-- Row data is a child navbox | |||
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_header .. '</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"> | .. '<td style="padding:0em">' .. row_data .. '</td>\n' | ||
else | else | ||
-- Row data is normal data | |||
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_header .. '</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' |