Jump to content

Template talk:Main page/Archive 2

About this board

Not editable

Archives: 1 · 2 · 3 · 4 · 5 · 6

Previous page history was archived for backup purposes at Talk:MediaWiki/LQT Archive 1 on 2015-07-10

 
Depotadore (talkcontribs)

Hello everyone reading or scrolling by =). I want to know why you can't just edit the main page of mediawiki by clicking edit and editing that way it's makes way more sense and it less confuses me and if i want to edit it i have to go to this page and then edit this it just makes no sense to and do you have the same problem as me?

AKlapper (WMF) (talkcontribs)

Because it uses the TemplateStyles extension for CSS.

Tacsipacsi (talkcontribs)

No, TemplateStyles doesn’t justify this: nothing prescribes that Template:Main page/styles.css has to be loaded by Template:Main page (it’s just a convention), nor that TemplateStyles pages have to be in the Template namespace (it’s also just a convention, except that .css subpages outside of the Template namespace aren’t automatically TemplateStyles subpages – but any admin can make them such).

The real reason is that MediaWiki displays the main page in your user language rather than in English, and while it’s possible to do this while keeping the source code there, the result would be complicated and easy to break.

Depotadore (talkcontribs)

Ah it's CSS bugs

Looking for a consensus design that improves language switching discoverability

10
Summary by Jdforrester (WMF)
Kghbln (talkcontribs)

... we do not want "5 cm" of language links + some translation info box on the main page. We can cheerfully leave them at the bottom. It looks like we are currently facing an edit war here.

BDavis (WMF) (talkcontribs)

Edit war indeed. @Want I agree strongly with @TheDJ and @Kghbln that having the large translated language descriptor at the top of this page is undesirable. I agree with your initial edit comment that top placement is common, but I'm not sure I understand It was problematically inserting the bar of languages to the bottom border of the page. Can you help us all reach a mutually agreeable solution here by expanding on the problematic aspects of this placement so we can see if we can address those concerns?

Want (talkcontribs)

If anonymus user use a phone, or browser window narrower, is language bar out of it. In header of page is only active link to language selector, but It can't switch. Doesn't that sound like enough of a reason?

Next. Language bar in bottom do link to page 'Template:Main page', not 'MediaWiki' (mainpage)

And finally. It's only temporary solution. The multilingual switch can be solved differently for the new skin if be apply.

I intensive work on template which solve multilanguage of links, because template Languages is old, and only supply element '<languages />'

I do slowly, in parts because I have to deal with the work for which I am paid in parallel. I am not an fulltime employee of WMF.

BDavis (WMF) (talkcontribs)

I do slowly, in parts because I have to deal with the work for which I am paid in parallel. I am not an fulltime employee of WMF.

I apologize if somehow I gave you the impression that your work to support the MediaWiki community is unwelcome. I generally feel like I should be the lowest status person in these sorts of discussions exactly because I am one of the few people who do get paid to help advance the projects.

As @P858snake says below, Perhaps we could workshop this on a /sandbox subpage first? The major redesign of MediaWiki that I was previously involved with used MediaWiki/Homepage improvements 2018/Proposal as the working draft until there was consensus that the new design was working well enough to replace the prior MediaWiki. The changes you are attempting are not as visually and structurally different, but they are experimental as far as I understand from the related discussion in Topic:Y8l01lc8uein5fng. Is it possible to work in a draft or sandbox page of some kind so that you can experiment as needed and get feedback from others before applying the changes to Template:Main page?

BDavis (WMF) (talkcontribs)
Tacsipacsi (talkcontribs)

Commons has to use a manually curated listed because its main page doesn’t use the Translate extension, and thus the main pages’ titles are unpredictable. Those of mediawiki.org are predictable, so I don’t think a manually curated list is warranted. A custom template+module solution, which formats the list differently than the standard solutions, but still displays an automatically generated (standard) list, may make sense, though.

P858snake (talkcontribs)
Jdforrester (WMF) (talkcontribs)

Do we want to fold this less-discoverable thread into the one of the Village pump?

BDavis (WMF) (talkcontribs)

Having one discussion seems like a good idea to me. Is there any magic way to merge across flow boards? Or should we just close this with a pointer to the other?

Jdforrester (WMF) (talkcontribs)

Sadly, just close this with a pointer. I'll do that now.

Request of replacing some links on the main page

2
Summary by BDavis (WMF)
Anterdc99 (talkcontribs)

Please replace "Manual:Installation guide" and "Manual:Errors and symptoms" to their redirect targets, because "Special:MyLanguage" will not follow the redirection, preventing users get redirected to their language.

Thank you!

BDavis (WMF) (talkcontribs)

Update mainpage to add support for rtl languages on the mainpage

6
Terasail (talkcontribs)
Terasail (talkcontribs)

Ping @Quiddity as they originally asked about this.

Quiddity (talkcontribs)

Implemented! It looks like that's fixed it. Thanks again for noticing, researching, and preparing the fixes, both here and at Wikifunctions.

Tacsipacsi (talkcontribs)

What is the id="lang_dir" bit for?

