Difference between revisions of "Template:Infobox protected area/testcases"

From blackwiki
Jump to navigation Jump to search
imported>Droll
imported>Droll
(add a test of proposed new paramters)
Line 1: Line 1:
 
{{Template test cases notice}}
 
{{Template test cases notice}}
 
__TOC__
 
__TOC__
 +
 +
==Demonstration of ''x'' and ''y'' parameters==
 +
The shift is not that great. In most browsers pressing CTRL + will magnify the page. Notice that the mark is at the intersection of the San Bernardina, Inyo and Kern counties.
 +
 +
Notice that marker shifts slightly to the right and down after map size adjustment.
 +
 +
{{testcases side by side
 +
|{{Infobox protected area
 +
| name = Example using ''locator_x'' & ''locator_y''
 +
 +
| alt_name =
 +
| mark = City locator 0.svg
 +
| map = USA California location map.svg
 +
| map_width =
 +
| locator_x = 184
 +
| locator_y = 209
 +
}}
 +
|{{Infobox protected area
 +
| name = Example using ''locator_x'' & ''locator_y'' after width adjustment
 +
| alt_name =
 +
| mark = City locator 0.svg
 +
| map = USA California location map.svg
 +
| map_width = 180
 +
| locator_x = 184
 +
| locator_y = 209
 +
}}
 +
}}
 +
 +
Using ''x'' and ''y'' the marker retains is proper position.
 +
 +
{{testcases side by side
 +
|{{Infobox protected area/sandbox
 +
| name = Example using ''x'' & ''y''
 +
| alt_name = Using Sandbox
 +
| mark = City locator 0.svg
 +
| map = USA California location map.svg
 +
| map_width =
 +
| x = 654
 +
| y = 740
 +
}}
 +
|{{Infobox protected area/sandbox
 +
| name = Example using ''x'' & ''y'' after width adjustment
 +
| alt_name = Using Sandbox
 +
| mark = City locator 0.svg
 +
| map = USA California location map.svg
 +
| map_width = 180
 +
| x = 654
 +
| y = 740
 +
}}
 +
}}
 +
 
==Tests of proposed versions==
 
==Tests of proposed versions==
  

Revision as of 16:29, 22 March 2012

Demonstration of x and y parameters

The shift is not that great. In most browsers pressing CTRL + will magnify the page. Notice that the mark is at the intersection of the San Bernardina, Inyo and Kern counties.

Notice that marker shifts slightly to the right and down after map size adjustment.

Template:Testcases side by side

Using x and y the marker retains is proper position.

Template:Testcases side by side

Tests of proposed versions

First Example

Current version
Uses class infobox + some inline styling
uses fontsize 90% + custom styling
First proposed version
Uses classs infobox and geography
uses fontsize 90% per class geography
Second proposed version
Uses class infobox and less inline styling
uses fontsize 88% per class infobox
Deer Flat National Wildlife Refuge
IUCN category IV (habitat/species management area)
Lua error in Module:Location_map at line 403: attempt to index field 'wikibase' (a nil value).
LocationSouthwestern Idaho and eastern Oregon, (USA)
Nearest cityScript error: No such module "If empty".
Area10,548 acres (16.481 sq mi; 42.69 km2)[1]
EstablishedScript error: No such module "If empty".
Governing bodyScript error: No such module "If empty".
Template:URL
Script error: No such module "If empty".
Deer Flat National Wildlife Refuge
IUCN category IV (habitat/species management area)
Lua error in Module:Location_map at line 403: attempt to index field 'wikibase' (a nil value).
LocationSouthwestern Idaho and eastern Oregon, (USA)
Nearest cityScript error: No such module "If empty".
Area10,548 acres (16.481 sq mi; 42.69 km2)[1]
EstablishedScript error: No such module "If empty".
Governing bodyScript error: No such module "If empty".
Template:URL
Script error: No such module "If empty".
Template:Infobox protected area/sandbox1

Second Example

Current version First proposed version Second proposed version
Yosemite National Park
IUCN category II (national park)
1 yosemite valley tunnel view 2010.JPG
Yosemite Valley from Tunnel View
Lua error in Module:Location_map at line 501: Unable to find the specified location map definition: "Module:Location map/data/USA relief" does not exist.
LocationTuolumne, Mariposa, & Madera counties, California, USA
Nearest cityScript error: No such module "If empty".
Area761,268 acres (308,074 ha)[2]
EstablishedScript error: No such module "If empty".
Visitors3,563,293Template:Sp(in 2010)[3]
Governing bodyScript error: No such module "If empty".
Script error: No such module "If empty".
Yosemite National Park
IUCN category II (national park)
1 yosemite valley tunnel view 2010.JPG
Yosemite Valley from Tunnel View
Lua error in Module:Location_map at line 501: Unable to find the specified location map definition: "Module:Location map/data/USA relief" does not exist.
LocationTuolumne, Mariposa, & Madera counties, California, USA
Nearest cityScript error: No such module "If empty".
Area761,268 acres (308,074 ha)[2]
EstablishedScript error: No such module "If empty".
Visitors3,563,293Template:Sp(in 2010)[3]
Governing bodyScript error: No such module "If empty".
Script error: No such module "If empty".
Template:Infobox protected area/sandbox1

Aleutian World War II National Historic Area

Template:Testcases side by side

Ocmulgee National Monument

Template:Testcases side by side

Yosemite

Uses {{Location map}} Template:Testcases side by side

Upper and Lower Table Rock

Uses {{Superimpose}} Template:Testcases side by side

Dry Island Buffalo Jump Provincial Park

Uses {{Location map}} Template:Testcases side by side

Ellis Island

Template:Testcases side by side

Reference test

  1. 1.0 1.1 "Annual Report of Lands as of September 30, 2009" (PDF). United States Fish and Wildlife Service.
  2. 2.0 2.1 Template:NPS area
  3. 3.0 3.1 Template:NPS Visitation
  4. 4.0 4.1 "Yosemite Village". Geographic Names Information System. United States Geological Survey.