FANDOM


  • hi i was wondering if u or any of the other admins know how to make templates with backgrounds of images and not a solid color like they have in the template below;

    The Once Upon a Time Wiki is the official community site dedicated to the hit ABC television series Once Upon a Time and its related media, including its spinoff Once Upon a Time in Wonderland, books, and graphic novels. Anyone can edit here, we can only grow with YOUR help.

    If you're new to this wiki, please look at our site policies and take a moment to check out the Wikia tutorial. If you have any problems please ask one of the admins for help.

    Home to 3,538 articles since August 9, 2011

    if u know who coded that template like tell me plz and ill ask them how to code things like that

      Preparing Editor Spell
    • The template was coded by KillianJones, who is no longer with the Wiki. I've looked at the template, and I am unable to deduce how the template was made with an image for the background. I'd recommend asking Utter solitude, as I think it might have to do with the CSS.

        Preparing Editor Spell
    • thank u

        Preparing Editor Spell
    • Hi, I'd be happy to explain to you how it works. On MediaWiki:Wikia.css, we have this coding:

      .homeaffiliates,
      .homefquote {
      	background: url("https://vignette.wikia.nocookie.net/onceuponatime8042/images/b/be/305WhatExactly.png/revision/latest?cb=20141201181500");
      }
      

      And on Template:HomeAffiliates, the top coding has "homeafiliates", which is matched with the coding above.

      The coding I'm talking about from the affiliates template is below:

      {| class="homeaffiliates" style="padding:5px; width:100%; margin-bottom:10px; color: #efefef; padding: 10px; text-align:center;"
      

      And you can always change "homeaffiliates" to whatever the background is for.

        Preparing Editor Spell
    • thank u very much! im doing this for talesofarcadia.wikia.com and its working

        Preparing Editor Spell
    • No problemĀ :-)

        Preparing Editor Spell
    • A Spy in the Mirror
        Preparing Editor Spell
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.