Difference between revisions of "Template:GeoGroup/testcases"

From blackwiki
Jump to navigation Jump to search
imported>Evad37
(mapframe and maplink testcases)
imported>Evad37
(Other maplink/mapframe examples moved to Template:GeoGroup/testcases2 and Template:GeoGroup/testcases3)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
{{Testcases}}
 
{{Testcases}}
 +
{{see also|Template:GeoGroup/testcases2|Template:GeoGroup/testcases3}}
  
 
Some data for testing:
 
Some data for testing:
Line 52: Line 53:
 
|}
 
|}
  
'''Display the coordinates from the current section (in current article):'''
+
'''Display the coordinates from the current section (in current article), without maplink map:'''
{{Testcase table|section=Examples}}
+
{{Testcase table|section=Examples|maplink=no}}
  
 
'''Display the coordinates from the current section (in current article) with a mapframe map:'''
 
'''Display the coordinates from the current section (in current article) with a mapframe map:'''
Line 64: Line 65:
  
 
'''Display the coordinates from a different section than this one (in current article):'''
 
'''Display the coordinates from a different section than this one (in current article):'''
{{Testcase table|section=Examples}}
+
{{Testcase table|section=Examples|maplink=no}}
  
 
'''Display the coordinates from a different section than this one (in current article), when that section has no coordinates:'''<br/>
 
'''Display the coordinates from a different section than this one (in current article), when that section has no coordinates:'''<br/>
 
(Expected result: "sorry, no data to show" but GeoGroup box displays "this section").
 
(Expected result: "sorry, no data to show" but GeoGroup box displays "this section").
{{Testcase table|section=Other examples}}
+
{{Testcase table|section=Other examples|maplink=no}}
  
 
'''Display all the coordinates in a different article:'''
 
'''Display all the coordinates in a different article:'''
{{Testcase table|article=List of United States cities by population}}
+
{{Testcase table|article=List of United States cities by population|maplink=no}}
  
 
'''Display just the coordinates in one section of a different article:'''
 
'''Display just the coordinates in one section of a different article:'''
{{Testcase table|article=List of United States cities by population|section=Puerto Rico}}
+
{{Testcase table|article=List of United States cities by population|section=Puerto Rico|maplink=no}}
  
 
'''Display all coordinates in a category:'''
 
'''Display all coordinates in a category:'''
Line 108: Line 109:
  
 
'''Display all coordinates in a category:'''<br/>
 
'''Display all coordinates in a category:'''<br/>
(error expected)
+
(expect {{para|mapframe}} to be ignored for categories)
 
{{Testcase table|article=Category:Rail transport stations in London fare zone 2|mapframe=yes}}
 
{{Testcase table|article=Category:Rail transport stations in London fare zone 2|mapframe=yes}}
  
Line 127: Line 128:
  
 
'''Display all coordinates in a category:'''<br/>
 
'''Display all coordinates in a category:'''<br/>
(error expected)
+
(expect {{para|maplink}} to be ignored for categories)
 
{{Testcase table|article=Category:Rail transport stations in London fare zone 2|maplink=yes}}
 
{{Testcase table|article=Category:Rail transport stations in London fare zone 2|maplink=yes}}

Latest revision as of 12:29, 10 July 2020

  1. REDIRECT Template:Testcases notice

Some data for testing:

  • Birmingham is at Lua error: callParserFunction: function "#coordinates" was not found.
  • M5 / A41 junction is at Lua error: callParserFunction: function "#coordinates" was not found.
  • The Black Country Living Museum is at Lua error: callParserFunction: function "#coordinates" was not found.

All coordinates from a single page: Template:Testcase table

All coordinates from a single page with mapframe map Template:Testcase table

All coordinates from a single page with maplink map Template:Testcase table

Examples

Data from Netherton Tunnel Branch Canal article:

Display the coordinates from the current section (in current article), without maplink map: Template:Testcase table

Display the coordinates from the current section (in current article) with a mapframe map: Template:Testcase table

Display the coordinates from the current section (in current article) with a maplink map: Template:Testcase table

Other examples

Display the coordinates from a different section than this one (in current article): Template:Testcase table

Display the coordinates from a different section than this one (in current article), when that section has no coordinates:
(Expected result: "sorry, no data to show" but GeoGroup box displays "this section"). Template:Testcase table

Display all the coordinates in a different article: Template:Testcase table

Display just the coordinates in one section of a different article: Template:Testcase table

Display all coordinates in a category: Template:Testcase table

Display all coordinates in a large parent category and all of its subcategories (using infinite recursion): Template:Testcase table

Display all coordinates in the large parent category to one level of subcategories (using recursion level 1): Template:Testcase table

Display coordinates in the large parent category to two levels of subcategories (using recursion level 2): Template:Testcase table

Display all coordinates in another large category and all its subcategories: Template:Testcase table


Other mapframe examples

Display the coordinates from a different section than this one (in current article): Template:Testcase table

Display the coordinates from a different section than this one (in current article), when that section has no coordinates:
(error expected) Template:Testcase table

Display all the coordinates in a different article: Template:Testcase table

Display just the coordinates in one section of a different article: Template:Testcase table

Display all coordinates in a category:
(expect |mapframe= to be ignored for categories) Template:Testcase table

Other maplink examples

Display the coordinates from a different section than this one (in current article): Template:Testcase table

Display the coordinates from a different section than this one (in current article), when that section has no coordinates:
(error expected) Template:Testcase table

Display all the coordinates in a different article: Template:Testcase table

Display just the coordinates in one section of a different article: Template:Testcase table

Display all coordinates in a category:
(expect |maplink= to be ignored for categories) Template:Testcase table