You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<Sopel> [wikipedia] Gurmukhi - Letters | "This article contains IPA phonetic symbols. Without proper rendering
support, you may see question marks, boxes, or other symbols instead of Unicode characters. For an
introductory guide on IPA symbols, see Help:IPA. The Gurmukhī alphabet contains thirty-five base letters
(akkhara, plural akkharā̃), traditionally arranged in seven rows of five letters each. The first three
letters, or mātarā vāhak ("vowel […]"
The leading text there ("This article contains IPA" through "see Help:IPA.") comes from a message box template. Wikipedia (the English version, at least) has many such templates for IPA, various non-Roman scripts, and numerous categories of "issues" with articles such as insufficient sources. They're good for informing users about potential problems with rendering, or pointing out ways that the reader could help improve the page if they have the required knowledge. However, it's not useful to output them as part of the page snippet on IRC.
Preliminary research indicates that they generally use the Message box Lua module as a template base, and therefore filtering out <table>s with one of these seven class names (modified quote from a snippet of Mbox docs) should skip most of them:
ambox, for messageboxes on article pages.
cmbox, for messageboxes on category pages.
imbox, for messageboxes on file (image) pages.
tmbox, for messageboxes on talk pages.
fmbox, for header and footer messageboxes.
ombox, for messageboxes on other types of page.
mbox, for messageboxes that are used in different namespaces and change their presentation accordingly.
The plugin's parser logic already provides for skipping over irrelevant content; it shouldn't be too painful to add these boxes.
The text was updated successfully, but these errors were encountered:
dgw
added
the
Bug
Things to squish; generally used for issues
label
Jul 14, 2021
As of this writing, the issue is easily reproduced by sending a link to https://en.wikipedia.org/wiki/Gurmukhi#Letters in a channel where Sopel and the
wikipedia
plugin will see it:The leading text there ("This article contains IPA" through "see Help:IPA.") comes from a message box template. Wikipedia (the English version, at least) has many such templates for IPA, various non-Roman scripts, and numerous categories of "issues" with articles such as insufficient sources. They're good for informing users about potential problems with rendering, or pointing out ways that the reader could help improve the page if they have the required knowledge. However, it's not useful to output them as part of the page snippet on IRC.
Preliminary research indicates that they generally use the Message box Lua module as a template base, and therefore filtering out
<table>
s with one of these seven class names (modified quote from a snippet of Mbox docs) should skip most of them:ambox
, for messageboxes on article pages.cmbox
, for messageboxes on category pages.imbox
, for messageboxes on file (image) pages.tmbox
, for messageboxes on talk pages.fmbox
, for header and footer messageboxes.ombox
, for messageboxes on other types of page.mbox
, for messageboxes that are used in different namespaces and change their presentation accordingly.The plugin's parser logic already provides for skipping over irrelevant content; it shouldn't be too painful to add these boxes.
The text was updated successfully, but these errors were encountered: