Jump to content
  • 0
roham

Problem with infobox (CSS?)

Question

I had a wiki working six months ago but before I had it backupped I had a hardware malfunction and had to start over again.

Ever since I have tried to get infobox working. I would like it to look like this: https://sv.wikipedia.org/wiki/Jimmy_Wales but it looks like this: http://www.skutan.com/wiki/index.php/Testedvin

What am I missing? Is it a missing .css? I have googled a lot so any help would be much appreciated.

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Your site appears to be serving a white page on the specified URL (and the root domain serves a Fedora test page indicating that the server is successfully running Apache), so I can't comment on your specific case, but as a general rule: yes, it's CSS. As for what rules you need and where they are located depends on a few things.

Most wikis will have the infobox CSS rules in the on-wiki page called MediaWiki:Common.css for CSS rules placed there will be applied to all skins. For the Swedish Wikipedia, that page can be found at https://sv.wikipedia.org/wiki/MediaWiki:Common.css although it seems to lack the styles we're looking for.

Another possible place for the rules to be is the skin-specific MediaWiki:<skinname>.css wiki page; as of now (late 2018) the skin used by default on all Wikimedia sites (Wikipedia, Wiktionary, Wikiquotes, MediaWiki.org, etc.) is called "Vector", so maybe we'll find the styles on MediaWiki:Vector.css: https://sv.wikipedia.org/wiki/MediaWiki:Vector.css ...nope, that's empty too, dang.

Wikipedia and other Wikimedia Foundation operated wikis (the aforementioned Wiktionary & friends) are somewhat special in that many of them implement infobox CSS via the Gadgets extension. This does not mean that you would need to install the Gadgets extension to get infobox CSS working! It just means that there are a few more places where the CSS rules in question could be located. The Special:Gadgets page (https://sv.wikipedia.org/wiki/Special:Finesser on the Swedish Wikipedia) lists all the MediaWiki:*.css and MediaWiki:*.js pages used by each gadget. It is probably a bit easier to go through that filtered list than to manually browse Special:AllPages/MediaWiki:, though that certainly remains an option as well.

tl,dr: On the Swedish Wikipedia (and other WMF sites), templates' CSS is served via the TemplateStyles extension. The page you're looking for is located at https://sv.wikipedia.org/wiki/Mall:Faktamall/styles.css and you can find this by viewing the https://sv.wikipedia.org/wiki/Mall:Faktamall_biografi template page in edit mode, where you'll find a collapsed-by-default listing of templates used on that page (titled "Mallar som används på den här sidan:" in Swedish).

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.