"ମଡ୍ୟୁଲ:Infobox" ପୃଷ୍ଠାର ସଂସ୍କରଣ‌ଗୁଡ଼ିକ ମଧ୍ୟରେ ତଫାତ

Content deleted Content added
ଟିକେ the three other types of lists as well
avoid "no data" tracking category when "child=yes" (see Template_talk:Infobox#Decat_by_default_when_child=yes?)
୨ କ ଧାଡ଼ି:
-- This module implements {{Infobox}}
--
 
local p = {}
 
୫୧ କ ଧାଡ଼ି:
-- the next two lines add a newline at the end of lists for the PHP parser
-- https://en.wikipedia.org/w/index.php?title=Template_talk:Infobox_musical_artist&oldid=849054481
-- remove when [[:phab:T191516]] is fixed or OBE
s = mw.ustring.gsub(s, '([\r\n][%*#;:][^\r\n]*)$', '%1\n')
s = mw.ustring.gsub(s, '^([%*#;:][^\r\n]*)$', '%1\n')
Line ୨୬୭ ⟶ ୨୬୮:
local function renderTrackingCategories()
if args.decat ~= 'yes' then
if args.child == 'yes' and args.title then
if #(getArgNums('data')) == 0 and mw.title.getCurrentTitle().namespace == 0 then
if args.title then
root:wikitext('[[Category:Pages which use embedded infobox templates with the title parameter]]')
end
ifelseif #(getArgNums('data')) == 0 and mw.title.getCurrentTitle().namespace == 0 then
root:wikitext('[[Category:Articles which use infobox templates with no data rows]]')
end
if args.child == 'yes' and args.title then
root:wikitext('[[Category:Pages which use embedded infobox templates with the title parameter]]')
end
end