A Project of the Center for Advanced Study in the Visual Arts, National Gallery of Art
History of Early American Landscape Design

History of Early American Landscape Design:Extension tests

[http://www.nga.gov/content/ngaweb/research/casva/research-projects.html A Project of the National Gallery of Art, Center for Advanced Study in the Visual Arts ]

Extension Test Generator

Extensions test page generator

Implementing an extension test page

Approx. time to implement on a single wiki: 30-40 minutes.

Should be placed at Project:Extension tests. Please update this list as needed:

<syntaxhighlight lang="moin"> 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

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

AJAXPoll

Test

<poll> Question Choice 1 Choice 2 Choice 3 Choice 4 </poll>

Expected
A poll

AnchorHandler

Test
<a href="http://www.google.com"> Google </a>
Expected
Google

ApprovedRevs

Special:ApprovedRevs must be a valid link.

Arrays

{{#arraydefine:b|orange,red ,yellow, yellow}}

Test
{{#arrayprint:b}}
Expected
orange, red, yellow, yellow

balloons

<balloon title="Hello I am a tooltip!">Mouse over me!</balloon>

Bootstrap

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

I am bootstrapped

Cargo

This link should contain information about this page.

CategoryTree

A category tree should be shown: <categorytree mode=pages>Tests</categorytree>

CharInsert

Test
<charinsert>Á</charinsert>
Expected
Á

CheckUser

This should be a valid link: Special:CheckUser

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

Collections

download PDF

Comments

<comments />

CommentStreams

<comment-streams/>

Confirm User Accounts

ConfirmEdit

skipcaptcha right should be present here.

ContactPage

This should be a valid link: Contact us

ContributionScores

This should be a valid link: Special:ContributionScores

ContributionsList

A list of contributions should be shown: {{#contributionslist:

 user=WikiWorks

}}

Contributors

A list of contributors to this page should be shown: Special:Contributors/History of Early American Landscape Design:Extension tests

CreatePage

A text input should be shown: {{#createpage:}}

CSS

{{#css:

 #css-test {
   color: red;
 }

}}

If this text is red, the extension works.

DataTransfer

This should be a valid link: Special:ImportCSV

Disambiguator

Test
__DISAMBIG__
Expected
(nothing)

DismissableSiteNotice

DiscussionThreading

Navigate to the History of Early American Landscape Design talk:Extension tests, ensure there is a "Subject" field

DrawioEditor

This should create the Edit link which opens the editor: {{#drawio:Extension tests}}

Echo

This should be a valid link: Special:Notifications

Editcount

An integer should follow: Special:Editcount/WikiWorks

EmbedVideo

Three videos should be below:

{{#ev:youtube|DWef69ItVrU|200}} {{#evt: service=youtube |id=https://www.youtube.com/watch?v=DWef69ItVrU |dimensions=200 }} <embedvideo dimensions="200" service="youtube">https://www.youtube.com/watch?v=DWef69ItVrU</embedvideo>

ExternalLinkConfirm

  • The following links should display no modal windows and just redirect you to Project:Help (it's ok if the link is red)
  • And this link should display a warning modal: Clickme

ExternalData

{{#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|data=Located in=Located in}}
Test
{{#external_value:Located in}}
Expected
Europe

Favorites

This link should work: Special:Favoritelist

list faforities:
<favorites/>

FlashMP3

Note: This extension should be phased out and replaced with the html5audio widget. <flashmp3>http://www.openanesthesia.org/podcasts/200912London.mp3</flashmp3>


FlickrAPI

<flickr>145197704</flickr>

Gadgets

googleAnalytics

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

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

GoogleAnalyticsMetrics

An integer should be displayed: {{#GoogleAnalyticsMetrics:pageviews}}

GoogleCustomWikiSearch

This should be a valid link: Special:GoogleCustomWikiSearch

HeaderFooter

The content of MediaWiki:hf-footer-History of Early American Landscape Design:Extension tests must be shown as a footer on the current page.

HeaderTabs

Two tabs should be visible below.

Test

Content

Test2

More content <headertabs />

HitCounters

An integer should follow: {{#numberofviews:}}

HTML Tags

Should be a link or something else allowed by $wgHTMLTagsAttributes variable: <htmltag tagname="a" href="http://en.wikipedia.org/wiki/Antarctica" class="my-links">Read about Antarctica</htmltag>

IDProvider

Test
{{#idprovider-increment:TEST_}}
Expected
TEST_<integer>

IframePage

IfTemplates

Test
{{#iftemplates:Project:Extension tests/IfTemplates|true|false}}
Expected
true
Test
{{#iftemplates:Project:Extension tests/IfTemplates2|true|false}}
Expected
false

ImageMap

Error: Image is invalid or non-existent.

InputBox

Test

<inputbox> type=create break=no </inputbox>

Expected
An input box

Interwiki

This should be a valid link: Special:Interwiki

JavascriptSlideshow

Test
{{#slideshow:
Tick
Tock

|id=bar refresh=1000 }}

Expected
The words: Tick & Tock, alternating.

JSON

{{#json: {

 "name" : "John"

} }}

  • Expected: John
  • Actual:

LabeledSectionTransclusion

Test
{{#lst:History of Early American Landscape Design:Extension tests/Labeled Section Transclusion|test1}}
Expected
This is a test.
Test
{{#lsth:History of Early American Landscape Design:Extension tests/Labeled Section Transclusion|test2}}
Expected

This is also a test.

In /Labeled Section Transclusion:

This is a test.

Some text ...

test2

This is also a test.

LinkTarget

Depends on $wgLinkTargetParentClasses = [ 'target-blank' ];

This should open in new tab / window.

Default target for external links

Depends on $wgExternalLinkTarget = '_blank';

This should open in new tab / window.

LinkTree

The code below renders a linktree for this page: {{#linktree:History of Early American Landscape Design:Extension tests}}

Lockdown

LookupUser

This should be a valid link: LookupUser

Loops (requires Variables)

Test
{{#vardefine: i | 1 }}{{#while:
| Expression error: Unrecognized punctuation character "{".
| 

{{#var: i }} {{#vardefine: i | Expression error: Unrecognized punctuation character "{". }} }}

Expected
1 2 3

MagicNumberedHeadings

If you see all headings numbered, it works. __NUMBEREDHEADINGS__

Maps

Variant 1
Loading map...
Test
Geocoding failed
Expected
52° 30' 58.59" N, 13° 22' 39.73" E
Variant 2
Loading map...
Test
52° 30' 58.57" N, 13° 22' 39.73" E
Expected
52° 30' 58.59" N, 13° 22' 39.73" E

Math

Test
<math>\int_{(x,y)\in C} x^3\, dx + 4y^2\, dy</math>
Expected
∫(x,y)∈Cx3dx+4y2dy (but much better-looking)

Mendeley

Test
{{#mendeley:doi=10.1103/PhysRevA.20.1521|parameter=title}}
Expected (similar to)
Laser cooling of atoms
Test
{{#mendeley:id=04d48d5f-d664-3a17-b004-1503cca53802|parameter=authors;first_name}}
Expected (similar to)
D. J.,Wayne M.


MobileDetect

Test
<mobileonly>Mobile</mobileonly><nomobile>Desktop</nomobile>
Expected
Either "Desktop" or "Mobile"

MPDF

download this page as a PDF file

MsUpload

This should have an upload box: edit

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:

50px

MyVariables

Test
Template:CURRENTUSER
Expected
Your user name or the IP for anonymous users

MultimediaPlayer

Test

<multimediacontainer />
  • {{#multimediaitem:YouTube|DWef69ItVrU|YouTube test}}

Expected

Clicking the text should load a YouTube video.

NamespaceHTML

Test
<html>

<script>

document.getElementById("demo").innerHTML = "NamespaceHTML test!"; </script></html>

Expected
NamespaceHTML test!

Nuke

This should be a valid link: Special:Nuke

PageForms

This should be a valid link: Special:Forms

PageImages

PageSchemas

This should be a valid link: Special:EditSchema

ParseLine

Test
{{#parseline:All

|on |one line}}

Expected
All|on|oneline

ParserFunctions

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

PdfBook

Single article
This should create a PDF of the Main Page
Collection of articles
This should create a PDF with a collection of pages from the category Imported vocabulary (SMW required)

PDFHandler

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

Succeeded

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

Pubmed

Test

<pubmed> 15980568 </pubmed>

Expected

Andreas Bohne-Lang, Wolf-Dieter Groch, Ren? Ranzinger
AISMIG--an interactive server-side molecule image generator.
Nucleic Acids Res.: 2005, 33(Web Server issue);W705-9
<a target="_blank" href="http://www.ncbi.nlm.nih.gov/pubmed/15980568" style="text-decoration: none;color:blue">[PubMed:15980568]</a><a target="_blank" href="http://www.worldcat.org/issn/1362-4962" style="text-decoration: none;color:blue"> [WorldCat.org]</a><a target="_blank" href="http://dx.doi.org/10.1093/nar/gki438" style="text-decoration: none;color:blue">[DOI]</a>(I p)

Quiz

Test

<quiz> {Bulgaria and Rumania joined the European Union in 2007. |type="()"} + TRUE. - FALSE. </quiz>

Expected

A quiz

Rename user

This should be a valid link: Special:RenameUser

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: <rss max=1 highlight="a">https://wikimediafoundation.org/feed/</rss>

SemanticDrilldown

This should be a valid link: Special:BrowseData

SemanticMediaWiki

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

Semantic Internal Objects

{{#set_internal:Part of recipe |Has quantity=1 |Has unit=cup |Has ingredient=flour }}

  • Expected: 1
  • Actual:

Semantic Result Formats

Test (old wikis)
Expected
A nice-looking DataTable with a search field

SimpleChanges

A list of recent changes should be displayed: Special:SimpleChanges/5


SimpleTable

Test

<tab border=1> Field 1 Field 2 Field 3 Field 4 Field 5 Field 6 Field 7 Field 8 Field 9 </tab>

Expected
Field 1 Field 2 Field 3
Field 4 Field 5 Field 6
Field 7 Field 8 Field 9

SimpleTooltip

This should render a simple tooltip link: {{#tip-text: Hover over this to see a tooltip. | tooltip-text}} This should render a simple tooltip icon: {{#tip-info: tooltip-text }}

SlideShare

A Slideshare should be visible:

Error in widget SlideShare: Unable to load template 'wiki:SlideShare'

SpamBlacklist

Once this is added to Mediawiki:Spam-blacklist:

\bexample\.com\b

this should be blocked:

example.com

Scribunto

Module:String

Test
{{#invoke:String|len|This is a test.}}
Expected
15

SyntaxHighlight

The following must be colorful: <syntaxhighlight lang="python" line start=3 highlight="1,5-7"> def quick_sort(arr): less = [] pivot_list = [] more = [] if len(arr) <= 1: return arr else: pass </syntaxhighlight>

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

TemplateData

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

TemplateStyles

<templatestyles src="Project:Extension tests/TemplateStyles.css" />

Test
red text
Expected
red text

TopContributors

<topcontributors />

Thanks

Special:Log/thanks exists

TreeAndMenu

An interactive tree is rendered below: {{#tree:

}}

TimedMediaHandler

File:Xacti-AC8EX-Sample video-001.ogv

UploadWizard

UploadWizard is displayed at Special:UploadWizard

UrlGetParameters

Test
{{#urlget:param|}}
Expected
Test

UserMerge

This should be a valid link: Special:UserMerge


UserProtect

This must open the UserProtect interface.

Variables

Test
{{#vardefine:test|testing}}{{#var:test}}
Expected
testing

VisualEditor

This should load VisualEditor in edit mode: edit

VoteNY

A vote box should be here: <vote />

WatchAnalytics

WhosOnline

Widgets

Test
Widget
Expected
Widget

Disqus

Error in widget DISQUS: Unable to load template 'wiki:DISQUS'

Html5media

A video should be visible:

Error in widget Html5media: Unable to load template 'wiki:Html5media'

Vimeo

Error in widget Vimeo: Unable to load template 'wiki:Vimeo'

YouTube

A YouTube video should be visible:

Error in widget Youtube: Unable to load template 'wiki:Youtube'

Iframe

WikiEditor

This should load a tabbed WikiEditor: edit

WikiForum

This should be a valid link: Special:WikiForum

WikiSEO

{{#seo: |title=Your page title |titlemode=append |keywords=these,are,your,keywords |description=Your meta description }} 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"/>

Wiretap

YouTube

<youtube>VyBSS48E4xI</youtube> </syntaxhighlight>

Retrieved from "https://heald.nga.gov/mediawiki/index.php?title=History_of_Early_American_Landscape_Design:Extension_tests&oldid=41049"

History of Early American Landscape Design contributors, "History of Early American Landscape Design:Extension tests," History of Early American Landscape Design, , https://heald.nga.gov/mediawiki/index.php?title=History_of_Early_American_Landscape_Design:Extension_tests&oldid=41049 (accessed November 21, 2024).

A Project of the Center for Advanced Study in the Visual Arts

National Gallery of Art, Washington