Module:Infobox ship/data explained

--

local styles_t =

----------------------------< W A R N I N G M E S S A G E >------------------------------------------------

These style cannot be moved to templatestyles css because mw.addWarning does not understand apply css

local warn_span_style = 'color:#d33'; -- these styleslocal warn_code_style = 'color: inherit; background: inherit; border: none; padding: inherit;';local warning_fmt_str = '

{}: unknown parameter: |%s=%s';

----------------------------< I N F O B O X P A R A M E T E R S >------------------------------------------

These tables hold the names and define the rendering order of the label/data pairs in the associated infoboxen.Each table is a sequence of sub-sequences where each subsequence holds [1] the parameter name [2] the rendered label for that parameter's value

local infobox_career_params_t =

local infobox_characteristics_params_t =

local infobox_class_overview_params_t =

local infobox_ship_service_record_params_t =

----------------------------< K N O W N P A R A M E T E R T A B L E S >----------------------------------

These tables for detecting unknown parameters

local known_infobox_ship_params_t =

local known_infobox_ship_image_params_t =

local known_infobox_ship_career_params_t = local known_infobox_ship_characteristics_params_t = local known_infobox_ship_class_overview_params_t = local known_infobox_ship_service_record_params_t =

for _, tables_t in ipairs do -- now fill known parameter tables from line-item tables for _, line_t in ipairs (tables_t[1]) do -- is sequence of parameter name [1] and displayed label [2] tables_t[2][line_t[1]] = true; -- known-parameters table gets parameter name set to boolean true endend

----------------------------< E X P O R T S >----------------------------------------------------------------

return