mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-12-23 21:33:48 +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
166 lines
31 KiB
HTML
166 lines
31 KiB
HTML
<div class="mw-parser-output">
|
|
<div class="mw-heading mw-heading2 ext-discussiontools-init-section"><h2><span class="mw-headline" id="No_talk_section" data-mw-thread-id="h-No_talk_section"><span data-mw-comment-start="" id="h-No_talk_section"></span>No talk section<span data-mw-comment-end="h-No_talk_section"></span></span></h2></div>
|
|
<div class="mw-notalk">
|
|
<ul><li>Vote 1. <a href="/wiki/User:DTDummyUserAlice" title="User:DTDummyUserAlice">DTDummyUserAlice</a> (<a href="/wiki/User_talk:DTDummyUserAlice" title="User talk:DTDummyUserAlice">talk</a>) 13:30, 10 March 2022 (UTC)</li>
|
|
<li>Vote 2. <a href="/wiki/User:DTDummyUserBob" title="User:DTDummyUserBob">DTDummyUserBob</a> (<a href="/wiki/User_talk:DTDummyUserBob" title="User talk:DTDummyUserBob">talk</a>) 13:40, 10 March 2022 (UTC)</li>
|
|
<li>Vote 3. <a href="/wiki/User:DTDummyUserEve" title="User:DTDummyUserEve">DTDummyUserEve</a> (<a href="/wiki/User_talk:DTDummyUserEve" title="User talk:DTDummyUserEve">talk</a>) 13:50, 10 March 2022 (UTC)</li></ul>
|
|
</div>
|
|
<div class="mw-archivedtalk" style="background: lightblue; padding: 20px; border: 1px solid blue;">
|
|
<div class="mw-heading mw-heading2 ext-discussiontools-init-section"><h2><span class="ext-discussiontools-init-section-subscribe mw-editsection-like"><span class="ext-discussiontools-init-section-subscribe-bracket">[</span><a href="/w/index.php?title=User_talk:ESanders_(WMF)/suppressed-talk&action=dtsubscribe&commentname=h-DTDummyUserAlice-2022-03-10T14%3A30%3A00.000Z&section=Archived+section" class="ext-discussiontools-init-section-subscribe-link" role="button" tabindex="0" title="(discussiontools-topicsubscription-button-subscribe-tooltip)">(discussiontools-topicsubscription-button-subscribe)</a><span class="ext-discussiontools-init-section-subscribe-bracket">]</span></span><span class="mw-headline" id="Archived_section" data-mw-thread-id="h-Archived_section-2022-03-10T14:30:00.000Z"><span data-mw-comment-start="" id="h-Archived_section-2022-03-10T14:30:00.000Z"></span>Archived section<span data-mw-comment-end="h-Archived_section-2022-03-10T14:30:00.000Z"></span></span></h2><div class="ext-discussiontools-init-section-bar"><div class="ext-discussiontools-init-section-metadata"><span class='ext-discussiontools-init-section-metaitem ext-discussiontools-init-section-timestampLabel'>(discussiontools-topicheader-latestcomment: <a href="#c-DTDummyUserEve-2022-03-10T14:50:00.000Z-DTDummyUserBob-2022-03-10T14:40:00.000Z">1646923800</a>)</span><span class='ext-discussiontools-init-section-metaitem ext-discussiontools-init-section-commentCountLabel'>(discussiontools-topicheader-commentcount: 3)</span><span class='ext-discussiontools-init-section-metaitem ext-discussiontools-init-section-authorCountLabel'>(discussiontools-topicheader-authorcount: 3)</span></div><div class="ext-discussiontools-init-section-actions"><span class='ext-discussiontools-init-section-subscribeButton oo-ui-widget oo-ui-widget-enabled oo-ui-buttonElement oo-ui-buttonElement-frameless oo-ui-iconElement oo-ui-labelElement oo-ui-flaggedElement-progressive oo-ui-buttonWidget' data-ooui='{"_":"OO.ui.ButtonWidget","href":"\/w\/index.php?title=User_talk:ESanders_(WMF)\/suppressed-talk&action=dtsubscribe&commentname=h-DTDummyUserAlice-2022-03-10T14%3A30%3A00.000Z&section=Archived+section","rel":["nofollow"],"framed":false,"icon":"bellOutline","label":"(discussiontools-topicsubscription-button-subscribe-label)","title":"(discussiontools-topicsubscription-button-subscribe-tooltip)","flags":["progressive"],"classes":["ext-discussiontools-init-section-subscribeButton"]}'><a role='button' title='(discussiontools-topicsubscription-button-subscribe-tooltip)' tabindex='0' href='/w/index.php?title=User_talk:ESanders_(WMF)/suppressed-talk&action=dtsubscribe&commentname=h-DTDummyUserAlice-2022-03-10T14%3A30%3A00.000Z&section=Archived+section' rel='nofollow' class='oo-ui-buttonElement-button'><span class='oo-ui-iconElement-icon oo-ui-icon-bellOutline oo-ui-image-progressive'></span><span class='oo-ui-labelElement-label'>(discussiontools-topicsubscription-button-subscribe-label)</span><span class='oo-ui-indicatorElement-indicator oo-ui-indicatorElement-noIndicator oo-ui-image-progressive'></span></a></span></div></div></div>
|
|
<p><span data-mw-comment-start="" id="c-DTDummyUserAlice-2022-03-10T14:30:00.000Z-Archived_section"></span>Comment 1. <a href="/wiki/User:DTDummyUserAlice" title="User:DTDummyUserAlice">DTDummyUserAlice</a> (<a href="/wiki/User_talk:DTDummyUserAlice" title="User talk:DTDummyUserAlice">talk</a>) <a href="https://example.org/wiki/User_talk:ESanders_(WMF)/suppressed-talk#c-DTDummyUserAlice-2022-03-10T14:30:00.000Z-Archived_section" class="ext-discussiontools-init-timestamplink">14:30, 10 March 2022 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-DTDummyUserAlice-2022-03-10T14:30:00.000Z-Archived_section"><span class="ext-discussiontools-init-replybutton oo-ui-widget oo-ui-widget-enabled oo-ui-buttonElement oo-ui-buttonElement-frameless oo-ui-iconElement oo-ui-labelElement oo-ui-flaggedElement-progressive oo-ui-buttonWidget" data-ooui='{"_":"OO.ui.ButtonWidget","rel":["nofollow"],"framed":false,"icon":"share","label":"(discussiontools-replybutton)","flags":["progressive"],"classes":["ext-discussiontools-init-replybutton"]}'><a role="button" tabindex="0" rel="nofollow" class="oo-ui-buttonElement-button"><span class="oo-ui-iconElement-icon oo-ui-icon-share oo-ui-image-progressive"></span><span class="oo-ui-labelElement-label">(discussiontools-replybutton)</span><span class="oo-ui-indicatorElement-indicator oo-ui-indicatorElement-noIndicator oo-ui-image-progressive"></span></a></span><span class="ext-discussiontools-init-replylink-bracket">[</span><a class="ext-discussiontools-init-replylink-reply" role="button" tabindex="0" href="">(discussiontools-replylink)</a><span class="ext-discussiontools-init-replylink-bracket">]</span></span><span data-mw-comment-end="c-DTDummyUserAlice-2022-03-10T14:30:00.000Z-Archived_section"></span>
|
|
</p>
|
|
<dl><dd><span data-mw-comment-start="" id="c-DTDummyUserBob-2022-03-10T14:40:00.000Z-DTDummyUserAlice-2022-03-10T14:30:00.000Z"></span>Comment 2. <a href="/wiki/User:DTDummyUserBob" title="User:DTDummyUserBob">DTDummyUserBob</a> (<a href="/wiki/User_talk:DTDummyUserBob" title="User talk:DTDummyUserBob">talk</a>) <a href="https://example.org/wiki/User_talk:ESanders_(WMF)/suppressed-talk#c-DTDummyUserBob-2022-03-10T14:40:00.000Z-DTDummyUserAlice-2022-03-10T14:30:00.000Z" class="ext-discussiontools-init-timestamplink">14:40, 10 March 2022 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-DTDummyUserBob-2022-03-10T14:40:00.000Z-DTDummyUserAlice-2022-03-10T14:30:00.000Z"><span class="ext-discussiontools-init-replybutton oo-ui-widget oo-ui-widget-enabled oo-ui-buttonElement oo-ui-buttonElement-frameless oo-ui-iconElement oo-ui-labelElement oo-ui-flaggedElement-progressive oo-ui-buttonWidget" data-ooui='{"_":"OO.ui.ButtonWidget","rel":["nofollow"],"framed":false,"icon":"share","label":"(discussiontools-replybutton)","flags":["progressive"],"classes":["ext-discussiontools-init-replybutton"]}'><a role="button" tabindex="0" rel="nofollow" class="oo-ui-buttonElement-button"><span class="oo-ui-iconElement-icon oo-ui-icon-share oo-ui-image-progressive"></span><span class="oo-ui-labelElement-label">(discussiontools-replybutton)</span><span class="oo-ui-indicatorElement-indicator oo-ui-indicatorElement-noIndicator oo-ui-image-progressive"></span></a></span><span class="ext-discussiontools-init-replylink-bracket">[</span><a class="ext-discussiontools-init-replylink-reply" role="button" tabindex="0" href="">(discussiontools-replylink)</a><span class="ext-discussiontools-init-replylink-bracket">]</span></span><span data-mw-comment-end="c-DTDummyUserBob-2022-03-10T14:40:00.000Z-DTDummyUserAlice-2022-03-10T14:30:00.000Z"></span>
|
|
<dl><dd><span data-mw-comment-start="" id="c-DTDummyUserEve-2022-03-10T14:50:00.000Z-DTDummyUserBob-2022-03-10T14:40:00.000Z"></span>Comment 3. <a href="/wiki/User:DTDummyUserEve" title="User:DTDummyUserEve">DTDummyUserEve</a> (<a href="/wiki/User_talk:DTDummyUserEve" title="User talk:DTDummyUserEve">talk</a>) <a href="https://example.org/wiki/User_talk:ESanders_(WMF)/suppressed-talk#c-DTDummyUserEve-2022-03-10T14:50:00.000Z-DTDummyUserBob-2022-03-10T14:40:00.000Z" class="ext-discussiontools-init-timestamplink">14:50, 10 March 2022 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-DTDummyUserEve-2022-03-10T14:50:00.000Z-DTDummyUserBob-2022-03-10T14:40:00.000Z"><span class="ext-discussiontools-init-replybutton oo-ui-widget oo-ui-widget-enabled oo-ui-buttonElement oo-ui-buttonElement-frameless oo-ui-iconElement oo-ui-labelElement oo-ui-flaggedElement-progressive oo-ui-buttonWidget" data-ooui='{"_":"OO.ui.ButtonWidget","rel":["nofollow"],"framed":false,"icon":"share","label":"(discussiontools-replybutton)","flags":["progressive"],"classes":["ext-discussiontools-init-replybutton"]}'><a role="button" tabindex="0" rel="nofollow" class="oo-ui-buttonElement-button"><span class="oo-ui-iconElement-icon oo-ui-icon-share oo-ui-image-progressive"></span><span class="oo-ui-labelElement-label">(discussiontools-replybutton)</span><span class="oo-ui-indicatorElement-indicator oo-ui-indicatorElement-noIndicator oo-ui-image-progressive"></span></a></span><span class="ext-discussiontools-init-replylink-bracket">[</span><a class="ext-discussiontools-init-replylink-reply" role="button" tabindex="0" href="">(discussiontools-replylink)</a><span class="ext-discussiontools-init-replylink-bracket">]</span></span><span data-mw-comment-end="c-DTDummyUserEve-2022-03-10T14:50:00.000Z-DTDummyUserBob-2022-03-10T14:40:00.000Z"></span></dd></dl></dd></dl>
|
|
</div>
|
|
<div class="mw-heading mw-heading2 ext-discussiontools-init-section"><h2><span class="ext-discussiontools-init-section-subscribe mw-editsection-like"><span class="ext-discussiontools-init-section-subscribe-bracket">[</span><a href="/w/index.php?title=User_talk:ESanders_(WMF)/suppressed-talk&action=dtsubscribe&commentname=h-DTDummyUserAlice-2022-03-10T15%3A30%3A00.000Z&section=Normal+talk+section" class="ext-discussiontools-init-section-subscribe-link" role="button" tabindex="0" title="(discussiontools-topicsubscription-button-subscribe-tooltip)">(discussiontools-topicsubscription-button-subscribe)</a><span class="ext-discussiontools-init-section-subscribe-bracket">]</span></span><span class="mw-headline" id="Normal_talk_section" data-mw-thread-id="h-Normal_talk_section-2022-03-10T15:30:00.000Z"><span data-mw-comment-start="" id="h-Normal_talk_section-2022-03-10T15:30:00.000Z"></span>Normal talk section<span data-mw-comment-end="h-Normal_talk_section-2022-03-10T15:30:00.000Z"></span></span></h2><div class="ext-discussiontools-init-section-bar"><div class="ext-discussiontools-init-section-metadata"><span class='ext-discussiontools-init-section-metaitem ext-discussiontools-init-section-timestampLabel'>(discussiontools-topicheader-latestcomment: <a href="#c-DTDummyUserEve-2022-03-10T15:50:00.000Z-DTDummyUserBob-2022-03-10T15:40:00.000Z">1646927400</a>)</span><span class='ext-discussiontools-init-section-metaitem ext-discussiontools-init-section-commentCountLabel'>(discussiontools-topicheader-commentcount: 3)</span><span class='ext-discussiontools-init-section-metaitem ext-discussiontools-init-section-authorCountLabel'>(discussiontools-topicheader-authorcount: 3)</span></div><div class="ext-discussiontools-init-section-actions"><span class='ext-discussiontools-init-section-subscribeButton oo-ui-widget oo-ui-widget-enabled oo-ui-buttonElement oo-ui-buttonElement-frameless oo-ui-iconElement oo-ui-labelElement oo-ui-flaggedElement-progressive oo-ui-buttonWidget' data-ooui='{"_":"OO.ui.ButtonWidget","href":"\/w\/index.php?title=User_talk:ESanders_(WMF)\/suppressed-talk&action=dtsubscribe&commentname=h-DTDummyUserAlice-2022-03-10T15%3A30%3A00.000Z&section=Normal+talk+section","rel":["nofollow"],"framed":false,"icon":"bellOutline","label":"(discussiontools-topicsubscription-button-subscribe-label)","title":"(discussiontools-topicsubscription-button-subscribe-tooltip)","flags":["progressive"],"classes":["ext-discussiontools-init-section-subscribeButton"]}'><a role='button' title='(discussiontools-topicsubscription-button-subscribe-tooltip)' tabindex='0' href='/w/index.php?title=User_talk:ESanders_(WMF)/suppressed-talk&action=dtsubscribe&commentname=h-DTDummyUserAlice-2022-03-10T15%3A30%3A00.000Z&section=Normal+talk+section' rel='nofollow' class='oo-ui-buttonElement-button'><span class='oo-ui-iconElement-icon oo-ui-icon-bellOutline oo-ui-image-progressive'></span><span class='oo-ui-labelElement-label'>(discussiontools-topicsubscription-button-subscribe-label)</span><span class='oo-ui-indicatorElement-indicator oo-ui-indicatorElement-noIndicator oo-ui-image-progressive'></span></a></span></div></div></div>
|
|
<p><span data-mw-comment-start="" id="c-DTDummyUserAlice-2022-03-10T15:30:00.000Z-Normal_talk_section"></span>Comment 4 <a href="/wiki/User:DTDummyUserAlice" title="User:DTDummyUserAlice">DTDummyUserAlice</a> (<a href="/wiki/User_talk:DTDummyUserAlice" title="User talk:DTDummyUserAlice">talk</a>) <a href="https://example.org/wiki/User_talk:ESanders_(WMF)/suppressed-talk#c-DTDummyUserAlice-2022-03-10T15:30:00.000Z-Normal_talk_section" class="ext-discussiontools-init-timestamplink">15:30, 10 March 2022 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-DTDummyUserAlice-2022-03-10T15:30:00.000Z-Normal_talk_section"><span class="ext-discussiontools-init-replybutton oo-ui-widget oo-ui-widget-enabled oo-ui-buttonElement oo-ui-buttonElement-frameless oo-ui-iconElement oo-ui-labelElement oo-ui-flaggedElement-progressive oo-ui-buttonWidget" data-ooui='{"_":"OO.ui.ButtonWidget","rel":["nofollow"],"framed":false,"icon":"share","label":"(discussiontools-replybutton)","flags":["progressive"],"classes":["ext-discussiontools-init-replybutton"]}'><a role="button" tabindex="0" rel="nofollow" class="oo-ui-buttonElement-button"><span class="oo-ui-iconElement-icon oo-ui-icon-share oo-ui-image-progressive"></span><span class="oo-ui-labelElement-label">(discussiontools-replybutton)</span><span class="oo-ui-indicatorElement-indicator oo-ui-indicatorElement-noIndicator oo-ui-image-progressive"></span></a></span><span class="ext-discussiontools-init-replylink-bracket">[</span><a class="ext-discussiontools-init-replylink-reply" role="button" tabindex="0" href="">(discussiontools-replylink)</a><span class="ext-discussiontools-init-replylink-bracket">]</span></span><span data-mw-comment-end="c-DTDummyUserAlice-2022-03-10T15:30:00.000Z-Normal_talk_section"></span>
|
|
</p>
|
|
<dl><dd><span data-mw-comment-start="" id="c-DTDummyUserBob-2022-03-10T15:40:00.000Z-DTDummyUserAlice-2022-03-10T15:30:00.000Z"></span>Comment 5. <a href="/wiki/User:DTDummyUserBob" title="User:DTDummyUserBob">DTDummyUserBob</a> (<a href="/wiki/User_talk:DTDummyUserBob" title="User talk:DTDummyUserBob">talk</a>) <a href="https://example.org/wiki/User_talk:ESanders_(WMF)/suppressed-talk#c-DTDummyUserBob-2022-03-10T15:40:00.000Z-DTDummyUserAlice-2022-03-10T15:30:00.000Z" class="ext-discussiontools-init-timestamplink">15:40, 10 March 2022 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-DTDummyUserBob-2022-03-10T15:40:00.000Z-DTDummyUserAlice-2022-03-10T15:30:00.000Z"><span class="ext-discussiontools-init-replybutton oo-ui-widget oo-ui-widget-enabled oo-ui-buttonElement oo-ui-buttonElement-frameless oo-ui-iconElement oo-ui-labelElement oo-ui-flaggedElement-progressive oo-ui-buttonWidget" data-ooui='{"_":"OO.ui.ButtonWidget","rel":["nofollow"],"framed":false,"icon":"share","label":"(discussiontools-replybutton)","flags":["progressive"],"classes":["ext-discussiontools-init-replybutton"]}'><a role="button" tabindex="0" rel="nofollow" class="oo-ui-buttonElement-button"><span class="oo-ui-iconElement-icon oo-ui-icon-share oo-ui-image-progressive"></span><span class="oo-ui-labelElement-label">(discussiontools-replybutton)</span><span class="oo-ui-indicatorElement-indicator oo-ui-indicatorElement-noIndicator oo-ui-image-progressive"></span></a></span><span class="ext-discussiontools-init-replylink-bracket">[</span><a class="ext-discussiontools-init-replylink-reply" role="button" tabindex="0" href="">(discussiontools-replylink)</a><span class="ext-discussiontools-init-replylink-bracket">]</span></span><span data-mw-comment-end="c-DTDummyUserBob-2022-03-10T15:40:00.000Z-DTDummyUserAlice-2022-03-10T15:30:00.000Z"></span>
|
|
<dl><dd><span data-mw-comment-start="" id="c-DTDummyUserEve-2022-03-10T15:50:00.000Z-DTDummyUserBob-2022-03-10T15:40:00.000Z"></span>Comment 6. <a href="/wiki/User:DTDummyUserEve" title="User:DTDummyUserEve">DTDummyUserEve</a> (<a href="/wiki/User_talk:DTDummyUserEve" title="User talk:DTDummyUserEve">talk</a>) <a href="https://example.org/wiki/User_talk:ESanders_(WMF)/suppressed-talk#c-DTDummyUserEve-2022-03-10T15:50:00.000Z-DTDummyUserBob-2022-03-10T15:40:00.000Z" class="ext-discussiontools-init-timestamplink">15:50, 10 March 2022 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-DTDummyUserEve-2022-03-10T15:50:00.000Z-DTDummyUserBob-2022-03-10T15:40:00.000Z"><span class="ext-discussiontools-init-replybutton oo-ui-widget oo-ui-widget-enabled oo-ui-buttonElement oo-ui-buttonElement-frameless oo-ui-iconElement oo-ui-labelElement oo-ui-flaggedElement-progressive oo-ui-buttonWidget" data-ooui='{"_":"OO.ui.ButtonWidget","rel":["nofollow"],"framed":false,"icon":"share","label":"(discussiontools-replybutton)","flags":["progressive"],"classes":["ext-discussiontools-init-replybutton"]}'><a role="button" tabindex="0" rel="nofollow" class="oo-ui-buttonElement-button"><span class="oo-ui-iconElement-icon oo-ui-icon-share oo-ui-image-progressive"></span><span class="oo-ui-labelElement-label">(discussiontools-replybutton)</span><span class="oo-ui-indicatorElement-indicator oo-ui-indicatorElement-noIndicator oo-ui-image-progressive"></span></a></span><span class="ext-discussiontools-init-replylink-bracket">[</span><a class="ext-discussiontools-init-replylink-reply" role="button" tabindex="0" href="">(discussiontools-replylink)</a><span class="ext-discussiontools-init-replylink-bracket">]</span></span><span data-mw-comment-end="c-DTDummyUserEve-2022-03-10T15:50:00.000Z-DTDummyUserBob-2022-03-10T15:40:00.000Z"></span></dd></dl></dd></dl>
|
|
<div class="mw-heading mw-heading2 ext-discussiontools-init-section"><h2><span class="ext-discussiontools-init-section-subscribe mw-editsection-like"><span class="ext-discussiontools-init-section-subscribe-bracket">[</span><a href="/w/index.php?title=User_talk:ESanders_(WMF)/suppressed-talk&action=dtsubscribe&commentname=h-DTDummyUserAlice-2022-03-10T16%3A30%3A00.000Z&section=Talk+section+with+notalk+fragments" class="ext-discussiontools-init-section-subscribe-link" role="button" tabindex="0" title="(discussiontools-topicsubscription-button-subscribe-tooltip)">(discussiontools-topicsubscription-button-subscribe)</a><span class="ext-discussiontools-init-section-subscribe-bracket">]</span></span><span class="mw-headline" id="Talk_section_with_notalk_fragments" data-mw-thread-id="h-Talk_section_with_notalk_fragments-2022-03-10T16:30:00.000Z"><span data-mw-comment-start="" id="h-Talk_section_with_notalk_fragments-2022-03-10T16:30:00.000Z"></span>Talk section with notalk fragments<span data-mw-comment-end="h-Talk_section_with_notalk_fragments-2022-03-10T16:30:00.000Z"></span></span></h2><div class="ext-discussiontools-init-section-bar"><div class="ext-discussiontools-init-section-metadata"><span class='ext-discussiontools-init-section-metaitem ext-discussiontools-init-section-timestampLabel'>(discussiontools-topicheader-latestcomment: <a href="#c-DTDummyUserEve-2022-03-10T16:50:00.000Z-DTDummyUserBob-2022-03-10T16:40:00.000Z">1646931000</a>)</span><span class='ext-discussiontools-init-section-metaitem ext-discussiontools-init-section-commentCountLabel'>(discussiontools-topicheader-commentcount: 3)</span><span class='ext-discussiontools-init-section-metaitem ext-discussiontools-init-section-authorCountLabel'>(discussiontools-topicheader-authorcount: 3)</span></div><div class="ext-discussiontools-init-section-actions"><span class='ext-discussiontools-init-section-subscribeButton oo-ui-widget oo-ui-widget-enabled oo-ui-buttonElement oo-ui-buttonElement-frameless oo-ui-iconElement oo-ui-labelElement oo-ui-flaggedElement-progressive oo-ui-buttonWidget' data-ooui='{"_":"OO.ui.ButtonWidget","href":"\/w\/index.php?title=User_talk:ESanders_(WMF)\/suppressed-talk&action=dtsubscribe&commentname=h-DTDummyUserAlice-2022-03-10T16%3A30%3A00.000Z&section=Talk+section+with+notalk+fragments","rel":["nofollow"],"framed":false,"icon":"bellOutline","label":"(discussiontools-topicsubscription-button-subscribe-label)","title":"(discussiontools-topicsubscription-button-subscribe-tooltip)","flags":["progressive"],"classes":["ext-discussiontools-init-section-subscribeButton"]}'><a role='button' title='(discussiontools-topicsubscription-button-subscribe-tooltip)' tabindex='0' href='/w/index.php?title=User_talk:ESanders_(WMF)/suppressed-talk&action=dtsubscribe&commentname=h-DTDummyUserAlice-2022-03-10T16%3A30%3A00.000Z&section=Talk+section+with+notalk+fragments' rel='nofollow' class='oo-ui-buttonElement-button'><span class='oo-ui-iconElement-icon oo-ui-icon-bellOutline oo-ui-image-progressive'></span><span class='oo-ui-labelElement-label'>(discussiontools-topicsubscription-button-subscribe-label)</span><span class='oo-ui-indicatorElement-indicator oo-ui-indicatorElement-noIndicator oo-ui-image-progressive'></span></a></span></div></div></div>
|
|
<div class="mw-notalk" style="border: 1px solid black;">notalk before a comment (e.g. {{edit protected}})</div>
|
|
<p><span data-mw-comment-start="" id="c-DTDummyUserAlice-2022-03-10T16:30:00.000Z-Talk_section_with_notalk_fragments"></span>Comment 7 <a href="/wiki/User:DTDummyUserAlice" title="User:DTDummyUserAlice">DTDummyUserAlice</a> (<a href="/wiki/User_talk:DTDummyUserAlice" title="User talk:DTDummyUserAlice">talk</a>) <a href="https://example.org/wiki/User_talk:ESanders_(WMF)/suppressed-talk#c-DTDummyUserAlice-2022-03-10T16:30:00.000Z-Talk_section_with_notalk_fragments" class="ext-discussiontools-init-timestamplink">16:30, 10 March 2022 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-DTDummyUserAlice-2022-03-10T16:30:00.000Z-Talk_section_with_notalk_fragments"><span class="ext-discussiontools-init-replybutton oo-ui-widget oo-ui-widget-enabled oo-ui-buttonElement oo-ui-buttonElement-frameless oo-ui-iconElement oo-ui-labelElement oo-ui-flaggedElement-progressive oo-ui-buttonWidget" data-ooui='{"_":"OO.ui.ButtonWidget","rel":["nofollow"],"framed":false,"icon":"share","label":"(discussiontools-replybutton)","flags":["progressive"],"classes":["ext-discussiontools-init-replybutton"]}'><a role="button" tabindex="0" rel="nofollow" class="oo-ui-buttonElement-button"><span class="oo-ui-iconElement-icon oo-ui-icon-share oo-ui-image-progressive"></span><span class="oo-ui-labelElement-label">(discussiontools-replybutton)</span><span class="oo-ui-indicatorElement-indicator oo-ui-indicatorElement-noIndicator oo-ui-image-progressive"></span></a></span><span class="ext-discussiontools-init-replylink-bracket">[</span><a class="ext-discussiontools-init-replylink-reply" role="button" tabindex="0" href="">(discussiontools-replylink)</a><span class="ext-discussiontools-init-replylink-bracket">]</span></span><span data-mw-comment-end="c-DTDummyUserAlice-2022-03-10T16:30:00.000Z-Talk_section_with_notalk_fragments"></span>
|
|
</p>
|
|
<div class="mw-notalk" style="border: 1px solid black;">notalk after a comment (e.g. {{reflist-talk}})</div>
|
|
<dl><dd><span class="mw-notalk" style="border: 1px solid black;">notalk before a comment, inline</span><span data-mw-comment-start="" id="c-DTDummyUserBob-2022-03-10T16:40:00.000Z-DTDummyUserAlice-2022-03-10T16:30:00.000Z"></span> Comment 8. <a href="/wiki/User:DTDummyUserBob" title="User:DTDummyUserBob">DTDummyUserBob</a> (<a href="/wiki/User_talk:DTDummyUserBob" title="User talk:DTDummyUserBob">talk</a>) <a href="https://example.org/wiki/User_talk:ESanders_(WMF)/suppressed-talk#c-DTDummyUserBob-2022-03-10T16:40:00.000Z-DTDummyUserAlice-2022-03-10T16:30:00.000Z" class="ext-discussiontools-init-timestamplink">16:40, 10 March 2022 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-DTDummyUserBob-2022-03-10T16:40:00.000Z-DTDummyUserAlice-2022-03-10T16:30:00.000Z"><span class="ext-discussiontools-init-replybutton oo-ui-widget oo-ui-widget-enabled oo-ui-buttonElement oo-ui-buttonElement-frameless oo-ui-iconElement oo-ui-labelElement oo-ui-flaggedElement-progressive oo-ui-buttonWidget" data-ooui='{"_":"OO.ui.ButtonWidget","rel":["nofollow"],"framed":false,"icon":"share","label":"(discussiontools-replybutton)","flags":["progressive"],"classes":["ext-discussiontools-init-replybutton"]}'><a role="button" tabindex="0" rel="nofollow" class="oo-ui-buttonElement-button"><span class="oo-ui-iconElement-icon oo-ui-icon-share oo-ui-image-progressive"></span><span class="oo-ui-labelElement-label">(discussiontools-replybutton)</span><span class="oo-ui-indicatorElement-indicator oo-ui-indicatorElement-noIndicator oo-ui-image-progressive"></span></a></span><span class="ext-discussiontools-init-replylink-bracket">[</span><a class="ext-discussiontools-init-replylink-reply" role="button" tabindex="0" href="">(discussiontools-replylink)</a><span class="ext-discussiontools-init-replylink-bracket">]</span></span><span data-mw-comment-end="c-DTDummyUserBob-2022-03-10T16:40:00.000Z-DTDummyUserAlice-2022-03-10T16:30:00.000Z"></span> <span class="mw-notalk" style="border: 1px solid black;">notalk after a comment, inline</span></dd></dl>
|
|
<div class="mw-notalk" style="border: 1px solid black;">notalk between comments (e.g. {{outdent}})</div>
|
|
<dl><dd><dl><dd><span data-mw-comment-start="" id="c-DTDummyUserEve-2022-03-10T16:50:00.000Z-DTDummyUserBob-2022-03-10T16:40:00.000Z"></span>Comment 9. <a href="/wiki/User:DTDummyUserEve" title="User:DTDummyUserEve">DTDummyUserEve</a> (<a href="/wiki/User_talk:DTDummyUserEve" title="User talk:DTDummyUserEve">talk</a>) <a href="https://example.org/wiki/User_talk:ESanders_(WMF)/suppressed-talk#c-DTDummyUserEve-2022-03-10T16:50:00.000Z-DTDummyUserBob-2022-03-10T16:40:00.000Z" class="ext-discussiontools-init-timestamplink">16:50, 10 March 2022 (UTC)</a><span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-DTDummyUserEve-2022-03-10T16:50:00.000Z-DTDummyUserBob-2022-03-10T16:40:00.000Z"><span class="ext-discussiontools-init-replybutton oo-ui-widget oo-ui-widget-enabled oo-ui-buttonElement oo-ui-buttonElement-frameless oo-ui-iconElement oo-ui-labelElement oo-ui-flaggedElement-progressive oo-ui-buttonWidget" data-ooui='{"_":"OO.ui.ButtonWidget","rel":["nofollow"],"framed":false,"icon":"share","label":"(discussiontools-replybutton)","flags":["progressive"],"classes":["ext-discussiontools-init-replybutton"]}'><a role="button" tabindex="0" rel="nofollow" class="oo-ui-buttonElement-button"><span class="oo-ui-iconElement-icon oo-ui-icon-share oo-ui-image-progressive"></span><span class="oo-ui-labelElement-label">(discussiontools-replybutton)</span><span class="oo-ui-indicatorElement-indicator oo-ui-indicatorElement-noIndicator oo-ui-image-progressive"></span></a></span><span class="ext-discussiontools-init-replylink-bracket">[</span><a class="ext-discussiontools-init-replylink-reply" role="button" tabindex="0" href="">(discussiontools-replylink)</a><span class="ext-discussiontools-init-replylink-bracket">]</span></span><span data-mw-comment-end="c-DTDummyUserEve-2022-03-10T16:50:00.000Z-DTDummyUserBob-2022-03-10T16:40:00.000Z"></span></dd></dl></dd></dl>
|
|
</div>
|
|
|
|
<pre>
|
|
newestComment: {
|
|
"id": "c-DTDummyUserEve-2022-03-10T16:50:00.000Z-DTDummyUserBob-2022-03-10T16:40:00.000Z",
|
|
"timestamp": "2022-03-10T16:50:00.000Z",
|
|
"author": "DTDummyUserEve",
|
|
"heading": {
|
|
"headingLevel": 2,
|
|
"name": "h-DTDummyUserAlice-2022-03-10T16:30:00.000Z",
|
|
"type": "heading",
|
|
"level": 0,
|
|
"id": "h-Talk_section_with_notalk_fragments-2022-03-10T16:30:00.000Z",
|
|
"replies": [
|
|
"c-DTDummyUserAlice-2022-03-10T16:30:00.000Z-Talk_section_with_notalk_fragments"
|
|
],
|
|
"text": "Talk section with notalk fragments",
|
|
"linkableTitle": "Talk section with notalk fragments"
|
|
}
|
|
}
|
|
hasLedeContent
|
|
{
|
|
"wgDiscussionToolsPageThreads": [
|
|
{
|
|
"headingLevel": 2,
|
|
"name": "h-",
|
|
"type": "heading",
|
|
"level": 0,
|
|
"id": "h-No_talk_section",
|
|
"replies": []
|
|
},
|
|
{
|
|
"headingLevel": 2,
|
|
"name": "h-DTDummyUserAlice-2022-03-10T14:30:00.000Z",
|
|
"type": "heading",
|
|
"level": 0,
|
|
"id": "h-Archived_section-2022-03-10T14:30:00.000Z",
|
|
"replies": [
|
|
{
|
|
"timestamp": "2022-03-10T14:30:00.000Z",
|
|
"author": "DTDummyUserAlice",
|
|
"type": "comment",
|
|
"level": 1,
|
|
"id": "c-DTDummyUserAlice-2022-03-10T14:30:00.000Z-Archived_section",
|
|
"replies": [
|
|
{
|
|
"timestamp": "2022-03-10T14:40:00.000Z",
|
|
"author": "DTDummyUserBob",
|
|
"type": "comment",
|
|
"level": 2,
|
|
"id": "c-DTDummyUserBob-2022-03-10T14:40:00.000Z-DTDummyUserAlice-2022-03-10T14:30:00.000Z",
|
|
"replies": [
|
|
{
|
|
"timestamp": "2022-03-10T14:50:00.000Z",
|
|
"author": "DTDummyUserEve",
|
|
"type": "comment",
|
|
"level": 3,
|
|
"id": "c-DTDummyUserEve-2022-03-10T14:50:00.000Z-DTDummyUserBob-2022-03-10T14:40:00.000Z",
|
|
"replies": []
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"headingLevel": 2,
|
|
"name": "h-DTDummyUserAlice-2022-03-10T15:30:00.000Z",
|
|
"type": "heading",
|
|
"level": 0,
|
|
"id": "h-Normal_talk_section-2022-03-10T15:30:00.000Z",
|
|
"replies": [
|
|
{
|
|
"timestamp": "2022-03-10T15:30:00.000Z",
|
|
"author": "DTDummyUserAlice",
|
|
"type": "comment",
|
|
"level": 1,
|
|
"id": "c-DTDummyUserAlice-2022-03-10T15:30:00.000Z-Normal_talk_section",
|
|
"replies": [
|
|
{
|
|
"timestamp": "2022-03-10T15:40:00.000Z",
|
|
"author": "DTDummyUserBob",
|
|
"type": "comment",
|
|
"level": 2,
|
|
"id": "c-DTDummyUserBob-2022-03-10T15:40:00.000Z-DTDummyUserAlice-2022-03-10T15:30:00.000Z",
|
|
"replies": [
|
|
{
|
|
"timestamp": "2022-03-10T15:50:00.000Z",
|
|
"author": "DTDummyUserEve",
|
|
"type": "comment",
|
|
"level": 3,
|
|
"id": "c-DTDummyUserEve-2022-03-10T15:50:00.000Z-DTDummyUserBob-2022-03-10T15:40:00.000Z",
|
|
"replies": []
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"headingLevel": 2,
|
|
"name": "h-DTDummyUserAlice-2022-03-10T16:30:00.000Z",
|
|
"type": "heading",
|
|
"level": 0,
|
|
"id": "h-Talk_section_with_notalk_fragments-2022-03-10T16:30:00.000Z",
|
|
"replies": [
|
|
{
|
|
"timestamp": "2022-03-10T16:30:00.000Z",
|
|
"author": "DTDummyUserAlice",
|
|
"type": "comment",
|
|
"level": 1,
|
|
"id": "c-DTDummyUserAlice-2022-03-10T16:30:00.000Z-Talk_section_with_notalk_fragments",
|
|
"replies": [
|
|
{
|
|
"timestamp": "2022-03-10T16:40:00.000Z",
|
|
"author": "DTDummyUserBob",
|
|
"type": "comment",
|
|
"level": 2,
|
|
"id": "c-DTDummyUserBob-2022-03-10T16:40:00.000Z-DTDummyUserAlice-2022-03-10T16:30:00.000Z",
|
|
"replies": [
|
|
{
|
|
"timestamp": "2022-03-10T16:50:00.000Z",
|
|
"author": "DTDummyUserEve",
|
|
"type": "comment",
|
|
"level": 3,
|
|
"id": "c-DTDummyUserEve-2022-03-10T16:50:00.000Z-DTDummyUserBob-2022-03-10T16:40:00.000Z",
|
|
"replies": []
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
</pre> |