mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-30 11:07:24 +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
16 lines
1.1 KiB
JSON
16 lines
1.1 KiB
JSON
{
|
|
"h-No_talk_section": "No talk section",
|
|
"h-Archived_section-2022-03-10T14:30:00.000Z": "Archived section",
|
|
"c-DTDummyUserAlice-2022-03-10T14:30:00.000Z-Archived_section": "Comment 1.",
|
|
"c-DTDummyUserBob-2022-03-10T14:40:00.000Z-DTDummyUserAlice-2022-03-10T14:30:00.000Z": "Comment 2.",
|
|
"c-DTDummyUserEve-2022-03-10T14:50:00.000Z-DTDummyUserBob-2022-03-10T14:40:00.000Z": "Comment 3.",
|
|
"h-Normal_talk_section-2022-03-10T15:30:00.000Z": "Normal talk section",
|
|
"c-DTDummyUserAlice-2022-03-10T15:30:00.000Z-Normal_talk_section": "Comment 4",
|
|
"c-DTDummyUserBob-2022-03-10T15:40:00.000Z-DTDummyUserAlice-2022-03-10T15:30:00.000Z": "Comment 5.",
|
|
"c-DTDummyUserEve-2022-03-10T15:50:00.000Z-DTDummyUserBob-2022-03-10T15:40:00.000Z": "Comment 6.",
|
|
"h-Talk_section_with_notalk_fragments-2022-03-10T16:30:00.000Z": "Talk section with notalk fragments",
|
|
"c-DTDummyUserAlice-2022-03-10T16:30:00.000Z-Talk_section_with_notalk_fragments": "Comment 7",
|
|
"c-DTDummyUserBob-2022-03-10T16:40:00.000Z-DTDummyUserAlice-2022-03-10T16:30:00.000Z": "Comment 8.",
|
|
"c-DTDummyUserEve-2022-03-10T16:50:00.000Z-DTDummyUserBob-2022-03-10T16:40:00.000Z": "Comment 9."
|
|
}
|