Merge "Add <noinclude> tags to new <templatedata> strings"

This commit is contained in:
jenkins-bot 2014-10-10 00:01:40 +00:00 committed by Gerrit Code Review
commit d91de59dcc

View file

@ -874,9 +874,14 @@
); );
} else { } else {
// Add the <templatedata> // Add the <templatedata>
finalOutput = originalTemplateDataWikitext + '\n\n<templatedata>\n' + finalOutput = originalTemplateDataWikitext + '\n<templatedata>\n' +
tdOutput + tdOutput +
'\n</templatedata>\n'; '\n</templatedata>\n';
// If we are not in a subpage, add <noinclude> tags
if ( !isPageSubLevel ) {
finalOutput = '\n<noinclude>' + finalOutput + '</noinclude>\n';
}
} }
$modalBox.trigger( 'TemplateDataGeneratorDone', [ finalOutput ] ); $modalBox.trigger( 'TemplateDataGeneratorDone', [ finalOutput ] );