FANDOM


  • On my wiki, I want to have an infoicon with a 60px cover but i don't know what I'm doing wrong... I used a template from the templates wiki and went into the code and customized it.. is that why it's not working? Here's the link - https://beyonce-knowlescarter.fandom.com/wiki/Crazy_In_Love_%28feat._Jay-Z%29, it automatically categorized it in Pages with broken file links. The problem is where it says 'Singles Chronology' on the infobox. Any help is appreciated, thanks

      Loading editor
    • what do you mean by [[File:{{{{{previous}}} Song Cover}}|60px|link={{{previous link}}}]]? do you want to use previous parameter as filename, or do you wan to call previous song cover template that will return filename?

        Loading editor
    • As fng already mentioned, the infobox is searching for File:Template:{{{previous/next}}}_Song_Cover which doesn't exist. Because it's looking for a file, it automatically categorizes it.

        Loading editor
    •   <group layout="horizontal">
        <header><center>Singles chronology</center></header>
          <data source="previous"><label>Previous</label><format>{{#if:{{{previous link|}}}
      |[[File:{{{previous}}}.png|60px|link={{{previous link}}}]]
      <br />
      {{Small|"[[{{{previous link}}}|{{{previous}}}]]"}}
      }}</format></data>
      
          <data source="name"><label>Current</label><format>[[File:{{{name}}}.png|60px|link=]]
      <br />
      '''{{Small|"{{{name}}}"}}'''</format></data>
      
          <data source="next"><label>Next</label><format>{{#if:{{{next link|}}}
      |[[File:{{{next}}}.png|60px|link={{{next link}}}]]
      <br />
      {{Small|"[[{{{next link}}}|{{{next}}}]]"}}
      }}</format></data>
        </group>
      
        Loading editor
    • Thank you TableWiz! Where should I put this? In the infobox template?

        Loading editor
    • I have changed your template. You now have a naming decision.

      "Current" is using the "name" variable.

      • "name" is the top row of your template, so Crazy In Love (feat. Jay-Z)
      • but your cover image is labelled as Crazy In Love.png


      So you could:

      1. name the images as the page name > Crazy In Love (feat. Jay-Z).png
      2. change "Current" from "name" to a new variable "current" > so you can use any image with any name Crazy In Love.png
        Loading editor
    • Thank you! I'll change the image name i think. Thank you, again!

        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.