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
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 ...
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).
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.
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).
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.
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.
TemplateStyles | Test Wiki | Fandom
lostris.fandom.com/wiki/TemplateStyles
TemplateStyles
is a MediaWiki extension allowing for stylesheets (CSS) to affect specific pages, intended largely for templates, without interface administrator privileges. The extension has sandboxing to prevent obstruction of stuff outside of .
mw
-parser-output. It is enabled on all wikis by default. Create a new page ending with .css as s subpage of the template that'll use the code, and add ...
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).
RuneScape:TemplateStyles - OSRS Wiki
oldschool.runescape.wiki/w/RuneScape:TemplateStyles
TemplateStyles
allow custom CSS pages to be used to style content without an administrator having to edit sitewide CSS.
TemplateStyles
make it more convenient for editors to style templates.
Module:Uses TemplateStyles - Miraheze Meta
meta.miraheze.org/wiki/Module:Uses_TemplateStyles
The above documentation is transcluded from Module:Uses
TemplateStyles
/doc. (edit | history) Editors can experiment in this module's sandbox (create | mirror) and testcases (create) pages. Add categories to the /doc subpage. Subpages of this module.
Feedback