Skip to content

Conversation

@jimkont
Copy link
Member

@jimkont jimkont commented Jun 8, 2021

This PR (auto) updates all wikipedia settings from the Wikipedia API and adds newly added wikipedia languages

Summary by CodeRabbit

  • New Features
    • Broadened disambiguation detection and redirect support across many additional languages.
    • Added new wiki configurations enabling interwiki links, namespaces, and magic words for multiple projects (e.g., alt, ary, atj, awa, ban, din, dty, gcr, gor).
  • Improvements
    • Significantly expanded French and Persian disambiguation templates.
    • Enriched redirect variants across languages for better normalization.
  • Bug Fixes
    • Corrected a redirect token inconsistency to align with standard handling.
  • Chores
    • Refreshed disambiguation template data and API notice text across numerous language settings.

@sonarqubecloud
Copy link

sonarqubecloud bot commented Jun 8, 2021

SonarCloud Quality Gate failed.

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell D 543 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@JJ-Author
Copy link
Contributor

@coderabbitai full review

@coderabbitai
Copy link

coderabbitai bot commented Oct 9, 2025

✅ Actions performed

Full review triggered.

@coderabbitai
Copy link

coderabbitai bot commented Oct 9, 2025

Walkthrough

Bulk updates expand per-language disambiguation and redirect sets in Scala. Numerous new wiki configuration XML files are added. Many existing disambiguation-template XMLs are updated to a new servedby value and include an API deprecation notice. A few XMLs receive content adjustments (expanded lists, attribute removal, or title change).

Changes

