Module:Infobox: Difference between revisions
Content added Content deleted
Psephomancy (talk | contribs) m (1 revision imported: copy from w:Template:Cite book) |
|||
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) |
||
:newline() |
|||
: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) |
||
:newline() |
|||
:wikitext(fixChildBoxes(args.below,'td')) |
:wikitext(fixChildBoxes(args.below,'td')) |
||
end |
end |
||
Line 189: | Line 189: | ||
addRow({ |
addRow({ |
||
data = args['subheader' .. tostring(num)], |
data = args['subheader' .. tostring(num)], |
||
datastyle = args.subheaderstyle |
datastyle = args.subheaderstyle, |
||
rowcellstyle = args['subheaderstyle' .. tostring(num)], |
|||
class = args.subheaderclass, |
class = args.subheaderclass, |
||
rowclass = args['subheaderrowclass' .. tostring(num)] |
rowclass = args['subheaderrowclass' .. tostring(num)] |