Markus-Rost / Markus-Rost/discord-wiki-bot

Inconsistent link embeds with [[]] and {{}}

Open
#235 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
92
Forks
52
PR merge metrics
No merged PRs in 30d

Description

When requesting a URL with [[<page>]] or {{<page>}} the bot usually doesn't show the page embed. However, this is inconsistent when the bot has to "think".

Expected result:
[[Template:Babel]], {{Babel}}, and {{Template:Babel}} all return the same link without any embeds shown

Actual result:
The embed is visible when using {{Template:Babel}}

Affected versions:

  • Fandom MediaWiki pages (Tested on multiple wikis, including CC)
  • wikipedia.org

Additional remarks:

  • The bot "thinks" (reacts with ⌛ ) before sending the link with the embed visible
  • The bot responds with the link for the page Babel (instead of Template:Babel) when requesting {{Babel}} on wikipedia.org

image

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no files, tests, or entry points. Reproduce the three Babel link syntaxes on the affected MediaWiki sites, then trace the bot's link-resolution and embed handling; done means all three return the same link without an embed and avoid resolving {{Babel}} incorrectly.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.