Module:Navbox: Difference between revisions

Ganaram inukshuk (talk | contribs)
try again
Ganaram inukshuk (talk | contribs)
fix subheader header row; remove all references to rswiki since theres no functional difference between its navbox and wikipedias
Line 1: Line 1:
-- Page is following provisonal style guide: User:Ganaram_inukshuk/Provisional_style_guide_for_Lua
-- Page is following provisonal style guide: User:Ganaram_inukshuk/Provisional_style_guide_for_Lua
-- Loosely modelled off of Runescape Wiki's navbox, not Wikipedia's
local p = {}
local p = {}


Line 133: Line 132:
-- row, the title row can serve as the header.
-- row, the title row can serve as the header.
navbox = '{| style="mw-border-collapse: collapse; border-spacing: 0; margin: 0; width: 100%;\n'
navbox = '{| style="mw-border-collapse: collapse; border-spacing: 0; margin: 0; width: 100%;\n'
.. p.navbox_title(title, false)
.. p.nested_navbox_title(title, false)
-- Add rows
-- Add rows
Line 181: Line 180:
-- Preprocess individual entries for, headers, data, and is-row-child into
-- Preprocess individual entries for, headers, data, and is-row-child into
-- one single table.
-- one single table.
-- Both the Wikipedia and RsWiki navboxes go up to 20 rows so follow that.
local rows = {}
local rows = {}
local is_data_navbox = {}
local is_data_navbox = {}