Wikia

Community Central

WatchlistRandom pageRecent changes

How to get a "Featured Article" etc on the front?

63,452pages on
this wiki

Forum page

Forums: Index Support Requests How to get a "Featured Article" etc on the front?
Wikia's forums are a place for the community to help other members.
To contact staff directly or to report bugs, please use Special:Contact.
Note: This topic has been unedited for 753 days. It is considered archived - the discussion is over. Do not add to unless it really needs a response.


How can I add a "Featured Article", "Featured picture of the day", and "Today in History" templates on the front of my wiki? AJona1992 00:29, April 30, 2010 (UTC)

The easiest way is to embed a subpage or template onto the page that is specifically for Features, and the most common way I've seen it done. As an example, check out the Avatar Wiki, they have both a featured article and a featured image on their main page and are both done via templates: Avatar Wiki:Featured Article and Avatar Wiki:Featured Image. --CharitwoTalk 00:53, April 30, 2010 (UTC)

It requires little coding for something simple but for featured articles on the main pages that are complicated such as this: here, it would require lot of coding. I recommend using this code to start off with:

<!-- Contents -->
<table style="width:50%; border:2px solid #aaccee; border-bottom:10px solid #aaccee; -moz-border-radius:0 14px 7px 7px; -webkit-border-top-right-radius:14px; -webkit-border-bottom-right-radius:10px; -webkit-border-bottom-left-radius:10px; margin-top:10px;" cellpadding=5>
<tr><td colspan=4 class="gradient" style="text-align:left; font-size:110%; font-weight:bold; color:black; background-color:#aaccee; -moz-border-radius:0 7px 0 0; -webkit-border-top-right-radius:7px;">Featured _____</td></tr>
<tr valign=top><td style="margin-left:10px;">
</td>
</tr>
</table>

which would give you this:

Featured _____

so if you want a featured article, you could have:

Featured Article

{{Featuredarticle}}

then in {{featuredarticle}}, if you want more than 1 featured article, you would use <choose> and <option>. Put <choose> at the top of the page then <option> at the start of an article that you want to feature (only put this in the template!) at the end of each option, use the close tag </option> and </choose> at the end of the whole page

Hope I helped!

Why is my name in green? i am not a admin! 10:16, April 30, 2010 (UTC)

Around Wikia's network

Random Wiki