Jump to content

Skin talk:Citizen/2022

Add topic
From mediawiki.org
Latest comment: 3 years ago by Flounder ceo in topic ⧼citizen-page-info-0⧽

Search results not clickable on Safari

[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.


Unfortunately, I found a small bug. Pages not loading on Safari on Mac from the search bar. I also found this bug on github. I have seen that the problem also occurs on your German website.

Solution idea: Maybe Safari has a problem with the redirection...

Example:

https://star-citizen.wiki/index.php?title=Special:Search&search=Star%20Citizen%20Wiki --> https://star-citizen.wiki/Star_Citizen_Wiki

Thanks a lot for looking at the problem. Josua Koenig (talk) 09:01, 3 January 2022 (UTC)Reply

I've noticed (on iOS) holding a search result and clicking Open in Background does open the page.
The issue seems to stem from Safari not letting the click go "through" to the link. Octfx (talk) 09:06, 3 January 2022 (UTC)Reply
How could I fix this? Josua Koenig (talk) 11:07, 10 February 2022 (UTC)Reply
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Cannot add configuration arguments

[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, I want to add a default theme color, but I cannot figure out how.

I've been adding this in LocalSettings.php and citizen.php : $wgCitizenThemeDefault = "dark";

But it doesn't do anything. I'm probably doing it wrong as I'm quite new to MediaWiki.

Any help would be greatly appreciated. Romanio0089 (talk) 15:34, 3 January 2022 (UTC)Reply

I'm experiencing this same issue. Batposter (talk) 09:58, 5 January 2022 (UTC)Reply
Will look into it. There will be a patch coming soon to address the known issues with the theme switch. Alistair3149 (talk) 19:53, 10 January 2022 (UTC)Reply
It's been 5 months, any updates? It still not working... Inxity (talk) 17:05, 6 June 2022 (UTC)Reply
It should be working a few months ago, have you updated the skin and purge your local cache? Alistair3149 (talk) 19:07, 8 June 2022 (UTC)Reply
I tried and also updated to 1.17.6. Cleared my cache, and still not working for me. Inxity (talk) 10:54, 21 June 2022 (UTC)Reply
Hi there! I discovered the issue and it should now be fixed. Would you mind to update and check again? Alistair3149 (talk) 19:31, 29 June 2022 (UTC)Reply
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Issue with TinyMCE

[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.


There seems to be a problem with the way the skin handles the TinyMCE editor (I already asked about it on its talk page, the author said it's most likely an issue with the skin).

When I edit a page with the TinyMCE editor, the textbox area just expands on and on, infinitely, and I can never reach the end of the page (thus unable to save any edit I make).

I run latest MediaWiki 1.37 (just installed everything a couple days ago). I hope the issue can be resolved, it'd be a shame to not be able to use TinyMCE in such a pro-looking theme.

Thanks! Lulullia (talk) 10:40, 23 March 2022 (UTC)Reply

Do you have an online example to test? Octfx (talk) 12:03, 23 March 2022 (UTC)Reply
Sorry, my wiki is private (and I only have a local server)...
But I think it's reproducible by simply installing and trying TinyMCE on any wiki with the Citizen skin (I didn't have any other extensions installed besides the default ones when I first encountered the bug). Lulullia (talk) 17:14, 25 March 2022 (UTC)Reply
I also have this issue. In fact I've tried your workaround @Lulullia. It does work when first open, but once the javascript trigger it went haywire again.
I found out that the autoresize plugin causes this issue. Quick workaround is to disable the autoresize plugin either:
  1. Rename TinyMCE\tinymce\plugins\autoresize folder to something else.
  2. Comment out line 422 in MW_tinymce.js (autoresize/plugin.js)
Let me know if this workaround does not work or have issue.
Thanks. Ahmadpi (talk) 01:52, 31 March 2022 (UTC)Reply
Hi, sorry for the late reply I didn't touch mediawiki stuff in a while.
Thanks a lot @Ahmadpi ! your workaround is working like a charm. I'll share it with tinyMCE's author so he can investigate more. Lulullia (talk) 10:08, 9 May 2022 (UTC)Reply
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Editing the width of pages

[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.


Hello,

I would like to edit the width of the default settings of the Citizen Skin from 960px to 1320px. I have already seen the informations on this page but it doesn't work. CSS says: Error: Expected RBRACE at line 6, col 5.


Thanks for answering! Valo139 (talk) 20:53, 9 May 2022 (UTC)Reply

You probably missed a } in line 6. Alistair3149 (talk) 00:25, 10 May 2022 (UTC)Reply
And I missed it says this too: Warning: Unknown property 'width-layout'.
The } seems to work. The error about this topic doesn't show up anymore. But if I delete the site from the cache, the changes aren't applied anyways. I have no clue. Should I send the link to my wiki?
Thanks! Valo139 (talk) 05:17, 10 May 2022 (UTC)Reply
Sure! I can help you better if I can take a look at the live wiki.
Also make sure that you are setting --width-layout instead of width-layout Alistair3149 (talk) 17:44, 13 May 2022 (UTC)Reply
Now it works!
Thanks for your help! I much appreciate. Obviously I made the simplest thing false. Valo139 (talk) 16:41, 14 May 2022 (UTC)Reply
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Could we enable this skin in wikimedia wikis?

[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.


I think this skin is really cool! Is it possible to enable this skin in wikimedia wikis? Maybe it can be tested in Beta Cluster before deployed in production. Steven Sun (talk) 02:20, 13 May 2022 (UTC)Reply

The "problem" is, that every skin/extension needs to have an official stakeholder group, that is responsible for any bugs/problems that may arise.
In order to get this skin on any official wikimedia site, a stakeholder group has to be found, and a successful security review has to be done.
While all this may be possible, realistically this won't happen. BUT if you are determined you could try to start a task on Phabricator. Octfx (talk) 08:23, 5 August 2022 (UTC)Reply
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Changing style of page title / display title

[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,

Really like Citizen, by far and away the best skin for me.

I have been experimenting with changing various elements but I'm pretty much a css/less novice and the one element I really cannot affect much is the page title. I thought it was using the H1 heading style but it's not and I can't find where to alter it. I can make site wide adjustments - font, size etc which will affect everything, but nothing specific for the title. My only solution so far has been to add a parameter in the DISPLAYTITLE magic word eg {{DISPLAYTITLE:<font size="36px">A Page Title</font> ...

This works per title but it's a faff to do it on every page and I would rather have something I can apply site wide.

If someone can point me at what I need to edit I would really appreciate it.

Thanks MrSmith35 (talk) 16:34, 1 June 2022 (UTC)Reply

Thank you and glad that you like the skin!
This short tutorial will help you figure out how to style elements like that. Once you figure out the style, you can put it in MediaWiki:Citizen.css and it'll apply to every pages. Alistair3149 (talk) 06:58, 2 June 2022 (UTC)Reply
Thanks for your reply Alistair. I had looked at the DevTools in my browser before but for some reason couldn't see the element I wanted to change. Anyway went back a bit wiser after reading the tutorial and found the element I need to affect - .firstHeading in content.less. Oddly it does reference the h1 heading style but when l alter that nothing happens to the .fristHeading so perhaps something else I have done is also affecting it. Anyway I can now make page headings bigger which is what I wanted = result = happy bunny! MrSmith35 (talk) 21:01, 2 June 2022 (UTC)Reply
It does inherit part of the h1 styles as you can see from DevTools. Using a style targetting .firstHeading should be able to change the style. I suggest doing it in `MediaWiki:Citizen.css` on your wiki instead of editing the source file (e.g. content.less), as it is less maintenance when you update the skin. Alistair3149 (talk) 21:09, 2 June 2022 (UTC)Reply
Thanks again. Yes I've managed to target .firstHeading and change its size in Citizen.css as you suggest.
Cheers MrSmith35 (talk) 16:08, 3 June 2022 (UTC)Reply
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.
[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.


I want to make a couple of links that will appear on quite a few pages into plainlinks. These links to external sites will have their own icons associated with them so the standard link icon is just adding clutter. Tried the usual <span class="plainlinks"> but it didn't do anything. Switched to a different skin and the plainlinks were working as expected. Is there a different method I need to employ in Citizen to get plainlinks?

Thanks MrSmith35 (talk) 23:24, 12 June 2022 (UTC)Reply

It was a bug in the previous patch and it should now be fixed. You can use the usual plainlinks way and it should hide the icon. Alistair3149 (talk) 21:03, 25 June 2022 (UTC)Reply
Thanks Alistair. Works a treat! MrSmith35 (talk) 03:23, 11 July 2022 (UTC)Reply
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Errors after installation

[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.


Can't figure these errors out but it stops the wiki in its tracks after installation. Any ideas?


Original exception: [Yqh733WMZUh4A5La6pA2TwAAAAM] /index.php/Main_Page IntlException: Constructor failed

Backtrace:

from/httpdocs/skins/Citizen/includes/Partials/Drawer.php(180)

#0/httpdocs/skins/Citizen/includes/Partials/Drawer.php(180): NumberFormatter->__construct()

#1/httpdocs/skins/Citizen/includes/Partials/Drawer.php(90): MediaWiki\Skins\Citizen\Partials\Drawer->getSiteStatsData()

#2/httpdocs/skins/Citizen/includes/SkinCitizen.php(124): MediaWiki\Skins\Citizen\Partials\Drawer->getDrawerTemplateData()

#3/httpdocs/includes/skins/SkinMustache.php(58): MediaWiki\Skins\Citizen\SkinCitizen->getTemplateData()

#4/httpdocs/includes/skins/SkinTemplate.php(150): SkinMustache->generateHTML()

#5/httpdocs/includes/OutputPage.php(2807): SkinTemplate->outputPage()

#6/httpdocs/includes/MediaWiki.php(924): OutputPage->output()

#7/httpdocs/includes/MediaWiki.php(937): MediaWiki::{closure}()

#8/httpdocs/includes/MediaWiki.php(564): MediaWiki->main()

#9/httpdocs/index.php(53): MediaWiki->run()

#10/httpdocs/index.php(46): wfIndexMain()

#11 {main}

Exception caught inside exception handler: [Yqh733WMZUh4A5La6pA2TwAAAAM] /index.php/Main_Page IntlException: Constructor failed

Backtrace:

from/httpdocs/skins/Citizen/includes/Partials/Drawer.php(180)

#0/httpdocs/skins/Citizen/includes/Partials/Drawer.php(180): NumberFormatter->__construct()

#1/httpdocs/skins/Citizen/includes/Partials/Drawer.php(90): MediaWiki\Skins\Citizen\Partials\Drawer->getSiteStatsData()

#2/httpdocs/skins/Citizen/includes/SkinCitizen.php(124): MediaWiki\Skins\Citizen\Partials\Drawer->getDrawerTemplateData()

#3/httpdocs/includes/skins/SkinMustache.php(58): MediaWiki\Skins\Citizen\SkinCitizen->getTemplateData()

#4/httpdocs/includes/skins/SkinTemplate.php(150): SkinMustache->generateHTML()

#5/httpdocs/includes/OutputPage.php(2807): SkinTemplate->outputPage()

#6/httpdocs/includes/exception/MWExceptionRenderer.php(157): OutputPage->output()

#7/httpdocs/includes/exception/MWExceptionRenderer.php(76): MWExceptionRenderer::reportHTML()

#8/httpdocs/includes/exception/MWExceptionHandler.php(107): MWExceptionRenderer::output()

#9/httpdocs/includes/exception/MWExceptionHandler.php(202): MWExceptionHandler::report()

#10/httpdocs/includes/MediaWiki.php(583): MWExceptionHandler::handleException()

#11/httpdocs/index.php(53): MediaWiki->run()

#12/httpdocs/index.php(46): wfIndexMain()

#13 {main} SyrinxCat (talk) 12:12, 14 June 2022 (UTC)Reply

There is an issue with your ICU or PHP-intl installation. Usually updating ICU would fix it, but if it doesn't, then you can disable the numberformatter through by setting wgCitizenUseNumberFormatter to false.
https://github.com/StarCitizenTools/mediawiki-skins-Citizen/issues/474 Alistair3149 (talk) 21:03, 25 June 2022 (UTC)Reply
Thanks. wgCitizenUseNumberFormatter did the trick! SyrinxCat (talk) 22:14, 30 June 2022 (UTC)Reply
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Preference box customization?

[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.


Is there a proper way is to customize the Preference box to add extra sections like this, or is it not possible in a similar situation with the toolbar? Konodiol (talk) 12:38, 15 June 2022 (UTC)Reply

There isn't a proper way but you can technically inject sections through Javascript on your wiki (perhaps under MediaWiki:Citizen.js) Alistair3149 (talk) 21:01, 25 June 2022 (UTC)Reply
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Issues with Universal Language Selector

[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.


After installing the Universal Language Selector extension, it fails to show up in the personal toolbar or the personal menu. Is there a way to resolve this? Konodiol (talk) 12:44, 5 July 2022 (UTC)Reply

Which version of MediaWiki are you on? Alistair3149 (talk) 04:05, 12 July 2022 (UTC)Reply
1.38.1, I'm guessing that's probably why it's behaving like that. Konodiol (talk) 11:08, 12 July 2022 (UTC)Reply
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Adding Recent Changes

[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 Alistair

Is there a way to add Recent Changes to the Tools in the dropdown?

There is currently related changes but the complete list of Recent Changes I need to get added also,

Is this possible? SyrinxCat (talk) 17:03, 5 July 2022 (UTC)Reply

You can add links to the toolbox menu using the SkinAfterPortlet hook with portletName being "tb". Alistair3149 (talk) 04:08, 12 July 2022 (UTC)Reply
A bit if a mediawiki noob here and am not entirely sure how to do that. Does an extension have to be created to handle that or can it be called some other way? SyrinxCat (talk) 17:13, 15 July 2022 (UTC)Reply
You can call a hook directly from localsettings.php.
Something like this should work, I am not a PHP expert though:
public static function onSkinAfterPortlet( $skin, $portletName, &$html ) {
    $html += 'RAW HTML HERE';
}
$wgHooks['SkinAfterPortlet'][] = 'onSkinAfterPortlet';
Alistair3149 (talk) 20:45, 16 July 2022 (UTC)Reply
Thanks.
Sort if got it working with...
function onSkinAfterPortlet(  $skin, $portletName, &$html ) {
    $html .= '<a href="Special:RecentChanges?hidebots=1&limit=500&days=7&enhanced=1&urlversion=2">Recent Changes</a>';
}
$wgHooks['SkinAfterPortlet'][] = 'onSkinAfterPortlet';
Problem is it seems to add it to all drop-down menus when it needs to just go it the one with the tools so not sure how to specify to only go in that one? SyrinxCat (talk) 22:47, 19 July 2022 (UTC)Reply
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Default Skin Issue?

[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 Alistair

I have $wgCitizenThemeDefault = 'dark'; set in the LocalSettings file but for some reason it's always defaulting to the light verson. Ideally want folk using the dark unless they manually change it.

Should that setting not force dark for a not logged in users? SyrinxCat (talk) 17:15, 15 July 2022 (UTC)Reply

It was a bug that was fixed recently.
The latest release should behave as you expected. Alistair3149 (talk) 20:41, 16 July 2022 (UTC)Reply
Brilliant thanks! SyrinxCat (talk) 21:43, 19 July 2022 (UTC)Reply
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Constructor failed

[edit]

This skin may crashed wiki with PHP Exception:

IntlException: Constructor failed


Backtrace:

from .../w/skins/Citizen/includes/Partials/Drawer.php(180)

#0 .../w/skins/Citizen/includes/Partials/Drawer.php(180): NumberFormatter->__construct(string, integer)

#1 .../w/skins/Citizen/includes/Partials/Drawer.php(90): MediaWiki\Skins\Citizen\Partials\Drawer->getSiteStatsData()

#2 .../w/skins/Citizen/includes/SkinCitizen.php(124): MediaWiki\Skins\Citizen\Partials\Drawer->getDrawerTemplateData()

#3 .../w/includes/skins/SkinMustache.php(58): MediaWiki\Skins\Citizen\SkinCitizen->getTemplateData()

#4 .../w/includes/skins/SkinTemplate.php(150): SkinMustache->generateHTML()

#5 .../w/includes/OutputPage.php(2807): SkinTemplate->outputPage()

#6 .../w/includes/MediaWiki.php(926): OutputPage->output(boolean)

#7 .../w/includes/MediaWiki.php(939): MediaWiki::{closure}()

#8 .../w/includes/MediaWiki.php(563): MediaWiki->main()

#9 .../w/index.php(53): MediaWiki->run()

#10 .../w/index.php(46): wfIndexMain()

#11 {main}


179ː $locale = $skin->getLanguage()->getHtmlCode() ?? 'en_US';

180ː $fmt = new \NumberFormatter( $locale, \NumberFormatter::PADDING_POSITION );


Error bypass (its not resolve the problem but skin is working)ː

  • I've added the following code at the bottom in LocalSettings.php:

$wgCitizenEnableDrawerSiteStats = false; 213.221.12.75 (talk) 15:14, 28 July 2022 (UTC)Reply

A new config has been added, could you try setting $wgCitizenUseNumberFormatter = false;?
Also, related issues:
Also, related issues:
I havent seen this earlier:)
$wgCitizenUseNumberFormatter = false;
I tried but it didnt any effect.
Do you makes a style for the Ratepage extension?
With the skin activated the RatePage is not displayed in page. Mwssnov (talk) 07:34, 11 August 2022 (UTC)Reply

Styles for extensions

[edit]

Has anyone makes a style for the Ratepage extension? With the skin activated the RatePage is not displayed in page. And, Flow is white on the dark theme. Mwssnov (talk) 07:48, 11 August 2022 (UTC)Reply

$wgCitizenShowPageTools: Permission setting never shows tools

[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.


So the $wgCitizenShowPageTools option allows for a few settings for when the page tools are visible:

$wgCitizenShowPageTools The condition of page tools visibility true - always visible; 'login' - visible to logged-in users; 'permission' - visible to users with the right permissions true

However, when I set it to 'permission' like so (in my LocalSettings.php):

$wgCitizenShowPageTools = 'permission';

The page tools never show up, even when logged in as the Admin.

Can someone else verify this setting works, and what permissions it's keying off of? IanMoriarty (talk) 04:46, 19 August 2022 (UTC)Reply

You'd need to specify an actual permission in $wgCitizenShowPageTools, for example $wgCitizenShowPageTools = 'permission-edit'; will only show the tools for users with the edit permission. Octfx (talk) 06:27, 19 August 2022 (UTC)Reply
Circled back around to this - thanks that worked! IanMoriarty (talk) 05:41, 31 August 2022 (UTC)Reply
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.
[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.


When scrolling down pages in both desktop and mobile versions, a topbar with the page name appears which makes it possible to click on the page name to go back to the top of the page. Then, once on top, where the pagename was, the name of the wiki (in plain text) would appear and offer a one-click link to the homepage.

I had to reinstall MediaWiki 1.38 and reinjected my DB, extensions and then downloaded the latest Citizen skin and now the top bar has disappeared when at the top of the page. It is only present with the page name when scrolling down. That means there is no way to go back to the homepage in one click without first opening the sidebar and then clicking on the logo.


I see that the 'Personal Menu' and 'Preferences' moved to the left on Desktop and to the bottom on mobile but is that a new feature that appeared in the latest version I downloaded or a configuration error on my part? Since then, I also see that the 'Table of content' moved from left to right.


Can anybody tell me how I could put the Personal Menu and Preferences as well as the top bar link to the homepage back on top of any page and how to move the table of content back to the left?

Thanks for your help MediaWonka (talk) 23:34, 11 October 2022 (UTC)Reply

Yes all of those are features in the current test version for Citizen 2.X release.
You can find the older version here: https://github.com/StarCitizenTools/mediawiki-skins-Citizen/releases/tag/v1.17.9 Alistair3149 (talk) 23:49, 11 October 2022 (UTC)Reply
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Error in web console

[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.


Hello

I thank you very much for making this template

The problem I have gives the following error in the browser console:


Manifest: Line: 1, column: 1, Syntax error.

https://fa.metajs.ir/w/api.php?action=webapp-manifest


This error does not occur when the vector is active

Thank you for your guidance

MediaWiki 1.38.4 (e69998c)
PHP 7.4.30 (fpm-fcgi)
MariaDB 10.5.15-MariaDB-0+deb11u1
ICU 67.1
LuaSandbox 3.0.3
Lua 5.1.5
Pygments 2.11.2
مسیر مقاله /wiki/$1
مسیر اسکریپت /w
index.php /w/index.php
api.php /w/api.php
rest.php /w/rest.php
Citizen 2.0.0-beta.1 (c727f9e)
Sokote zaman (talk) 17:59, 15 October 2022 (UTC)Reply
I wasn't able to reproduce on other wikis that have similar configuration. Citizen generates the webapp manifest to provide a better mobile experience, that isn't present in Vector so that's why it is not reproducible there.
Since the wiki is private, I am not able to figure out the exact error :( It could be something with private wikis but I am not sure. Alistair3149 (talk) 17:53, 21 October 2022 (UTC)Reply
Thank you
I made the wiki public
Because it was in experimental mode, I had made it private and now it can be seen by the public
The mobile version is very good and I thank you for that
I think that the link of random pages is problematic because it only repeats one page at a time on each click Sokote zaman (talk) 03:43, 22 October 2022 (UTC)Reply
The random page is sadly a feature of the core MW, so it is not something that I can tackle right away. But in the future I am aiming to work on the empty search suggestion popup state, which could potentially include random articles. Alistair3149 (talk) 19:53, 22 October 2022 (UTC)Reply
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Add a button to the menu

[edit]

Is it possible to create a separate custom icon in the row of buttons and after the gear icon?

If possible, please advise how to do it.

Is there an alternative way?

thank you Sokote zaman (talk) 06:57, 21 October 2022 (UTC)Reply

You can probably inject new buttons through Javascript by prepending the element to the .citizen-header__end container. Giving the button a .citizen-header__button class will set the width and height correctly. Alistair3149 (talk) 17:50, 21 October 2022 (UTC)Reply

Set default page width for all users

[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.


Where do I set the default page width for the Citizen skin if possible? Currently, new users are opening the wiki to 960px and ideally I want all users to have it set to 1680px as standard?


I want to avoid having to tell users to use the settings toggle manually in the bottom left bar.


Thanks David.bucknor (talk) 11:32, 15 November 2022 (UTC)Reply

You can redefine the default width through CSS in MediaWiki:Citizen.css
https://github.com/StarCitizenTools/mediawiki-skins-Citizen/wiki/Customizing-Citizen-styles Alistair3149 (talk) 17:00, 15 November 2022 (UTC)Reply
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Citizen search bar on main page

[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.


Thank you for your work on the Citizen skin! I just installed Citizen 2.0.1.

Many help centers have a large search bar centered in the main page hero section.

On the main page of my wiki I was able to copy the HTML from the basic MediaWiki search field, but it doesn't show suggestions and article images like the Citizen search field does.

I tried using Javascript to append the citizen-search div to the body of the page, but I only get the magnifying glass icon that doesn't do anything.

Can you think of a way to display a big Citizen search field on the main page? CitizenFan (talk) 21:36, 30 November 2022 (UTC)Reply

There isn't a way currently since the search suggestion is hardcoded to attach to the search box. However, we made a Javascript hack to trigger the search box when the user click on an element with the ID #skin-citizen-search-trigger. You can see the Javascript here and how it works here.
Reworking the search experience is a high priority for me in terms of features. Hopefully that I will get to that in this month. Alistair3149 (talk) 00:30, 2 December 2022 (UTC)Reply
Thank you for the reply and for that trigger! Let me know if you need any help testing the new search features or anything else. CitizenFan (talk) 18:51, 2 December 2022 (UTC)Reply
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Citizen 2 vs Citizen 1 layout - Toolbar and TOC positions

[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.


You have probably answered this somewhere, but I couldn't find it, so I'm posting this because I imagine others will have the same question.


Citizen 1 has the toolbar on the TOP and the table of contents on the LEFT.

Citizen 2 has the toolbar on the LEFT and the table of contents on the RIGHT.


Will Citizen 2 eventually have the ability to switch to the original layout, or do we just need to use version 1 if we want that layout? Thanks! CitizenFan (talk) 19:00, 2 December 2022 (UTC)Reply

For now I don't have plans to implement that since there are some technical difficulties and design challenges. The intention behind the change is to clearly separate site-related tools and article-related tools, and also make sticky headers work better without conflict.
You can use version 1 or probably do some CSS hacks to make it work in Citizen 2. Alistair3149 (talk) 20:29, 2 December 2022 (UTC)Reply
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

⧼citizen-page-info-0⧽

[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.


Skin looks good but I don't understand why this line appears in the footer. (⧼citizen-page-info-0⧽) What is it and can I change it? Flounder ceo (talk) 00:14, 30 December 2022 (UTC)Reply

That is very weird and shouldn't happen.
Do you have a live demo or screenshot of the bug? Alistair3149 (talk) 20:52, 31 December 2022 (UTC)Reply
Example. https://encyc.org/wiki/France?useskin=citizen Flounder ceo (talk) 22:00, 31 December 2022 (UTC)Reply
Thanks! I'll be looking into it this week Alistair3149 (talk) 11:19, 1 January 2023 (UTC)Reply
The issue is with Extension:Hitcounter and it is blocked upstream. In the meantime, you can fix it temporarily by editing MediaWiki:Citizen-page-info-0 on your wiki. Alistair3149 (talk) 00:45, 4 January 2023 (UTC)Reply
Thank you for following up on this! I will try that fix. Flounder ceo (talk) 01:07, 4 January 2023 (UTC)Reply
Looks good. I changed it to say "Statistics". Flounder ceo (talk) 16:40, 4 January 2023 (UTC)Reply
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.
[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.


As title says, is there any config to disable them? 159.146.48.57 (talk) 21:07, 31 December 2022 (UTC)Reply

You can simply empty those pages and it'll become blank Alistair3149 (talk) 11:08, 1 January 2023 (UTC)Reply
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.