GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - wikimedia/mediawiki-extensions-HTMLTemplates: MediaWiki extension to allow admins to create raw html templates

BranchesTags
Open more actions menu

Latest commit

 

History

71 Commits
71 Commits

Folders and files

NameName
Last commit message
Last commit date
.phan
.phan
 
 
i18n
i18n
 
 
includes
includes
 
 
.gitignore
.gitignore
 
 
.gitreview
.gitreview
 
 
.phpcs.xml
.phpcs.xml
 
 
COPYING
COPYING
 
 
HTMLTemplates.magic.php
HTMLTemplates.magic.php
 
 
HTMLTemplates.namespaces.php
HTMLTemplates.namespaces.php
 
 
README
README
 
 
composer.json
composer.json
 
 
extension.json
extension.json
 
 

Repository files navigation

Warning: This extension is still work in progress, and escaping is not fully tested yet and not
implemented in all contexts (E.g. for CSS).

This extension allows wiki administrators to make small snippets of raw html, that oridinary users
can include on pages. The snippets can take parameters like normal templates, which should be
contextually escaped.

This is very similar to the popular Widgets mediawiki extension. The main difference is instead
of using the Smarty templating language, it uses MediaWiki inspired template parameters with
context-sensitive escaping. It is the author's opinion that Smarty has too many hidden gotchas
to be used safely by non-technical users, often resulting in XSS. It is hoped this will be a safer
option. It should be emphasized however that any form of raw html is dangerous and should be used carefully.

To install this extension, simply add wfLoadExtension( 'HTMLTemplates' ); to your LocalSettings.php.

After that, people in the editinterface group should be able to add templates in the HTMLTemplate namespace.
You should be able to include them like normal templates, with parameters just working and automatically
being escaped.

About

MediaWiki extension to allow admins to create raw html templates

Resources

Readme
License

Code of conduct

Code of conduct
Activity
Custom properties

Stars

3 stars

Watchers

20 watching

Forks

2 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.