Module:Infobox: Difference between revisions

No edit summary
Tag: Reverted
No edit summary
Tag: Manual revert
 
(6 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 yesno = require("Module:Yesno")
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 and not yesno(args.decat) then
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()
local yesno = require("Module:Yesno")
if args.decat == 'yes' then return end
if yesno(args.decat) then return end
if args.child == 'yes' then
if args.child == 'yes' then
if args.title then
if args.title then