Module:Infobox: Difference between revisions
Created page with "local p = {} local args = {} local origArgs = {} local root local empty_row_categories = {} local category_in_empty_row_pattern = '%[%[%s*[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy]%s*:[^]]*]]' local has_rows = false local yesno = require("Module:Yesno") local lists = { plainlist_t = { patterns = { '^plainlist$', '%splainlist$', '^plainlist%s', '%splainlist%s' }, found = false, styles = 'Plainlist/styles.css' }, hlist_t = { patterns = { '^hlist$', '%s..." Tag: Reverted |
No edit summary Tag: Manual revert |
||
| (8 intermediate revisions by the same user not shown) | |||
| Line 6: | Line 6: | ||
local category_in_empty_row_pattern = '%[%[%s*[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy]%s*:[^]]*]]' | local category_in_empty_row_pattern = '%[%[%s*[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy]%s*:[^]]*]]' | ||
local has_rows = false | local has_rows = false | ||
local lists = { | local lists = { | ||
plainlist_t = { | plainlist_t = { | ||
| Line 166: | Line 165: | ||
:cssText(rowArgs.rowcellstyle) | :cssText(rowArgs.rowcellstyle) | ||
:wikitext(fixChildBoxes(rowArgs.header, 'th')) | :wikitext(fixChildBoxes(rowArgs.header, 'th')) | ||
if rowArgs.data | if rowArgs.data then | ||
root:wikitext( | root:wikitext( | ||
'[[Category:Pages using infobox templates with ignored data cells]]' | '[[Category:Pages using infobox templates with ignored data cells]]' | ||
| Line 431: | Line 430: | ||
-- Render tracking categories. args.decat == turns off tracking categories. | -- Render tracking categories. args.decat == turns off tracking categories. | ||
local function renderTrackingCategories() | local function renderTrackingCategories() | ||
if | if args.decat == 'yes' then return end | ||
if args.child == 'yes' then | if args.child == 'yes' then | ||
if args.title then | if args.title then | ||