Last modified: 2009-11-01 04:57:36 UTC
The class parameter in the field tag for type=checklist applies only to the <input . . ./> tag, or the check box itself. As written, the <span class="checkboxSpan"> actually determines the formatting of the whole selection. Would it be better if the class parameter applied to the entire <span> rather than only to the <input . . ./> tag? This would allow the custom formatting of each checklist field by allowing a class to be specified rather than the entire wiki by modifying the span.checkbox css style. One example of this modification would be to allow a vertical checkbox list when needed (rather than defaulting the entire wiki to vertical checkboxes) Example: {{{field|Checklist|input type=checklist|class=checkboxSpanVertical}}} When coupled with a corresponding class in MediaWiki:Common.css such as <pre> /***** 6. SW Forms - custom formatting *****/ span.checkboxSpanVertical {display:block;} </pre> I don't think the intention of the class was to format only the actual checkbox (without formatting the text), this just corrects the problem.
Created attachment 6653 [details] mod allows class parameter to apply to entire checkbox selection, not just the checkbox itself
Created attachment 6655 [details] Example of form with inline (horizontal) and block (verticle) checklists Attached example of a form that needs both inline (horizontal) checklists and block (Vertical) checklists
Thanks for the patch; this was added in SF 1.8.5.