I have recently created a wiki for a game that I am a contributor for, basing the structure off of the old one we originally used on FANDOM.
I would like to customize the appearance to resemble the original wiki as closely as possible. If I could have help figuring out all the ins and outs of customizing the appearance, that'd be great.
I am, however, completely new to Miraheze as a whole, so please explain everything to me as if I am an idiot. Thanks in advance!
#Customizing a wiki's appearance.
84 messages Β· Page 1 of 1 (latest)
well, as I said in PTW server, first thing is that you need to settle on which skin you are going to use
skins is a type of extensions, which defines layout of the wiki, like default skin you get here is called Vector 2022
MediaWiki:<skin name>.css or Common.css to modify your wiki's CSS; the developer console will be helpful in designing your customizations, as it allows you to see which element IDs/classes need to be changed
For specific design help, a link to your wiki would be helpful
the closest to Fandom skins are Cosmos (replication of Oasis, old skin) and Evelution (replication of FandomDesktop, current skin)
I already provided and example of Cosmos w/ basic settings, but I also can show more modified Cosmos on a wiki I manage (logo is changable, I just got lazy here)
Have no idea where either of these are at the moment, but good to know.
Here's the link to it: https://robloxcriticalstrike.miraheze.org/wiki/CRITICAL_STRIKE_Wiki
Roblox CRITICAL STRIKE
<mainpage-leftcolumn-start />
<mainpage-endcolumn />
<mainpage-rightcolumn-start />
<mainpage-endcolumn />
I'll probably end up using Oasis then. Can't seem to find it, though.
first you need to enable it
go to Manage this wiki's extensions admin menu
then Skins tab
you should choose Cosmos
Common.css is the page in which you can insert CSS that will affect every wiki; each skin also has their own CSS page in which you can put styles that only affect that skin
(Oasis is original skin, but Cosmos is its open source port available for non-Fandom wikis to use)
π
save changes and then go back to wiki's additional settings -> styling
default skin dropdown now should have Cosmos
pick it and save changes
another small suggstion - in extensions admin menu, type in search bar MobileFrontend and turn it off
since Cosmos is mobile adaptive skin, mobile mode extension isn't needed
now, next step is basic Cosmos settings
if you'll scroll down the Styling tab, you'll see settings related to things like logo, favicons, bg image, and then color settings especially for Cosmos
you should insert HEX color codes in their fields, like this
after saving changes you should see them working immediately
in you need to change something, just update color codes
to set up things like logo etc you should first upload images on wiki
after uploading an image its file page will open - you should click on full size link, under the image
a "raw" file link will open
you should copy its URL and insert in setting's field, like this
Image and colors worked, can't seem to get opacity to work though.
Assuming the field I changed even meant what I had thought it did.
Cosmos Content Opacity Level ($wgCosmosContentOpacityLevel) ?
IMO the header color should be a darker red instead of the default light gray
On second thought, the header color should be the current color of the page body and the page body should be a somewhat lighter red
Good, but I think #8e2f2f would be a better color for the article body
I'm heading out for the night
if you want to modify beyond styling settings, then comes CSS
CSS is a code which defines look of elements
there's no ready list of elements and how to change them, so you gotta poke around web pages's code w/ your browser's element inspector tool, and changing CSS values
those changes then should be added on MediaWiki:Common.css (works no matter which skin user chooses, good for general elements like gallery or infoboxes) and MediaWiki:Cosmos.css (work only on Cosmos)
there are plenty free tutorials on HTML and CSS
if you still have questions other available volunteers can help
Colors can be specified for various objects. These include text ("color: white"), background ("background-color: white"), and borders ("border-color: gray").
An example CSS rule that sets all h1 elements to have white text on a red background:
Methods of specification of colors, an overview:
English name, such as color: white
The CSS color nam...
Here are a few documentations from which you can get ideas and help for what you want to achieve π
how'd you change these?
and can you add stuff to the administration dropdown?
this is like exactly what i need too
im not OP but it looks like its invalid on their wiki too
please don't post in other people's support threads if you question is a tad different
it must be in MediaWiki:Cosmos-navigation
admin links is an extension
i'll make a thread then, still got questions for it
Sorry,hadn't noticed.
I'll delete mine
Okay, so after avoiding the wiki in general for a bit, I tried again with opacity and it turns out opacity just doesn't work on Cosmos for some reason, at least from what I can tell.
The other two editors also said cosmos just sucks to use, so we're trying vector-2022. Can I CSS to change the background color, or is it just permanently white?
The class to modify is .mw-page-container IIRC
you can change the background with css, yes
Also, keep in mind that despite Cosmos having basic style settings it can be styled with CSS in addition, like any other skin. So you could achieve transparency that way
I recommend using the browser inspector to find the right elements to style and even try out styling in real time. Looking up "browser inspector css" or similar should give you a bunch of tutorials 
Hello, back again. What is the legality(?) of using another wiki's common.css as a reference and reverse-engineering it?
it's a common practice, but if there's something unique (like layout change on Inkepedia I use on my wikis) you better credit the wiki in a commentary code (/* ... */)
Another option is to copy the permanent link to that version of the page, and put that in the summary field before submitting the changes. That way you give credit and they can see which version you used.
My wiki does not have a :root for me to change the colors with. How does one add this?
These two images are in the exact same elements in the MediaWiki:Common.css pages of the respective wikis. (Mine on the left, PTW on the right)
root is a thing for CSS variables
it's because PTW has several themes so variables are used for easier change
in most cases, wikis don't need it
Okay, we're finally getting somewhere.
How do I make this background image follow the position like on Fandom? And how do I make the background itself just be opaque instead of full transparent?
Didn't catch it mostly only affected main page, oops.
Okay, well I figured out how to make it universal.
Uhh...
Uh oh.
Nevermind we fixed it.
Okay, so I figured out opacity, but it also affects the text and I don't want that.
I forgot to update here, I got the background to work, now I just need to figure out how to change text color.
I figured it out several hours ago and just forgot to mention it.
i think its just color
pretty much, it's selecting all of them that's the trick