All Regions
Argentina
Australia
Austria
Belgium (fr)
Belgium (nl)
Brazil
Bulgaria
Canada (en)
Canada (fr)
Catalonia
Chile
China
Colombia
Croatia
Czech Republic
Denmark
Estonia
Finland
France
Germany
Greece
Hong Kong
Hungary
Iceland
India (en)
Indonesia (en)
Ireland
Israel (en)
Italy
Japan
Korea
Latvia
Lithuania
Malaysia (en)
Mexico
Netherlands
New Zealand
Norway
Pakistan (en)
Peru
Philippines (en)
Poland
Portugal
Romania
Russia
Saudi Arabia
Singapore
Slovakia
Slovenia
South Africa
Spain (ca)
Spain (es)
Sweden
Switzerland (de)
Switzerland (fr)
Taiwan
Thailand (en)
Turkey
US (English)
US (Spanish)
Ukraine
United Kingdom
Vietnam (en)
Any Time
Past Day
Past Week
Past Month
Past Year
Help:TemplateStyles - MediaWiki
www.mediawiki.org/wiki/Help:TemplateStyles
2026-06-02T00:00:00.0000000
TemplateStyles
also leaves identifying information in the HTML code; to find out where a specific rule comes from, look at the page source, and the enclosing <style> tag will have an attribute like
data
-
mw
-deduplicate="TemplateStyles:r123456", where 123456 is the revision ID of the stylesheet (viewable with Special:Diff, for example).
Extension:TemplateStyles - MediaWiki
www.mediawiki.org/wiki/Extension:TemplateStyles
2026-04-13T00:00:00.0000000
TemplateStyles
is a parser extension that allows users to store custom CSS code on wiki pages and to embed these styles into articles via the <
templatestyles
> tag. The extension allows only a safe subset of CSS syntax stored in embeddable style pages. This is powered by the Css-sanitizer library. Editors are encouraged to include styles for a template via
TemplateStyles
because this allows ...
GitHub - wikimedia/mediawiki-extensions-TemplateStyles: Mirror of https ...
github.com/wikimedia/mediawiki-extensions-TemplateStyles
The
TemplateStyles
extension introduces a <
templatestyles
> tag to specify that a stylesheet should be loaded from a wiki page. Placing this in a template allows the template to have custom styles without having to place them in MediaWiki:Common.css.
Help:TemplateStyles - Saintapedia
saintapedia.org/wiki/Help:TemplateStyles
TemplateStyles
also leaves identifying information in the HTML code; to find out where a specific rule comes from, look at the page source, and the enclosing <style> tag will have an attribute like
data
-
mw
-deduplicate="TemplateStyles:r123456", where 123456 is the revision ID of the stylesheet (viewable with Special:Diff, for example).
mediawiki-extensions-TemplateStyles/README.md at master · wikimedia ...
github.com/wikimedia/mediawiki-extensions-TemplateStyles/blob/master/README.md
The
TemplateStyles
extension introduces a <
templatestyles
> tag to specify that a stylesheet should be loaded from a wiki page. Placing this in a template allows the template to have custom styles without having to place them in MediaWiki:Common.css.
MW Metadata - mattw.io
mattw.io/youtube-metadata/
Quickly gather all the metadata about a video, playlist, or channel from the YouTube API. Reverse image search thumbnails, geolocate in google maps, and translate ISO country and language codes.
Help:TemplateStyles - Swords of Wrath - sofw.miraheze.org
sofw.miraheze.org/wiki/Help:TemplateStyles
TemplateStyles
also leaves identifying information in the HTML code; to find out where a specific rule comes from, look at the page source, and the enclosing <style> tag will have an attribute like
data
-
mw
-deduplicate="TemplateStyles:r123456", where 123456 is the revision ID of the stylesheet (viewable with Special:Diff, for example).
TemplateStyles - For All Mankind Wiki
for-all-mankind.fandom.com/wiki/For_All_Mankind_Wiki:TemplateStyles
Restrictions
TemplateStyles
have a couple of restrictions though. Every class defined in a
TemplateStyles
file gets prefixed with .
mw
-parser-output. That means that only elements inside that div - which wraps the current page content - can be addressed with its rules.
Wikisource:TemplateStyles - Wikisource, the free online library
en.wikisource.org/wiki/Wikisource:TemplateStyles
To search for
TemplateStyles
stylesheets, you can search for contentmodel:sanitized-css. See also mw:Help:CirrusSearch#Contentmodel. When { {Uses
TemplateStyles
}} is placed on a template's documentation, it adds the template to Category:Templates using
TemplateStyles
(648).
DiscussionTools preview is missing TemplateStyles styling
phabricator.wikimedia.org/T428336
2026-06-06T00:00:00.0000000
What happens?: The preview of the comment is missing the styles that should be present due to its
TemplateStyles
tag. The appropriate styles (post save): What should have happened instead?: Styles should be present in the preview version. Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):
Feedback