mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-12-21 04:15:36 +00:00
f1edc47050
Since92f5cfd8
we support "mw-notalk" to suppressing comment detection in pages or sections. Until now, it only worked when the comment timestamp was surrounded by a marked element. However, when a marked element was directly adjacent to a comment, it would sometimes become a part of the comment range. This can no longer happen now. Existing use cases for this were the {{outdent}} and {{tracked}} templates, which we handle specially since50ad5bb2
andddd391b6
. It's a bit ugly to hardcode specific templates like that, and this provides a better solution for the future. The added test case displays some other potential uses. Bug: T324132 Change-Id: I7ffd299ef5957b35da8d01f9a0ed5a7a9a78be83
67 lines
2.4 KiB
JSON
67 lines
2.4 KiB
JSON
[
|
|
{
|
|
"name": "plwiki oldparser",
|
|
"title": "Wikipedia:Kawiarenka/Artykuły dyskusja/Archiwum/2018-październik",
|
|
"dom": "cases/pl-big-oldparser/pl-big-oldparser.html",
|
|
"expected": "../cases/pl-big-oldparser/pl-big-oldparser-getText.json",
|
|
"config": "../data/plwiki-config.json",
|
|
"data": "../data/plwiki-data.json"
|
|
},
|
|
{
|
|
"name": "plwiki parsoid",
|
|
"title": "Wikipedia:Kawiarenka/Artykuły dyskusja/Archiwum/2018-październik",
|
|
"dom": "cases/pl-big-parsoid/pl-big-parsoid.html",
|
|
"expected": "../cases/pl-big-parsoid/pl-big-parsoid-getText.json",
|
|
"config": "../data/plwiki-config.json",
|
|
"data": "../data/plwiki-data.json"
|
|
},
|
|
{
|
|
"name": "enwiki oldparser",
|
|
"title": "Wikipedia:Village pump (technical)/Archive 175",
|
|
"dom": "cases/en-big-oldparser/en-big-oldparser.html",
|
|
"expected": "../cases/en-big-oldparser/en-big-oldparser-getText.json",
|
|
"config": "../data/enwiki-config.json",
|
|
"data": "../data/enwiki-data.json"
|
|
},
|
|
{
|
|
"name": "enwiki parsoid",
|
|
"title": "Wikipedia:Village pump (technical)/Archive 175",
|
|
"dom": "cases/en-big-parsoid/en-big-parsoid.html",
|
|
"expected": "../cases/en-big-parsoid/en-big-parsoid-getText.json",
|
|
"config": "../data/enwiki-config.json",
|
|
"data": "../data/enwiki-data.json"
|
|
},
|
|
{
|
|
"name": "ckbwiki oldparser",
|
|
"title": "ویکیپیدیا:دیوەخان (پێشنیارەکان)",
|
|
"dom": "cases/ckb-big-oldparser/ckb-big-oldparser.html",
|
|
"expected": "../cases/ckb-big-oldparser/ckb-big-oldparser-getText.json",
|
|
"config": "../data/ckbwiki-config.json",
|
|
"data": "../data/ckbwiki-data.json"
|
|
},
|
|
{
|
|
"name": "ckbwiki parsoid",
|
|
"title": "ویکیپیدیا:دیوەخان (پێشنیارەکان)",
|
|
"dom": "cases/ckb-big-parsoid/ckb-big-parsoid.html",
|
|
"expected": "../cases/ckb-big-parsoid/ckb-big-parsoid-getText.json",
|
|
"config": "../data/ckbwiki-config.json",
|
|
"data": "../data/ckbwiki-data.json"
|
|
},
|
|
{
|
|
"name": "tracked template",
|
|
"title": "Commons talk:SPARQL query service",
|
|
"dom": "cases/tracked-template/tracked-template.html",
|
|
"expected": "../cases/tracked-template/tracked-template-getText.json",
|
|
"config": "../data/commonswiki-config.json",
|
|
"data": "../data/commonswiki-data.json"
|
|
},
|
|
{
|
|
"name": "suppressed talk classes",
|
|
"title": "User_talk:ESanders_(WMF)/suppressed-talk",
|
|
"dom": "cases/suppressed-talk/suppressed-talk.html",
|
|
"expected": "../cases/suppressed-talk/suppressed-talk-getText.json",
|
|
"config": "../data/enwiki-config.json",
|
|
"data": "../data/enwiki-data.json"
|
|
}
|
|
]
|