-
Notifications
You must be signed in to change notification settings - Fork 287
auto-update wikipedia settings #703
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
|
SonarCloud Quality Gate failed.
|
|
@coderabbitai full review |
✅ Actions performedFull review triggered. |
WalkthroughBulk 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
Sequence Diagram(s)Estimated code review effort🎯 3 (Moderate) | ⏱️ ~30 minutes Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this 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 themissingtitleAPI 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
📒 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: LGTMThe 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
servedbyvalue and extended deprecation notice keep this template aligned with the current API response.core/src/main/settings/dewiki-disambiguation-templates.xml (1)
1-1: LGTMServedby 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
&lt;/&gt;in the error string will surface as<...>to downstream consumers. MediaWiki’s payload uses<...>(encoded once as</>in XML), so we should keep a single escape. Please change these entities back to<and>to match the API response.-... mailing list at &lt;https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce&gt; ... +... mailing list at <https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce> ...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
moandshywikis 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 fromwikidata_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
moandshywiki 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'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'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> No newline at end of file | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix double-escaped angle brackets.
&lt;/&gt; will surface as literal “<…>” in the parsed error text. The API response uses <…>, so in XML we must encode them as </>.
Apply this diff:
-<?xml version="1.0"?><api servedby="mw1281"><error code="missingtitle" info="The page you specified doesn'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>
+<?xml version="1.0"?><api servedby="mw1281"><error code="missingtitle" info="The page you specified doesn'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 <https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce> 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.
| <?xml version="1.0"?><api servedby="mw1281"><error code="missingtitle" info="The page you specified doesn'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> | |
| <?xml version="1.0"?><api servedby="mw1281"><error code="missingtitle" info="The page you specified doesn'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 <https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce> 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 (&lt; and &gt;)
which will render as literal “<…>”; replace those sequences with the
correct XML escapes < and > 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'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'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 &lt;https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce&gt; for notice of API deprecations and breaking changes.</error></api> No newline at end of file | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adjust entity encoding for the URL delimiters.
&lt; / &gt; will surface as < / >. Replace with single-escaped < / > 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 "&lt;" and "&gt;"
which render as "<" and ">" in the output; replace those with
single-escaped XML entities "<" and ">" 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'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'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 &lt;https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce&gt; for notice of API deprecations and breaking changes.</error></api> No newline at end of file | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix double-escaped angle brackets.
&lt; / &gt; decode to the literal text < / >, so the error string now shows HTML entities instead of <https://…>. Replace them with < / > so the API message renders correctly.
-...mailman/listinfo/mediawiki-api-announce&gt; for...
+...mailman/listinfo/mediawiki-api-announce> 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 &lt;
and &gt; (and the opening entity is similarly doubled), causing the literal
text "<" / ">" to appear instead of actual HTML entities; replace the
double-escaped sequences (&lt; and &gt; and any other &amp;...
occurrences) with the correct single-escaped entities (< and >) 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 | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
| <?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'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'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 &lt;https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce&gt; for notice of API deprecations and breaking changes.</error></api> No newline at end of file | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Angle brackets should be escaped only once.
&lt;…&gt; renders literally; use <…> 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 &lt; and
&gt;; update the content to use single-escaped XML entities < and >
(so the URL appears as <https://lists.wikimedia.org/...>) 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'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'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 &lt;https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce&gt; for notice of API deprecations and breaking changes.</error></api> No newline at end of file | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Double-escaped brackets need correction.
Ensure the <https://…> URL renders correctly by using < / > instead of &lt; / &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 ("&lt;" and "&gt;") so the
link renders literally; replace "&lt;" with "<" and "&gt;" with
">" 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'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'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 &lt;https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce&gt; for notice of API deprecations and breaking changes.</error></api> No newline at end of file | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix the escaped angle brackets in the message.
Convert the &lt; / &gt; pair to < / > 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 (&lt; and
&gt;) which display entity names verbatim; replace the &lt;...&gt;
pair with proper XML entities <...> (e.g.
&lt;https://lists.wikimedia.org/...&gt; ->
<https://lists.wikimedia.org/...>) 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'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'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 &lt;https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce&gt; for notice of API deprecations and breaking changes.</error></api> No newline at end of file | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix the double-escaped angle brackets.
Inside the error text we now emit &lt;…&gt;, which decodes to the literal string <…> instead of <…>. Replace these with <…> 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'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'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 &lt;https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce&gt; for notice of API deprecations and breaking changes.</error></api> No newline at end of file | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Correct the URL markup escape sequence.
Please change &lt; / &gt; back to < / > 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 &lt; and
&gt;; replace those sequences with the proper XML/HTML escapes < and >
so the URL renders as <https://…> for end users (update the text node to use
<https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce>).
| @@ -1 +1 @@ | |||
| <?xml version="1.0"?><api servedby="mw1195"><error code="missingtitle" info="The page you specified doesn'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'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 &lt;https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce&gt; for notice of API deprecations and breaking changes.</error></api> No newline at end of file | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Correct the escaped URL delimiters.
Replace &lt; / &gt; with < / > 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 (&lt;
and &gt;) in the API error message; replace those occurrences with the
correct XML entities < and > so the URL appears as <https://…> to
consumers, and propagate the same replacement to any other updated template
files that use &lt; / &gt; to ensure consistent rendering.
This PR (auto) updates all wikipedia settings from the Wikipedia API and adds newly added wikipedia languages
Summary by CodeRabbit