FamilySearch Wiki: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.
Admin Links[править | править код]
This should be a valid link: Special:AdminLinks
If you are an admin, you should see links by your personal tools.
AdvancedSearch[править | править код]
If #CirrusSearch is enabled, the extension produces the "Advanced Search" form on Special:Search.
Approved Revs[править | править код]
This should be a valid link: Special:ApprovedRevs
Arrays[править | править код]
- Test
- orange, red, yellow, yellow
- Expected
- orange, red, yellow, yellow
BatchUserRights[править | править код]
This should be a valid link: Special:BatchUserRights
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
BootstrapComponents[править | править код]
Should be an accordion below:
Headline for Panel1
Headline for Panel2
Headline for Panel3
Headline for Panel4
Cargo[править | править код]
The Special:CargoTables should exist
CategoryTree[править | править код]
A category tree should be shown:
CharInsert[править | править код]
CirrusSearch[править | править код]
- For semantic wikis
The search results should display "ask" in bold:
- For Cite enabled wikis
The search results should display "ref" in bold:
Cite[править | править код]
- Test
- Text[1]
- ↑ Test
- Expected
- Text[1]
- Jump up ↑ Test
CiteThisPage[править | править код]
This should be a valid link: Special:CiteThisPage
CodeEditor[править | править код]
This should open in the ACE editor interface: edit
CodeMirror[править | править код]
- The "Editing" tab on Special:Preferences should have the "Enable colorblind-friendly mode" checkbox ("Accessibility" section).
ContributionScores[править | править код]
This should be a valid link: Special:ContributionScores
Data Transfer[править | править код]
This should be a valid link: Special:ImportCSV
Description2[править | править код]
This should produce "Description2 works!" in the description meta tag of this page head.
DismissableSiteNotice[править | править код]
The ext.dismissableSiteNotice
ResourceLoader module should be registered; in the developer console running mw.loader.getState('ext.dismissableSiteNotice');
should return a string (rather than null
).
DisplayTitle[править | править код]
- Expected
FamilySearch Wiki:Extension tests
- Result
FamilySearch Wiki:Extension tests
Echo[править | править код]
This should be a valid link: Special:Notifications
Elastica[править | править код]
Usually, it is a dependency of CirrusSearch. If CirrusSearch test is passed, Elastica works. The extension must be listed on Special:Version.
EmailFile[править | править код]
This should be a valid link: Special:EmailFile
EmailRegisteredUsers[править | править код]
This should be a valid link: Special:EmailRegisteredUsers
External Data[править | править код]
- Test
- Europe
- Expected
- Europe
FixedHeaderTable[править | править код]
Header of table below should be fixed:
<fixedheadertable fixedcolumns="1">
Header 1 | Header 2 |
---|---|
Cell 1 | Cell 2 |
Cell 3 | Cell 4 |
</fixedheadertable>
FsLookAndFeel[править | править код]
The ext.fslookandfeel.scripts
ResourceLoader module should be registered; in the developer console running mw.loader.getState('ext.fslookandfeel.scripts');
should return a string (rather than null
).
FsSignin[править | править код]
No test was invented. The extension must be listed on Special:Version.
Gadgets[править | править код]
- This link must not contain the error message "
FamilySearch Wiki does not have namespace "2300"
. - You have gadgets!
GlobalNotice[править | править код]
No test was invented. The extension must be listed on Special:Version.
GoogleTranslator[править | править код]
The sidebar should include an option to translate the page into different languages.
Header Tabs[править | править код]
Two tabs should be visible below.
[править | править код]
The content of MediaWiki:hf-footer-FamilySearch Wiki:Extension tests must be shown as a footer on the current page.
<div class="card bg-dark text-white">
<div class="card-body font-weight-bold text-center">I am Footer</div>
</div>
ImageMap[править | править код]
InputBox[править | править код]
- Test
- Expected
- An input box
Interwiki[править | править код]
This should be a valid link: Special:Interwiki
LabeledSectionTransclusion[править | править код]
- Test
- This is a test.
- Expected
- This is a test.
NOTE: In this case, the "Section by heading" must be a section in the page that is to be transcluded.
- Test
This is a section with a heading
- Expected
- This is a section with a heading
<section begin=test1 />This is a test.<section end=test1 /> Some text ... === Section by heading === This is a section with a heading
Lingo[править | править код]
Lingo is a glossary extension. It lets you define a list of abbreviations and their definitions on Терминология page and then displays these definitions whenever an abbreviation is hovered over in an article.
Check it below:
USA <- is abbreviations
LocalisationUpdate[править | править код]
No test was invented. The extension must be listed on Special:Version.
Lockdown[править | править код]
No test was invented. The extension must be listed on Special:Version.
Loops[править | править код]
- Note
- this extension requires that the Variables extension also be installed
- Test
- 123
- Expected
- 1 2 3
MagicNoCache[править | править код]
The table cell should be empty:
Maps[править | править код]
- Variant 1
- Test
- 52° 30' 58.57" N, 13° 22' 39.73" E
- Expected
- 52° 30' 58.59" N, 13° 22' 39.73" E
- Variant 2
- Test
- 52° 30' 58.57" N, 13° 22' 39.73" E
- Expected
- 52° 30' 58.59" N, 13° 22' 39.73" E
MasonryMainPage[править | править код]
Test |
---|
This should be orange |
Test2 |
---|
This should be blue and wider |
Test |
---|
This should be orange |
Test2 |
---|
This should be blue and wider |
Test |
---|
This should be orange |
Test2 |
---|
This should be blue and wider |
Test |
---|
This should be orange |
MobileFrontend[править | править код]
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:
MyVariables[править | править код]
- Test
- 23.22.79.156
- Expected
- Your user name or the IP for anonymous users
Nuke[править | править код]
This should be a valid link: Special:Nuke
OpenGraphMeta[править | править код]
- Test
- Expected
OpenID Connect[править | править код]
No test was invented. The extension must be listed on Special:Version.
PDF Handler[править | править код]
You should see the content of the uploaded PDF (Research log.pdf):
Page Importer[править | править код]
No test was invented. The extension must be listed on Special:Version.
PageForms[править | править код]
This should be a valid link: Special:Forms
PageImages[править | править код]
Parser Function Helper[править | править код]
No test was invented. The extension must be listed on Special:Version.
ParserFunctions[править | править код]
- Test math functions
- 10
- Expected
- 10
- Test string functions
- 8
- Expected
- 8
ParserHooks[править | править код]
No test was invented. The extension must be listed on Special:Version.
Parsoid[править | править код]
No test was invented. The extension must be listed on Special:Version.
PluggableAuth[править | править код]
No test was invented. The extension must be listed on Special:Version.
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
Renameuser[править | править код]
This should be a valid link: Special:RenameUser
Replace Text[править | править код]
This should be a valid link: Special:ReplaceText
RevisionSlider[править | править код]
Check Browse history Interactively slider interface at the top of Difference between revisions page (history)
RottenLinks[править | править код]
This should be a valid link: Special:RottenLinks
SandboxLink[править | править код]
Sandbox link should be added on user's personal tools menu (at the top)
Scribunto[править | править код]
Module:String[править | править код]
- Test
- 15
- Expected
- 15
local p = {}
function p.len(frame)
local s = frame.args[1]
return mw.ustring.len( s )
end
return p
Semantic Drilldown[править | править код]
This should be a valid link: Special:BrowseData
Semantic Internal Objects[править | править код]
{{#set_internal:Part of recipe |Has quantity=1 |Has unit=cup |Has ingredient=flour }}
- Expected: 1
- Actual:
Semantic Meeting Minutes[править | править код]
Special:FormEdit/Meeting Minutes must be a valid form.
SemanticCompoundQueries[править | править код]
This should produce no error:
- Файл:Pskovskaya gub.jpg (Дата последней правки«Дата последней правки <span style="font-size:small;">(Modification date)</span>» — это предварительно определенное свойство, что соответствует дате последнего изменения объекта, и обеспечивается Semantic MediaWiki.: 17 января 2015 21:00:33)
- Украна, Киевские исповедальные ведомости (Дата последней правки«Дата последней правки <span style="font-size:small;">(Modification date)</span>» — это предварительно определенное свойство, что соответствует дате последнего изменения объекта, и обеспечивается Semantic MediaWiki.: 20 апреля 2016 19:08:39)
SemanticMediaWiki[править | править код]
SemanticResultFormats[править | править код]
- Test (old wikis)
- Expected
- A nice-looking DataTable with a search field
SemanticScribunto[править | править код]
Should be an icon with information popup -> some text
This is sample outputThis is a warning
-- Module:SMW local p = {} -- set with direct return results function p.info( frame ) if not mw.smw then return "mw.smw module not found" end if frame.args[1] == nil then return "no parameter found" end local tooltip if frame.args[2] then tooltip = mw.smw.info( frame.args[1], frame.args[2] ) else tooltip = mw.smw.info( frame.args[1] ) end return tooltip end -- another example, info used inside another function function p.inlineInfo( frame ) local output = 'This is sample output' -- so some stuff output = output .. mw.smw.info( 'This is a warning', 'warning' ) -- some more stuff return output end return p
SimpleMathJax[править | править код]
- Note
- this extension does not work with the Math extension installed
- Test
- [math]\displaystyle{ \int_{(x,y)\in C} x^3\, dx + 4y^2\, dy }[/math]
- Expected
- ∫(x,y)∈Cx3dx+4y2dy (but much better-looking)
And if SMJ
added as $wgSmjExtraInlineMath = [ [ 'SMJ(', ')SMJ' ] ];
in LocalSettings.php file:
- Test
- SMJ(E=mc^2)SMJ
- Expected
- E=mc^2 (but much better-looking)
SpamBlacklist[править | править код]
This should display the spam blacklist log: spamblacklist.
SubPageList[править | править код]
- Result
1
- Expected
0
SyntaxHighlight[править | править код]
- Note
- this extension make also be referred to as "SyntaxHighlight GeSHi"
The following must be colorful:
def quick_sort(arr):
less = []
pivot_list = []
more = []
if len(arr) <= 1:
return arr
else:
pass
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:
Thanks[править | править код]
Special:Log/thanks exists.
TitleBlacklist[править | править код]
- The text should follow
- Это список запрещённыx названий. Страницы и учётные записи, соответствующие указанным регулярным выражениям, не могут быть созданы.
- Используйте «#» для комментариев.
- По умолчанию нет чувствительности к регистру.
TwitterCards[править | править код]
No test was invented. The extension must be listed on Special:Version.
UniversalLanguageSelector[править | править код]
No test was invented. The language selector should appear somewhere and the extension must be listed on Special:Version.
Upload Wizard[править | править код]
UploadWizard is displayed at Special:UploadWizard
UserFunctions[править | править код]
- Test
- It works
- Expected
- It works
VEForAll[править | править код]
No test was invented. The extension must be listed on Special:Version.
Validator[править | править код]
No test was invented. The extension must be listed on Special:Version.
Variables[править | править код]
- Test
- testing
- Expected
- testing
VisualEditor[править | править код]
This should load VisualEditor in edit mode: edit
WhoIsWatching[править | править код]
Should show the number of watching users below:
За страницей следят 0 участников
Widgets[править | править код]
- Test
- Widget
- Expected
- Widget
WikiEditor[править | править код]
This should load a tabbed WikiEditor: edit
WikiSEO[править | править код]
The page source should contain:
<title>Your page title</title>
and:
<meta name="keywords" content="these,are,your,keywords"/>
There should also be a description, with
<meta name="description" content="Your meta description"/>
but the content may be different if another extension (like Description2) is installed and tries to set the description. As long as there is a description set and the page title and keywords match, having a different description should not be considered a failure.
Wiretap[править | править код]
This should be a valid link: Special:Wiretap
YouTube[править | править код]