more wikis
 

Help:WidgetTag

From Wikia Help

This is a new feature on Wikia!

List of WidgetIDs

  • LastWikis
  • MostVisited
  • WikiPage
  • TopVoted
  • Tips
  • ActiveTalkPages
  • TopContent
  • NeedHelp
  • EditedRecently
  • ProblemReports
  • Referrers
  • Slideshow
  • Watchlist
  • TopUsers
  • RecentChanges
  • AncientPages
  • Community
  • Toolbox
  • ShoutBox
  • Answers

Most Widgets can be embedded on any page using the <widget> WidgetID </widget> tags.

Widgets are self-contained tools which provide information or navigation to users. In the past they could only be displayed on your sidebar or on your Special:WidgetDashboard page, but now they can be displayed anywhere.

With the "Wiki page in Widget" widget, you can also point it at any article and have that show up on the page, too.

Many widgets can be customized by changing the value of certain default preferences (a.k.a. parameters). WidgetTag allows you to customize the parameters of a widget just like the widget editor does.

Contents

How do I embed a widget?

Put the widget "Community" in our article by placing the widget's name between opening and closing <widget> tags:

<widget>Community</widget>

It will render as:

Community
323 articles on this wiki

Create an account
Already a member? Log in

Latest Activity

If a widget has a parameter or preference that would normally be customized via that widget's editor then you can also specify a value for a parameter just as you would for an attribute in any standard HTML tag. viz.

<widget param1=value1 param2=value2>WidgetID</widget>
<widget limit="5">RecentChanges</widget>

Read more about widget parameters below.

Can I float the widget?

The widget can be floated to left or right so that other page text flows around it:

<div style="float:right; margin:0 5px">'''Recent changes'''<widget limit="25">RecentChanges</widget></div>
<div style="float:left; margin:0 5px">'''Top Users'''<widget>TopUsers</widget></div>

Example

The Recent Changes widget is floated to the right and the Top Users widget is floated to the left of the following text:


Recent changes
Top Users

Lorem ipsum qwerty foo bar qwerty foo bar qwerty foo bar qwerty foo bar qwerty foo bar qwerty foo bar qwerty foo bar qwerty foo bar qwerty foo bar qwerty foo bar qwerty foo bar qwerty foo bar qwerty foo bar qwerty foo bar qwerty foo bar qwerty foo bar qwerty foo bar qwerty foo bar qwerty foo bar qwerty foo bar qwerty foo bar qwerty foo bar qwerty foo bar qwerty foo bar qwerty foo bar qwerty foo bar qwerty foo bar qwerty foo bar qwerty foo bar qwerty foo bar qwerty foo bar qwerty foo bar qwerty foo bar qwerty foo bar qwerty foo bar qwerty foo bar qwerty foo bar qwerty foo bar qwerty foo bar qwerty foo bar qwerty foo bar qwerty foo bar qwerty foo bar qwerty foo bar qwerty foo bar qwerty foo bar.


Parameters

Most widgets have a few parameters that you can use with the <widget> tag to adjust how the widget looks and acts on the page. These are the same options that you can personally customize when its in your sidebar but, in the case of in-page widgets these settings will be seen by anyone viewing that page.

All of these parameters have a default value, so you don't need to worry about setting anything if you don't want to. All of them also have a fall back "safe" value, in case your input is too small, or too large, so you don't have to worry about breaking anything, so feel free to experiment and try them out.


Comprehensive list of widgets and their parameters
WidgetID Parameter(s)* Widget Name Widget Description
ActiveTalkPages limit Active talk pages A list of recently edited talk pages
AncientPages limit Stale pages See a list of pages that have not been edited in a long time
Answers limit Answers See a list of top un answered questions
Community limit ? ?
Editedrecently limit Recently edited by Displays a list of recent editors for any article you visit
LastWikis Last Wikis Quickly jump back to wikis that you've visited in the past
MostVisited Most visited A list of the most visited articles on this wiki
NeedHelp Help needed Displays articles that have been marked as needing help
ProblemReports limit
show
pr_table_problem_type
pr_reports_from_this_wikia
Problem reports Displays a list of reported problems for this wiki
RecentChanges limit
hidebots
Recent changes List of recent changes
Referrers limit
wt_show_referrers
wt_show_period
Top referrers A "cloud" of the sites that link to this wiki. Bigger text means more refers
ShoutBox limit Shout Box Chat with others currently on the wiki.
Slideshow limit
show
Image Slideshow Watch a slideshow of images from this wiki
Tips Tips Shows random tips
Toolbox ? ?
TopContent at Top content Four widgets in one:
Most Popular, Most Visited, Newly Changed, Highest Ratings
TopVoted Top voted See the highest rated articles, as voted by this wiki's community
TopUsers Top users See a list of the most active users of this wiki
Watchlist Watchlist Easily keep an eye on your watched pages
WikiPage name
title
Wiki page in widget Display any article inside a widget. Great for making your own widget
_na_ Newest articles A list of newest articles on this wiki
_na_ Contributions Handy way to view your contributions
_na_ Bookmarks Add your favorite pages
* See the list of parameters per widget, their default values, descriptions, etc. (here)