#8383 closed enhancement (fixed)
WIWOSM: Test for 'wikipedia'-tags missing language
Reported by: | jjaf.de | Owned by: | team |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | Core | Version: | latest |
Keywords: | WIWOWSM wikipedia missing-language broken-log | Cc: |
Description
The WIWOSM error-log shows 44K+ entries of incorrect 'wikipedia'-tagging.
The Projekt would need a validator-test, so editors will be alerted while editing in their region.
Correct tagging would be:
'wikipedia' = '<language>:<article>'
Optionally the validity of language can be checked by comparing to a list extracted from a WP-API-sitematrix-call in <api><sitematrix><language code="$language"> which could be copied to JOSM as it does not change very often.
Most common error currently is having no language at all, thus having no ":"-delimiter in the 'wikipedia'-tag.
Other 'wikipedia:*'-tags could be ignored for the test by now.
This test would help the WIWOSM-project very much.
Attachments (0)
Change History (7)
comment:1 by , 12 years ago
comment:4 by , 12 years ago
I made a working tagchecker.cfg-add-on to be configured as an additional source. It works for me but i will ask other people to test.
If these tests will be ok, i would request inclusion in main tagchecker.cfg.
I now see the patch made by bastiK. I will have a look at it.
follow-up: 7 comment:6 by , 12 years ago
I improved it according to your tagchecker.cfg
-add-on file. According to the wiki, there are cases, where the form wikipedia:lang=Title
can be used, so I'm not sure about the 3rd rule.
comment:7 by , 12 years ago
Replying to bastiK:
I improved it according to your
tagchecker.cfg
-add-on file. According to the wiki, there are cases, where the formwikipedia:lang=Title
can be used, so I'm not sure about the 3rd rule.
You really need the 3rd rule wikipedia:lang=Title
. Often there is a page in only some languages and only a section on a different page in other languages.
Looking at the present validation-modules i wonder wether TagChecker could do the job by configuring tagchecker.cfg.
I converted the mentioned WP-API-call to a text-file giving 293 valid WP-language-codes. Maybe too much for tagchecker.cfg? I will try to code a test there to include it in the JOSM-preferences 'validator.TagChecker.sources'.