Difference between revisions of "Template:GeoGroup/testcases2"

From blackwiki
Jump to navigation Jump to search
imported>Evad37
(copy data + mapframe tests from Template:GeoGroup/testcases)
 
imported>Evad37
(maplink testcases moved to Template:GeoGroup/testcases3)
 
Line 1: Line 1:
 
{{Testcases}}
 
{{Testcases}}
{{see also|Template:GeoGroup/testcases}}
+
{{see also|Template:GeoGroup/testcases|Template:GeoGroup/testcases3}}
  
 
Some data for testing:
 
Some data for testing:
Line 43: Line 43:
 
| {{coord|52.49157|-2.07019|region:GB_type:landmark|name=Windmill End Junction}}
 
| {{coord|52.49157|-2.07019|region:GB_type:landmark|name=Windmill End Junction}}
 
|}
 
|}
 +
 +
==No coords==
 +
This section has no coordinates. Attempting to use in GeoGroup's {{para|section}} parameter should result in an error
  
 
==Various mapframe examples==
 
==Various mapframe examples==
Line 51: Line 54:
 
'''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/>
 
(error expected)
 
(error expected)
{{Testcase table|section=Various maplink examples|mapframe=yes}}
+
{{Testcase table|section=No coords|mapframe=yes}}
  
 
'''Display all the coordinates in a different article:'''
 
'''Display all the coordinates in a different article:'''
Line 62: Line 65:
 
(expect {{para|mapframe}} to be ignored for categories)
 
(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}}
 
==Various maplink examples==
 
 
'''Display the coordinates from a different section than this one (in current article):'''
 
{{Testcase table|section=Examples|maplink=yes}}
 
 
'''Display the coordinates from a different section than this one (in current article), when that section has no coordinates:'''<br/>
 
(error expected)
 
{{Testcase table|section=Various mapframe examples|maplink=yes}}
 
 
'''Display all the coordinates in a different article:'''
 
{{Testcase table|article=List of United States cities by population|maplink=yes}}
 
 
'''Display just the coordinates in one section of a different article:'''
 
{{Testcase table|article=List of United States cities by population|section=Puerto Rico|maplink=yes}}
 
 
'''Display all coordinates in a category:'''<br/>
 
(expect {{para|maplink}} to be ignored for categories)
 
{{Testcase table|article=Category:Rail transport stations in London fare zone 2|maplink=yes}}
 

Latest revision as of 12:26, 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.

Examples

Data from Netherton Tunnel Branch Canal article:

No coords

This section has no coordinates. Attempting to use in GeoGroup's |section= parameter should result in an error

Various 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