Difference between revisions of "Sun myung moon archive:Extensions test"

From Sun Myung Moon Archive
 
(20 intermediate revisions by the same user not shown)
Line 2: Line 2:
  
 
== AdminLinks ==
 
== AdminLinks ==
* [[Special:AdminLinks]]
+
This should be a valid link:
 +
[[Special:AdminLinks]]
 +
 
 +
If you are an admin, you should see links by your personal tools.
  
 
== Arrays ==
 
== Arrays ==
Line 10: Line 13:
 
; Expected
 
; Expected
 
: orange, red, yellow, yellow
 
: orange, red, yellow, yellow
 +
 +
== Bootstrap ==
 +
This should be a greeny shadowed alert box with white text:
 +
<div class="alert alert-success shadow text-white font-weight-bold">
 +
I am bootstrapped
 +
</div>
  
 
== CategoryTree ==
 
== CategoryTree ==
 
A category tree should be shown:
 
A category tree should be shown:
 
<categorytree mode=pages>Tests</categorytree>
 
<categorytree mode=pages>Tests</categorytree>
 +
 +
== CirrusSearch ==
 +
;For semantic wikis
 +
The search results should display "'''ask'''" in bold:
 +
* [{{SERVER}}{{SCRIPTPATH}}/index.php?search=insource%3A+%23ask%3A&title=Special%3ASearch&profile=all&fulltext=1 Search in the source]
 +
 +
;For Cite enabled wikis
 +
The search results should display "'''ref'''" in bold:
 +
* [{{SERVER}}{{SCRIPTPATH}}/index.php?search=insource%3A+ref&title=Special%3ASearch&profile=all&fulltext=1 Search in the source]
  
 
== Cite ==
 
== Cite ==
Line 20: Line 38:
 
<references />
 
<references />
 
; Expected
 
