Jump to content

Topic on Template talk:Main page/Archive 2

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