Anonymous
Not logged in
Talk
Contributions
Create account
Log in
Search
Editing
MediaWiki talk:Common.js
(section)
From MEpedia, a crowd-sourced encyclopedia of ME and CFS science and history
Namespaces
Message
Discussion
More
More
Page actions
Read
Edit source
New topic
History
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
===Sep 2020 request === User:Kmdenmark Can you replace the code for the color categories with the code below? It stops just before the line saying <br >''' // Disable default license '''<br /> If you use "show changes" before saving you should see just a few differences in some lines and no lines added or removed. As usual, just ignore the "pre" tags. ~[[User:Notjusttired|Njt]] ([[User talk:Notjusttired|talk]]) 16:53, September 11, 2020 (UTC) {{collapse top|Code...}} <pre > //Set color to specific categories //For Medical hypotheses category if (mw.config.get('wgCategories').includes ("Medical hypotheses")){ //$(".mw-body-content").css ("background-color","#dae6ff"); //$(".toc").css ("background-color","#dae6ff"); $(".firstHeading").prepend ('<div id="category-banner" style = "margin:auto;padding: 1.25rem;width:100%;text-align:center;background-color:#00ccec; color:#333; text-shadow: none;">This is a <a style="color:#0A45AD;" href = "/wiki/Category:Medical_hypotheses">Medical hypothesis</a> page</div>'); // pivot fix $("h1.title").prepend ('<div id="category-banner" style = "margin:auto;padding:1.25rem;width:100%;text-align:center;background-color:#00ccec; color:#333; text-shadow: none;">This is a <a style="color:#0A45AD;" href = "/wiki/Category:Medical_hypotheses">Medical hypothesis</a> page</div>'); } //For Potential treatments category if (mw.config.get('wgCategories').includes ("Potential treatments")){ //$(".mw-body-content").css ("background-color","#f8d6c2"); //$(".toc").css ("background-color","#f8d6c2"); $(".firstHeading").prepend ('<div id="category-banner" style = "margin:auto;padding: 1.25rem;width:100%;text-align:center;background-color:#00ee54; color:#333; text-shadow: none;">This is a <a style="color:#0A45AD;" href = "/wiki/Category:Potential_treatments">Potential treatments</a> page</div>'); // pivot fix $("h1.title").prepend ('<div id="category-banner" style = "margin:auto;padding: 1.25rem;width:100%;text-align:center;background-color:#00ee54; color:#333; text-shadow: none;">This is a <a style="color:#0A45AD;" href = "/wiki/Category:Potential_treatments">Potential treatments</a> page</div>'); } //For Potential comorbidities category if (mw.config.get('wgCategories').includes ("Potential comorbidities")){ //$(".mw-body-content").css ("background-color","#f8d6c2"); //$(".toc").css ("background-color","#f8d6c2"); $(".firstHeading").prepend ('<div id="category-banner" style = "margin:auto;padding: 1.25rem;width:100%;text-align:center;background-color:#00ee54; color:#333; text-shadow: none;">This is a <a style="color:#0A45AD;" href = "/wiki/Category:Potential_comorbidities">Potential comorbidities</a> page</div>'); // pivot fix $("h1.title").prepend ('<div id="category-banner" style = "margin:auto;padding:1.25rem;width:100%;text-align:center;background-color:#00ee54; color:#333; text-shadow: none;">This is a <a style="color:#0A45AD;" href = "/wiki/Category:Potential_comorbidities">Potential comorbidities</a> page</div>'); } </pre > {{collapse bottom}} :Now done ~[[User:Notjusttired|Njt]] ([[User talk:Notjusttired|talk]]) 23:31, October 1, 2020 (UTC) ::OK [[User:Kmdenmark|Kmdenmark]] ([[User talk:Kmdenmark|talk]]) 16:43, October 13, 2020 (UTC)
Summary:
Please make sure your edits are consistent with
MEpedia's guidelines
.
By saving changes, you agree to the
Terms of use
, and you irrevocably agree to release your contribution under the
CC BY-SA 3.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)
Navigation
Navigation
Skip to content
Main page
Browse
Become an editor
Random page
Popular pages
Abbreviations
Glossary
About MEpedia
Links for editors
Contents
Guidelines
Recent changes
Pages in need
Search
Help
Wiki tools
Wiki tools
Special pages
Page tools
Page tools
User page tools
More
What links here
Related changes
Page information
Page logs