Skin talk:Vector

Jump to navigation Jump to search

About this board

Change logo depending on namespace

4
37.162.29.140 (talkcontribs)

Hi, I'd like to have a different logo (the one on the top left) depending on the namespace the current page is on, and clicking it should lead to the namespace's main page instead of the wiki's home page. Is this doable in Vector?

37.162.29.140 (talkcontribs)

PS: I managed to change logos by adding to MediaWiki:Vector.css a line for each namespace, like this:

.ns-NNN #p-logo a { background-image: url(IMAGE) !important; }

... where NNN is the namespace's number and IMAGE is the full url of the logo.

Now I just need to know if it's possible to make so that clicking on a logo takes me to the namespace's main page.

Dinoguy1000 (talkcontribs)

You would need to use Javascript to do that, though I don't know enough to be able to help you with it.

Olekdia (talkcontribs)

It seems you are trying to do that I want: use one mediawiki instance for different portals.

I have changed url of Logo as well for different namespaces:

  1. Edit MediaWiki:Mainpage set next content '{{NAMESPACE}}:Wiki', or 'Special:MyLanguage/{{NAMESPACE}}:Wiki' if you use wikitranslate extension.
  2. Create main pages for every namespaces: Some_space1:Wiki, Some_space2:Wiki, ... etc.

Now it should work properly

Reply to "Change logo depending on namespace"
69.206.77.233 (talkcontribs)

I think Wikipedia and other wikis look better with Vector than Monobook. Thank you.

Reply to "|:"

Logo seems to have disappeared overnight...

1
WikiPEAK (talkcontribs)

The logo in the top left corner seems to have disappeared overnight. There were no changes to any of the source files, and the logo file is accessible individually through an external browser... Has anyone experienced this before?

Reply to "Logo seems to have disappeared overnight..."

Style works only one some pages

2
Summary by Sparklern

I have reinstalled and the skin doesn't work on l-wiki.ch

Sparklern (talkcontribs)

My page uses MediaWiki 1.27.3 and the vector style only shows on some pages for example Spezial:Version but not on the main page. With the newst vector style provided on this page, the pages stay white. www.l-wiki.ch

Matma Rex (talkcontribs)

The skin seems to look fine on that site for me.

Reply to "Style works only one some pages"

How to remove the gradient from the top of the Vector skin?

1
Cabalamat2 (talkcontribs)

I am editing MediaWiki:Vector.css to alter the look of the vector skin. What CSS do I need to enter to remove the gradients from the top of each page?

Reply to "How to remove the gradient from the top of the Vector skin?"

How to use hide and show funtion?

3
Summary by Tunglinwu
Tunglinwu (talkcontribs)
Matma Rex (talkcontribs)

This functionality is currently not available in Vector, it was removed for performance reasons. Extension:CollapsibleVector claims to reimplement it, I never tried it myself.

Tunglinwu (talkcontribs)

It works, thank you.

Rakeshgunderi (talkcontribs)

Dear All,

I am new to this vector skin, before we was using monaco skin and added tittle successfully in monaco skin, But in Vector I am not able to put tittle for my wiki. Please help me.

Reply to "How to add Tiitle for my wiki?"
CyberXRef (talkcontribs)

Installing MediaWiki 1.27 spits out literally 10s of error messages.

  • "XXXXX" is deprecated. Use mw.config instead.

Is there a reason why this skin still uses all these deprecated functions?

Matma Rex (talkcontribs)

It doesn't. The warnings probably come from your site JS.

CyberXRef (talkcontribs)

It does, you're right. Came from an outdated Gadget which is fixed right now. Thanks.

Reply to "Tons of deprecation warnings."

body {max-width: ...} has different behaviour on different pages.

3
Summary by Spas.Z.Spasov

Site CSS is not allowed by default on "restricted" pages, for example the login, signup and password change pages, since it's a security risk if you have multiple users able to edit it (see details on T72672). If you're the only administrator of your wiki, you can safely enable them with the Manual:$wgAllowSiteCSSOnRestrictedPages configuration variable.

Spas.Z.Spasov (talkcontribs)

Hello, everyone.

I have made few customizations in /MediaWiki:Vector.css of my private Wiki (1.27.1).

I set max width of the body class, like:


body {

position:relative;

max-width: 1320px !important;

margin-left: auto;

margin-right: auto;

padding: 0;

}

It works for most pages but for some of the special pages this CSS doesn’t apply. Especially for these special pages with these new pretty buttons.

Here you are two examples. Where this CSS works and where it doesn't work.

I want to have the same behavior for the mentioned special pages. Could someone help me?

Matma Rex (talkcontribs)

Hello. Site CSS is not allowed by default on "restricted" pages, for example the login, signup and password change pages, since it's a security risk if you have multiple users able to edit it (see details on T72672). If you're the only administrator of your wiki, you can safely enable them with the $wgAllowSiteCSSOnRestrictedPages configuration variable.

Spas.Z.Spasov (talkcontribs)

It works. Thank you very much!

213.61.254.68 (talkcontribs)
Matma Rex (talkcontribs)

I don't know who maintains the Composer package for Vector. To my knowledge, it's not official. I suggest installing from Git or Special:SkinDistributor/Vector.

213.61.254.67 (talkcontribs)

I will try to manage the most things with composer.

But I thing it doesn't work :(