CINXE.COM
721647ce57bb8870446c939887bb313a5726232f - mediawiki/extensions/TemplateWizard - Gitiles
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><title>721647ce57bb8870446c939887bb313a5726232f - mediawiki/extensions/TemplateWizard - Gitiles</title><link rel="stylesheet" type="text/css" href="/r/plugins/gitiles/+static/base.css"><link rel="stylesheet" type="text/css" href="/r/plugins/gitiles/+static/doc.css"><link rel="stylesheet" type="text/css" href="/r/plugins/gitiles/+static/prettify/prettify.css"><!-- default customHeadTagPart --></head><body class="Site"><header class="Site-header"><div class="Header"><!-- default customHeader --><div class="Header-title">Gitiles</div><div class="Header-menu"> <a class="Header-menuItem" href="https://gerrit.wikimedia.org/r/">Code Review</a> <a class="Header-menuItem" href="https://gerrit.wikimedia.org/r/login/plugins%2Fgitiles%2Fmediawiki%2Fextensions%2FTemplateWizard%2F%2B%2F721647ce57bb8870446c939887bb313a5726232f">Sign In</a> </div></div></header><div class="Site-content"><div class="Container "><div class="Breadcrumbs"><a class="Breadcrumbs-crumb" href="/r/plugins/gitiles/?format=HTML">gerrit.wikimedia.org</a> / <a class="Breadcrumbs-crumb" href="/r/plugins/gitiles/mediawiki/">mediawiki</a> / <a class="Breadcrumbs-crumb" href="/r/plugins/gitiles/mediawiki/extensions/">extensions</a> / <a class="Breadcrumbs-crumb" href="/r/plugins/gitiles/mediawiki/extensions/TemplateWizard/">TemplateWizard</a> / <span class="Breadcrumbs-crumb">721647ce57bb8870446c939887bb313a5726232f</span></div><div class="u-monospace Metadata"><table><tr><th class="Metadata-title">commit</th><td>721647ce57bb8870446c939887bb313a5726232f</td><td><span>[<a href="/r/plugins/gitiles/mediawiki/extensions/TemplateWizard/+log/721647ce57bb8870446c939887bb313a5726232f">log</a>]</span> <span>[<a href="/r/plugins/gitiles/mediawiki/extensions/TemplateWizard/+archive/721647ce57bb8870446c939887bb313a5726232f.tar.gz">tgz</a>]</span></td></tr><tr><th class="Metadata-title">author</th><td>libraryupgrader <tools.libraryupgrader@tools.wmflabs.org></td><td>Sat Nov 02 04:00:47 2024 +0000</td></tr><tr><th class="Metadata-title">committer</th><td>Libraryupgrader <tools.libraryupgrader@tools.wmflabs.org></td><td>Thu Nov 14 14:27:38 2024 +0000</td></tr><tr><th class="Metadata-title">tree</th><td><a href="/r/plugins/gitiles/mediawiki/extensions/TemplateWizard/+/721647ce57bb8870446c939887bb313a5726232f/">7ff28a3950e0f98fd9331b712e9e5ba42cbf9ad3</a></td></tr><tr><th class="Metadata-title">parent</th><td><a href="/r/plugins/gitiles/mediawiki/extensions/TemplateWizard/+/721647ce57bb8870446c939887bb313a5726232f%5E">2949f0ffecb6cac28c130682e7ddc4d283215eda</a> <span>[<a href="/r/plugins/gitiles/mediawiki/extensions/TemplateWizard/+/721647ce57bb8870446c939887bb313a5726232f%5E%21/">diff</a>]</span></td></tr></table></div><pre class="u-pre u-monospace MetadataMessage">build: Updating mediawiki/mediawiki-codesniffer to 45.0.0 Change-Id: <a href="https://gerrit.wikimedia.org/r/#/q/I16e45e517d97c105f9802bac5fb85bb7e3c612a4">I16e45e517d97c105f9802bac5fb85bb7e3c612a4</a> </pre><ul class="DiffTree"><li><a href="/r/plugins/gitiles/mediawiki/extensions/TemplateWizard/+/721647ce57bb8870446c939887bb313a5726232f/composer.json">composer.json</a><span class="DiffTree-action DiffTree-action--modify">[<a href="/r/plugins/gitiles/mediawiki/extensions/TemplateWizard/+/721647ce57bb8870446c939887bb313a5726232f%5E%21/#F0">diff</a>]</span></li></ul><div class="DiffSummary">1 file changed</div><div class="TreeDetail"><div class="u-sha1 u-monospace TreeDetail-sha1">tree: 7ff28a3950e0f98fd9331b712e9e5ba42cbf9ad3</div><ol class="FileList"><li class="FileList-item FileList-item--gitTree" title="Tree - .phan/"><a class="FileList-itemLink" href="/r/plugins/gitiles/mediawiki/extensions/TemplateWizard/+/721647ce57bb8870446c939887bb313a5726232f/.phan/">.phan/</a></li><li class="FileList-item FileList-item--gitTree" title="Tree - i18n/"><a class="FileList-itemLink" href="/r/plugins/gitiles/mediawiki/extensions/TemplateWizard/+/721647ce57bb8870446c939887bb313a5726232f/i18n/">i18n/</a></li><li class="FileList-item FileList-item--gitTree" title="Tree - includes/"><a class="FileList-itemLink" href="/r/plugins/gitiles/mediawiki/extensions/TemplateWizard/+/721647ce57bb8870446c939887bb313a5726232f/includes/">includes/</a></li><li class="FileList-item FileList-item--gitTree" title="Tree - resources/"><a class="FileList-itemLink" href="/r/plugins/gitiles/mediawiki/extensions/TemplateWizard/+/721647ce57bb8870446c939887bb313a5726232f/resources/">resources/</a></li><li class="FileList-item FileList-item--gitTree" title="Tree - tests/"><a class="FileList-itemLink" href="/r/plugins/gitiles/mediawiki/extensions/TemplateWizard/+/721647ce57bb8870446c939887bb313a5726232f/tests/">tests/</a></li><li class="FileList-item FileList-item--regularFile" title="Regular file - .eslintignore"><a class="FileList-itemLink" href="/r/plugins/gitiles/mediawiki/extensions/TemplateWizard/+/721647ce57bb8870446c939887bb313a5726232f/.eslintignore">.eslintignore</a></li><li class="FileList-item FileList-item--regularFile" title="Regular file - .eslintrc.json"><a class="FileList-itemLink" href="/r/plugins/gitiles/mediawiki/extensions/TemplateWizard/+/721647ce57bb8870446c939887bb313a5726232f/.eslintrc.json">.eslintrc.json</a></li><li class="FileList-item FileList-item--regularFile" title="Regular file - .gitignore"><a class="FileList-itemLink" href="/r/plugins/gitiles/mediawiki/extensions/TemplateWizard/+/721647ce57bb8870446c939887bb313a5726232f/.gitignore">.gitignore</a></li><li class="FileList-item FileList-item--regularFile" title="Regular file - .gitreview"><a class="FileList-itemLink" href="/r/plugins/gitiles/mediawiki/extensions/TemplateWizard/+/721647ce57bb8870446c939887bb313a5726232f/.gitreview">.gitreview</a></li><li class="FileList-item FileList-item--regularFile" title="Regular file - .phpcs.xml"><a class="FileList-itemLink" href="/r/plugins/gitiles/mediawiki/extensions/TemplateWizard/+/721647ce57bb8870446c939887bb313a5726232f/.phpcs.xml">.phpcs.xml</a></li><li class="FileList-item FileList-item--regularFile" title="Regular file - .stylelintrc.json"><a class="FileList-itemLink" href="/r/plugins/gitiles/mediawiki/extensions/TemplateWizard/+/721647ce57bb8870446c939887bb313a5726232f/.stylelintrc.json">.stylelintrc.json</a></li><li class="FileList-item FileList-item--regularFile" title="Regular file - CODE_OF_CONDUCT.md"><a class="FileList-itemLink" href="/r/plugins/gitiles/mediawiki/extensions/TemplateWizard/+/721647ce57bb8870446c939887bb313a5726232f/CODE_OF_CONDUCT.md">CODE_OF_CONDUCT.md</a></li><li class="FileList-item FileList-item--regularFile" title="Regular file - composer.json"><a class="FileList-itemLink" href="/r/plugins/gitiles/mediawiki/extensions/TemplateWizard/+/721647ce57bb8870446c939887bb313a5726232f/composer.json">composer.json</a></li><li class="FileList-item FileList-item--regularFile" title="Regular file - COPYING"><a class="FileList-itemLink" href="/r/plugins/gitiles/mediawiki/extensions/TemplateWizard/+/721647ce57bb8870446c939887bb313a5726232f/COPYING">COPYING</a></li><li class="FileList-item FileList-item--regularFile" title="Regular file - extension.json"><a class="FileList-itemLink" href="/r/plugins/gitiles/mediawiki/extensions/TemplateWizard/+/721647ce57bb8870446c939887bb313a5726232f/extension.json">extension.json</a></li><li class="FileList-item FileList-item--regularFile" title="Regular file - Gruntfile.js"><a class="FileList-itemLink" href="/r/plugins/gitiles/mediawiki/extensions/TemplateWizard/+/721647ce57bb8870446c939887bb313a5726232f/Gruntfile.js">Gruntfile.js</a></li><li class="FileList-item FileList-item--regularFile" title="Regular file - package-lock.json"><a class="FileList-itemLink" href="/r/plugins/gitiles/mediawiki/extensions/TemplateWizard/+/721647ce57bb8870446c939887bb313a5726232f/package-lock.json">package-lock.json</a></li><li class="FileList-item FileList-item--regularFile" title="Regular file - package.json"><a class="FileList-itemLink" href="/r/plugins/gitiles/mediawiki/extensions/TemplateWizard/+/721647ce57bb8870446c939887bb313a5726232f/package.json">package.json</a></li><li class="FileList-item FileList-item--regularFile" title="Regular file - README.md"><a class="FileList-itemLink" href="/r/plugins/gitiles/mediawiki/extensions/TemplateWizard/+/721647ce57bb8870446c939887bb313a5726232f/README.md">README.md</a></li></ol><div class="InlineReadme"><div class="InlineReadme-path">README.md</div><div class="doc"><h1><a class="h" name="TemplateWizard" href="#TemplateWizard"><span></span></a><a class="h" name="templatewizard" href="#templatewizard"><span></span></a>TemplateWizard</h1><p>A MediaWiki extension for adding a popup dialog box to the WikiEditor toolbar with which to add template code to wikitext.</p><p><a href="https://www.mediawiki.org/wiki/Extension:TemplateWizard">https://www.mediawiki.org/wiki/Extension:TemplateWizard</a></p><h2><a class="h" name="Running-browser-tests" href="#Running-browser-tests"><span></span></a><a class="h" name="running-browser-tests" href="#running-browser-tests"><span></span></a>Running browser tests</h2><p>Start chromedriver:</p><pre class="code">chromedriver --url-base=wd/hub --port=4444 </pre><p>Run Selenium from the MediaWiki root directory:</p><pre class="code">export MW_SERVER=http://localhost export MW_SCRIPT_PATH=/path/to/wiki export MEDIAWIKI_USER=Admin export MEDIAWIKI_PASSWORD=adminpassword ./node_modules/.bin/wdio ./tests/selenium/wdio.conf.js --spec extensions/TemplateWizard/tests/selenium/specs/TemplateWizard.SearchForm.js </pre></div></div></div></div> <!-- Container --></div> <!-- Site-content --><!-- default customFooter --><footer class="Site-footer"><div class="Footer"><span class="Footer-poweredBy">Powered by <a href="https://gerrit.googlesource.com/gitiles/">Gitiles</a></span><span class="Footer-formats"><a class="u-monospace Footer-formatsItem" href="?format=TEXT">txt</a> <a class="u-monospace Footer-formatsItem" href="?format=JSON">json</a></span></div></footer></body></html>