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 {
|
} 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 ] );
|
||||||
|
|
Loading…
Reference in a new issue