Skin talk:Cosmos

Latest comment: 10 months ago by Amnion in topic How to Use Background Image

Wikia

edit

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


hi how can my cosmos change like wikia.css? Msnhinet8 (talk) 01:32, 6 October 2020 (UTC)Reply

MediaWiki:Cosmos.css. Hope that helps! Universal Omega (talk) 01:47, 6 October 2020 (UTC)Reply
ok,so can you speake chinese? I from in taiwan. Msnhinet8 (talk) 01:58, 6 October 2020 (UTC)Reply
I can not, sorry. Universal Omega (talk) 02:02, 6 October 2020 (UTC)Reply
https://tw.wikifamily.wikaba.com/wiki/index.php?title=%E9%A6%96%E9%A0%81 this my wiki it not change cosmos css, can you help me? Msnhinet8 (talk) 02:00, 6 October 2020 (UTC)Reply
Edit https://tw.wikifamily.wikaba.com/wiki/index.php?title=MediaWiki:Cosmos.css Universal Omega (talk) 02:01, 6 October 2020 (UTC)Reply
Also, if you upgrade Cosmos, it should get rid of those deprecated messages on wiki. I fixed that earlier today. At least I hope I did. Universal Omega (talk) 02:03, 6 October 2020 (UTC)Reply
i have try.but it not change wikia skin. Msnhinet8 (talk) 02:03, 6 October 2020 (UTC)Reply
Possibly could have to do with caching. Try to clear your cache. Universal Omega (talk) 02:04, 6 October 2020 (UTC)Reply
ok
I tonight try again, thanks. Msnhinet8 (talk) 02:07, 6 October 2020 (UTC)Reply
Your welcome. Universal Omega (talk) 02:07, 6 October 2020 (UTC)Reply
you have use Facebook? Msnhinet8 (talk) 02:08, 6 October 2020 (UTC)Reply
i can add your facebook? Msnhinet8 (talk) 02:09, 6 October 2020 (UTC)Reply
Not really. Universal Omega (talk) 02:09, 6 October 2020 (UTC)Reply
yes,is true,i hope add your Facebook. Msnhinet8 (talk) 02:10, 6 October 2020 (UTC)Reply
I don't really use Facebook or very much social media period Universal Omega (talk) 02:11, 6 October 2020 (UTC)Reply
ok,i do a wiki farm wikifamily, so i need your help. Msnhinet8 (talk) 02:13, 6 October 2020 (UTC)Reply
How can I help? Same issue or another one? Universal Omega (talk) 02:13, 6 October 2020 (UTC)Reply
yes is same issues. Msnhinet8 (talk) 02:15, 6 October 2020 (UTC)Reply
Hmm should work provided $wgUseSiteCss is enabled. Universal Omega (talk) 02:18, 6 October 2020 (UTC)Reply
ok i tonight taiwan time try again, thanks. Msnhinet8 (talk) 02:22, 6 October 2020 (UTC)Reply
Alright Universal Omega (talk) 02:22, 6 October 2020 (UTC)Reply
You can also check the config options on the skin documentation page and see if that provides the styles you want to change. Universal Omega (talk) 02:22, 6 October 2020 (UTC)Reply
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

wall

edit

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


hi how can i install wikia user wall extensions in skin:cosmos? Msnhinet8 (talk) 09:43, 12 October 2020 (UTC)Reply

Hello! Unfortunately this is currently not possible. However maybe eventually I will work on creating this extension. Thank you! Universal Omega (talk) 14:18, 12 October 2020 (UTC)Reply
ok
Thanks. Msnhinet8 (talk) 03:07, 13 October 2020 (UTC)Reply
No problem. Universal Omega (talk) 17:24, 13 October 2020 (UTC)Reply
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Untranslated text.

edit

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


