Go to file
Roman Stolar cacfbe6a4f Override ContentHandler::validateSave instead of Content::prepareSave.
Prepare override for TemplateStylesContentHandler, remove usage in TemplateStylesContent.

Bug: T287159
Depends-On: I7f23e6e97b1c7d27a6aaefdb88b19b2fc6e8b3a8
Change-Id: I4d89a5871c8be9101b356dafe68fcbc0cf69f6ee
2021-11-04 13:51:27 +02:00
.phan Add phan 2019-05-01 16:06:46 +02:00
i18n Localisation updates from https://translatewiki.net. 2021-10-18 15:21:27 +02:00
includes Override ContentHandler::validateSave instead of Content::prepareSave. 2021-11-04 13:51:27 +02:00
tests/phpunit Override ContentHandler::validateSave instead of Content::prepareSave. 2021-11-04 13:51:27 +02:00
.eslintrc.json build: Updating mediawiki/mediawiki-codesniffer to 33.0.0 2020-11-04 13:51:41 +00:00
.gitignore build: Updating eslint-utils to 1.4.2 2019-08-23 06:34:52 +00:00
.gitreview Whoops, track not trace 2016-10-24 17:03:54 -07:00
.phpcs.xml build: Updating mediawiki/mediawiki-codesniffer to 33.0.0 2020-11-04 13:51:41 +00:00
CODE_OF_CONDUCT.md build: Updating mediawiki/phan-taint-check-plugin to 1.4.0 2018-09-01 14:41:18 +00:00
composer.json build: Updating mediawiki/mediawiki-codesniffer to 38.0.0 2021-10-24 13:53:02 +00:00
COPYING Use wikimedia/css-sanitizer, and rewrite the hooking 2017-06-07 15:14:09 +00:00
extension.json Override ContentHandler::fillParserOutput instead of Content::getParserOutput and TextContent::getHtml(). 2021-10-19 17:09:58 +03:00
Gruntfile.js build: Use existing eslint also for json linting 2020-09-11 23:49:03 +02:00
hooks.txt Use wikimedia/css-sanitizer, and rewrite the hooking 2017-06-07 15:14:09 +00:00
package-lock.json build: Updating ansi-regex to 5.0.1 2021-10-08 20:02:05 +00:00
package.json build: Updating npm dependencies 2021-05-14 05:06:58 +00:00
README.md Add a README 2020-04-30 11:44:33 -04:00

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.

For installation and setup instructions, see https://www.mediawiki.org/wiki/Extension:TemplateStyles.

For instructions on how to use the extension as an editor on a wiki, see https://www.mediawiki.org/wiki/Help:TemplateStyles.