Steps to replicate the issue (include links if applicable):
- Make sure you have DT's New Topic Tool enabled in English Wikipedia.
- Go to https://en.wikipedia.org/wiki/Talk:Mall_De_Goa (or any other enwiki page).
- Make an API request
new mw.Api().post({
action: 'parse',
format: 'json',
formatversion: 2,
text: 'text',
contentmodel: 'wikitext',
prop: 'text',
disablelimitreport: true,
title: 'Talk:Mall De Goa',
}).then(console.log)What happens?:
The result contains the parsed text, and then DiscussionTools' placeholder from T270323/T256480.
"<div class="mw-parser-output"><p>text </p><div class="ext-discussiontools-emptystate"><div class="ext-discussiontools-emptystate-text"><h3>Start a discussion about improving the Mall De Goa page</h3><div class="plainlinks"><p><a href="/wiki/Help:Introduction_to_talk_pages/1" title="Help:Introduction to talk pages/1">Talk pages</a> are where people discuss how to make content on Wikipedia the best that it can be. You can use this page to start a discussion with others about how to improve the "<a href="/wiki/Mall_De_Goa" title="Mall De Goa">Mall De Goa</a>" page. </p></div><span class='oo-ui-widget oo-ui-widget-enabled oo-ui-buttonElement oo-ui-buttonElement-framed oo-ui-labelElement oo-ui-flaggedElement-primary oo-ui-flaggedElement-progressive oo-ui-buttonWidget'><a role='button' tabindex='0' href='/w/index.php?title=Talk:Mall_De_Goa&action=edit&section=new' rel='nofollow' class='oo-ui-buttonElement-button'><span class='oo-ui-iconElement-icon oo-ui-iconElement-noIcon oo-ui-image-invert'></span><span class='oo-ui-labelElement-label'>Start a discussion</span><span class='oo-ui-indicatorElement-indicator oo-ui-indicatorElement-noIndicator oo-ui-image-invert'></span></a></span></div><img src="/w/extensions/DiscussionTools/images/emptystate.svg" class="ext-discussiontools-emptystate-logo" alt=""/></div></div>"
What should have happened instead?:
I believe it shouldn't be there.
