Anonymous user
Module:Infobox: Difference between revisions
Jump to navigation
Jump to search
fix for spurious <p> tag per talk page
m (1 revision imported: Wikipedia Infobox) |
imported>Frietjes (fix for spurious <p> tag per talk page) |
||
Line 54: | Line 54: | ||
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 | ||
Line 134: | Line 136: | ||
:cssText(rowArgs.datastyle) | :cssText(rowArgs.datastyle) | ||
:cssText(rowArgs.rowcellstyle) | :cssText(rowArgs.rowcellstyle) | ||
:wikitext(fixChildBoxes(rowArgs.data, 'td')) | :wikitext(fixChildBoxes(rowArgs.data, 'td')) | ||
end | end | ||
Line 174: | Line 175: | ||
:css('text-align', 'center') | :css('text-align', 'center') | ||
:cssText(args.belowstyle) | :cssText(args.belowstyle) | ||
:wikitext(fixChildBoxes(args.below,'td')) | :wikitext(fixChildBoxes(args.below,'td')) | ||
end | end |