Module:infobox: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
 
(11 intermediate revisions by the same user not shown)
Line 122: Line 122:
:tag('th')
:tag('th')
:attr('scope', 'row')
:attr('scope', 'row')
:cssText('vertical-align: top; text-align: center;')
:cssText('text-align:left; font-weight:bold;')
-- @deprecated next; target .infobox-<name> .infobox-label
-- @deprecated next; target .infobox-<name> .infobox-label
:cssText(args.labelstyle)
:cssText(args.labelstyle)
Line 133: Line 133:
dataCell
dataCell
:attr('colspan', not rowArgs.label and '2' or nil)
:attr('colspan', not rowArgs.label and '2' or nil)
:cssText(not rowArgs.label and 'vertical-align: top; text-align: center;' or 'vertical-align: top; text-align: left;')
:cssText('vertical-align: top; text-align: left;')
:addClass(rowArgs.class)
:addClass(rowArgs.class)
-- @deprecated next; target .infobox-<name> .infobox(-full)-data
-- @deprecated next; target .infobox-<name> .infobox(-full)-data
Line 149: Line 149:
root
root
:tag('caption')
:tag('caption')
:cssText('font-size: 125%; font-weight: bold; text-align: center; padding: 0.2em;')
:cssText('text-align: center; padding: 0.2em;')
:addClass(args.titleclass)
:addClass(args.titleclass)
-- @deprecated next; target .infobox-<name> .infobox-title
-- @deprecated next; target .infobox-<name> .infobox-title
Line 163: Line 163:
:tag('th')
:tag('th')
:attr('colspan', '2')
:attr('colspan', '2')
:cssText('vertical-align: top; font-size: 125%; font-weight: bold; text-align: center;')
:cssText('vertical-align: top; font-size: 130%; font-weight: bold; text-align: center;')
:addClass(args.aboveclass)
:addClass(args.aboveclass)
-- @deprecated next; target .infobox-<name> .infobox-above
-- @deprecated next; target .infobox-<name> .infobox-above
Line 257: Line 257:
data
data
:tag('div')
:tag('div')
:addClass('infobox-caption')
:cssText('font-size: 125%; font-weight: bold; text-align: center; padding: 0.2em;')
-- @deprecated next; target .infobox-<name> .infobox-caption
-- @deprecated next; target .infobox-<name> .infobox-caption
:cssText(args.captionstyle)
:cssText(args.captionstyle)
Line 405: Line 405:
root
root
:cssText(args.subbox == 'yes' and 'padding: 0; border: none; margin: -3px; width: auto; min-width: 100%; font-size: 100%; clear: none; float: none; background-color: transparent;'
:cssText(args.subbox == 'yes' and 'padding: 0; border: none; margin: -3px; width: auto; min-width: 100%; font-size: 100%; clear: none; float: none; background-color: transparent;'
or 'border: 1px solid #a2a9b1; border-spacing: 3px; background-color: #f8f9fa; color: black; margin: 0.5em 0 0.5em 1em; padding: 0.2em; float: right; clear: right; font-size: 88%; line-height: 1.5em; width: 22em;')
or 'border: 1px solid #a2a9b1; border-spacing: 3px; background-color: #f8f9fa; color: black; margin: 0.5em 0 0.5em 1em; padding: 0.2em; float: right; clear: right; font-size: 100%; line-height: 1.5em; width: 22em;')
:addClass(args.bodyclass)
:addClass(args.bodyclass)
-- @deprecated next; target .infobox-<name>
-- @deprecated next; target .infobox-<name>

Navigation menu