Difference between revisions of "Project:Extension tests"

From Earth Science Information Partners (ESIP)
(Removes ConfirmAccount section)
Line 1: Line 1:
 +
== Bootstrap ==
 +
This should be a greeny shadowed alert box with white text:
 +
<div class="alert bg-success shadow text-white font-weight-bold">
 +
I am bootstrapped
 +
</div>
 +
 
== DataTransfer ==
 
== DataTransfer ==
 
This should be a valid link:
 
This should be a valid link:
Line 40: Line 46:
 
This should be a valid link:
 
This should be a valid link:
 
[[Special:EditSchema]]
 
[[Special:EditSchema]]
 +
 +
== ParserFunctions ==
 +
; Test math functions: {{#expr: 4 + 6}}
 +
; Expected : 10
 +
 +
; Test string functions: {{#len:Icecream }}
 +
; Expected : 8
  
 
== Rename user ==
 
== Rename user ==
Line 81: Line 94:
  
 
== UrlGetParameters ==
 
== UrlGetParameters ==
Should display the fill page name in the preview mode:
+
; Test : {{#urlget:param|}} {{#if:{{#urlget:param|}}||[{{fullurl:{{FULLPAGENAME}}|param=Test}} Click here to test.]}}
* {{#urldecode:{{#urlget: title}}}}
+
; Expected : Test
  
 
== Variables ==
 
== Variables ==
{{#vardefine: i|10}}
+
; Test : {{#vardefine:test|testing}}{{#var:test}}
;Result
+
; Expected : testing
:{{#var:i}}
 
;Expected
 
:10
 
  
 
== VisualEditor ==
 
== VisualEditor ==

Revision as of 09:47, November 12, 2021

Bootstrap

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

I am bootstrapped

DataTransfer

This should be a valid link: Special:ImportCSV

DiscussionThreading

Navigate to the Project talk:Extension tests, ensure there is a "Subject" field

ExternalData

Test
Europe
Expected
Europe

googleAnalytics

Check the HTML source of this page.

InputBox

Test
Expected
An input box

Maps

Loading map...
Test
52° 30' 58.57" N, 13° 22' 39.73" E
Expected
52° 30' 58.59" N, 13° 22' 39.73" E

Nuke

This should be a valid link: Special:Nuke

PageForms

This should be a valid link: Special:Forms

PageSchemas

This should be a valid link: Special:EditSchema

ParserFunctions

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

Rename user

This should be a valid link: Special:RenameUser

RSS

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

Wikimania 2024 in Poland celebrates global volunteers who make Wikipedia and sister projects possible
The nineteenth edition of the global event will take place in Katowice, Poland (the 2024 European City of Science), from 7 - 10 August.
The post <a href="https://wikimediafoundation...
Wikimedia Foundation 2024-07-31 08:00:00

SemanticDrilldown

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:

SemanticMediaWiki

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

Semantic Result Formats

Test
Expected
A nice-looking DataTable with a search field

SubPageList

UrlGetParameters

Test
Click here to test.
Expected
Test

Variables

Test
testing
Expected
testing

VisualEditor

This should load VisualEditor in edit mode: edit

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