Difference between revisions of "Template:GeoGroup/testcases"

From blackwiki
Jump to navigation Jump to search
imported>Evad37
(more useful testcases, taken from doc page)
imported>Evad37
m (→‎top: fix)
Line 2: Line 2:
  
 
Some data for testing:
 
Some data for testing:
*Birmingham is at {{coord|52.522|-2.043|region:GB_type:landmark|name=Birmingham}}
+
*Birmingham is at {{coord|52.486|-1.890|region:GB_type:landmark|name=Birmingham}}
 
*M5 / A41 junction is at {{coord|52.51172|-1.97513|region:GB_type:landmark|name=M5 / A41 junction}}
 
*M5 / A41 junction is at {{coord|52.51172|-1.97513|region:GB_type:landmark|name=M5 / A41 junction}}
 
*The Black Country Living Museum is at {{coord|52.520073|-2.075269|region:GB_type:landmark|name=The Black Country Living Museum}}
 
*The Black Country Living Museum is at {{coord|52.520073|-2.075269|region:GB_type:landmark|name=The Black Country Living Museum}}
Line 8: Line 8:
 
'''All coordinates from a single page:'''
 
'''All coordinates from a single page:'''
 
{{Testcase table}}
 
{{Testcase table}}
 +
 
== Examples ==
 
== Examples ==
  

Revision as of 14:07, 11 September 2015

  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

Examples

Data from Netherton Tunnel Branch Canal article:

Display the coordinates from the current section (in current article): 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: {{Testcase table|article=Category:Railway stations in London|level=0}