Help:WidgetTag

From the group that combats the Wikia skin, the Anti-Wikia alliance.
Jump to: navigation, search

List of WidgetIDs

  • ActiveTalkPages
  • AncientPages
  • Bookmark
  • Community
  • Contribs
  • EditedRecently
  • LastWikis
  • MostVisited
  • NeedHelp
  • NewPages
  • ProblemReports
  • RecentChanges
  • Referrers
  • ShoutBox
  • Slideshow
  • Tips
  • TopContent
  • TopUsers
  • TopVoted
  • Watchlist
  • WikiPage

Most Widgets can be embedded on any page using the <widget> WidgetID </widget> tags. Simply replace "WidgetID" with one of the names listed on the right.

What is a widget?[edit source]

Widgets are self-contained tools which provide information or navigation to users.

Many widgets have parameters that allow you to further customize how it displays.

How do I embed a widget?[edit source]

To have the "Community" widget display below, we use the following code. Please recognize the format:

<widget>Community</widget>

This renders as:

<widget>Community</widget>

If a specific widget allows you to use parameters, then you would tell it the parameters the same way you would define attributes in an html tag. If you do not understand, please refer to this example:

<widget paramater1=value paramater2=value2>WidgetID</widget>
<widget limit="5">RecentChanges</widget>
Creates:

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

In the above example, the WidgetID is "RecentChanges", the parameter is "limit", and the value given to the parameter is "5". You can have multiple parameters with multiple values.

Read more about widget parameters below.

Can I float the widget?[edit source]

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

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

Example[edit source]

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<widget limit="5">RecentChanges</widget>
Top Users<widget>TopUsers</widget>

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[edit source]

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 defining all the parameters if you don't want to. All of them also have a limited range that the values given to the parameters can be, so it's not possible to break anything, so please feel free to experiment with them.


Complete list of WidgetIDs 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
Community limit Community Displays amount of articles with 5 recent changes in a content namespace
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
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 source Wiki page in widget Display any article inside a widget. Great for making your own widget
NewPages Newest articles A list of newest articles on this wiki
Contribs Contributions Handy way to view your contributions
Bookmark Bookmarks Add your favorite pages
* See the list of parameters per widget, their default values, descriptions, etc. (here)


de:Hilfe:Widget-Tags