Jump to content
  • 0

Problem with infobox (CSS?)



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.

Link to comment
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).

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

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.