FANDOM


  • There are a lot of images on the Banana Fish wiki, most of which are on the episode image galleries. Each one would need to be added into the right categories and have fair use licensing templates to describe what they are being used for: demonstrating artwork, key moments, expressions, comparisons to the manga and so on. 

    Creating a bot would be very handy to:

    • Add every last photo on the wiki into the relevant categories all at once
    • Add licensing templates to each one
    • Convert .jpg to .png images for certain images

    That way each photo, most of which are like this could have the Banana Fish type templates and categories like this My Hero Academia example.

    I found out the bot thing itself is a program and am concerned about downloading stuff I’m not familiar with to my computer. The other concern is using this program to do the mentioned things, like how would I make it so the program could carry out these functions.

    Making a JS bot solves this by keeping everything on the wiki and will hopefully be easier to use.

      Loading editor
    • You could use MassNullEdit to generate a list of all file pages on a wiki and then use MassEdit and MassCategorization to add categories and licensing using that list.

        Loading editor
    • Why thank you so much for that, that is really good to hear, and quite relieving for some reason. I guess keeping everything on the wiki makes all the difference, ha.

      This is all new to me, if it is not too much trouble may we go into the specifics of what this entails? Like is this for the bot account, and the process of ensuring everything can go smoothly with what help the bot can provide.

        Loading editor
    • This is definitely for the bot account. MassEdit and MassCategorization will both make a lot of edits, so you're definitely going to want to use them with your bot only.

      Do you have any specific questions regarding their use? The first step would be, of course, to import them.

      A word of caution: these scripts are not going to be able to add relevant licensing templates and categories to the pages in question—all pages are going to get the same content/categories, unless you have a way of making a more specific page list.

        Loading editor
    • Okay that’s perfect, as I understand it a bot is actually a new account, so if I make one called like 

      Ph1i-B0t

      (Can the same bot be used across Fandom wikis or is it a new one for each site? Since there are some images on the Seraph of the End wiki that could be converted from .jpg to .png).

      Then I’ll send that Ph1i-B0t account so Fandom staff can attach the “BOT” symbol so it's able to operate.

      As for specific questions I am under the impression it’s a case of importing the JS content to the Ph1i-B0t account then logging in to that one for these mass adding of images to categories for example.

      May I ask what the licensing templates will be? On the multi uploader for a wiki you can choose like “manga” or general use and that. As for the pages getting the same content categories, to ensure the Episode gallery images for example are all in the right categories shall I make those into a more specific page list?

        Loading editor
    • Regarding your bot... yes, it is a new account. You can use it on any wiki so long as you get a bot flag for it on that wiki (so you don't have to create a new account for each wiki, if that's what you're wondering). Once you've created it, contact Staff and ask that they flag your bot account as a bot. You generally need to be an admin on the wiki for them to approve this request.

      Regarding the scripts... you are correct. Just import the necessary articles and log into the account.

      Regarding licensing templates... that's up to you. It's worth nothing, though, that when you select items in the multi uploader of a wiki, you're really just picking a template to use, so you'll be able to use all the standard licensing options.

      Regarding pages, you're going to need to create a specific list of episode gallery images if you want them to be in that category, unfortunately.

        Loading editor
    • Okay if I make that tomorrow with a bot flag for the Banana Fish wiki where I can access the admin tools I’ll bring it here for these script things. That’s great about the licensing templates they should cover everything.

      That’s also okay about the pages; due to the detail we have episode images on their own pages so that can be the list? In any case can cross that bridge when we get there.

      Thank you so much for your help in this, it’s a cool thing to make and can be so handy… As much as I would love to go through the many thousands of images and add them to multiple categories one at a time by myself XD 

        Loading editor
    • due to the detail we have episode images on their own pages so that can be the list?

      I'm not sure what you mean by this. Could you rephrase the question?

      Thank you so much for your help in this, it’s a cool thing to make and can be so handy… As much as I would love to go through the many thousands of images and add them to multiple categories one at a time by myself XD

      No problem!

        Loading editor
    • Of course, there are a lot of images on each episode page like this, so could these be the specific list of episode images to be in a certain category such as “Fairuse” “Episode 04 Images” and that.

      I am truly thankful for your help here alone, I will have to apologize for another delay for tomorrow I am occupied with other matters but I hope I’ll be able to return with the bot account soon. I really should plan things better but for now am only able to do things when I can.

        Loading editor
    • You'd definitely be able to create a specific page list using pages like that. Just import the FindAndReplace script, edit the page, hit enter once in the "find" box, and hit enter and then put in File: in the "replace" box. Once you perform that action, every file name will also use the namespace prefix and you'll then be able to put it into a bot script. Let me know if that makes sense!

        Loading editor
    • Sorry about the ‘day’ delay, I guess good news it’s all been created and good to go now. This one is the bot account, just in case the name didn’t give it away XD 

      I would guess I add the information from the links into the JS part for this bot on the Banana Fish wiki?

        Loading editor
    • Ph1i5-B0t wrote: I would guess I add the information from the links into the JS part for this bot on the Banana Fish wiki?

      I'm not entirely sure what you mean by that. What information are you referring to?

        Loading editor
    • TheGoldenPatrik1 wrote:
      You could use MassNullEdit to generate a list of all file pages on a wiki and then use MassEdit and MassCategorization to add categories and licensing using that list.

      These ones and the other links, like if we begin adding the images from Episode 01 into categories and having licence templates added.

        Loading editor
    • Yup

        Loading editor
    • Um... so I add this:

      dev:MassNullEdit/code.js
      

      Uh, where abouts is the JS page for Banana Fish?

        Loading editor
    • No, follow the instructions for personal use.


      You mean FindAndReplace?

        Loading editor
    • Did I take too long to reply? Unfortunately I had other things going on so couldn't prepare for this.

      Do I create this? I was going to begin with the categorization one since that seems the most familiar. Can they be anything? Images/non freeFairuse to Episode 01 Images seems a good start.

        Loading editor
    • Yes, that would be the page to import your scripts on. Do you want all three?

      And yeah, any of those categories will work.

        Loading editor
    • Yes let's add everything that is required, there was a fourth one the FindAndReplace, too.

        Loading editor
    • importArticles({
          type: 'script',
          articles: [
              'u:dev:FindAndReplace/code.js',
              'u:dev:MassCategorization/code.js',
              'u:dev:MassEdit/code.js',
              'u:dev:MassNullEdit/code.js'
          ]
      });
        Loading editor
    • Put that in the common.js page you linked to.

        Loading editor
    • Oh that's them all in one place, I just added them one at a time here but I'll add that.

      Is the find and replace one okay? It had a warning about being in the common ones.

        Loading editor
    • Yeah, it's fine. The warning was to let people know that it was prohibited for site wide use.

        Loading editor
    • Hi, that's all good then, for the bot how would I add the images on this page so they were all in a

      Episode 01 Images

      Category?

        Loading editor
    • Copy the list of files from the source code and put that list into MassCategorization.

        Loading editor
    • Hey there, how do I access MassCategorization? I'm on the first episode image gallery and it's not appearing in My Tools.

        Loading editor
    • Are you sure? I don't see any reason why it wouldn't load for you.

        Loading editor
    • Unfortunately MassCategorization does not seem to want to appear for me, unable to see it anywhere.

      Tools
        Loading editor
    • It's not going to appear there; look in the actual "My Tools" menu.

        Loading editor
    • This one

      Tools 1
        Loading editor
    • Yes. Are there any errors in console?

        Loading editor
    • There are no X's in the wiki CSS, I just updated the cache for the first time https://banana-fish.fandom.com/wiki/User:Ph1i5-B0t/common.js and the wiki page number updated but still nothing shows, is it a bug?

        Loading editor
    • Can you check your browser's console to see if there are any errors?

        Loading editor
    • Would you mind telling me how I may check the console? I am on Google Chrome and downloaded that quite recently since there were some issues with Safari at the time. 

        Loading editor
    •   Loading editor
    • Yes it found these:

      List
        Loading editor
    • There weren't any 'X's' so if the above is what is stopping the MassCategorization and the other JS features from appearing under My Tools what would I do to fix this?

        Loading editor
    • Try putting the code I gave you into console and then checking to see if the my tools menu links show up.

        Loading editor
    • Added them in the 1st image, checked it again to see it changed in the second image. There is one X in that screenshot though it is still not appearing under My Tools. 
      Script 2
      Script
        Loading editor
    • So did they show up in the menu or not when you put the code in console?

        Loading editor
    • No, hovered over the Tools and they are still absent

      Tools 2
        Loading editor
    • I'll test this when I get a chance. Try removing the semicolon at the end of your common.js

        Loading editor
    • Removed that here, and thank you the JS stuff I am familiar with though these console commands and that are all new ground so not a clue there unfortunately.

        Loading editor
    • Does it work now?

        Loading editor
    • TheGoldenPatrik1 wrote:
      Try putting the code I gave you into console and then checking to see if the my tools menu links show up.

      Seen them! Have just tried entering the JS code into the console, this time without the ; that was there last time like so:

      JS appearances

      And they all appear which is pretty sweet indeed. Is there a way to save this on the console? Reloaded the page at which point the JS disappeared and the Mass commands along with it.

      (Yes the console needs to be opened and that code copied and pasted into the console each time and the window kept open for them to appear. Like I say would be better if it could be saved so can just enter a page with the three Mass features there ready to go for Ph1i5-B0t).

        Loading editor
    • Also does every image have to have the exact lettering: Images/non freeFairuse on images? Was thinking "Non-free Images" could be used, or if there is another word that can be used to inform that images are just being used to demonstrate artwork, key scenes, character appearances, actions and so forth. "Fairuse" is fine since that it what they are and that, just not sure where and why "Images/non free" would be used.

      For Banana Fish if I add them to "Fairuse" "Episode (X - being the number of the episode) Images" "Anime Images" in that order. That has Fairuse always visible to see, a category to see each episode image in one place, and so people can tell which episode it is if they see the image on a character page. Then "Anime Images" category to see every last anime image on the wiki that would be good?

        Loading editor
    • Go to Special:Preferences and enable JS in the under the hood section. That should make the scripts show up.

        Loading editor
    • Could you rephrase the questions you asked in your second message? I'm not really sure what you mean.

        Loading editor
    • Ticked the "Enable personal JavaScript" on the Banana Fish wiki and saved, on the "Gadgets" section there was also this I saw: MinimalJSPages - utility script that makes Special:JSPages easier to read. Is that significant?

      The first part has made the scripts show up without having to go to the console each time so that is the best!

      Now the categorization can go ahead, the second message was just really asking what would good names be for the categories. This image is from Episode 01 so it would have the following categories:

      • Episode 01 Images
      • Fairuse

      It is this second one "Fairuse" that is the question. If someone appears and says these images are stolen or something, is it enough to have "Fairuse" there. Legally is that like a defence so the images can stay since they are not there to be sold rather used to demonstrate scenes, art, give a visual overview of the story and so forth. It was also related to My Hero Academia having Images/non free as well and was just wondering if there was some technical wording that was needed for this category.

        Loading editor
    • That's not important. Gadgets are just an easy way of importing code.


      Glad it works!


      It's up to you. You're categorizing the images so you can decide what category name works best. Fairuse sounds fine to me though.

        Loading editor
    • Got it, just making sure since saw JS, and I'm so glad too always nice when things go swimmingly!

      Sure if I add every last image to fairuse, once they have the templates added they will be. So if anyone does comment, the categories have it covered since, well the images are being used for illustration purposes and that.

      Okay so just tried adding this page to the category “Episode 01 Images” with “Episode 01 A Perfect Day for Bananafish/Image Gallery” in the large box.

      11
      12

      There was some ’piped’ things and others that could be clicked.

      The images have not been added to "Episode 01 Images" am I using it right? I clicked "Initiate" but the error on the right came up.

        Loading editor
    • Copy the list of images in the source code in the gallery page and put it in the textbox. Putting the gallery page in, as you did, is just going to add the category to that page - the error was just saying that the gallery page already had that category.

        Loading editor
    • Of course, okay added the actual images and that seems to have gone perfectly. The process was gradual, it's all appeared under recent changes but not flooded wiki activity so done everything perfect a bot is meant to do as I understand it.

      It does seem to have left some out, a lot actually but was thinking are these the original images before they were renamed? Also what does "Add category contents" next to initiate achieve?

      Any errors encountered will appear below
      Failed to add Category to File:Episode 1 - Screenshot 43.png: ratelimited
      (removed examples to save space)

        Loading editor
    • Copied and pasted what was there and it is quite a lot. If I add the images again will it add say the "Episode 01 Images" category twice for one image that already has been successfully added?

        Loading editor
    • Add category contents inputs all pages in a specified category.


      Those pages need the File prefix. You can use FindAndReplace for that.


      It should not add duplicate categories.

        Loading editor
    • So add article page names like “Episode 01 A Perfect Day for Bananafish/Image Gallery" into the box and choose add category contents.

      Then regular image names “Episode 1 - Screenshot 1.png” into a box for the initiate one?

      I have the find and replace added https://banana-fish.fandom.com/wiki/User:Ph1i5-B0t/common.js though only three massedit, massnulledit and masscategorization are appearing like in the image above. Would you mind telling me how I can use find and replace to add a filename? I just realised for these images most if not all I removed the “File:” when uploading the image since that made the code as concise as it could be and the images were still viewable at any rate. Should I re-add File: to every last image?

      Thanks, I can confirm that re-adding images will just skip over the ones already categorised but still ran into the same issues with the others.

        Loading editor
    • Add category contents won't work for adding files from a gallery page.


      FindAndReplace appears in the editor.


      You are going to need to add the File prefix, but just for this operation. Do you know how to use FindAndReplace to do that? If not, I can tell you.

        Loading editor
    • Just added Episode 01 Images to "Add category contents" to show the images so far appear in the box. Is that just a way of adding another category rather than copying and pasting them all in again? If there are other uses for it always handy to know and that.

      JS appearances
      Where would I find the editor to see FindAndReplace? All I can see is the three here in the left of the image. If it’s “MassEdit” there are “New Content” and “Target Content” if it’s those.

      Once I find how to access FindAndReplace, I imagine it’s copying the images that don’t have “File:” adding that, then the categorization can occur. Then after the images are all sorted the same process can be used to remove “File:” to make the code slightly more concise, if even needed.

        Loading editor
    • Is it supposed to show in my contributions? If the edits were to appear they should all be under the bot account (which has like none) shouldn't they?

        Loading editor
    • You are correct with regards to add category contents.


      1. Pick a gallery page you want to add categories to.
      2. Edit it.
      3. Look at the right side and click FindAndReplace. If it doesn't show up then you need to enable source editor in preferences.
      4. In the find box just hit enter.
      5. In the replace box hit enter and then add File:.
      6. Hit the execute button.
      7. Copy the list of files into MassCategorization and add categories.
      8. Leave the editor. You don't want to actually save your changes.

      They'll show up in your contribs once you actually make some edits. Right now you haven't added the right pages, since they haven't had the File prefix.

        Loading editor
    • Yes that is handy, just reselect Episode 01 Images to then add “Fairuse” rather than copy and paste them again from source mode.

      Ah, I was looking to the toolbar and didn’t think another one could be someone else. If it could be, FindAndReplace isn’t appearing, where abouts in my preferences is it?

      123

      I’ll try that once I have found and enabled it, thank you for the step by step list, always handy for me XD



      I meant can you see the edits under my actual account? About 50 photos did have the “File:” and were successfully transferred. But see how adding categories is under my actual S3r0-Ph1i name rather than the Ph1i5-B0t bot. It was Ph1i5-B0t that made the transfer so how did it link to me, and the edits



      these to show a few that did transfer should be under Ph1i-B0t bot, and not my account if I am explaining that right.

        Loading editor
    • Enable source editor in the editing section of Special:Preferences.


      You must not have been logged into your bot account.

        Loading editor
    • This is well on form now! Changed "Preferred editor" to the visual one and then I can see the find and replace. This does mean that when I would like to use the find and replace it means I always have to use source editor, which isn't a problem and is in fact better. Just in case though is there a way find and replace can appear in the visual editor as well? Always good when full potentials are realised. Another question for 1 and 2 below why does enter need to be chosen?

      1. In the find box just hit enter.
      2. In the replace box hit enter and then add File:.

      Followed your directions, since like 50 images had "File:" chose the find and replace on selected text, for that to add them all except for a single one. Retried and it worked though so I should keep an eye on it to ensure they all go through. Also used the bot to remove the File: from all images so it is more compact code, good I guess!


      With the edits on my account, the thing is I was using and watching the bot do the categorizing, and though I had loads of other windows open where S3r0-Ph1i was still on how would it have linked to that? I mean some random user could have suddenly had like 300+ edits from the bot account appear under their contributions XD 

      Also just to see if this is right, where the edits did not appear in the wiki activity, but did under recent edits for S3r0-Ph1i, what's great with the bot is this time is that there was not a long list on either, it is right the edits are supposed to be invisible and not appear in either? Bot edits do appear in the wiki history though is that right for bots?


      Overall perfect news in that they have been added there they do have File: but not when viewed in source editor is that right as well? 


      With adding categories going perfectly, if it sounds like a plan should we dive right into other areas the bot can do? There is a MassEdit and MassNullEdit should they be used somehow? Off the top of my head there was also adding licensing templates like these, are both required? 

        Loading editor
    • Got the process right with adding images again to the Fair use category. The thing is there was a lot missed: (Let me know when you see this message, I'll delete these lines to make a really long message shorter) (Edit: this one was noted as below as not having been added to Fairuse, it has despite the error message and not appearing in the Fairuse category. Does it just take time to load?

      Page File:Banana-Fish-01-40.jpgEpisode 01 A Perfect Day for Bananafish/Image Gallery does not exist (removed other examples to save space)

        Loading editor
      • Yeah, source editor is better.
      • I don't think the script shows up in Visual Editor...
      • That basically adds File: to the start of each line.

      • I guess it would be better if the only wiki tab(s) you have open use your bot account while performing a bot operation, since otherwise there might be a chance your main account could make the edits. However, there's no need to fear about a random user making the edits; it isn't possible.
      • Bot edits are hidden from WikiActivity and RecentChanges (although you can still view them there if you click "Show bots"). They show up everywhere else though (contributions, page history, etc.).

      Yep. The File: prefix isn't necessary when used inside gallery tags.


      MassEdit would be for adding licensing. If you want to do licensing, we can do that. Once you have your page list select "prepend" and add the wikitext you'd like each page to have. You don't have to do licensing if you don't want to though, of course.


      Are those images in the proper category? If so, then the script was working as intended. Otherwise we'll have to see if there was an error.

      And yes, categories are cached and don't always immediately show results. If you want them to update, put the same page list in MassNullEdit and then reload the category page.

        Loading editor
    • From memory I have managed to add Episode 02 images to the right categories so that’s good progress.

      Is there a way to locate images?

      These images were not added to either Episode 02 Images or when done again for Fairuse.

      Page Episode 2 Screenshot 53.png does not exist
      File:Episode 2 Screenshot 83.png already has the category 2 Images or an error was encountered; it has been skipped.
      Page File:File:Banana-fish-02-13.jpg does not exist
      Failed to add Category to File:Episode 2 Screenshot 147.png
      File:Episode 2 Screenshot 83.png already has the category 2 Images or an error was encountered; it has been skipped.
      

      Closed everything down and just have the bot account when adding the images. That’s good about it not affecting other people, did it add the edits to my account because of the same IP address?

      Everything is working perfectly with the edits just appearing in the actual bot contributions, and not on recent changes or that.

      Though “File:” can be added to ensure the categories can be added, I can use the bot to remove the “File” from images to make it more concise that’s always good, right?

      So yes aside from a few odd images that do not want to have categories added, everything is going smoothly!


      Adding licensing templates is definitely a good idea so I hope we may also look into that area. How would I go about making a licensing template? The one below, I have seen on some wikis you can choose an anime or manga template rather than a generic fair use one. How would I make that one? The green one above where a description can be added and why it’s being used, i.e. “To illustrate Ash Lynx in this scene” is that green one something a bot can do or is it a case of adding them all manually?

      The images do seem to be there thankfully, there is a ‘next’ page as well. It was related to what was said at the start, if there is a way to see which images have not been added that could be handy. On this I just had a go at MassNullEdit for the first time, would that have covered the ones that were missed?


      As well as adding licensing templates, I thought of a third way to use the bot. Is there a way to convert jpg to png images?

      First is this actually best? Been converting them under the impression .png is the best format for manga and anime images… I cannot see the difference but if people were to zoom in on pixels, if I’m making the images they have to be the best of course.

        Loading editor
      • Yes, just click the search bar and type File: and then the file name.
      • I really don't know why it did that with the edits.
      • I'm not sure what you mean about "File". That's a namespace prefix that all images have to be in.

      • Just copy and paste, then change what you want, I guess.
      • Your bot will not be able to add custom descriptions to each licensing template; that's a manual job.

      • There is not a way to convert jpg to png, as far as I know.
      • Yeah, I think png is better.
        Loading editor
    • Hi, tried on Google Chrome I typed: 

      File:Episode 1 - Screenshot 1.png

      Then tried pressing enter but it said the file could not be found. If for example if this photo was one where the categories was not added, the idea was to copy this:

      Page Episode 2 Screenshot 53.png does not exist
      File:Episode 2 Screenshot 83.png already has the category 2 Images or an error was encountered; it has been skipped.
      Page File:File:Banana-fish-02-13.jpg does not exist
      Failed to add Category to File:Episode 2 Screenshot 147.png
      File:Episode 2 Screenshot 83.png already has the category 2 Images or an error was encountered; it has been skipped.
      

      Like Episode 2 Screenshot 53.png and it would show that photo rather than having to manually check through them to find the correct one. 

      What was meant about the File: was whilst I guess that is needed for the bot to find them, File: is not needed for the images to appear in a gallery like this. So after File: had been added only so the image could have the categories added, after the bot could then be used to remove File: so the code is concise like in the linked example where there is just the image name and no File: before them.


      The templates are proving tricky to modify, there is already what appears to be a default Fairuse template here the one that can be chosen when images are uploaded. Shall I adapt that one, or make a new one for the end result of this in yellow? On some sites there are also different licensing templates for manga, anime and so forth, should I make them or just stick with a one Fairuse template for everything? I would like to include the following:

      '''''This work  is [[wikipedia:Copyrights|copyrighted]]. It is used to:
      * Provide a visual illustration of the topic in question not limited to:
      ** Character depictions, how they look, their reactions in various settings.
      ** A depiction of the animation style for artistic purposes.
      ** Key frame sequences that are easily missed and would have to be paused to ever be able to see.
      * Detail an account where no equivalent is available or could be created that would sufficiently provide the same information.
      * Function for non-profit purposes, rather secured for informative on the non-profit English Banana Fish Wiki, hosted on servers in the United States where it functions as an online encyclopedia.
      It will be used in a way that qualifies as [[wikipedia:Fair use|fair use]] under [[wikipedia:United States copyright law|United States copyright law]].'''''
      

      But should that really be included in the black licensing template underneath? Linked text appears as yellow so if it is kept black, could the outer line be changed to yellow for Banana Fish? 

      Wherever it is, the general benefit of the above points is they are easy to apply to all images. For example it could also be written something like "Thia image is to illustrate the art, characters and events occuring in Episode 01". Then such a template could be applied by the bot all at once just like the categories to save doing it one at a time. I just need help on which templates to make and what information to include in them.


      Is there a built in convert jpg to png that the bot could link to anywhere? There are online converters so if one of them could be added so every image could be selected and converted to png format with the bot that would save downloading the jpg ones, converting them 20 at a time then reupload with the multi uploader which takes time, to then delete the jpg ones to replace with the new png ones.

      Could the bot also rename images? The order for episode 1 is: Episode 1 - Screenshot 1.png, if a bot could continue that order "Screeenshot 2" "3" "4" and so on to at least name the random number images that could be a good idea.

        Loading editor
    • Yeah, you're correct about the File prefix.


      Honestly, the licensing templates are completely up to you. Just do what you think sounds good and what works for your wiki.


      As stated previously, if there is a jpg to png converter, I'm not aware of it.

      Regarding the renaming, there is a way to mass rename files, but it's rather cumbersome to use.

        Loading editor
    • Excellent that I got all the File: stuff sorted, add when categorising and remove to save space after.

      For the licensing template, expanded on the original one creating this. How would the bot add this to every image so each one had the template like this one?

      For specific ones, this one would be handy in the summary... only it's not made, like at all.

      Where would we ask if there is a convert jpg to png feature on Fandom? That would be really handy.

      Thank you for the rename thing, that would definitely be worth at least trying. See in source mode the images at the bottom with random numbers could continue as 172 from above, may you tell me how I could arrange for that?

        Loading editor
    • Just input the pages in MassEdit and put this in the "New Content" box:

      ==Description==
      {{Fairuse}}
      

      You could create that one then.


      I don't think there is, unfortunately. You can ask elsewhere though.


      Which images are you wanting to rename?

        Loading editor
    • Tried "Append" content to pages, added the info in the gray box, "Enter Pages" was Episode 01 Images, pressed Submit. This edit one remains on "Editing..." so it does not tell you when it is complete, is that right? Good news it has added the template! Like so The could be better news it has added it twice, including at the bottom of the article page.


      May you help me create that green template? Is it made of a bunch of different ones? That's new ground for me and unsure of how to do it.


      Aside from another person, should I make a separate thread on this dev wiki to ask if there is anything that can convert jpg. to png. images?


      For the image renames, in edit here there are a load near the bottom with random numbers that could be renamed, one suggestion is to continue the Episode 01 Screenshot 171.png numbering system. Would you mind telling me how to use the bot to try the rename feature? Just added it to the js page but there were a few X's.


      Another thing, thought this would be a choice display image for Ph1i5-B0t how would it appear right in the image section? Right now it has "Nana Fi" which is actually a brilliant name that should really be kept but always handy to know how to scale images correctly.


      One minor thing is none of the bot features like mass edit are appearing on the Episode 02 gallery.

        Loading editor
    • It should tell you when it's complete... Regarding adding it twice, you probably either hit the Submit button twice or performed the operation twice. Be careful to do neither, since the script won't return like MassCategorization does. Next time I'd use the prepend mode since you broke the headers; otherwise add an extra space before you enter the content.


      Which green template?


      You can if you want.


      Replace your current JS with this, as it should fix the error:

      importArticles({
          type: 'script',
          articles: [
              'u:dev:FindAndReplace/code.js',
              'u:dev:MassCategorization/code.js',
              'u:dev:MassEdit/code.js',
              'u:dev:MassNullEdit/code.js',
              'u:dev:MassRename/code.js',
          ]
      })

      As for renaming those images, you'll probably be best off just doing it manually.


      Yeah, those tools aren't appearing because you broke stuff when you tried to add MassRename. Once you update your JS with the code I've given you they should appear eventually though.

        Loading editor
    • It does not seem to want to do it for me, when using the mass edit to add templates it says it is still editing and I can only tell when it's done by checking the last image to see whether the template has been added. For adding it twice that was it, I clicked on a different part of the window when the process was happening and it all closed down. Then just put them all through again assuming it would not add it twice and skip over. Should I use the Null edit one to remove those that have the template twice? Used prepend, by broke the headers do you mean the ==Description==? That does still seem to show... as for adding it twice this is the issue. Again related to whether null edit can be used to remove the additional one. Was also thinking should I use "Licensing" for the copyright one, and "Description" for the green one that could also be used:


      The green template for [this one https://owarinoseraph.fandom.com/wiki/Template:Fair_use_rationale] I added it on the Banana Fish wiki somewhere but it did not show. Since this layout is new to me was wondering if you would not mind helping me make a yellow version of it. It would make sense for me to include the reasons why it is being used on the yellow template, then have the fairuse description for the copyright template underneath.


      Do you know how I could have the full "Banana Fish" word from that image appear in the bot display picture?


      Thank you for pointing out the correction, Just added categories for Episode 03, the licensing templates are close to being finalised. One final thing was whilst manually changing the image names is best since there are luckily just a few. Would you mind telling me how I could use the mass rename tool for future use? Episode 02 has quite a few random number ones so is good practice to be familiar with how to use it in case it is used elsewhere.

      With adding categories, templates and renaming that should be the bot complete to breeze through the rest of the image galleries to polish them so to speak. I think it's the best progress imaginable! Just hope it is not asking for too much with these final stages.

        Loading editor
    • Good news is that it does seem possible to use a bot to convert .jpg to .png images. I asked in a different post here so we can both see if something JS related can be made.

        Loading editor
    • As I wrote on your wall thanks again for making something truly amazing! If other areas are explored in the future, like if JS is needed for a different purpose shall I just return to this thread and keep it all here? 

        Loading editor
    • Sure!

        Loading editor
    • TheGoldenPatrik1 wrote: You could use MassNullEdit to generate a list of all file pages on a wiki and then use MassEdit and MassCategorization to add categories and licensing using that list.

      All set, okay so for this one this is probably just a brief detour from using the JWB, but figured the MassNullEdit is good to use.

      On the episode pages like Episode 01 there are the six preview cards used as a gallery on the article page. Would you please mind telling how MassNullEdit would be used to gather the six images (possibly infobox images as well, and any other images spread around) across the 24 episode pages to add the categories to them?

        Loading editor
    • Import the script, click the toolbar button, click the add pages button, use one of the options if they have the same category, prefix, whatlinkshere, etc. You might just have to make the list manually though.

        Loading editor
    • Is it imported fully since 

      'u:dev:MassNullEdit/code.js',
      

      has been added here?

      From My Tools the window in the image below comes up. Is MassNullEdit used to make lists? Typing Add pages that link to: and listing an episode page brings a list of everywhere the episode is linked, like on character pages. Handy and all but for what purpose could that be used? Can do the same entering an image name but not sure what the purpose is when there is a list, and then 'Start' is chosen.

      Do you mean add each image name manually like in the screenshot?
      Nulledit

      TheGoldenPatrik1 wrote: You could use MassNullEdit to generate a list of all file pages on a wiki and then use MassEdit and MassCategorization to add categories and licensing using that list.

      Just like this one says if MassNullEdit could be used to bring up a list of every image on a wiki so that list could then be added to MassEdit to get the 'File:' to then allow them to be added to categories with MassCategorization.

      If 'Episode 1 Images' and 'Episode 2 Images' are needed, could MassNullEdit help find them?

        Loading editor
    • How many images are you trying to get and do they either all have the same category, all have the same first few letters (prefix), or all appear on a certain page?

        Loading editor
    • The six preview images on each article page:

      And so on for each of the 24 episodes, so 144 images all of which that are not currently in categories. 

      The thinking was that the bot could add every image on a wiki to the "Fair Use" category for example, since some wikis do not have large image galleries like Banana Fish but have images spread out across the pages. Special:ListFiles or Special:Images could show them all, but if MassNullEdit is also able to do that, and then have them categorised that could be handy.

        Loading editor
    • Unfortunately you're just gonna have to get the file names from each page manually.

        Loading editor
    • Doesn't this one work - use MassNullEdit to generate a list of all file pages on a wiki and then use MassEdit and MassCategorization to add categories and licensing using that list.

      I'm still not sure what MassNullEdit is used for, is there anything like the JWB that can find all images on a wiki so they can all have categories added to them with MassEdit and MassCategorization?

        Loading editor
    • Well if you want to make a list of all images on the wiki then just use the namespace feature in MassNullEdit. But I thought you just wanted a certain 144 images?

        Loading editor
    • Ooh thank you that's a helpful pointer, I tried 'Add pages from namespace' and chose 'File' since that means image (and came up with it has more than 5000 so may take a while to load). Does that cover images that don't have 'File' in front of their name, since quite a lot of them don't.

      As for the 144 images across the episode articles with the 6 on them, I guess MassNullEdit would bring up a list of every image, of which those preview images would be included? They could be added to the 'Fair Use' category since all images are good to be added there.

      Could MassNullEdit add the 6 images from each page to add them to 'Preview Images' and 'Episode (number) Images'?

      Is MassNullEdit just used for creating large lists to add to MassEdit and MassCategorization?

        Loading editor
    • If they aren't in the File namespace I don't see how they can be an image. Can you give me an example?

      Yep.

      Not sure what you mean.

      No, you can use it to "null edit" pages which basically just refreshes their content.

        Loading editor
    • In source editor the images are like Episode 1 - Screenshot 1.png without the ‘File:’ word in front of them so was wondering if they would not be included.

      Ph1i5-B0t wrote:

      Could MassNullEdit add the 6 images from each page to add them to 'Preview Images' and 'Episode (number) Images'?

      This one was finding the images on a page, the 6 preview images in this case, and then adding those to a ‘Preview Images’ new category, and existing ‘Episode 1 Images’ category for example.

        Loading editor
    • RE the file images, that is just the way the files are specified in a gallery, the actual file is still in the File: namespace. i.e the actual location of the above file is File:Episode 1 - Screenshot 1.png

      So yes it will find them.

        Loading editor
    • Wonderful, so 'Add pages from namespace' and chose 'File', this process can be used to add every image on the wiki to the Fair use category using MassNullEdit.

      Tried that to get the list of 10115 images, which are good to copy and paste into Enter Pages in MassEdit. For the Select Type is it Namespaces since they are image names? And then Fair Use is the 'New Content' which will add all the images into the Fair Use category? (Also is it a good idea to do this number of images in one sitting, or should they be done in parts like 100 at a time).

      If that is the right process there, can MassNullEdit also find the preview images on the 24 episode article pages? Whether finding images on certain pages, or detecting hours until broadcast.png in the image names.

        Loading editor
    • The 'New Content'should be [[Category:Fair Use]] if all you want to do is add a category.

        Loading editor
    • ^

      As for your other question, use the individual pages option since you're using a page list.

      It's fine to do all the images at once since the script makes sure you don't edit too fast.

      Can you rephrase your last question? I'm not sure what you mean.

        Loading editor
    • Thank you to you both, you know I think it's only good manners for me to actually do the 10115 images in one go XD so I'll try that sometime.

      Ph1i5-B0t wrote:

      If that is the right process there, can MassNullEdit also find the preview images on the 24 episode article pages? Whether finding images on certain pages, or detecting hours until broadcast.png in the image names.

      This one might have been answered with the individual pages option, wanted to add say Episode 01 A Perfect Day for Bananafish to MassNullEdit or somewhere and for it to detect the images on the page, so those six preview cards could be added to a 'Preview Images' and 'Episode 01 Images' categories.

        Loading editor
    • Well I'd probably go about that by saving the whole 10115 long file list in a text file and then use the command line commands findstr(windows) or grep(macOS/linux) to extract just the relevant filenames. Actually I'd use grep on both OS but grep is not on windows by default.

      Happy to provide you with instructions on how to do so if you want to try it this way. Let me know your OS (windows or mac/linux).

        Loading editor
    • Aspallar wrote:
       line commands findstr(windows) or grep(macOS/linux) to extract just the relevant filenames. 

      So this could for example find the six preview images on the episode pages? That does sound really neat, it is certainly worth looking into and thank you for the offer to provide instructions.

      If it is proper, I hope we may revisit this at a later time but as of now there is another pressing matter. May I receive guidance on how to allow my bot to use JWB to correct spelling on a wiki ? The idea was, like for Banana Fish for example to use the bot to correct spelling and grammar across the wiki, but need help on knowing the process to do this.

        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
Community content is available under CC-BY-SA unless otherwise noted.

Fandom may earn an affiliate commission on sales made from links on this page.

Stream the best stories.

Fandom may earn an affiliate commission on sales made from links on this page.

Get Disney+