Wikizilla:Extension tests: Difference between revisions
(Created page with "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 workin...") |
|||
(11 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
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. | 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. | ||
== AJAXPoll == | |||
; Test | |||
<poll> | |||
Question | |||
Choice 1 | |||
Choice 2 | |||
Choice 3 | |||
Choice 4 | |||
</poll> | |||
; Expected | |||
: A poll | |||
== CharInsert == | |||
; Test | |||
: <charinsert>Á</charinsert> | |||
; Expected | |||
: <span class="plainlinks"> [{{fullurl:{{FULLPAGENAME}}}}# Á]</span> | |||
== CheckUser == | |||
This should be a valid link: | |||
[[Special:CheckUser]] | |||
== Cite == | == Cite == | ||
Line 20: | Line 42: | ||
== ConfirmEdit == | == ConfirmEdit == | ||
<code>skipcaptcha</code> right should be present [[Special:ListGroupRights|here]]. | |||
== Disambiguator == | |||
;Test: __DISAMBIG__ | |||
;Expected: (nothing) | |||
== Echo == | |||
This should be a valid link: | |||
[[Special:Notifications]] | |||
== ElasticSearch == | |||
findmeagainelastica - This page should be found by [{{fullurl:Special:Search|search=find%2Alastica&profile=all&fulltext=1}} this search]. | |||
== EmbedVideo == | == EmbedVideo == | ||
Line 33: | Line 67: | ||
== Gadgets == | == Gadgets == | ||
* {{#ifeq: {{NAMESPACENUMBER:Gadget:Something}}|2300|You have gadgets!|No gadgets or something went unusual...}} | |||
== <span class="g-font">Godzilla font</span> == | |||
<span class="g-font">If this is in Godzilla font, we're good.</span> | |||
== | == GTag == | ||
The page source head section should contain a link to the script: | |||
<code>//www.googletagmanager.com/gtag/js</code> | |||
== ImageMap == | == ImageMap == | ||
Line 56: | Line 95: | ||
rect 12 10 702 500 [[wikipedia:The Club (Literary Club)|Use button to enlarge or use hyperlinks]] | rect 12 10 702 500 [[wikipedia:The Club (Literary Club)|Use button to enlarge or use hyperlinks]] | ||
</imagemap> | </imagemap> | ||
== InputBox == | |||
; Test | |||
<inputbox> | |||
type=create | |||
break=no | |||
</inputbox> | |||
; Expected | |||
: An input box | |||
== Interwiki == | |||
This should be a valid link: | |||
[[Special:Interwiki]] | |||
== Lockdown == | == Lockdown == | ||
== MobileDetect == | |||
;Test | |||
:<mobileonly>Mobile</mobileonly><nomobile>Desktop</nomobile> | |||
;Expected | |||
: Either "Desktop" or "Mobile" | |||
== MultimediaViewer == | |||
Clicking this should pop up a nice lightbox image viewer: | |||
[[File:JoshuaReynoldsParty.jpg|50px]] | |||
== MsUpload == | == MsUpload == | ||
This should have an upload box: | This should have an upload box: | ||
[{{fullurl:Main Page|action=edit}} edit] | [{{fullurl:Main Page|action=edit}} edit] | ||
== Nuke == | |||
This should be a valid link: | |||
[[Special:Nuke]] | |||
== PageImages == | |||
[{{fullurl:Main Page|action=info}} check for a "page images" section] | |||
== 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|{{#len:Icecream }}|disabled}}}} | |||
; Expected : {{#ifeq:{{#len:Icecream }}|8|8|disabled}} | |||
== Poem == | |||
; Test | |||
: <poem> | |||
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 ; | |||
</poem> | |||
; Expected | |||
: A nicely formatted poem | |||
== Popups == | |||
A page preview popup should appear on hover: | |||
[[{{int:mainpage}}]] | |||
== Rename user == | == Rename user == | ||
Line 78: | Line 169: | ||
A list of recent changes should be displayed: | A list of recent changes should be displayed: | ||
{{Special:SimpleChanges/5}} | {{Special:SimpleChanges/5}} | ||
== SkinPerPage == | |||
The Refreshed skin should apply to [[Project:Extension tests/SkinPerPage|this page]]. | |||
== Tabs == | |||
; Test | |||
<tabs> | |||
<tab name="Foo">Lorem ipsum dolor sit amet.</tab> | |||
<tab name="Bar">consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</tab> | |||
<tab name="Baz">sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</tab> | |||
</tabs> | |||
; Expected: A tabbed display | |||
== TemplateStyles == | |||
<!-- Create a page called Project:Extension tests/TemplateStyles.css with content: | |||
.templatestyles { | |||
color: red; | |||
} | |||
and then change its content model at Special:ChangeContentModel to "Sanitized CSS"--> | |||
<templatestyles src="Project:Extension tests/TemplateStyles.css" /> | |||
;Test | |||
:<span class="templatestyles">red text</span> | |||
;Expected | |||
:<span style="color:red;">red text</span> | |||
== TimedMediaHandler == | |||
An embedded roar sound with a Menu: | |||
[[File:Muto Roar.ogg]] | |||
== UserMerge == | == UserMerge == | ||
This should be a valid link: | This should be a valid link: | ||
[[Special:UserMerge]] | [[Special:UserMerge]] | ||
== VoteNY == | |||
A vote box should be here: | |||
<vote /> | |||
== Widgets == | == Widgets == | ||
=== Alexa === | === Alexa === | ||
<span style="color:red">This widget is defunct since the respective service is no longer available.</span> | |||
=== Facebook === | === Facebook === | ||
{{#widget: Facebook}} | |||
=== Facebook Like Box === | === Facebook Like Box === | ||
<span style="color:red">This widget is defunct since the respective service is no longer available.</span> | |||
=== SVG === | |||
{{#widget:SVG | |||
|id=TpB | |||
|width=200 | |||
|height=200 | |||
|viewBox=0 0 200 200 | |||
|content= | |||
<title>Turbulence + Background</title> | |||
<desc>Turbulence + Background Test</desc> | |||
<g> | |||
<defs> | |||
<filter id="T1" x="0%" y="0%" width="100%" height="100%"> | |||
<feTurbulence seed="0" stitchTiles="stitch" baseFrequency="0.25" numOctaves="2"/> | |||
</filter> | |||
<radialGradient id="rg1" fx="50%" fy="50%" cx="50%" cy="50%" r="75%"> | |||
<stop offset="0%" stop-color="#e4d2be" stop-opacity="0%"/> | |||
<stop offset="100%" stop-color="#2f0602" stop-opacity="100%"/> | |||
</radialGradient> | |||
</defs> | |||
<g> | |||
<mask id="mt1" x="0%" y="0%" width="100%" height="100%"> | |||
<g> | |||
<rect x="0" y="0" width="100%" height="100%" filter="url(#T1)" /> | |||
</g> | |||
</mask> | |||
</g> | |||
<rect x="0%" y="0%" width="100%" height="100%" fill="url(#rg1)"/> | |||
<rect x="0%" y="0%" width="100%" height="100%" fill="#0d1a1f" mask="url(#mt1)"/> | |||
</g> | |||
}} | |||
=== Tweet=== | |||
{{#widget:Tweet | |||
|id=226413520412090368 | |||
}} | |||
=== YouTube === | === YouTube === | ||
A YouTube video should be visible: | A YouTube video should be visible: | ||
Line 98: | Line 263: | ||
This should load a tabbed WikiEditor: | This should load a tabbed WikiEditor: | ||
[{{fullurl:Main Page|action=edit}} edit] | [{{fullurl:Main Page|action=edit}} edit] | ||
== WikiForum == | |||
This should be a valid link: | |||
[[Special:WikiForum]] | |||
== WikiSEO == | |||
{{#seo: | |||
|title=Your page title | |||
|keywords=these,are,your,keywords | |||
|description=Your meta description | |||
}} | |||
The page source should contain: | |||
<pre> | |||
<title>Your page title</title> | |||
</pre> | |||
and: | |||
<pre> | |||
<meta name="keywords" content="these,are,your,keywords"/> | |||
<meta name="description" content="Your meta description"/> | |||
<meta name="twitter:description" content="Your meta description"/> | |||
</pre> | |||
== YouTube == | == YouTube == |
Latest revision as of 23:16, 23 November 2023
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.
AJAXPoll
- Test
- Expected
- A poll
CharInsert
CheckUser
This should be a valid link: Special:CheckUser
Cite
- Test
- Text[1]
- ↑ Test
- Expected
- Text[1]
- Jump up ↑ Test
CiteThisPage
This should be a valid link: Special:CiteThisPage
Comments
ConfirmEdit
skipcaptcha
right should be present here.
Disambiguator
- Test
- Expected
- (nothing)
Echo
This should be a valid link: Special:Notifications
ElasticSearch
findmeagainelastica - This page should be found by this search.
EmbedVideo
Three videos should be below:
Gadgets
- You have gadgets!
Godzilla font
If this is in Godzilla font, we're good.
GTag
The page source head section should contain a link to the script:
//www.googletagmanager.com/gtag/js
ImageMap
InputBox
- Test
- Expected
- An input box
Interwiki
This should be a valid link: Special:Interwiki
Lockdown
MobileDetect
- Test
- MobileDesktop
- Expected
- Either "Desktop" or "Mobile"
MultimediaViewer
Clicking this should pop up a nice lightbox image viewer:
MsUpload
This should have an upload box: edit
Nuke
This should be a valid link: Special:Nuke
PageImages
check for a "page images" section
ParserFunctions
- Test math functions
- 10
- Expected
- 10
- Test string functions
- disabled
- Expected
- disabled
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
Popups
A page preview popup should appear on hover: Main Page
Rename user
This should be a valid link: Special:RenameUser
Replace Text
This should be a valid link: Special:ReplaceText
SimpleChanges
A list of recent changes should be displayed:
SkinPerPage
The Refreshed skin should apply to this page.
Tabs
- Test
- Expected
- A tabbed display
TemplateStyles
- Test
- red text
- Expected
- red text
TimedMediaHandler
An embedded roar sound with a Menu:
UserMerge
This should be a valid link: Special:UserMerge
VoteNY
A vote box should be here:
Widgets
Alexa
This widget is defunct since the respective service is no longer available.
Facebook Like Box
This widget is defunct since the respective service is no longer available.
SVG
Tweet
YouTube
A YouTube video should be visible:
WikiEditor
This should load a tabbed WikiEditor: edit
WikiForum
This should be a valid link: Special:WikiForum
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"/> <meta name="twitter:description" content="Your meta description"/>