Instead of {{{1|{{PAGELANGUAGE}}}}}, you could use {{#invoke:Caller title|lang|base=Template:Main page}} (see Module:Caller title), avoiding the need for passing the language code from MediaWiki.

Terasail (talkcontribs)

The id has no real use, it comes from when I copied the solution from the Wikifunctions main page. I personally know nothing about Module:Caller title, if it is a better way of doing things then I support it being used. I just made the edit request with the solution that I had originally found for this problem so that it might stop being a problem. (There are many ways to cook an egg and all that).

Tacsipacsi (talkcontribs)

I believe Module:Caller title is better, although I have to add the disclaimer that I’m the original author it (I think I originally authored it on Commons), so it’s not surprising. 🙂 (I seem not to have been attributed on mediawiki.org.) Now MediaWiki tells Template:Main page in which language the latter will appear in, but Template:Main page decides the language it will actually appear in, which can easily lead to inconsistencies.

Add link to Developer hub

4
Summary by APaskulin (WMF)

Link added

APaskulin (WMF) (talkcontribs)

Although the Wikimedia Developer Portal is a great entry point for people interested in Wikimedia technical projects in general, this page should also provide a link to the developer documentation specific to MediaWiki. Instead of linking to both Manual:Contents and Developer hub, as this page did previously, I'd suggest linking to just Developer hub since it is more comprehensive and includes a link to Manual:Contents.

Proposed change:

		<h3><span class="header_icon" aria-hidden="true" role="presentation">[[File:OOjs UI icon chem.svg|20px|middle|link=]]</span><span><translate><!--T:3--> Develop and extend code</translate></span></h3>
		<div id="mainpage-devs" title="<translate nowrap><!--T:15--> Developers</translate>" class="items">
* <translate>Read the MediaWiki [[<tvar name=1>Special:MyLanguage/Developer hub</tvar>|developer documentation]]</translate>
* <translate><!--T:41--> Visit the [<tvar name=1>https://developer.wikimedia.org</tvar> Wikimedia Developer Portal]</translate>
AKlapper (WMF) (talkcontribs)

Sounds good to me

Quiddity (WMF) (talkcontribs)
APaskulin (WMF) (talkcontribs)

Blanking the title w/o the hack is now possible?

1
Lens0021 (talkcontribs)

Please add link to Develop and extend code

5
Jdlrobson (talkcontribs)
Ammarpad (talkcontribs)

Done

Jdforrester (WMF) (talkcontribs)

Hmm, I don't think we should link to this. Making skins is a very arduous and not very well supported area still, despite Jon's excellent work of late…

Jdlrobson (talkcontribs)

Could you be more specific here about what is arduous in the process? To be clear I think we are talking about creating a skin for fun, not for use on Wikimedia servers, which is a very different thing.


I think creating a skin should be a lot easier now with the additional abstractions, and I want us to support it better to make it easier to maintain our own skins, and if it's not I'm keen to hear about what specifically doesn't make sense. I can't hear that feedback unless people are encouraged to develop skins... :-)

Jdforrester (WMF) (talkcontribs)

This is the very top level of prompts for something a new developer might want to do. Indeed, it was inserted above the previous single prompt of working on core itself, or on extensions; it should be added to that page, not re-prioritising such a thing so much.

Couple of issues impacting mobile display/discussion

8
Jdlrobson (talkcontribs)

1) The entire content is collapsed under a single heading on the page "MediaWiki is a collaboration and documentation platform brought to you by a vibrant community.".

Solution: wrap the whole content in a DIV this will disable section collapsing on mobile and make the page more usable.

2) The talk button is inaccessible

The title is hacked with opacity:0;position:absolute; which impacts the talk tab. There should be no need to do this - the template is used on the main page not here.

Please remove this code: {{DISPLAYTITLE:<span style="opacity:0;position:absolute;">{{FULLPAGENAME}}</span>}}

AKlapper (WMF) (talkcontribs)

Regarding: 2) Does (some of) the | #default= {{#invoke:Template translation|renderTranslatedTemplate|template=Template:Main page|noshift=1|uselang={{{1|{{int:lang}}}}}}}<!-- -->{{#ifeq:{{NAMESPACE}}||{{languages|Template:Main page}}}} }} part at the bottom also need removal? I obviously have no idea why that's here or what needs to be done.

Someone feel free to go ahead.

Krinkle (talkcontribs)

There should be no need to do this - the template is used on the main page not here.

The displaytitle code exists to hide the page title on the main page. Removing this code would make it no longer do that. I'm not sure in what way Template vs Main page matters, except that the rendering of the main page seems more important than this individual template page, so let's not just remove this :) Perhaps you can suggest an alternative way instead?

Jdlrobson (talkcontribs)

The main page title can be hidden using MediaWiki:Common.css - that's how most of wikis tend to do it. Mobile doesn't render the heading on main pages (that should probably be the default on desktop too but it isn't).

Taavi (talkcontribs)

1) is now Yes Done. 2) needs an IAdmin to complete, maybe @DannyS712 can help us here?

DannyS712 (talkcontribs)

Sure - do I understand correctly that the request (from me) is to use Common.css to hide the title from being displayed on the main page? If so, adding

.action-view.page-MediaWiki {
	display: none !important;
}

to common.css should be enough

Taavi (talkcontribs)

Uhhh, not sure if that's enough. The same treatment should be applied to all translated versions.

DannyS712 (talkcontribs)

Then I'll also apply it to .rootpage-Template_Main_page which will cover the translations

Broken transclusion of news

7
Tacsipacsi (talkcontribs)
Shirayuki (talkcontribs)
Tacsipacsi (talkcontribs)

I don’t understand you. What should we re-translate? How would that resolve this issue? As long as <translate> tags are transcluded, it will be broken.

Shirayuki (talkcontribs)

Sorry.

Quiddity (WMF) (talkcontribs)
Base (talkcontribs)

Fixed. --Base (talk) 17:14, 14 September 2020 (UTC)

Quiddity (WMF) (talkcontribs)

Thank you!

When will there be support for php7.4?

2
Nsturtz2 (talkcontribs)

Php7.4 is what I use so is there a beta version for mediawiki compatible with php 7.4

BDavis (WMF) (talkcontribs)

Off topic for this page which is for discussion of the MediaWiki page content and not the general software product. Project:Support desk is potentially a better place to ask. I imagine the answer will be "we don't know", but I might be wrong. :)