FANDOM


  • I'm currently botting the ever-loving heck out of a wikia I made, since all pages on there were exported from another wiki with radically different, template-smothered formatting from my own. Updating the categories is easy enough- I have a tool for that- but there are templates that are no longer relevant to this wiki with its current formatting, and I want to remove them. However, simply deleting the templates won't work- what I want to do is clear the template from all pages it's on. Is there a JavaScript I could insert into a bot account for that, or some kind of tool that can accomplish it?

    If there isn't, there should be.

      Loading editor
    • You can ckeck this tool:

      https://en.wikipedia.org/wiki/Wikipedia:AutoWikiBrowser

      or you can use this script too, pretty easy to use

      http://dev.wikia.com/wiki/AutoEditPages

        Loading editor
    • Ah, thank you.

      edit: Oh, I have AutoWikiBrowser. That's what I use to update categories. Mind telling me how I could remove a template from the pages it's on using it? I'm not very familiar with the program's systems yet.

        Loading editor
    • Depends on what type of template it is. If it's just a simple one with no parameters, just use Find and Replace. Use What Transcludes Page to make the list, and eplace the template with a space. If it's a template with parameters, it's trickier, to the point of undoable, with AWB.

        Loading editor
    • Ohh, okay. Thanks!

        Loading editor
    • Tupka217 wrote: Depends on what type of template it is. If it's just a simple one with no parameters, just use Find and Replace. Use What Transcludes Page to make the list, and eplace the template with a space. If it's a template with parameters, it's trickier, to the point of undoable, with AWB.

      AWB supports regular expressions, and it is capable of matching templates with parameters, like so:

      {{template_name_here[^}}]*}}
      

      or something like that.

      http://regexr.com/ is a very helpful regular expressions scratchpad you can try.

        Loading editor
    • Mfaizsyahmi wrote:
      AWB supports regular expressions, and it is capable of matching templates with parameters, like so:

      {{template_name_here[^}}]*}}
      

      or something like that.

      {{template_name_here|{{some_other_template_or_expr}}}}{{yet_another_template_or_expr}}

      It can get complicated, but yeah, in general, if you know a regex that works on the specific edit you want to do, it's easy. Otherwise you need a script that parses the wiki markup.

      So basically, it depends.

        Loading editor
    • Saftzie wrote:

      {{template_name_here|{{some_other_template_or_expr}}}}{{yet_another_template_or_expr}}

      Oh my, didn't think of that!

        Loading editor
    • A FANDOM user
        Loading editor
Give Kudos to this message
You've given this message Kudos!
See who gave Kudos to this message