Difference between revisions of "Template:GeoGroup/testcases"
imported>Doncram (ff) |
imported>Evad37 (more useful testcases, taken from doc page) |
||
| Line 1: | Line 1: | ||
| − | + | {{Testcases}} | |
| − | + | Some data for testing: | |
| + | *Birmingham is at {{coord|52.522|-2.043|region:GB_type:landmark|name=Birmingham}} | ||
| + | *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}} | ||
| − | {{ | + | '''All coordinates from a single page:''' |
| + | {{Testcase table}} | ||
| + | == Examples == | ||
| − | + | Data from [[Netherton Tunnel Branch Canal]] article: | |
| − | + | <!-- Example taken from [[Netherton Tunnel Branch Canal]] --> | |
| + | {| class="wikitable collapsible collapsed" | ||
| + | ! Point | ||
| + | ! Coordinates | ||
| + | |- | ||
| + | | Dudley Port Junction | ||
| + | | {{coord|52.52204|-2.04331|region:GB_type:landmark|name=Dudley Port Junction}} | ||
| + | |- | ||
| + | | Groveland Bridge (Tipton Road, A457) | ||
| + | | {{coord|52.51758|-2.04760|region:GB_type:landmark|name=Groveland Bridge (Tipton Road, A457)}} | ||
| + | |- | ||
| + | | Tividale Aqueduct (Old BCN Main Line) | ||
| + | | {{coord|52.51640|-2.04843|region:GB_type:landmark|name=Tividale Aqueduct (Old BCN Main Line)}} | ||
| + | |- | ||
| + | | Northern tunnel portal | ||
| + | | {{coord|52.51534|-2.04948|region:GB_type:landmark|name=Northern tunnel portal}} | ||
| + | |- | ||
| + | | Aston Road air vent | ||
| + | | {{coord|52.50850|-2.05518|region:GB_type:landmark|name=Aston Road air vent}} | ||
| + | |- | ||
| + | | Regent Road air vent | ||
| + | | {{coord|52.50697|-2.05708|region:GB_type:landmark|name=Regent Road air vent}} <!-- Approx. canal mid-point --> | ||
| + | |- | ||
| + | | Approx. tunnel midpoint | ||
| + | | {{coord|52.50435|-2.05932|region:GB_type:landmark|name=Approx. tunnel midpoint}} | ||
| + | |- | ||
| + | | Southern tunnel portal | ||
| + | | {{coord|52.49335|-2.06916|region:GB_type:landmark|name=Southern tunnel portal}} | ||
| + | |- | ||
| + | | Windmill End Junction | ||
| + | | {{coord|52.49157|-2.07019|region:GB_type:landmark|name=Windmill End Junction}} | ||
| + | |} | ||
| − | {{ | + | '''Display the coordinates from the current section (in current article):''' |
| + | {{Testcase table|section=Examples}} | ||
| − | + | ==Other examples== | |
| − | {{ | + | '''Display the coordinates from a different section than this one (in current article):''' |
| + | {{Testcase table|section=Examples}} | ||
| + | '''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"). | ||
| + | {{Testcase table|section=Other examples}} | ||
| + | '''Display all the coordinates in a different article:''' | ||
| + | {{Testcase table|article=List of United States cities by population}} | ||
| − | section | + | '''Display just the coordinates in one section of a different article:''' |
| − | {{ | + | {{Testcase table|article=List of United States cities by population|section=Puerto Rico}} |
| − | + | '''Display all coordinates in a category:''' | |
| − | {{ | + | {{Testcase table|article=Category:Rail transport stations in London fare zone 2}} |
| + | |||
| + | '''Display all coordinates in a large parent category and all of its subcategories (using infinite recursion):''' | ||
| + | {{Testcase table|article=Category:Listed churches by grade in the United Kingdom|level=0}} | ||
| + | |||
| + | '''Display all coordinates in the large parent category to one level of subcategories (using recursion level 1):''' | ||
| + | {{Testcase table|article=Category:Listed churches by grade in the United Kingdom|level=1}} | ||
| + | |||
| + | '''Display coordinates in the large parent category to two levels of subcategories (using recursion level 2):''' | ||
| + | {{Testcase table|article=Category:Listed churches by grade in the United Kingdom|level=2}} | ||
| + | |||
| + | '''Display all coordinates in another large category and all its subcategories:''' | ||
| + | {{Testcase table|article=Category:Railway stations in London|level=0} | ||
Revision as of 14:05, 11 September 2015
- 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:
| Point | Coordinates |
|---|---|
| Dudley Port Junction | Lua error: callParserFunction: function "#coordinates" was not found. |
| Groveland Bridge (Tipton Road, A457) | Lua error: callParserFunction: function "#coordinates" was not found. |
| Tividale Aqueduct (Old BCN Main Line) | Lua error: callParserFunction: function "#coordinates" was not found. |
| Northern tunnel portal | Lua error: callParserFunction: function "#coordinates" was not found. |
| Aston Road air vent | Lua error: callParserFunction: function "#coordinates" was not found. |
| Regent Road air vent | Lua error: callParserFunction: function "#coordinates" was not found. |
| Approx. tunnel midpoint | Lua error: callParserFunction: function "#coordinates" was not found. |
| Southern tunnel portal | Lua error: callParserFunction: function "#coordinates" was not found. |
| Windmill End Junction | Lua error: callParserFunction: function "#coordinates" was not found. |
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}