Page MenuHomePhabricator

Deploy PageAssessments to Hungarian Wikipedia
Closed, ResolvedPublic


Hungarian banner system is basically the same as the English one. The main template is {{Értékelés sablon alap}}, community consensus is here.

Event Timeline

The main template is template-protected, but I’m a template editor, so I can modify it once the extension is deployed.

Wonderful! Thank you for creating this task, and getting support from your community :)

@Tacsipacsi I have one question: Do you have a "masking" template that validates the assessments? On English Wikipedia, the meta template uses Template:Class mask. So this way, class=cheesecake is invalid and will not be stored, because the only valid classes are FA, GA, A, B, C, etc.

This "masking" template is not required, but it will ensure the data is more accurate. It is up to you on whether you want to add this.

Currently we don’t have such template, but {{Értékelés sablon alap/Fontosság szöveg}} and {{Értékelés sablon alap/Besorolás szöveg}} validates the input (importance and quality/class, respectively), so generalizing them solves the problem. Thanks for the tip!

Change 425212 had a related patch set uploaded (by MusikAnimal; owner: MusikAnimal):
[operations/mediawiki-config@master] Enable PageAssessments on huwiki

Change 425212 merged by jenkins-bot:
[operations/mediawiki-config@master] Enable PageAssessments on huwiki

Mentioned in SAL (#wikimedia-operations) [2018-04-11T22:24:48Z] <musikanimal@tin> Synchronized wmf-config/InitialiseSettings.php: Enabling PageAssessments on huwiki (T191697) (duration: 01m 17s)

@Tacsipacsi The extension is deployed! You can update the template now. Once added, you'll start to see all the articles atális:PageAssessments

Again I think we should create new versions of your "szöveg" templates so that the data is consistent and normalized, or allow them to return just the value and not sentences. I also would suggest saving a short value for the assessment/importance ("jólhaszn" instead of "jól használható").

I'm sure you already know what to do, but just in case... here's what I recommend:

Create a new version of {{Sablon:Értékelés sablon alap/Fontosság szöveg}} that is something like:

<includeonly>{{#if: {{{1|}}}|{{#switch:{{lc:{{{1}}}}}

and for Besorolás:

<includeonly>{{#if: {{{1|}}}|{{#switch:{{lc:{{{1}}}}}
  |4|jól használható|haszn|használható|jhaszn|jólhaszn=jólhaszn

then in your meta template:

<includeonly>{{#assessment:{{{téma|}}}|{{normalize besorolás|{{{besorolás|}}}}}|{{normalize fontosság|{{{fontosság|}}}}}}}</includeonly>

where "normalize besorolás" and "normalize fontosság" are the new normalization templates.

Many thanks again for helping set this up!

@gerritbot seems to be lazy today. Can someone take care of (Not in a hurry, but I have bad experience with Gerrit changes waiting for review for quite a while. The longest was, as far as I remember, 1.5-2 years before I abandoned it.)

Change 426642 merged by jenkins-bot:
[mediawiki/extensions/PageAssessments@master] Translate special page into Hungarian.

MusikAnimal claimed this task.
MusikAnimal moved this task from Ready to Done on the MediaWiki-extensions-PageAssessments board.

Merged! And I see all the articles have now been populated. Thanks! I'll update XTools and Pageviews Analysis to show assessments soon. Closing this as resolved :)

Change 426816 had a related patch set uploaded (by MusikAnimal; owner: MusikAnimal):
[mediawiki/extensions/PageAssessments@master] Fix typo for hu PageAssessments alias

Change 426816 merged by jenkins-bot:
[mediawiki/extensions/PageAssessments@master] Fix typo for hu PageAssessments alias

Page assessments are now being shown on Pageviews Analysis:

XTools as well:

If you're wiki is interested in Popular Pages Bot, let us know or create a ticket. We're currently working on better cross-wiki support and it should soon be trivial to add huwiki (after we get bot approval from your community).