پودمان:Infobox: تفاوت میان نسخه‌ها

۴۳ بایت اضافه‌شده ،  ‏۲۷ مارس ۲۰۲۰
جز
۱ نسخه واردشده
بدون خلاصۀ ویرایش
جز (۱ نسخه واردشده)
 
(۱۸ نسخهٔ میانی ویرایش شده توسط ۳ کاربر نشان داده نشد)
خط ۵۰: خط ۵۰:
end
end
-- the next two lines add a newline at the end of lists for the PHP parser
-- the next two lines add a newline at the end of lists for the PHP parser
-- https://en.iranpedia.org/w/index.php?title=Template_talk:Infobox_musical_artist&oldid=849054481
-- https://www.iran-pedia.org/w/index.php?title=Template_talk:Infobox_musical_artist&oldid=849054481
-- remove when [[:phab:T191516]] is fixed or OBE
-- 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][%*#;:][^\r\n]*)$', '%1\n')
s = mw.ustring.gsub(s, '^([%*#;:][^\r\n]*)$', '%1\n')
s = mw.ustring.gsub(s, '^([%*#;:][^\r\n]*)$', '%1\n')
s = mw.ustring.gsub(s, '^([%*#;:])', '\n%1')
s = mw.ustring.gsub(s, '^(%{%|)', '\n%1')
return s
return s
else
else
خط ۱۳۴: خط ۱۳۶:
             :cssText(rowArgs.datastyle)
             :cssText(rowArgs.datastyle)
             :cssText(rowArgs.rowcellstyle)
             :cssText(rowArgs.rowcellstyle)
            :newline()
             :wikitext(fixChildBoxes(rowArgs.data, 'td'))
             :wikitext(fixChildBoxes(rowArgs.data, 'td'))
     end
     end
خط ۱۷۴: خط ۱۷۵:
                 :css('text-align', 'center')
                 :css('text-align', 'center')
                 :cssText(args.belowstyle)
                 :cssText(args.belowstyle)
                :newline()
                 :wikitext(fixChildBoxes(args.below,'td'))
                 :wikitext(fixChildBoxes(args.below,'td'))
end
end