About this board

Not editable

This is a MediaWiki.org user page.

If you find this page on any site other than MediaWiki.org, you are viewing a mirror site. Be aware that the page may be outdated, and that the user this page belongs to may have no personal affiliation with any site other than MediaWiki.org itself. The original page is located at https://www.mediawiki.org/wiki/User_talk:Shirayuki.

The MediaWiki logo
Summary by Shirayuki

Yes Done

Dcljr (talkcontribs)

This is a problem. It creates invalid HTML on that page (Help:Links), since it results in two identical 'id' values on the same page. What are we going to do about this?

Shirayuki (talkcontribs)

As I wrote, it is required for translation pages. If it is a problem, please file as a bug on Phabricator.

Dcljr (talkcontribs)

You would have to do that, since I am not familiar with the technical details of how translation works. (I'm not even sure what we would be asking them to do, exactly.)

This seems more like a "cultural" problem (i.e., we've decided to do things this way, mostly for convenience) than a technical one (it is actually required to do it this way).

Could such redundant anchors be <!-- commented out --> on the English version and then uncommented on the non-English ones?

Do you know if this has been discussed before (say, at Project:Current issues)?

Matěj Suchánek (talkcontribs)

I was asked to chime in, so I'm here. As a translation admin elsewhere, I usually don't care that much about anchors. I know Translate has some flaws and this seems to be another one. Raising at the talk venue or in Phabricator is a good idea. Anyway, no edit warring please.

Dcljr (talkcontribs)

There is no edit warring.

Dcljr (talkcontribs)

I still don't understand why inserting redundant anchors is somehow "required". What technical limitation is involved here? AFAICT, this is being done merely to aid translators who may not realize that they should include anchors in the translated versions that work with existing section links (in the English version). In other words, a cultural issue, not a technical one. Am I wrong about this? How?

Shirayuki (talkcontribs)
Dcljr (talkcontribs)

I can't file a bug report if I don't understand what makes this a bug. Why aren't you getting this?

You are the one who claims duplicate anchors are somehow "required". I don't believe that is true. Thus, I don't think this is a bug at all. And therefore I have no reason to file a bug about it.

I can, however, ask someone else who might deign to answer my question instead of just repeating the same non-answer. So, yeah… goodbye.

Shirayuki (talkcontribs)

I don't think this is a problem. Nothing to do.

Marking for translations pages

2
Sido uku (talkcontribs)
Shirayuki (talkcontribs)

Yes Done

Nicole Sharp (talkcontribs)

Shortened redirect pages are necessary for better searching and linking within the wiki, as well as for generating shorter hyperlinks and interwikilinks to pages on mediawiki.org. The benefits gained from having both SimpleMathJax and Extension:SimpleMathJax on the wiki far outweigh any costs. Nicole Sharp (talk) 08:00, 4 June 2019 (UTC)

Shirayuki (talkcontribs)

Use [[Special:MyLanguage/Extension:SimpleMathJax|SimpleMathJax]] or {{ll|Extension:SimpleMathJax|nsp=0}} on mediawiki.org.

Nicole Sharp (talkcontribs)

That's even longer. It's just faster and easier to type "SimpleMathJax" when linking or searching, than having to type in "Extension:" as well, if it can be made unnecessary with a simple redirect: https://www.mediawiki.org/wiki/SimpleMathJax is faster to type and easier to share. For the redirect, there isn't any risk of conflation or need of disambiguation (like there would be for "MathJax"). Nicole Sharp (talk) 18:50, 5 June 2019 (UTC)

Sorry for the workload

4
SUM1 (talkcontribs)

When I came here, I barely understood the translation system here on MediaWiki and tended to add as seemed intuitive based on the code already present.

I've now discovered Help:Extension:Translate/Page translation administration and will try to operate based on it in the future.

Also, I'm assuming that <tvar|1> and <tvar|2> work the same as <tvar|first variable name> and <tvar|second variable name> when within <translate> tags, right?

Shirayuki (talkcontribs)

No, "1" and "2" are variable names. I think variable names should be untranslatable, because some translators translate variable names.

SUM1 (talkcontribs)

Okay, should've just read that help page closer again. So they get shown to editors as "1" and "2" to discourage them from translating.

Shirayuki (talkcontribs)
Summary by Minorax

Fixed it.

Minorax (talkcontribs)

Hi, can you remark Extension:CentralAuth for translation? Can't seem to get it shown on the translated page. Thanks. ~~~~

Regarding the translation interface

4
DSquirrelGM (talkcontribs)

Why is there only an edit and review/accept link, but no reject change option, for previously entered translations? Or if there is such an option - where would it be located? Couldn't find an undo option on it anywhere.

Shirayuki (talkcontribs)

What are you talking about?

DSquirrelGM (talkcontribs)
Shirayuki (talkcontribs)

Translation tweaks - Help:Growth/Tools/How to claim a mentee

5
Martin Urbanec (WMF) (talkcontribs)
Shirayuki (talkcontribs)

Thanks. Fixed by adding {{#switch:...}}.

Martin Urbanec (WMF) (talkcontribs)

Thank you!

Martin Urbanec (WMF) (talkcontribs)

Just for my own curiousness, could you please explain why what you did is preferable? Feel free to link to relevant docs.

Shirayuki (talkcontribs)

Hooks in extension templates

3
Tgr (talkcontribs)

Hi, thanks for your work of keeping hooks up to date!

FWIW, hooks (to the extent they can be identified from extension.json) are available in structured form via Module:ExtensionJson. If you are familiar with Lua coding, a more sustainable approach might be to make the extension template read them from there when no hook parameters are manually provided. (The same goes for a number of other extension fields as well.)

Shirayuki (talkcontribs)
Tgr (talkcontribs)

Yeah, I imagine we'll have to end up with some way to manually add hooks to the template. Maybe just interpret hook1 etc. as additional hooks (but then the template would have to deduplicate), maybe have dynamichook1 or something like that.

(The structured data also wouldn't work for extensions which have not been ported to extension registration yet.)

Invalid name for maintenance script transstat.php

3
Want (talkcontribs)

I found that name of the page for maintenance script transstat.php is Manual:transsat.php – it's wrongly. Is there a reason why it's called differently? I ask you because when you marked the page for translation you had to find out that it is different name. Or is it mistake and I can do repair?

Shirayuki (talkcontribs)

Ask the original author.

Shirayuki (talkcontribs)

Template:Red link

3
Keyacom (talkcontribs)

I could start a template, called "red link", which is to link to nonexistent pages, but prevent the page from showing on special:WantedPages. Its code is:

<span class="plainlinks">[{{fullurl:{{{1}}}|action=edit}} <span style="color: #ba0000">{{{2|{{{1}}}}}}</span>]</span>

It'll be mostly used on talk pages, and on Help:Magic words to remove MediaWiki:xyz from the list of wanted pages.

Shirayuki (talkcontribs)

It looks good. Go ahead.

Keyacom (talkcontribs)