; Expected
: Text<sup id="cite_ref-1" class="reference plainlinks">[{{fullurl:{{FULLPAGENAME}}#cite_note-1}} <nowiki>[1]</nowiki>]</sup>
+
: Text<sup id="cite_ref-1" class="reference plainlinks">[{{fullurl:{{FULLPAGENAME}}#cite_note-1}} [1]]</sup>
 
<ol class="references">
 
<ol class="references">
 
<li id="cite_note-1"><span class="mw-cite-backlink plainlinks">[{{fullurl:{{FULLPAGENAME}}#cite_ref-1}} <span class="cite-accessibility-label">Jump up </span>↑]</span> <span class="reference-text">Test</span>
 
<li id="cite_note-1"><span class="mw-cite-backlink plainlinks">[{{fullurl:{{FULLPAGENAME}}#cite_ref-1}} <span class="cite-accessibility-label">Jump up </span>↑]</span> <span class="reference-text">Test</span>
Line 30: Line 48:
 
[[Special:CiteThisPage]]
 
[[Special:CiteThisPage]]
  
 
+
== ConfirmEdit ==
 +
<code>skipcaptcha</code> right should be present [[Special:ListGroupRights|here]].
 
== ContactPage ==
 
== ContactPage ==
 
This should be a valid link:
 
This should be a valid link:
Line 42: Line 61:
 
This should be a valid link:
 
This should be a valid link:
 
[[Special:Notifications]]
 
[[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]].
  
 
== ExternalData ==
 
== ExternalData ==
 
{{#get_web_data:url=https://www.semantic-mediawiki.org/wiki/Special:Ask/-5B-5BGermany-5D-5D/-3FLocated_in/format%3Dcsv/sep%3D,
 
{{#get_web_data:url=https://www.semantic-mediawiki.org/wiki/Special:Ask/-5B-5BGermany-5D-5D/-3FLocated_in/format%3Dcsv/sep%3D,
  |format=csv with header
+
    |format=csv with header|data=Located in=Located in}}
  |data=Located in=Located in
 
}}
 
 
;Test :{{#external_value:Located in}}
 
;Test :{{#external_value:Located in}}
 
;Expected :Europe
 
;Expected :Europe
 +
 +
== Gadgets ==
 +
* [{{fullurl: Special:AllPages|from=&to=&namespace=2300}} This link] must '''not contain''' the error message "<code>{{SITENAME}} does not have namespace "2300"</code>.
 +
* {{#ifeq: {{NAMESPACENUMBER:Gadget:Something}}|2300|You have gadgets!|No gadgets or something went unusual...}}
  
 
== googleAnalytics ==
 
== googleAnalytics ==
Check the HTML source of this page.
+
The page source head section should contain a link to the script:
 +
:<code>//www.google-analytics.com/analytics.js</code>
 +
 
 +
== HeaderTabs ==
 +
Two tabs should be visible below.
 +
= Test =
 +
Content
 +
= Test2 =
 +
More content
 +
<headertabs />
 +
 
 +
== HitCounters ==
 +
An integer should follow: {{NUMBEROFVIEWS}}
 +
 
 +
== IFramePage ==
 +
This should be a valid link:
 +
[[Special:IframePage]]
 +
 
 +
== Lockdown ==
 +
No test was invented. The extension must be listed on [[Special:Version]].
 +
 
 +
== MinimalistFarm ==
 +
No test was invented. The extension must be listed on [[Special:Version]].
 +
 
 +
== PageForms ==
 +
This should be a valid link:
 +
[[Special:Forms]]
  
 
== ParserFunctions ==
 
== ParserFunctions ==
; Test : {{#expr:4+6}}
+
; Test math functions: {{#expr: 4 + 6}}
 
; Expected : 10
 
; Expected : 10
 +
 +
; Test string functions: {{#ifeq:{{#expr: 4 + 6}}|10|{{#ifeq:{{#len:Icecream }} |8|8|disabled}}}}
 +
; Expected : {{#ifeq:{{#len:Icecream }}|8|8|disabled}}
  
 
== PageSchemas ==
 
== PageSchemas ==
Line 62: Line 115:
 
[[Special:EditSchema]]
 
[[Special:EditSchema]]
  
== PageForms ==
+
== ParserHooks ==
This should be a valid link:
+
No test was invented. The extension must be listed on [[Special:Version]].
[[Special:Forms]]
+
 
 +
== ReCaptchaNoCaptcha ==
 +
No test was invented. The extension must be listed on [[Special:Version]].
  
== Rename user ==
+
== Renameuser ==
 
This should be a valid link:
 
This should be a valid link:
 
[[Special:RenameUser]]
 
[[Special:RenameUser]]
  
== Replace Text ==
+
== ReplaceText ==
 
This should be a valid link:
 
This should be a valid link:
 
[[Special:ReplaceText]]
 
[[Special:ReplaceText]]
 +
 +
== Scribunto ==
 +
=== [[Module:String]] ([https://en.wikipedia.org/w/index.php?title=Module:String&action=edit source]) ===
 +
; Test : {{#invoke:String|len|This is a test.}}
 +
; Expected : 15
  
 
== SemanticDrilldown ==
 
== SemanticDrilldown ==
Line 83: Line 143:
 
: There should be a factbox at the page bottom.
 
: There should be a factbox at the page bottom.
  
== Semantic Internal Objects ==
+
== Sentry ==
{{#set_internal:Part of recipe
+
No test was invented. The extension must be listed on [[Special:Version]].
|Has quantity=1
 
|Has unit=cup
 
|Has ingredient=flour
 
}}
 
* Expected: 1
 
* Actual: {{#ask:[[Part of recipe::+]][[Has ingredient::flour]][[Has unit::cup]][[Has quantity::>.5]]
 
|mainlabel=-
 
|? Has quantity=
 
|link=none
 
}}
 
  
== Scribunto ==
+
== Thanks ==
=== [[Module:String]] ===
+
[[Special:Log/thanks]] exists.
; Test : {{#invoke:String|len|This is a test.}}
 
; Expected : 15
 
  
== Thanks ==
 
[[Special:Log/thanks]] exists
 
  
 
== VisualEditor ==
 
== VisualEditor ==
Line 108: Line 154:
 
[{{fullurl:Main Page|veaction=edit}} edit]
 
[{{fullurl:Main Page|veaction=edit}} edit]
  
== WikiEditor ==
+
== Widgets ==
This should load a tabbed WikiEditor:
+
;Test
[{{fullurl:Main Page|action=edit}} edit]
+
:{{ns:Widget}}
 +
;Expected
 +
:Widget
  
== Widgets ==
+
=== Widget:Iframe ===
=== Iframe ===
 
 
{{#widget:Iframe
 
{{#widget:Iframe
 
|url={{fullurl:Main Page}}
 
|url={{fullurl:Main Page}}
 
}}
 
}}
 +
 +
=== Widget:Vimeo ===
 +
{{#widget:Vimeo|id=8758454}}
 +
 +
=== Widget:YouTube ===
 +
A YouTube video should be visible:
 +
{{#widget:Youtube
 +
|id=DWef69ItVrU
 +
|width=200
 +
|height=150
 +
}}
 +
 +
== WikiEditor ==
 +
This should load a tabbed WikiEditor:
 +
[{{fullurl:Main Page|action=edit}} edit]
  
 
== WikiSEO ==
 
== WikiSEO ==
Line 125: Line 187:
 
|description=Your meta description
 
|description=Your meta description
 
}}
 
}}
 +
 
The page source should contain:
 
The page source should contain:
<nowiki><title></nowiki>Your page title<nowiki></title></nowiki>
+
<pre>
 +
<title>Your page title</title>
 +
</pre>
  
 
and:
 
and:
Line 133: Line 198:
 
<meta name="keywords" content="these,are,your,keywords"/>
 
<meta name="keywords" content="these,are,your,keywords"/>
 
<meta name="description" content="Your meta description"/>
 
<meta name="description" content="Your meta description"/>
<meta name="twitter:description" content="Your meta description"/>
 
 
</pre>
 
</pre>
 
=== Vimeo ===
 
{{#widget:Vimeo|id=8758454}}
 
=== YouTube ===
 
A YouTube video should be visible:
 
{{#widget:Youtube
 
|id=DWef69ItVrU
 
|width=200
 
|height=150
 
}}
 

Latest revision as of 13:07, 8 January 2024

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.

AdminLinks

This should be a valid link: Special:AdminLinks

If you are an admin, you should see links by your personal tools.

Arrays

Test
orange, red, yellow, yellow
Expected
orange, red, yellow, yellow

Bootstrap

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

I am bootstrapped

CategoryTree

A category tree should be shown:

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]
  1. Test
Expected
Text[1]
  1. Jump up Test

CiteThisPage

This should be a valid link: Special:CiteThisPage

ConfirmEdit

skipcaptcha right should be present here.

ContactPage

This should be a valid link: Contact us

DataTransfer

This should be a valid link: Special:ImportCSV

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.

ExternalData

Test
Europe
Expected
Europe

Gadgets

  • This link must not contain the error message "Sun Myung Moon Archive does not have namespace "2300".
  • You have gadgets!

googleAnalytics

The page source head section should contain a link to the script:

//www.google-analytics.com/analytics.js

HeaderTabs

Two tabs should be visible below.

[edit]

Content

More content

HitCounters

An integer should follow: 4,542,059

IFramePage

This should be a valid link: Special:IframePage

Lockdown

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

MinimalistFarm

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

PageForms

This should be a valid link: Special:Forms

ParserFunctions

Test math functions
10
Expected
10
Test string functions
8
Expected
8

PageSchemas

This should be a valid link: Special:EditSchema

ParserHooks

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

ReCaptchaNoCaptcha

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

Renameuser

This should be a valid link: Special:RenameUser

ReplaceText

This should be a valid link: Special:ReplaceText

Scribunto

Module:String (source)

Test
15
Expected
15

SemanticDrilldown

This should be a valid link: Special:BrowseData

SemanticMediaWiki

Test
Test
Expected
Test
There should be a factbox at the page bottom.

Sentry

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

Thanks

Special:Log/thanks exists.


VisualEditor

This should load VisualEditor in edit mode: edit

Widgets

Test
Widget
Expected
Widget

Widget:Iframe

Widget:Vimeo

Widget:YouTube

A YouTube video should be visible:

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"/>
<meta name="description" content="Your meta description"/>