Jump to content

Physiopedia:Extension tests

The following are tests of the extensions running on the wiki. Where applicable, if the "Test" value matches the "Expected" value, the extension can be assumed to be working.

AdminPasswordReset

This should be a valid link: Special:AdminPasswordReset

Bootstrap

This test should be done while using the Chameleon skin; view page with useskin=chameleon

This should be a greeny shadowed alert box with white text:

I am bootstrapped

CategoryTree

A category tree should be shown:

Category Tests not found

Cite

Test
Text[1]
  1. ↑ Test
Expected
Text[1]
  1. Jump up ↑ Test

CiteThisPage

This should be a valid link: Special:CiteThisPage

CodeEditor

This should open in the ACE editor interface: edit

Confirm User Accounts

This should be a valid link Special:RequestAccount

ConfirmEdit

skipcaptcha right should be present here.

ContributionScores

This should be a valid link: Special:ContributionScores

Contributors

A list of contributors to this page should be shown: Wiki support

Description2

This should produce "Description2 works!" in the description meta tag of this page head.


DisableInactiveAccounts

This should be a valid link: Special:DisableInactiveAccounts

DynamicPageList4

Test
Expected
  • A non-empty result. Fail if the output is empty, an error, or still shows {{#dpl:.

EmbedVideo

Two videos should be below:

Gadgets

This should be a valid link: Special:Gadgets

GoogleCustomWikiSearch

This should be a valid link: Special:GoogleCustomWikiSearch

hCaptcha

No test was invented. The extension must be listed on Special:Version.

ImageMap

Dining room with nine men seated around a table. The dinner has been finished, and a large man at the head talks and gesticulates while the others eagerly listen. The men wear wigs and clothing of late 18th century Britain, and the furniture, hangings, and chandelier are of similar vintage. A liveried servant is entering with a tray bearing two high-shouldered decanters of wine.Dr Johnson - Dictionary writerBoswell - BiographerSir Joshua Reynolds - HostDavid Garrick - actorEdmund Burke - statesmanPasqual Paoli - Corsican patriotCharles Burney - music historianThomas Warton - poet laureateOliver Goldsmith - writerprob.The Infant Academy 1782unknown paintingAn unknown portraitservant - poss. Francis BarberUse button to enlarge or use hyperlinks
Image map example. Clicking on a person in the picture causes the browser to load the appropriate article.

InputBox

Test
Expected
An input box

Interwiki

This should be a valid link: Special:Interwiki

LinkTarget

If $wgLinkTargetParentClasses = [ 'target-blank' ]; is added to LocalSettings.php

Default target for external links

Depends on $wgExternalLinkTarget = '_blank';

This should open in new tab / window.

Math

Test
∫(x,y)∈Cx3dx+4y2dy
Expected
∫(x,y)∈Cx3dx+4y2dy (but much better-looking)

See also: Special:MathStatus

MultimediaViewer

Clicking this should pop up a nice lightbox image viewer or, in case MMV is disabled by default, this should open the file page with the Open in Media Viewer button:

Nuke

This should be a valid link: Special:Nuke

OATHAuth

This should be a valid link: Special:OATHAuth

OpenGraphMeta

Test

Expected

PageImages

PagePort

A test could not be created. The extension must be listed on Special:Version.

ParserFunctions

Test math functions
10
Expected
10
Test string functions
disabled
Expected
disabled

PDF Handler

You should see the content of the uploaded PDF (ExamplePDF.pdf):

Succeeded

PhysiopediaShortCodes

A JustGiving donate button (image link to widgets.justgiving.com) should appear:


A Vimeo iframe for video 123456 and the caption «Test clip video provided by Clinically Relevant» should appear:

Test clip video provided by Clinically Relevant


An Anatomy.tv iframe whose URL contains embeddedcode=TESTCODE should appear:


A newsletter form (email field, «Sign me up», POST to Sendy) should appear:


A «Page Summary» heading and a two-item list (First point, Second point) should appear:

Page Summary

  • First point
  • Second point


Poem

Test

Une terre au flanc maigre, âpre, avare, inclément
Où les vivants pensifs travaillent tristement,
Et qui donne à regret à cette race humaine
Un peu de pain pour tant de labeur et de peine ;
Des hommes durs, éclos sur ces sillons ingrats ;
Des cités d’où s’en vont, en se tordant les bras,
La charité, la paix, la foi, sœurs vénérables ;
L’orgueil chez les puissants et chez les misérables ;

Expected
A nicely formatted poem

Replace Text

This should be a valid link: Special:ReplaceText

RSS

One post from the Wikimedia blog feed should be below, with all the "a" characters highlighted:

Scribunto

Module:String

Test
15
Expected
15
Source of Module:String
local p = {}
function p.len(frame)
	local s = frame.args[1]
	return mw.ustring.len( s )
end
return p

SecureLinkFixer

This link should show https://oauthdb.com/ on hover (in your browser info bar)

SpamBlacklist

This should display the spam blacklist log: spamblacklist.

TemplateData

This link should take you to a page with the Manage TemplateData button (normally below the first heading).

TextExtracts

The output should not contain Unrecognized parameter: exchars error:

TitleBlacklist

UserMerge

This should be a valid link: Special:UserMerge

VisualEditor

This should load VisualEditor in edit mode: edit

WikiEditor

This should load a tabbed WikiEditor: edit