FANDOM

Moviesign

aka Dave

Wiki Manager Councilor
A FANDOM user
  Loading editor
  • Hello. So we are trying to automate the Baby Animal Abilities pages. So far, the table row we want to generate is supposed to be like this:

    |Baby name
    |Baby image
    |Baby species
    |data-sort-value=... |abilities
    

    The "abilities" is the parameter {{{abilities}}} from {{BabyBox}}, and the value of "data-sort-value" is from the new parameters that we add inside {{BabyBox}} template on the animal pages (see Space Panda for an example). The new parameters have the same name as their corresponding categories.

    The template we use to generate the tables is {{BabyRankingTable}}. And we can't find a way to make the ability category becomes "data-sort-value" in the smaller template {{BabyRanking.table}}.

    So, is there a way to use template with unnamed parameters inside DPL? Like, inside {{BabyRankingTable}}, with include = {BabyBox¦BabyRanking.table}, I want it to display the result of {{BabyRanking.table|{{{category_parameter}}}}} instead of {{BabyRanking.table}}. We already have a solution of creating 20 templates for 20 different abilities, but I wonder if we can do it the easier way.

    Thanks!

      Loading editor
    • I've been working on this problem off and on for months now, and the short answer is no, you cannot pass any additional parameters to a phantom template other than those that were passed to the original template (plus the name and title of the page that is calling the DPL function). My approach is a little different from yours. I made a new {{BabyBox2}} template that creates the table from parameters and uses {{FormatAbility}} to standardize the format, add the "(passive)" tag, and automatically generate categories if desired.

      When I get time, I'm going to try doing this in Lua. There is a way to get the DPL results, it will just take some massaging of the data to put in the data-sort-value.

        Loading editor
    • Oh so there is a solution. I will leave it to you then (idk lua :P)

        Loading editor
    • A FANDOM user
        Loading editor
  • For some reason, when I typed in the URL, AutoWikiBrowser gave me an error message saying that it received 0 bytes from the transport stream. It then followed up immediately with another one saying that the underlying connection was closed. How do you get this to work?

      Loading editor
    • View all 11 replies
    • Bots are great for making the same change on a list of pages, but the sequence number is different for each page, so it requires some human intervention. What I did for Endangered animals was to take the list of animals in the correct order from the Class: Endangered page, used a text editor to remove everything but the page names, and then pasted the list into AWB. The I clicked Start and it opened up the first page. I pasted |sequence=010 at the end of the infobox code and then used CTRL-S to save the page and bring up the next one. Paste again, change the number to 020 and saved, rinse, repeat.

        Loading editor
    • Ah right thanks, I’ll try that now

        Loading editor
    • A FANDOM user
        Loading editor
  • Ok so with DPL, would I have to start by removing the redirects for the categories?

      Loading editor
    • View all 32 replies
    • The Secret Animal table now is displayed in sequence. I used the table on Class: Secret to add the sequence numbers, so they should be correct. I think you can now safely replace that table with {{SecretAnimalTable}} :)

        Loading editor
    • Ok I'll go do that then, thanks for your work! I'll see if I can work out how to do the other tables if I have the time

        Loading editor
    • A FANDOM user
        Loading editor
  • Hi Moviesign,

    Thanks for helping with updating the infoboxes to become portable. There's just one issue with it though. Any page with a ' in the name, such as Kerfuffle'o or Flippin' Burger doesn't show the image for some reason. Can you help with this?

    Thanks,

    CollectorManiac

      Loading editor
    • View all 27 replies
    • Fixed!

        Loading editor
    • Ok thanks for 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
Community content is available under CC-BY-SA unless otherwise noted.