Template talk:Testbanner

-- ~Njt (talk) 08:32, October 29, 2019 (EDT)
User:Pyrrhus All translations could be added as a system message. A parameter can be passed to set the color and which message to show. Javascript can invoke the banner as before, only when it is needed. Code for common.js, for each category: //For Potential treatments category if (wgCategories.includes ("Potential treatments")){ $(".firstHeading").prepend ('');

// pivot fix $("h1.title").prepend (''); } Classes to add to common.css: green, blue, red background colors. (Once working, edit out the span statements that set colors.) Hope this is helpful. Template:String on page I also just copied from Wikipedia, if you wanted to use it use in a nested if so if not a potential treatment, check if hypothesis, if not hypothesis either check if comorbidity etc... I believe the In cat extension is still "expensive" so not worth installing when we can use Javascript. ~Njt (talk) 08:32, October 29, 2019 (EDT)