Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Wikipedia:Favorite templates

From Wikipedia, the free encyclopedia
Wikipedia information page
This is aninformation page.
It is neither anencyclopedia article nor one ofWikipedia's policies or guidelines; rather, its purpose is to explain certain aspects of Wikipedia's norms, customs, technicalities, or practices. It may reflect differing levels ofconsensus andvetting.

Favorite templates is a feature for registered (logged-in) users to save a list of templates they can easily choose from when inserting templates with certain tools. It was added to MediaWiki in July 2025. Seemw:Help:TemplateData/Template discovery#Favourite templates for another description andthis June 2025 Village Pump (technical) discussion for background. This feature was created by WMF developers based ona Community Wishlist request. At that latter page, there are screen shots showing how the feature works.

For users with the default (Vector 2022) skin, also the Vector Legacy and Timeless skins, a bookmark icon appears next to the watchlist star icon on every page (except /doc, /sandbox, and /testcases subpages) in thetemplate namespace. Clicking the bookmark saves a template to a list inside the Visual Editor'sInsert Template dialog box and the insert template icon in thesource editor toolbar. If you are on a template subpage then only the subpage is saved. After saving a template, the icon changes to a similar icon which can be clicked to unsave the template. Templates can also be unsaved from the list of favorite templates when you insert a template.

To hide the bookmark icon completely (e.g. if you use an editor that has no way to make use of "favorite templates"), you can add this toyour CSS:

/* Hide the new (July 2025) "add to favorites" template bookmark icon */.mw-list-item.ext-templatedata-caction-favorite{display:none;}

If you use older skins (MonoBook, Modern, Cologne Blue), the bookmark icon is replaced with a tab or link reading "Add template to favorites".

Icon messages

[edit]

These messages may appear when you hover or click the icon:[1]

  • "Add template to favorites" – if you hover over the icon
  • "Template added to favorites" – if you click it
  • "Remove template from favorites" – if you hover when you have already clicked it
  • "Template removed from favorites" – if you click it again
  • "Unable to save favorites" – if an error occurs when you click
  • "You must be logged in to favorite a template" – may be displayed instead of the above
  • "You have reached the maximum number (50) of favorite templates. Please remove some from your list before adding more." – if you click after reaching 50 favorite templates

Phabricator tasks

[edit]
  • T367428 – Favoriting Templates
  • T390019 – Add favorite button next to watch star on template pages
Main namespace
Other namespaces
All namespaces
Navboxes
with templates
Inline images
Help pages
Related topics
Search
General
technical help
Special
page
-related
Wikitext
Links anddiffs
Media files: images,
videos and sounds
Other graphics
Templates and
Lua modules
Data structure
HTML andCSS
Customisation
and tools
Automated editing
Retrieved from "https://en.wikipedia.org/w/index.php?title=Wikipedia:Favorite_templates&oldid=1300685668"
Categories:

[8]ページ先頭

©2009-2026 Movatter.jp