Cohort / File(s) Summary
Core disambiguation sets
core/src/main/scala/org/dbpedia/extraction/wikiparser/impl/wikipedia/Disambiguation.scala
Extends language-to-disambiguations map; adds new per-language sets (e.g., avk, inh, lld, ne, wuu, zh); expands multiple existing sets; adds comments about mo/shy redirects. Public API unchanged.
Redirect tokens
core/src/main/scala/org/dbpedia/extraction/wikiparser/impl/wikipedia/Redirect.scala
Adds many language-specific redirect sets and variants; corrects wikidata_redirects to Set("#REDIRECT"); broadens normalization tokens; adds documentation comments. Public API unchanged.
New wiki configurations
core/src/main/settings/altwiki-configuration.xml, .../arywiki-configuration.xml, .../atjwiki-configuration.xml, .../awawiki-configuration.xml, .../banwiki-configuration.xml, .../dinwiki-configuration.xml, .../dtywiki-configuration.xml, .../gcrwiki-configuration.xml, .../gorwiki-configuration.xml
Introduces static MediaWiki-like configs: namespaces, aliases, magic words, and extensive interwiki maps.
New disambiguation-template XMLs
core/src/main/settings/altwiki-disambiguation-templates.xml, .../arywiki-disambiguation-templates.xml, .../atjwiki-disambiguation-templates.xml, .../awawiki-disambiguation-templates.xml, .../banwiki-disambiguation-templates.xml, .../dinwiki-disambiguation-templates.xml, .../dtywiki-disambiguation-templates.xml, .../gcrwiki-disambiguation-templates.xml, .../gorwiki-disambiguation-templates.xml, .../avkwiki-disambiguation-templates.xml
Adds static API error payloads for missing titles, including API usage note and deprecation notice.
Expanded FR disambiguation templates
core/src/main/settings/frwiki-disambiguation-templates.xml
Significantly enlarges the list of Modèle entries and variants; updates several names; retains structure.
Expanded FA disambiguation templates
core/src/main/settings/fawiki-disambiguation-templates.xml
Replaces a small set with a larger list of Persian disambiguation templates (multiple topical variants).
Response type changed to error
core/src/main/settings/bnwiki-disambiguation-templates.xml
Replaces a successful parse result with an API error (missingtitle) payload.
Minor XML attribute tweak
core/src/main/settings/dawiki-disambiguation-templates.xml
Removes exists="" from one link entry; structure unchanged.
Title value change
core/src/main/settings/azwiki-disambiguation-templates.xml
Changes parsed title from "MediaWiki:Disambiguationspage" to "MediaViki:Disambiguationspage".
Servedby/notice updates (many wikis)
core/src/main/settings/*wiki-disambiguation-templates.xml (examples: aawiki-..., abwiki-..., acewiki-..., adywiki-..., avwiki-..., aywiki-..., azbwiki-..., bclwiki-..., bhwiki-..., biwiki-..., bmwiki-..., bowiki-..., bxrwiki-..., cdowiki-..., chowiki-..., chrwiki-..., chwiki-..., chywiki-..., cowiki-..., crwiki-..., cswiki-..., dewiki-..., dzwiki-..., eewiki-..., enwiki-..., eswiki-..., etwiki-..., extwiki-..., ffwiki-..., fjwiki-..., ganwiki-..., glkwiki-..., gomwiki-..., gotwiki-..., guwiki-..., hakwiki-..., hawiki-..., hawwiki-...)
Updates servedby host identifiers and appends a standardized API deprecation/breaking-changes notice in error text; no structural changes.

Sequence Diagram(s)

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~30 minutes

Poem

I thump my paws on fields of links,
New maps, more signs, the redirect sphinx—
Disambig burrows deep and wide,
Config constellations star the guide.
I twitch, compile, then hop with cheer:
More paths to nibble, crystal-clear. 🥕✨

Pre-merge checks and finishing touches

✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title Check ✅ Passed The title succinctly captures the main change, indicating that Wikipedia settings are being updated automatically, which aligns with the PR’s extensive updates to configuration and template files without unnecessary detail.
Docstring Coverage ✅ Passed No functions found in the changes. Docstring coverage check skipped.
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch update-settings

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 14

♻️ Duplicate comments (4)
core/src/main/settings/avkwiki-disambiguation-templates.xml (1)

1-1: API error response in template file.

Like gcrwiki-disambiguation-templates.xml, this file contains an API error response instead of actual templates. See the verification request in the gcrwiki file review.

core/src/main/settings/arywiki-disambiguation-templates.xml (1)

1-1: API error response in template file.

Same pattern as the other disambiguation template files. See the verification request in the gcrwiki file review.

core/src/main/settings/altwiki-disambiguation-templates.xml (1)

1-1: API error response in template file.

Same pattern as the other disambiguation template files. See the verification request in the gcrwiki file review.

core/src/main/settings/atjwiki-disambiguation-templates.xml (1)

1-1: API error response in template file.

Same pattern as the other disambiguation template files. See the verification request in the gcrwiki file review.

🧹 Nitpick comments (1)
core/src/main/settings/gcrwiki-disambiguation-templates.xml (1)

1-1: Document fallback placeholder in disambiguation template files
These XMLs intentionally include the missingtitle API error for wikis without disambiguation templates. Consider adding a brief comment in each file or in the documentation to explain this fallback behavior.

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between eb0e463 and 9970b7a.

📒 Files selected for processing (65)
  • core/src/main/scala/org/dbpedia/extraction/wikiparser/impl/wikipedia/Disambiguation.scala (10 hunks)
  • core/src/main/scala/org/dbpedia/extraction/wikiparser/impl/wikipedia/Redirect.scala (15 hunks)
  • core/src/main/settings/aawiki-disambiguation-templates.xml (1 hunks)
  • core/src/main/settings/abwiki-disambiguation-templates.xml (1 hunks)
  • core/src/main/settings/acewiki-disambiguation-templates.xml (1 hunks)
  • core/src/main/settings/adywiki-disambiguation-templates.xml (1 hunks)
  • core/src/main/settings/altwiki-configuration.xml (1 hunks)
  • core/src/main/settings/altwiki-disambiguation-templates.xml (1 hunks)
  • core/src/main/settings/arywiki-configuration.xml (1 hunks)
  • core/src/main/settings/arywiki-disambiguation-templates.xml (1 hunks)
  • core/src/main/settings/aswiki-disambiguation-templates.xml (1 hunks)
  • core/src/main/settings/atjwiki-configuration.xml (1 hunks)
  • core/src/main/settings/atjwiki-disambiguation-templates.xml (1 hunks)
  • core/src/main/settings/avkwiki-disambiguation-templates.xml (1 hunks)
  • core/src/main/settings/avwiki-disambiguation-templates.xml (1 hunks)
  • core/src/main/settings/awawiki-configuration.xml (1 hunks)
  • core/src/main/settings/awawiki-disambiguation-templates.xml (1 hunks)
  • core/src/main/settings/aywiki-disambiguation-templates.xml (1 hunks)
  • core/src/main/settings/azbwiki-disambiguation-templates.xml (1 hunks)
  • core/src/main/settings/azwiki-disambiguation-templates.xml (1 hunks)
  • core/src/main/settings/banwiki-configuration.xml (1 hunks)
  • core/src/main/settings/banwiki-disambiguation-templates.xml (1 hunks)
  • core/src/main/settings/bclwiki-disambiguation-templates.xml (1 hunks)
  • core/src/main/settings/bhwiki-disambiguation-templates.xml (1 hunks)
  • core/src/main/settings/biwiki-disambiguation-templates.xml (1 hunks)
  • core/src/main/settings/bmwiki-disambiguation-templates.xml (1 hunks)
  • core/src/main/settings/bnwiki-disambiguation-templates.xml (1 hunks)
  • core/src/main/settings/bowiki-disambiguation-templates.xml (1 hunks)
  • core/src/main/settings/bxrwiki-disambiguation-templates.xml (1 hunks)
  • core/src/main/settings/cdowiki-disambiguation-templates.xml (1 hunks)
  • core/src/main/settings/chowiki-disambiguation-templates.xml (1 hunks)
  • core/src/main/settings/chrwiki-disambiguation-templates.xml (1 hunks)
  • core/src/main/settings/chwiki-disambiguation-templates.xml (1 hunks)
  • core/src/main/settings/chywiki-disambiguation-templates.xml (1 hunks)
  • core/src/main/settings/cowiki-disambiguation-templates.xml (1 hunks)
  • core/src/main/settings/crwiki-disambiguation-templates.xml (1 hunks)
  • core/src/main/settings/cswiki-disambiguation-templates.xml (1 hunks)
  • core/src/main/settings/dawiki-disambiguation-templates.xml (1 hunks)
  • core/src/main/settings/dewiki-disambiguation-templates.xml (1 hunks)
  • core/src/main/settings/dinwiki-configuration.xml (1 hunks)
  • core/src/main/settings/dinwiki-disambiguation-templates.xml (1 hunks)
  • core/src/main/settings/dtywiki-configuration.xml (1 hunks)
  • core/src/main/settings/dtywiki-disambiguation-templates.xml (1 hunks)
  • core/src/main/settings/dzwiki-disambiguation-templates.xml (1 hunks)
  • core/src/main/settings/eewiki-disambiguation-templates.xml (1 hunks)
  • core/src/main/settings/enwiki-disambiguation-templates.xml (1 hunks)
  • core/src/main/settings/eswiki-disambiguation-templates.xml (1 hunks)
  • core/src/main/settings/etwiki-disambiguation-templates.xml (1 hunks)
  • core/src/main/settings/extwiki-disambiguation-templates.xml (1 hunks)
  • core/src/main/settings/fawiki-disambiguation-templates.xml (1 hunks)
  • core/src/main/settings/ffwiki-disambiguation-templates.xml (1 hunks)
  • core/src/main/settings/fjwiki-disambiguation-templates.xml (1 hunks)
  • core/src/main/settings/frwiki-disambiguation-templates.xml (1 hunks)
  • core/src/main/settings/ganwiki-disambiguation-templates.xml (1 hunks)
  • core/src/main/settings/gcrwiki-configuration.xml (1 hunks)
  • core/src/main/settings/gcrwiki-disambiguation-templates.xml (1 hunks)
  • core/src/main/settings/glkwiki-disambiguation-templates.xml (1 hunks)
  • core/src/main/settings/gomwiki-disambiguation-templates.xml (1 hunks)
  • core/src/main/settings/gorwiki-configuration.xml (1 hunks)
  • core/src/main/settings/gorwiki-disambiguation-templates.xml (1 hunks)
  • core/src/main/settings/gotwiki-disambiguation-templates.xml (1 hunks)
  • core/src/main/settings/guwiki-disambiguation-templates.xml (1 hunks)
  • core/src/main/settings/hakwiki-disambiguation-templates.xml (1 hunks)
  • core/src/main/settings/hawiki-disambiguation-templates.xml (1 hunks)
  • core/src/main/settings/hawwiki-disambiguation-templates.xml (1 hunks)
🔇 Additional comments (12)
core/src/main/settings/chrwiki-disambiguation-templates.xml (1)

1-1: LGTM

The updated servedby value and the appended subscription notice look correct, including the escaped URL.

core/src/main/settings/cowiki-disambiguation-templates.xml (1)

1-1: Update looks good.

The refreshed servedby value and extended deprecation notice keep this template aligned with the current API response.

core/src/main/settings/dewiki-disambiguation-templates.xml (1)

1-1: LGTM

Servedby update and API notice look consistent with the other settings refresh. Nothing further.

core/src/main/settings/crwiki-disambiguation-templates.xml (1)

1-1: Content update looks consistent.

Served-by value and API notice align with the broader settings refresh; no issues spotted.

core/src/main/settings/cswiki-disambiguation-templates.xml (1)

1-1: Update matches the live API response

servedby="mw1277" and the added deprecation notice align with the current cswiki API error payload; the escaping looks correct. Nice refresh.

core/src/main/settings/bnwiki-disambiguation-templates.xml (1)

1-1: Fix double-escaped angle brackets in info text.

The literal &amp;lt;/&amp;gt; in the error string will surface as &lt;...&gt; to downstream consumers. MediaWiki’s payload uses <...> (encoded once as &lt;/&gt; in XML), so we should keep a single escape. Please change these entities back to &lt; and &gt; to match the API response.

-... mailing list at &amp;lt;https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce&amp;gt; ...
+... mailing list at &lt;https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce&gt; ...

Likely an incorrect or invalid review comment.

core/src/main/settings/gcrwiki-configuration.xml (1)

1-1: LGTM! Auto-generated Wikipedia configuration.

This is a comprehensive MediaWiki configuration file auto-generated from the Wikipedia API for the GCR (Guianan Creole) wiki. The file includes all necessary elements: namespaces, namespace aliases, magic words, and an extensive interwiki map.

core/src/main/scala/org/dbpedia/extraction/wikiparser/impl/wikipedia/Redirect.scala (3)

12-12: LGTM! Comprehensive expansion of redirect support.

The auto-generated additions expand redirect support across numerous new Wikipedia language editions (alt, ary, atj, avk, awa, ban, gcr, gor, hyw, inh, nia, nqo, pnb, skr, smn, mnw, etc.) and augment existing language redirect sets with additional localized tokens and case variants. This aligns with the PR objective of auto-updating Wikipedia settings.

Also applies to: 23-329


331-332: Helpful diagnostic comments.

The comments documenting API redirects for mo and shy wikis provide useful context about wikis that have moved or are in incubator status.


15-15: Verify removal of the JSON-style redirect pattern
Confirm that no parsing logic or tests rely on the old "redirect": entry for Wikidata redirects before removing it from wikidata_redirects.

core/src/main/scala/org/dbpedia/extraction/wikiparser/impl/wikipedia/Disambiguation.scala (2)

13-13: LGTM! Comprehensive expansion of disambiguation support.

The auto-generated updates expand disambiguation template coverage across multiple languages, including:

  • New language support (avk, inh, lld)
  • Significantly expanded sets for French (fr), Persian (fa), and other languages
  • Refined mappings for existing languages

These changes align with the PR's objective of auto-updating Wikipedia settings from the API.

Also applies to: 28-222


224-225: Consistent diagnostic documentation.

The diagnostic comments about mo and shy wiki API redirects match those in Redirect.scala, providing helpful context.

@@ -1 +1 @@
<?xml version="1.0"?><api servedby="mw1194"><error code="missingtitle" info="The page you specified doesn&#039;t exist." xml:space="preserve">See https://ab.wikipedia.org/w/api.php for API usage.</error></api> No newline at end of file
<?xml version="1.0"?><api servedby="mw1281"><error code="missingtitle" info="The page you specified doesn&#039;t exist." xml:space="preserve">See https://ab.wikipedia.org/w/api.php for API usage. Subscribe to the mediawiki-api-announce mailing list at &amp;lt;https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce&amp;gt; for notice of API deprecations and breaking changes.</error></api> No newline at end of file
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major

Fix double-escaped angle brackets.

&amp;lt;/&amp;gt; will surface as literal “<…>” in the parsed error text. The API response uses <…>, so in XML we must encode them as &lt;/&gt;.

Apply this diff:

-<?xml version="1.0"?><api servedby="mw1281"><error code="missingtitle" info="The page you specified doesn&#039;t exist." xml:space="preserve">See https://ab.wikipedia.org/w/api.php for API usage. Subscribe to the mediawiki-api-announce mailing list at &amp;lt;https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce&amp;gt; for notice of API deprecations and breaking changes.</error></api>
+<?xml version="1.0"?><api servedby="mw1281"><error code="missingtitle" info="The page you specified doesn&#039;t exist." xml:space="preserve">See https://ab.wikipedia.org/w/api.php for API usage. Subscribe to the mediawiki-api-announce mailing list at &lt;https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce&gt; for notice of API deprecations and breaking changes.</error></api>
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
<?xml version="1.0"?><api servedby="mw1281"><error code="missingtitle" info="The page you specified doesn&#039;t exist." xml:space="preserve">See https://ab.wikipedia.org/w/api.php for API usage. Subscribe to the mediawiki-api-announce mailing list at &amp;lt;https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce&amp;gt; for notice of API deprecations and breaking changes.</error></api>
<?xml version="1.0"?><api servedby="mw1281"><error code="missingtitle" info="The page you specified doesn&#039;t exist." xml:space="preserve">See https://ab.wikipedia.org/w/api.php for API usage. Subscribe to the mediawiki-api-announce mailing list at &lt;https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce&gt; for notice of API deprecations and breaking changes.</error></api>
🤖 Prompt for AI Agents
In core/src/main/settings/abwiki-disambiguation-templates.xml around line 1, the
API error text contains double-escaped angle brackets (&amp;lt; and &amp;gt;)
which will render as literal “&lt;…&gt;”; replace those sequences with the
correct XML escapes &lt; and &gt; so the API message displays real angle
brackets, preserving the rest of the error text and XML structure.

@@ -1 +1 @@
<?xml version="1.0"?><api servedby="mw1289"><error code="missingtitle" info="The page you specified doesn&#039;t exist." xml:space="preserve">See https://av.wikipedia.org/w/api.php for API usage.</error></api> No newline at end of file
<?xml version="1.0"?><api servedby="mw1342"><error code="missingtitle" info="The page you specified doesn&#039;t exist." xml:space="preserve">See https://av.wikipedia.org/w/api.php for API usage. Subscribe to the mediawiki-api-announce mailing list at &amp;lt;https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce&amp;gt; for notice of API deprecations and breaking changes.</error></api> No newline at end of file
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major

Adjust entity encoding for the URL delimiters.

&amp;lt; / &amp;gt; will surface as &lt; / &gt;. Replace with single-escaped &lt; / &gt; so the message is readable.

🤖 Prompt for AI Agents
In core/src/main/settings/avwiki-disambiguation-templates.xml around lines 1 to
1, the URL delimiter entities are double-escaped as "&amp;lt;" and "&amp;gt;"
which render as "&lt;" and "&gt;" in the output; replace those with
single-escaped XML entities "&lt;" and "&gt;" respectively so the angle brackets
display correctly, taking care not to alter other escaped content or break the
surrounding XML declaration.

@@ -1 +1 @@
<?xml version="1.0"?><api servedby="mw1286"><error code="missingtitle" info="The page you specified doesn&#039;t exist." xml:space="preserve">See https://azb.wikipedia.org/w/api.php for API usage.</error></api> No newline at end of file
<?xml version="1.0"?><api servedby="mw1281"><error code="missingtitle" info="The page you specified doesn&#039;t exist." xml:space="preserve">See https://azb.wikipedia.org/w/api.php for API usage. Subscribe to the mediawiki-api-announce mailing list at &amp;lt;https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce&amp;gt; for notice of API deprecations and breaking changes.</error></api> No newline at end of file
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major

Fix double-escaped angle brackets.

&amp;lt; / &amp;gt; decode to the literal text &lt; / &gt;, so the error string now shows HTML entities instead of <https://…>. Replace them with &lt; / &gt; so the API message renders correctly.

-...mailman/listinfo/mediawiki-api-announce&amp;gt; for...
+...mailman/listinfo/mediawiki-api-announce&gt; for...

(Also fix the opening entity similarly.)

Committable suggestion skipped: line range outside the PR's diff.

🤖 Prompt for AI Agents
In core/src/main/settings/azbwiki-disambiguation-templates.xml around lines 1 to
1, the API error string contains double-escaped angle brackets using &amp;lt;
and &amp;gt; (and the opening entity is similarly doubled), causing the literal
text "&lt;" / "&gt;" to appear instead of actual HTML entities; replace the
double-escaped sequences (&amp;lt; and &amp;gt; and any other &amp;amp;...
occurrences) with the correct single-escaped entities (&lt; and &gt;) so the URL
displays as <https://…> when rendered.

@@ -1 +1 @@
<?xml version="1.0"?><api><parse title="MediaWiki:Disambiguationspage" pageid="371"><links><pl ns="10" exists="" xml:space="preserve">Şablon:Dəqiqləşdirmə</pl></links></parse></api> No newline at end of file
<?xml version="1.0"?><api><parse title="MediaViki:Disambiguationspage" pageid="371"><links><pl ns="10" exists="" xml:space="preserve">Şablon:Dəqiqləşdirmə</pl></links></parse></api> No newline at end of file
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🔴 Critical

Restore the correct MediaWiki namespace.

The <parse title> changed to MediaViki:Disambiguationspage, but MediaWiki content namespaces must keep the exact MediaWiki: prefix. This typo breaks lookup of the canonical configuration page (MediaWiki:Disambiguationspage), so downstream code will miss the disambiguation templates for azwiki.

Apply this diff to revert the typo:

-<api><parse title="MediaViki:Disambiguationspage" pageid="371"><links>
+<api><parse title="MediaWiki:Disambiguationspage" pageid="371"><links>
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
<?xml version="1.0"?><api><parse title="MediaViki:Disambiguationspage" pageid="371"><links><pl ns="10" exists="" xml:space="preserve">Şablon:Dəqiqləşdirmə</pl></links></parse></api>
<?xml version="1.0"?><api><parse title="MediaWiki:Disambiguationspage" pageid="371"><links><pl ns="10" exists="" xml:space="preserve">Şablon:Dəqiqləşdirmə</pl></links></parse></api>
🤖 Prompt for AI Agents
In core/src/main/settings/azwiki-disambiguation-templates.xml around lines 1 to
1, the parse title incorrectly uses "MediaViki:Disambiguationspage" instead of
the required "MediaWiki:Disambiguationspage", breaking namespace lookup; update
the <parse title="..."> attribute to the exact "MediaWiki:Disambiguationspage"
string so the canonical configuration page is found and disambiguation templates
are correctly loaded.

@@ -1 +1 @@
<?xml version="1.0"?><api servedby="mw1287"><error code="missingtitle" info="The page you specified doesn&#039;t exist." xml:space="preserve">See https://bh.wikipedia.org/w/api.php for API usage.</error></api> No newline at end of file
<?xml version="1.0"?><api servedby="mw1345"><error code="missingtitle" info="The page you specified doesn&#039;t exist." xml:space="preserve">See https://bh.wikipedia.org/w/api.php for API usage. Subscribe to the mediawiki-api-announce mailing list at &amp;lt;https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce&amp;gt; for notice of API deprecations and breaking changes.</error></api> No newline at end of file
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major

Angle brackets should be escaped only once.

&amp;lt;…&amp;gt; renders literally; use &lt;…&gt; to show the bracketed URL. Please align with the API’s actual message and fix across the generated files.

🤖 Prompt for AI Agents
In core/src/main/settings/bhwiki-disambiguation-templates.xml around lines 1 to
1, the angle brackets in the embedded URL are double-escaped as &amp;lt; and
&amp;gt;; update the content to use single-escaped XML entities &lt; and &gt;
(so the URL appears as &lt;https://lists.wikimedia.org/...&gt;) and apply the
same change across all generated files produced by the template generator;
locate and fix the generator or template that produces the double-escaping so it
emits single XML escapes for angle brackets and regenerate affected files.

@@ -1 +1 @@
<?xml version="1.0"?><api servedby="mw1289"><error code="missingtitle" info="The page you specified doesn&#039;t exist." xml:space="preserve">See https://en.wikipedia.org/w/api.php for API usage.</error></api> No newline at end of file
<?xml version="1.0"?><api servedby="mw1392"><error code="missingtitle" info="The page you specified doesn&#039;t exist." xml:space="preserve">See https://en.wikipedia.org/w/api.php for API usage. Subscribe to the mediawiki-api-announce mailing list at &amp;lt;https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce&amp;gt; for notice of API deprecations and breaking changes.</error></api> No newline at end of file
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major

Double-escaped brackets need correction.

Ensure the <https://…> URL renders correctly by using &lt; / &gt; instead of &amp;lt; / &amp;gt;. Please fix here and in the sibling files generated by this update.

🤖 Prompt for AI Agents
In core/src/main/settings/enwiki-disambiguation-templates.xml around lines 1 to
1 the URL angle brackets are double-escaped ("&amp;lt;" and "&amp;gt;") so the
link renders literally; replace "&amp;lt;" with "&lt;" and "&amp;gt;" with
"&gt;" for the <https://lists.wikimedia.org/...> fragment, and apply the same
replacement to any sibling files produced by this update to ensure the URL
renders correctly.

@@ -1 +1 @@
<?xml version="1.0"?><api servedby="mw1278"><error code="missingtitle" info="The page you specified doesn&#039;t exist." xml:space="preserve">See https://ext.wikipedia.org/w/api.php for API usage.</error></api> No newline at end of file
<?xml version="1.0"?><api servedby="mw1358"><error code="missingtitle" info="The page you specified doesn&#039;t exist." xml:space="preserve">See https://ext.wikipedia.org/w/api.php for API usage. Subscribe to the mediawiki-api-announce mailing list at &amp;lt;https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce&amp;gt; for notice of API deprecations and breaking changes.</error></api> No newline at end of file
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major

Fix the escaped angle brackets in the message.

Convert the &amp;lt; / &amp;gt; pair to &lt; / &gt; to avoid showing entity names verbatim.

🤖 Prompt for AI Agents
In core/src/main/settings/extwiki-disambiguation-templates.xml around lines 1 to
1 the API error message contains doubly-escaped angle brackets (&amp;lt; and
&amp;gt;) which display entity names verbatim; replace the &amp;lt;...&amp;gt;
pair with proper XML entities &lt;...&gt; (e.g.
&amp;lt;https://lists.wikimedia.org/...&amp;gt; ->
&lt;https://lists.wikimedia.org/...&gt;) and scan nearby text for other
double-escaped entities to correct them.

@@ -1 +1 @@
<?xml version="1.0"?><api servedby="mw1223"><error code="missingtitle" info="The page you specified doesn&#039;t exist." xml:space="preserve">See https://got.wikipedia.org/w/api.php for API usage.</error></api> No newline at end of file
<?xml version="1.0"?><api servedby="mw1363"><error code="missingtitle" info="The page you specified doesn&#039;t exist." xml:space="preserve">See https://got.wikipedia.org/w/api.php for API usage. Subscribe to the mediawiki-api-announce mailing list at &amp;lt;https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce&amp;gt; for notice of API deprecations and breaking changes.</error></api> No newline at end of file
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major

Fix the double-escaped angle brackets.

Inside the error text we now emit &amp;lt;…&amp;gt;, which decodes to the literal string &lt;…&gt; instead of <…>. Replace these with &lt;…&gt; so the rendered message matches the live API response. Apply the same fix everywhere this auto-update introduced the double escape.

@@ -1 +1 @@
<?xml version="1.0"?><api servedby="mw1276"><error code="missingtitle" info="The page you specified doesn&#039;t exist." xml:space="preserve">See https://gu.wikipedia.org/w/api.php for API usage.</error></api> No newline at end of file
<?xml version="1.0"?><api servedby="mw1314"><error code="missingtitle" info="The page you specified doesn&#039;t exist." xml:space="preserve">See https://gu.wikipedia.org/w/api.php for API usage. Subscribe to the mediawiki-api-announce mailing list at &amp;lt;https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce&amp;gt; for notice of API deprecations and breaking changes.</error></api> No newline at end of file
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major

Correct the URL markup escape sequence.

Please change &amp;lt; / &amp;gt; back to &lt; / &gt; so the end users see <https://…> as intended.

🤖 Prompt for AI Agents
In core/src/main/settings/guwiki-disambiguation-templates.xml around lines 1 to
1 the API error message contains HTML-escaped angle brackets using &amp;lt; and
&amp;gt;; replace those sequences with the proper XML/HTML escapes &lt; and &gt;
so the URL renders as <https://…> for end users (update the text node to use
&lt;https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce&gt;).

@@ -1 +1 @@
<?xml version="1.0"?><api servedby="mw1195"><error code="missingtitle" info="The page you specified doesn&#039;t exist." xml:space="preserve">See https://haw.wikipedia.org/w/api.php for API usage.</error></api> No newline at end of file
<?xml version="1.0"?><api servedby="mw1363"><error code="missingtitle" info="The page you specified doesn&#039;t exist." xml:space="preserve">See https://haw.wikipedia.org/w/api.php for API usage. Subscribe to the mediawiki-api-announce mailing list at &amp;lt;https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce&amp;gt; for notice of API deprecations and breaking changes.</error></api> No newline at end of file
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major

Correct the escaped URL delimiters.

Replace &amp;lt; / &amp;gt; with &lt; / &gt; so consumers see <https://…> rather than the literal entity names. Propagate the fix to other updated templates.

🤖 Prompt for AI Agents
core/src/main/settings/hawwiki-disambiguation-templates.xml lines 1-1: the XML
contains HTML-escaped literal ampersand entities for angle brackets (&amp;lt;
and &amp;gt;) in the API error message; replace those occurrences with the
correct XML entities &lt; and &gt; so the URL appears as <https://…> to
consumers, and propagate the same replacement to any other updated template
files that use &amp;lt; / &amp;gt; to ensure consistent rendering.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants