Page MenuHomePhabricator

Add new parameter for Style in Quiz
Open, MediumPublic

Description

Add a parameter to Quiz extension that can add styles to different classes.

The Parameter must map classname to style attribute.

Event Timeline

Example case :

<quiz style="classname_1:style_1;classname_2:style_2">

But this way the style will be added to class at the backend.

"style" won't work as a parameter for the same reason we can't do this using table ethier, because we don't know which classes/tags to apply the style to.

Example case :

<quiz style="classname_1:style_1;classname_2:style_2">

But this way the style will be added to class at the backend.

I use table views when visuals are required. Maybe it can be added to the application this way.

example:
examp

Using a wrapper element is a good idea (although it should be a <div> rather than a <table> for accessibility). However, I don’t think it should be added directly to the extension (if you mean that by “application”), but simply externally applied – either using Common.css as you did, or using TemplateStyles if that extension is installed on the wiki (it’s installed on all WMF wikis).

Because your solution is pretty simple, without requiring any changes in Quiz, and we have no idea how to implement this within Quiz (I don’t have either), I suggest closing this task as declined.