Recent changes Random page
GAMING
more wikis
 
Gaming
Entertainment
Hobbies
Sports
Biggest wikis
see all...
See more...

Help:WidgetTag

From Wikia Help

Jump to: navigation, search
This is a new feature on Wikia!

List of widget names

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

Widgets can be embedded on any page using the "<widget> put widget name here </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 their default preferences. WidgetTag allows you to customize widget just like 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
308 articles on this wiki


Create an account 
Already a member? Log in

Latest Activity

You can also change any widget preferences that would normally be customized in the widget's editor:

<widget limit="5">RecentChanges</widget>

Read more about these 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 change when its in your sidebar, but these 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 dont have to worry about breaking anything, so feel free to experiment and try them out.

  • See the list here of parameter per widget, and their default values, descriptions, etc.
Rate this article:
Share this article: