Module:ED intro: Difference between revisions

Tristanbay (talk | contribs)
gave ED intro a nonzero minimum width so it isn't pulverized by the infobox on mobile
Tristanbay (talk | contribs)
actually added the styling into the primary function this time
Line 294: Line 294:
-- Paragraph style function
-- Paragraph style function
function style()
function style()
return "<p style=\"min-width:15em;\"></p>"
return "<p style=\"min-width:15em;\">%s</p>"
end
end


Line 306: Line 306:
return "{{error|Error: Equave type not supported or entered incorrectly.}}"
return "{{error|Error: Equave type not supported or entered incorrectly.}}"
elseif ed_type == ED_TYPE_EDO then
elseif ed_type == ED_TYPE_EDO then
return p.edo_intro(parsed_ed)
return format(style(), p.edo_intro(parsed_ed))
elseif ed_type == ED_TYPE_EDT then
elseif ed_type == ED_TYPE_EDT then
return p.edt_intro(parsed_ed)
return format(style(), p.edt_intro(parsed_ed))
elseif ed_type == ED_TYPE_EDF then
elseif ed_type == ED_TYPE_EDF then
return p.edf_intro(parsed_ed)
return format(style(), p.edf_intro(parsed_ed))
elseif ed_type == ED_TYPE_EDH then
elseif ed_type == ED_TYPE_EDH then
return p.edh_intro(parsed_ed, parsed_equave)
return format(style(), p.edh_intro(parsed_ed, parsed_equave))
elseif ed_type == ED_TYPE_EDR then
elseif ed_type == ED_TYPE_EDR then
return p.edr_intro(parsed_ed, parsed_equave)
return format(style(), p.edr_intro(parsed_ed, parsed_equave))
elseif ed_type == ED_TYPE_EDC then
elseif ed_type == ED_TYPE_EDC then
return p.edc_intro(parsed_ed, parsed_equave)
return format(style(), p.edc_intro(parsed_ed, parsed_equave))
end
end
end
end