mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/TemplateData
synced 2024-09-24 10:49:29 +00:00
Merge "Add <noinclude> tags to new <templatedata> strings"
This commit is contained in:
commit
d91de59dcc
|
@ -874,9 +874,14 @@
|
|||
);
|
||||
} else {
|
||||
// Add the <templatedata>
|
||||
finalOutput = originalTemplateDataWikitext + '\n\n<templatedata>\n' +
|
||||
finalOutput = originalTemplateDataWikitext + '\n<templatedata>\n' +
|
||||
tdOutput +
|
||||
'\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 ] );
|
||||
|
|
Loading…
Reference in a new issue