M:help:User style

From WikiMD's Wellness Encyclopedia

User style refers to the customization of the appearance and functionality of a MediaWiki website by a user. This customization is achieved through the use of CSS and, in some cases, JavaScript, allowing users to personalize the look and feel of the wiki to better suit their preferences and needs.

Overview[edit | edit source]

User styles are implemented by creating or modifying a personal CSS or JavaScript file in a user's account. These files are named as User:Username/common.css for CSS customizations and User:Username/common.js for JavaScript enhancements. These modifications can alter the visual design of the wiki, enhance accessibility, or add user-specific functionality.

Types of Customizations[edit | edit source]

User styles can range from simple color changes to complex layout redesigns. Common customizations include:

  • Changing fonts and colors
  • Modifying the layout of content
  • Hiding or rearranging elements of the user interface
  • Enhancing accessibility for users with specific needs

How to Create User Styles[edit | edit source]

To create a user style, a user must have a registered account on the MediaWiki site. The steps include:

  1. Navigate to your user page.
  2. Create a new subpage with the appropriate extension (either .css or .js).
  3. Add your custom CSS or JavaScript code.
  4. Save the page to apply the changes.

Benefits[edit | edit source]

User styles allow for a personalized browsing experience, making the wiki more comfortable for individual use. They can also be used to improve accessibility, such as increasing font size or contrast for better readability.

Limitations[edit | edit source]

While user styles are powerful, they have limitations:

  • Changes only affect the user’s view and do not impact how other users see the wiki.
  • Improper CSS or JavaScript can break the functionality of the wiki pages.
  • User styles are loaded after site-wide styles, which might cause a delay in seeing the custom styles applied.

Security Considerations[edit | edit source]

When using JavaScript in user styles, it is important to be cautious as malicious scripts can compromise user security. Users should only use scripts from trusted sources and avoid sharing personal information through these scripts.

See Also[edit | edit source]

Template:Mediawiki-stub

WikiMD
Navigation: Wellness - Encyclopedia - Health topics - Disease Index‏‎ - Drugs - World Directory - Gray's Anatomy - Keto diet - Recipes

Search WikiMD

Ad.Tired of being Overweight? Try W8MD's physician weight loss program.
Semaglutide (Ozempic / Wegovy and Tirzepatide (Mounjaro / Zepbound) available.
Advertise on WikiMD

WikiMD's Wellness Encyclopedia

Let Food Be Thy Medicine
Medicine Thy Food - Hippocrates

Medical Disclaimer: WikiMD is not a substitute for professional medical advice. The information on WikiMD is provided as an information resource only, may be incorrect, outdated or misleading, and is not to be used or relied on for any diagnostic or treatment purposes. Please consult your health care provider before making any healthcare decisions or for guidance about a specific medical condition. WikiMD expressly disclaims responsibility, and shall have no liability, for any damages, loss, injury, or liability whatsoever suffered as a result of your reliance on the information contained in this site. By visiting this site you agree to the foregoing terms and conditions, which may from time to time be changed or supplemented by WikiMD. If you do not agree to the foregoing terms and conditions, you should not enter or use this site. See full disclaimer.
Credits:Most images are courtesy of Wikimedia commons, and templates Wikipedia, licensed under CC BY SA or similar.

Contributors: Prab R. Tumpati, MD