Jump to content

Help:TemplateData/Template search widget

From mediawiki.org

The template search widget provides a way to search for templates, and for registered users to add and remove favourites.

The widget is provided by TemplateData and used by TemplateWizard and VisualEditor. It can also be integrated into other parts of MediaWiki by extension or gadget developers.

Favourites are stored as a user preference, in the form of page IDs (rather than as page titles). This means that if a template is moved, its status as a user's favourite also moves with it.

How to choose and find templates?

[edit]

From within the template search widget one has multiple options, which are:

  • Searching by typing a keyword in the search field.
  • Selecting one of the favourite templates that are stored per user in the list under the search box. While typing one can see which matches have already been favourites in the past and quickly access templates one used and liked in the past.

How to add and remove favourite templates?

[edit]

When searching, each search result has a 'bookmark' icon located at the end of the row. This can be clicked at any time to add or remove a template from ones favourites.

There are a number of other places from which templates can be favourited and unfavourited, all of which employ the same icons:

  • In the template dialog, after selecting a template, the icon appears at the top right of the template parameter form.
  • On a template page (i.e. Template:Lorem_ipsum) both while editing and viewing, the favouriting icon is near the watchlist icon.

See also

[edit]