FANDOM


 
Line 1: Line 1:
 
I believe I have a more elegant solution, assuming that you have some tool which allows you to run multiple find-replaces in a single pass.
 
I believe I have a more elegant solution, assuming that you have some tool which allows you to run multiple find-replaces in a single pass.
   
For each of the set of of the recently imported pages ([https://dungeonsdragons.fandom.com/wiki/Dungeons_and_Dragons_Wiki:Sandbox?oldid=19507#Pages_which_were_recently_imported here is a list]), simply replace all wanted template names with their opening brackets ([https://dungeonsdragons.fandom.com/wiki/Dungeons_and_Dragons_Wiki:Sandbox?oldid=19502#Templates_to_be_deleted here is a list]) with <code><nowiki>{{subst:EmptyTemplate</nowiki></code>, thus blanking the entire template.
+
For each of the set of of the recently imported pages ([https://dungeonsdragons.fandom.com/wiki/Dungeons_and_Dragons_Wiki:Sandbox?oldid=19507#Pages_which_were_recently_imported here is a list]), simply replace all wanted template names with their opening brackets ([https://dungeonsdragons.fandom.com/wiki/Dungeons_and_Dragons_Wiki:Sandbox?oldid=19502#Templates_to_be_deleted here is a list]) with <code><nowiki>{{subst:EmptyTemplate</nowiki></code>, thus blanking the entire template even if it has parameters.
   
For example, replace all instances of:
+
For example, all instances of:
   
 
<nowiki>{{Article for deletion/dated</nowiki>
 
<nowiki>{{Article for deletion/dated</nowiki>
   
with:
+
will be replaced with:
   
 
<nowiki>{{subst:EmptyTemplate</nowiki>
 
<nowiki>{{subst:EmptyTemplate</nowiki>

Latest revision as of 18:14, January 28, 2020

I believe I have a more elegant solution, assuming that you have some tool which allows you to run multiple find-replaces in a single pass.

For each of the set of of the recently imported pages (here is a list), simply replace all wanted template names with their opening brackets (here is a list) with {{subst:EmptyTemplate, thus blanking the entire template even if it has parameters.

For example, all instances of:

 {{Article for deletion/dated

will be replaced with:

 {{subst:EmptyTemplate
Community content is available under CC-BY-SA unless otherwise noted.