Actions

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

Wiki.png

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 is not a substitute for professional medical advice. See full disclaimer.

Credits:Most images are courtesy of Wikimedia commons, and templates Wikipedia, licensed under CC BY SA or similar.