「模板:Pp-protected」:修訂間差異

移除 2,558 位元組 、​ 2023年8月15日 (星期二)
imported>ChiEmpire
imported>ChiEmpire
第5行: 第5行:
   | 參數<code>native_name</code>不建議使用。請改用<code>alt_name</code>。
   | 參數<code>native_name</code>不建議使用。請改用<code>alt_name</code>。
}}
}}
== Map display methods ==
Any image of a map showing the location of the protected area can be used. There are two mechanisms by which maps using a marker can be displayed.
==== XY coordinate method ====
First the x and y coordinates in [[pixel]]s must be found based on a map with a width of 288 pixels. Use the upper left hand corner as the origin. The sub-template {{tl|Superimpose}} uses these special coordinates to superimpose the marker on the map image showing the location of the protected area.
:<code>locator_x</code> is distance to offset the marker from the left edge of the map image in pixels.
:<code>locator_x</code> is distance to offset the marker from the top edge of the map image in pixels.
The maximum and default display width is 284 pixels but smaller maps can be displayed by setting <code>map_width</code> to a different value.
{{Infobox protected area
| name            = Yosemite National Park
| iucn_category  = Ib
| map            = US_Locator_Blank.svg
| map_caption    = Map of the USA
| locator_x      = 20
| locator_y      = 84
| location        = [[California]], [[United States]]
| nearest_city    = [[Mariposa, California|Mariposa]]
| lat_d          = 37.8499232
| long_d          = -119.5676663
| region          = US-CA
| scale          = 300000
| area            = {{convert|761266|acres|km2}}
| established    = October 1, 1890
| visitation_num  = 3,280,911
| visitation_year = 2004
| governing_body  = [[National Park Service]]
| world_heritage_site = 1984
| url            = http://www.nps.gov/yose/
}}
<pre style="font-size:90%; width:60%">
{{Infobox protected area
| name            = Yosemite National Park
| iucn_category  = Ib
| map            = US_Locator_Blank.svg
| map_caption    = Map of the USA
| locator_x      = 20
| locator_y      = 84
| location        = [[California]], [[United States]]
| nearest_city    = [[Mariposa, California|Mariposa]]
| lat_d          = 37.8499232
| long_d          = -119.5676663
| region          = US-CA
| scale          = 300000
| area            = {{convert|761266|acres|km2}}
| established    = October 1, 1890
| visitation_num  = 3,280,911
| visitation_year = 2004
| governing_body  = [[National Park Service]]
| world_heritage_site = 1984
| url            = http://www.nps.gov/yose/
}}
</pre>
Yosemite National Park is located at <code>locator_x = 20</code> from the left of the image and <code>locator_y = 84</code> from the top. 您可以把這個示例原始碼貼在[[:Wikipedia:沙盒|沙盒]]並且試用其它數值測試。
{{clr}}
== Coordinate syntax ==
== Coordinate syntax ==


匿名使用者