Forum:Image of the Day

Hey everyone,

My name is John. I'm the founder of the cardguide wiki. At some point in the future, I don't know exactly when yet, I want to make a box on the front page with "Character of the Day" or "Joker of the Day". On many Wikis I see something like that. It make my homepage a little more attractive.

How can I make it, and do I need to make special categories ? Vuurvosje 14:12, November 23, 2011 (UTC)


 * Are you asking about how to create the box itself or how to make it randomly pick images for featured content? If it's the former you'd have to be more specific about how you want the box to look like. Alternatively, you can look how other wikis do it. If it's the latter then there's dozens of options on how to do that. The easiest is of course updating the box manually whenever you feel a new card should be featured. The more popular approach is to use the RandomSelection extension. Personally, I like to use DPL to randomize stuff, as seen here - "Random Game Art" section. — Sovq 14:45, November 23, 2011 (UTC)


 * I mean both. I'd like the box to have a 1.5x bigger, than the cards on my frontpage with black border. But I'm not good in creating such things. I saw your example of PDL and that is I think a very good solution, because, you only need to add a category to an image, as I understand it. Let me know if I'm wrong about it. Vuurvosje 15:06, November 23, 2011 (UTC)


 * Yup, just adding an image to an appropriate category is sufficient. However, the DPL extension is not enabled on wikis by default and has to be requested through Special:Contact. The code for the box is:


 * which generates
 * {|style="vertical-align:top; border: 1px #aaaaaa solid; background-color: #fefefe; box-shadow: 4px 4px 6px #000; border-radius: 6px;"


 * style="background-color: #98DAFD;text-align:center;font-size:1.5em"|Random Game Art
 * [[File:Wiki-wordmark.png]]
 * }
 * The colors, borders and styling in general can be modified at will. The image in the above example has to be replaced with any 'randomizer'; either DPL if you get it enabled, or something else. Feel free to copy this code to your main page if you want. — Sovq 15:25, November 23, 2011 (UTC)
 * The colors, borders and styling in general can be modified at will. The image in the above example has to be replaced with any 'randomizer'; either DPL if you get it enabled, or something else. Feel free to copy this code to your main page if you want. — Sovq 15:25, November 23, 2011 (UTC)


 * Thank you very much, Sovq, for your help! I will request DPL, it will make my wiki much nicer, everytime I add new cards.


 * I have one more question about this. What happens if I add the category to the page the image is on, and not to the image? Vuurvosje 08:10, November 28, 2011 (UTC)


 * If you use the DPL solution, then nothing happens. The DPL query, as seen on the SS1 Wiki, will only display pages in the  namespace. Of course you can freely modify that. See this page > "Featured Clan" section for an example. The DPL query there derives the image from the article which uses it and links the image to that page. — Sovq 08:55, November 28, 2011 (UTC)


 * The reason I asked this, is this: After two games I have 2.000 images, it becomes thousands and thousands more. Then it is very time-consuming to change it. Vuurvosje 09:18, November 28, 2011 (UTC)