Jump to content

Topic on Template talk:Main page

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.