more wikis
 

Help:WidgetTag/parameters

From Wikia Help

An overview of WidgetTag parameters.

Specify values for any of these parameters just as you would for an attribute in any standard HTML tag. viz.

<widget param1=value1 param2=value2>WidgetName</widget>
  • Suppose you defined at MediaWiki:Favorites a custom WikiPage widget and when that widget is displayed in the side bar it bears the label "Manage Favorites". To display that custom widget in a page body use:
    <widget title=Favorites name=Manage Favorites>WikiPage</widget>
    Note that the standard widget skin (or frame) is not displayed when widget tags are used in a page and therefore the label specified by name does not get used in a page.

Contents

ActiveTalkPages

limit
type=integer
default=10
range=1-50
OoR=15

AncientPages

limit
type=integer
default=10
range= 1-50
OoR=10

Contribs

limit
type=integer
range= 1-50
OoR=10

EditedRecently

limit
type=integer
default=5
range= 1-50
OoR=15

ProblemReports

limit
desc=how many do you want to show
type=integer
default=25
range=1-50
OoR= 25
show
desc=which type of reports to show in this widget
type=integer
values
0 -> all (default)
1 -> closed
2 -> need staff help
pr_table_problem_type
desc=which TYPE of report to show
type=integer
values
-1 -> all (default)
0 -> spam
1 -> vandal
2 -> content
3 -> bug
4 -> other
pr_raports_from_this_wikia
desc=show from this wiki or ALL wikias
type= checkbox
values=
0 -> unchecked aka ALL wikis
1 -> checked aka THIS wiki only (default)

NeedHelp

no widget params

pulls from MediaWiki:Needhelp

RecentChanges

limit
desc=how many items to show
type=integer
default=10
range=1-50
OOR=15
hidebots
desc=bots, to show or not to show, that is the question
type=checkbox
values=
0 -> SHOWS bot edits in widget
1 -> HIDES bot edits in widget (default)

Referrers

wt_show_referrers
desc= show internal/external sites
type=integer
values=
0 -> 'Show also internal urls'
1 -> 'Show only external urls' (default)
limit
desc= how many to show
type=integer
range= 10-30
OoR= 25
wt_show_period
desc= how far back to go
type=string (in the format of Ymd, aka YYYYmmdd)
-1 month from today (default)
-3 months from today
-6 months from today

note, this widget may have problems being embedded, dues to its dynamic date range parameter (unless you don't use it)

ShoutBox

limit
type=integer
default=5
range=1-50
OoR=5

Slideshow

show
desc=which mode of widget to use
type=integer
values=
1 -> 'newest images' (default value)
2 -> 'random images'
3 -> 'from list'

If set to show=3, people with the right 'wteditimagelist' (sysop and staff), will see a link to the MediaWiki page where it pulls that list from, MediaWiki:WidgetSlideshowImages

The format of this page is this *File_name.ext description with spaces

  • filename cannot have spaces (use underscores), invalid lines ignored
  • first space on a line is used as the delimiter between filename and desc
  • description is shown on mouse over of image
limit
desc=how many to cycle through (ignored if show=3)
type=integer
default=10
range= 4-50
OOR=15

Tips

no widget params

Pulls from MediaWiki:Tips

format for page: no leading dot, just 1 blank line between each tip

example

this is the first tip

this is the second tip

this is the 3rd tip

TopContent

at
desc=which section is shows as default
type=string
values=
most_visited (default)
most_popular
newly_changed
highest_ratings

See also

WikiPage

name
type=string
desc=the title of your widget (only used in sidebar widgets, not embed)
default = 'Wiki Page'
title
type=string
desc=the name of the page that your widget will feed from
default: widgetwikipage

Note: this will try to match to "MediaWiki:<YOURINPUT>" first, if it fails, it will look for a page named "<YOURINPUT>"

The default widget contents come from w:c:messaging:MediaWiki:widgetwikipage, which is why the default is 'widgetwikipage'

Admins can edit MediaWiki:widgetwikipage to have better default instructions on how to setup their widget.