How can I manually translate the untranslated text to Chinese? For example: "You have no new messages." "Use talk" "Use page" on the navigation banner, and xx articles, I will translate it into "xx 文章", but idk where can I alter these texts?
Hope to get your response! Thank you! 128.199.88.59 (talk) 09:23, 30 December 2020 (UTC)Reply
In addition to what Ciencia Al Poder said, you can also translate then at translatewiki.net if you wish, which updates the skin itself to add the translations for everyone. But that's up to you, of course! Universal Omega (talk) 18:36, 30 December 2020 (UTC)Reply
Help:System message explains how to find a particular string you want to translate. In particular, note the qqx trick, which was introduced in MediaWiki 1.18. Ciencia Al Poder (talk) 11:14, 30 December 2020 (UTC)Reply
Thank you so much!!! But I still have a quiz, what is the namespace of "EDITS SINCE JOINING THIS WIKI"? I literally have scaned all of the namespaces but got no result. :( 128.199.88.59 (talk) 17:11, 30 December 2020 (UTC)Reply
Hello! It seems I forgot to localize that so that is hard coded. I will update it to add that localization shortly though. Universal Omega (talk) 18:34, 30 December 2020 (UTC)Reply
Ok Thank you! 128.199.88.59 (talk) 06:24, 31 December 2020 (UTC)Reply
It is now localized on the master branch of cosmos only at this point. The message is MediaWiki:Cosmos-editcount-label Universal Omega (talk) 03:18, 1 January 2021 (UTC)Reply
Thanks so much. You are so kind! Already figure it out! 128.199.88.59 (talk) 08:50, 1 January 2021 (UTC)Reply
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

cosmos fandom color

edit

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


Hi how can i change cosmos skin

olorc 2001:B400:E4D5:CFF6:820:B409:EB77:2382 (talk) 01:20, 21 January 2021 (UTC)Reply

Hi how can i change cosmos skin
color
? 2001:B400:E4D5:CFF6:820:B409:EB77:2382 (talk) 01:22, 21 January 2021 (UTC)Reply
With the configs in the configuration section of Skin:Cosmos Universal Omega (talk) 04:24, 21 January 2021 (UTC)Reply
ok i try it. 61.224.59.78 (talk) 11:25, 21 January 2021 (UTC)Reply
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Some options do not seem to be working

edit

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


Hi,


First of all, I would like to tell you that the skin is very well done, congratulations!


I don't know if I'm doing something wrong, but there are some configuration options that don't seem to be working.

These options are: $wgCosmosFooterBackgroundColor, $wgCosmosToolbarBackgroundColor and $wgCosmosButtonBackgroundColor.


LocalSettings.php

# Load Cosmos (skin)

$wgDefaultSkin = 'Cosmos';

wfLoadSkin( 'Cosmos' );

$wgCosmosMainBackgroundColor  = '#a5b5c5';

$wgCosmosBannerBackgroundColor = '#002a32';

$wgCosmosWikiHeaderBackgroundColor = '#002266';

$wgCosmosContentBackgroundColor = '#ebf2f5';

$wgCosmosContentOpacityLevel = 79;

$wgCosmosFooterBackgroundColor = '#002266'; # not working

$wgCosmosToolbarBackgroundColor = '#002a32'; # not working

$wgCosmosLinkColor = '#0148c2';

$wgCosmosButtonBackgroundColor = '#002266'; # not working


Additional information:

- MediaWiki: mediawiki:1.35.1-fpm-alpine

- Browser: Firefox 87.0 (64-bit) LordCroquet (talk) 16:07, 7 April 2021 (UTC)Reply

Hello, I apologise for the issue. My guess is you are using the REL1_35 branch of Cosmos, that branch has configs named differently from master. In the REL1_35 branch, configs are wgCosmosFooterColor, wgCosmosButtonColor, wgCosmosToolbarColor, I recommend you switch to the master branch for Cosmos, for reasons that it is highly more maintained and updated, and it still supports mediawiki 1.35+. Thank you! Universal Omega (talk) 18:00, 8 April 2021 (UTC)Reply
I was indeed using the REL1_35 branch because I thought the master branch was unstable, but if you say that it is better to use the master branch, I will use it.
Now everything works like a charm!
Thank you very much! ^^ LordCroquet (talk) 21:01, 8 April 2021 (UTC)Reply
Glad it works! Universal Omega (talk) 21:19, 8 April 2021 (UTC)Reply
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Deprecated: Array and string offset access syntax with curly braces is deprecated in .../CosmosToolbar.php on line 242

edit

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


We are using Mediawiki 1.35.2. The Cosmos skin looks a little off . There's a message in black text that says:

 Deprecated:  Array and string offset access syntax with curly braces is deprecated in /var/www/html/w/skins/Cosmos/includes/CosmosToolbar.php on line 242
.

Here is an image:

  Noloader (talk) 09:44, 11 April 2021 (UTC)Reply

Disable E_DEPRECATED errors from PHP in production. See https://stackoverflow.com/questions/24559842/turning-off-deprecation-warnings-in-php-ini-file-wamp Ciencia Al Poder (talk) 10:17, 11 April 2021 (UTC)Reply
Thanks.
Wouldn't it be better to fix the problem on the REL1_35 branch? Noloader (talk) 19:11, 11 April 2021 (UTC)Reply
The problem should be long fixed on the REL1_35 branch (like 8 months ago I fixed it), and the CosmosToolbar class doesn't even exist anymore. Universal Omega (talk) 20:29, 11 April 2021 (UTC)Reply
Thanks again.
So this is interesting...
We use Cosmos from GitHub at https://github.com/wikimedia/mediawiki-skins-Cosmos. We also checkout REL1_35 because we are running MW 1.35.2.
skins# cd Cosmos/
skins/Cosmos# git branch
* REL1_35
skins/Cosmos# find . -name '*Toolbar*'
./includes/CosmosToolbar.php
It appears CosmosToolbar.php is still present.
-----
We use GitHub sources because it is easiest (on us) to keep things updated. We have a script at https://github.com/weidai11/website/blob/master/mediawiki/update-wiki.sh, and it updates to the latest sources for us:
wiki_dir=/var/www/html/w
wiki_rel=REL1_35
...
# This finds directories check'd out from Git and updates them.
# It works surprisingly well. There have only been a couple of minor problems.
IFS= find "${wiki_dir}/skins" -type d -name '.git' -print | while read -r dir
do
    cd "$dir/.." || continue
    echo "Updating ${dir::-4}"
    git reset --hard HEAD && git pull && \
      git checkout -f "${wiki_rel}" && git pull
done
IFS= find "${wiki_dir}/extensions" -type d -name '.git' -print | while read -r dir
do
    cd "$dir/.." || continue
    echo "Updating ${dir::-4}"
    git reset --hard HEAD && git pull && \
      git checkout -f "${wiki_rel}" && git pull
done
Noloader (talk) 21:07, 11 April 2021 (UTC)Reply
That's interesting because as you can see https://github.com/wikimedia/mediawiki-skins-Cosmos/blob/REL1_35/includes/CosmosToolbar.php returns 404, indicating it doesn't exist any longer. Universal Omega (talk) 21:14, 11 April 2021 (UTC)Reply
Thanks.
Something looks odd. It looks like something is breaking a pull and checkout.
Updating /var/www/html/w/skins/Cosmos/
HEAD is now at 73faf13 only 1 readme for all branches
Already up to date.
warning: refname 'REL1_35' is ambiguous.
Already on 'REL1_35'
Your branch is up to date with 'origin/REL1_35'.
Already up to date.
Are you guys rewriting history? Noloader (talk) 21:38, 11 April 2021 (UTC)Reply
It's possible something happened with the history yeah. Universal Omega (talk) 22:24, 11 April 2021 (UTC)Reply
You have both a branch and a tag named REL1_35.
Sigh... Noloader (talk) 22:47, 11 April 2021 (UTC)Reply
I've asked the tag be removed awhile ago, I don't have access to do that. It was created by me before moving to wikimedia gerrit and now it transferred over and now I can't remove it. Apologies for issues created. Universal Omega (talk) 00:28, 12 April 2021 (UTC)Reply
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Need Help.

edit

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


How can i change the navigation color in MediaWiki:Cosmos.css? SkyBlueCat1 (talk) 13:29, 28 April 2021 (UTC)Reply

Hello, can you please elaborate on what you mean by "navigation color"? Thank you! Universal Omega (talk) 01:50, 29 April 2021 (UTC)Reply
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Cosmos Skin does not render tools TOOLBOX

edit

The MediaWiki:Sidebar element for the tools is not rendered?

In the main set of navigation menus the special TOOLBOX element does not get drawn? Is there some way to get this to work without resorting to adding the special links which appear in that part when using other skins?

* TOOLBOX D0li0 (talk) 03:36, 22 May 2021 (UTC)Reply

Thanks for letting me know. I will look into this tomorrow. Universal Omega (talk) 03:45, 22 May 2021 (UTC)Reply
Outstanding! Thank you so very much. D0li0 (talk) 05:02, 22 May 2021 (UTC)Reply
Hello, I'd like to apologise for the delay in fixing this. Some personal things came up. I will try and get it done as soon as possible. Universal Omega (talk) 17:24, 31 May 2021 (UTC)Reply

Empty Menu entries are rendered but excluded from other skins

edit

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


Given the following menu items in the MediaWiki:Sidebar. When a bullet item is empty it is still drawn. No other skins behave this way, they all simply exclude those bullet items from the menus entirely. This would be nice to get fixed for cases where logic is used within the menu to present dynamically defined menu items. For example, here under Dynamic, if the user is a sysop then they get a link to PageForSysops but if they are not then the get a link to FAQforOthers. But the next link does not have the ELSE portion, so it will be empty output for non sysop users. When this last link is rendered in the menu it appears as an empty clickable link to nothing. If there are many logic based links there can be quite a lot of empty space which other skins simply skip over entirely. Thanks for any tips before I start digging into the code myself.

* Navigation

** randompage-url|randompage

*** helppage|help-mediawiki

**

**

* Dynamic

** {{#ifsysop:PageForSysops|SysOps or FAQ|FAQforOthers|FAQ}

** {{#ifsysop:PageForSysops|SysOps or FAQ}} D0li0 (talk) 03:44, 22 May 2021 (UTC)Reply

Thanks for bringing it up, I will also look into this soon. Does this happen when you set the menu in MediaWiki:Cosmos-navigation or just when in MediaWiki:Sidebar, and embeded into MediaWiki:Cosmos-navigation through {{int:sidebar}}? Universal Omega (talk) 03:51, 22 May 2021 (UTC)Reply
Great question. I will test that out. I have thus far left MediaWiki:Cosmos-navigation as is and am using the main Sidebar because all skins (more or less) utilize that menu.
Yup, they appear to still render empty menu items if logic or non logic results in an empty ** or *** item. D0li0 (talk) 04:59, 22 May 2021 (UTC)Reply
Ok, thank you for verifying that, I will look into this tomorrow also and hopefully deploy a fix. Thanks again! Universal Omega (talk) 06:03, 22 May 2021 (UTC)Reply
Hello, I'd like to apologise for the delay in fixing this. Some personal things came up. I will try and get it done as soon as possible. Universal Omega (talk) 17:24, 31 May 2021 (UTC)Reply
No worries, whenever you get to it. If I had more time myself I might take a stab at a fix myself. D0li0 (talk) 05:09, 3 June 2021 (UTC)Reply
This should now be fixed Universal Omega (talk) 02:16, 25 June 2021 (UTC)Reply
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

The Extension:DynamicSidebar is not compatible with Cosmos

edit

When enabling the Extension:DynamicSidebar and using the Cosmos skin. The menu simply renders a menu named USER-SIDEBAR which is a link to the article of that name. This menu has no contents and is of a slightly different style than the other menus.

  • USER-SIDEBAR
  • GROUP-SIDEBAR (does the same)
  • CATEGORY-SIDEBAR (I presume is the same but have not tried)

The above is added to the MediaWiki:Sidebar to enable the users own personal menu, if that article User:Username/Sidebar exists and nothing is rendered if that page does not exist, when using other skins.

See also https://www.mediawiki.org/wiki/Extension%20talk%3ADynamicSidebar/archive%202/Flow%20export#h-Trouble_when_using_Cosmos_Skin-2021-05-22T05%3A05%3A00.000Z D0li0 (talk) 03:51, 22 May 2021 (UTC)Reply
Hello, I once again apologise for the delay here. I will try and look into this as soon as possible. One of the goals I had with Cosmos was to have support with at least most extensions. However this goal is something I've struggled with lately, as it seems to also have issues with the NoTitle, and JSBreadCrumbs extensions as well, do to the naming convention Cosmos uses for html elements. However I do plan to work on adding support for those as well, so I will add this to the list of extensions to verify support with. Once again, thank you for bringing this up. It is greatly appreciated. Universal Omega (talk) 17:31, 31 May 2021 (UTC)Reply

Thank you for the Nesting Menus!!

edit

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


Sorry to be a pain and mention so many bugs or quarks that I have encountered. I do very much like the nesting menus feature that the Cosmos skin has. I am curious if you are aware of any way to add this feature to other skins that my users may also like to have. Would be great if they would all behave similarly. Thanks for such a great skin none the less. D0li0 (talk) 03:56, 22 May 2021 (UTC)Reply

Hello, and no problem, the bug reports are most welcome and greatly appreciated. Unfortunately I'm unaware of a sane way to do this for additional skins, I apologise. Universal Omega (talk) 17:25, 31 May 2021 (UTC)Reply
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

FandomDesktop

edit

Saw in "Planned features" update to new FandomDesktop skin - can this be done separately, as another skin, or is there possibility to still use older version?

I'm asking because I've been managing wikis on WIkia/FANDOM for ages and don't know much about "raw" wiki management/experience. There is an obvious backlash on FANDOM against this new skin, I'm among those doesn't support this change, and I was pleasantly surprised that a replica of Oasis exists on MediaWiki. 178.207.248.229 (talk) 18:39, 18 June 2021 (UTC)Reply

Currently this is planned to be done as a separate skin. Universal Omega (talk) 18:58, 18 June 2021 (UTC)Reply

Dark mode?

edit

Is there an way to enable dark mode on Cosmos skin, for example changing the background color to a dark one? Draheinsunvale (talk) 22:31, 29 January 2022 (UTC)Reply

It supports the DarkMode extension in more recent versions for a start. Also the skin is almost completely configurable, changing the background color configs to a dark color will make the text colors adapt to the dark theme. Universal Omega (talk) 16:22, 23 June 2022 (UTC)Reply
edit

I use Miraheze with the Skins Per Page extension and whenever I click "edit' (either the link or the fandom-looking button) the page url adds /w/index.php?title=title_name&veaction=edit but nothing else happens.


I can still go to edit source if the page has a segment, and from there I can use visual edit, but otherwise there's no way to do it.

Is there a known way to fix this? Sistema-Jerimum (talk) 18:56, 8 February 2023 (UTC)Reply

Category acting weird

edit

I am using the Cosmos skin and I am finding that when I use the "category:pagename" I get a line of text at the top of the screen in tiny print that repeats categories i entered.

Any ideas why? MTimko (talk) 22:45, 21 February 2023 (UTC)Reply

It's just part of the theme. It shows all the categories a page is in at the top as well as the bottom. Amnion (talk) 21:48, 28 July 2024 (UTC)Reply

Dark mode

edit

Hello

As far as I understood you need to change wgCosmosContentBackgroundColor to switch to dark mode - but is it possible to add button to do this? I checked Dark mode extension but it's just horrible totally dark theme and bright white text. I'm trying to add something more similar to Discord Dark theme (i.e. 313131 for background, dbdbdb for text.

But I need button to make it toggleable, so how? DanteAvalon (talk) 21:34, 19 March 2024 (UTC)Reply

How to Use Background Image

edit

I had a background image on my old skin and then I changed to Cosmos. How do I get a background image to work? I cannot join the discord, it always gives me an error. Amnion (talk) 21:47, 28 July 2024 (UTC)Reply

I figured this out. The instructions are unclear. "Configure as necessary." Configure where? Well, you have to add "$wgCosmosBackgroundImage =" and then the url to your image in LocalSettings.php. The configuration also says the background image is fixed by default, but mine scrolls, even if I add that part to my local settings. Amnion (talk) 18:53, 29 July 2024 (UTC)Reply
Return to "Cosmos" page.