#Setting up an automatic gallery

14 messages · Page 1 of 1 (latest)

cosmic geode
#

On Sekaipedia, each character in the game has their own gallery with all the in-game and promotional artwork they feature in (see here). What I would like to do is have certain sections of this gallery to update automatically.

I'd like to start with the 4koma section of the gallery, since it's the most sorely neglected across all of them. What I'd want to do is have all the comics tagged with "4koma", "Japanese" and "Akiyama Mizuki" to sort into the Japanese tabber of the 4koma section (and vice versa for English). I attached a photo of what the information template looks like, but you can also see it here.

vocal totem
#

Whenever we have new images on Blue Archive wiki, we categorize them with a modified version of HotCat (which bypasses some annoying confirmations). DPL then picks them up automatically so that we don't have to manually update several pages. Sometimes there are more than 10 characters in an image, so this approach would save us lots of time.
E.g. https://bluearchive.wiki/wiki/File:Fankit_046.png, which appears in close to 20 gallery pages.

#

If you need to do some custom image processing, generate a list of file names with DPL4 and then pass the result to a Lua module. The Lua module can do some arbitrary transformation of the file list and then output to a gallery.

#

@cosmic geode ^

lost hearth
#

edit, do nothing, save

cosmic geode
#

ohh ok

cosmic geode
# vocal totem You can use DPL4. See https://bluearchive.wiki/wiki/Template:CharacterAdditional...

Trying my best to make sense of this (admittedly not very code savvy, I apologise) - I understand what {{CatGallery}} is doing, but I'm confused what {{CharacterAdditionalGallery}} is doing

Blue Archive Wiki

Display a gallery of images from specified categories, excluding other specified categories.
Images belonging to Spoilers category will get spoiler styling.

cosmic geode
#

no not you wikibot

vocal totem
# cosmic geode Trying my best to make sense of this (admittedly not very code savvy, I apologis...

Hmm did you happen to mean the other way around? I think CharacterAdditionalGallery is pretty easy to understand since it is just a bunch of DPL calls. CatGallery is very weird because it is a workaround. notcategory previously did not count toward the category limit of 4 but now does, so we had to come up with a weird way to circumvent that and restore the old version https://bluearchive.wiki/wiki/Template:CharacterAdditionalGallery?oldid=96738 (note that due to & becoming <&> in DPL4 some sections are no longer functional).