ഫലകം:Geobox protected area/doc
This is a documentation subpage for ഫലകം:Geobox protected area. It may contain usage information, categories and other content that is not part of the original ഫലകം page. |
Usage
തിരുത്തുകNot much changes for the common user, most field names, logic, functionality are kept. However, the Geoboxes offer more functions and versatility. There are no more specific templates for each feature but just one master template that can handle all type data. Nonetheless, the code is much more efficient and the Geoboxes render much faster (the average pre-expand size is 3-4 times smaller) and thus the switch is highly recommended.
To convert from Geobox 1 to Geobox 2 simply replace the template call, e.g. {{Geobox Settlement becomes {{Geobox|Settlement. Or there is a semi-automatic tool.General instructions
തിരുത്തുകHow to fill out
തിരുത്തുക- Copy the appropriate blank template into the edited page and fill in appropriate fields. Do not re-use a template from another page.
- Do not erase empty fields, other editors might supply the missing data. The empty fields are not displayed and don't hinder anything.
General field behavior
തിരുത്തുക- There exist base fields whose output can be modified or extended by adding additional fields, these always bear the name of the base field plus the name of the additional field starting with an underscore ("_"). The additional fields are not present in the blank templates, their existence is nonetheless marked in the field list of every Geobox. Following additional fields are defined for all base fields:
- _type - for redefining the default label, e.g. the default label for the region field is Region, adding region_type it can be changed to display Province, Department …. N.B.: keep the text short, it is always displayed on one line, if it is too long, the left column of the geobox is too wide.
- _note - any sort of note which is printed after the field value, it can be even a reference, though the author of Geoboxes discourages from doing so as the implementation of <ref></ref> tags is very poor. The note is printed in a bit different font, currently implemented as 90% italics.
- _label : puts the HTML title property on the item (the text displays on hover).
- Some fields might contain multiple values, these are not to be put in a single field and separated by commas but using numbered additional fields (e.g. for the country field there also exist country1, country2, country3 …. The additional "indexed" fields are usually not present in the blank templates.
- The fields that link to existing articles don't need to be put between [[ and ]] markup, this is added automatically if the page exists. However, the markup can be used when the text of the link is different form the link itself, e.g. [[Amazon|Solimões]].
- All figures can be in either metric (default) or imperial (miles, feet etc.) units; the Geoboxes display both, automatically calculating imperial figures from metric or metric from imperial ones. Unformated numbers (i.e. without commas) must be entered, otherwise the auto-conversion produces an error. The output is "nicely" formatted. Following additional fields can be used:
- _imperial - for input in imperial/customary units
- _round - for changing the rounding precision of auto-conversion, it's the position from the decimal point to which the figure is rounded, negative values can be used when the input figure is rounded/approximate, default value is 0
- _unit - for changing the default unit, appropropriate unit abbreviation should be used; the default unit for e.g. area is usually square kilometre (or square mile respectively), this can be changed to ha for hectare, acre for acre etc.
The last two additional fields are defined for every field using any units, if there is a set of similar fields, e.g. for area (area, area_land, area_water etc., the _round and _unit fields of the basic one are applied on all of them if they aren't specifically set)
- geobox_width - width of the Geobox in pixels (without px, just the figure), it can be used when there are more Geoboxes or images stacked below each other and the same width is desirable; not in blank templates
Specific fields
തിരുത്തുക- Coordinates can be entered in two ways:
- using separate _d, _m, _s…fields, _s and _m can be dropped out, the coordinate display template is adjusted accordingly
- using just _d field and a decimal number, the hemispehere can be defined by either _NS, _EW fields or by using negative figures for western and southern hemisphere (these two systems mustn't be combined)
- For every location type which can be described in coordinates, there exist two additional fields
- _type (named coordinates_type for the main location), which can contain any paramteres that are passed to the mapping service, especially the scale of the map, the possible parameters are described here: Wikipedia:WikiProject_Geographical_coordinates#Parameters.
- _format (named coordinates_format for the main location) to override how the coordinates are displayed, if the input is decimal the output is decimal too, if the input is DMS so is the output, the possible values are self-explanatory dms and dec
Both _type and _format fields can be defined for every location with coordinates separately or by the general coordinates_type and coordinates_format fields
- The map field should be used for a location map of the feature, i.e. where it is located within a country. The location map can be of three types:
- Self-contained location map. As in e.g. Greater Fatra.
- Semi-automated locator dot. The map field contains background map, whereas locator_x and locator_y contain relative coordinates of the locator dot (as a percent of the map width, inserted without the % symbol), this system can be used when the map is not (or cannnot be) calibrated for the automated locator dot.
- Fully automated locator dot. If coordinates of the location are defined in the Geobox and a calibrated map exists the locator dot is placed automatically based on the coordinates (map_locator field defines the appropriate map calibration). As in e.g. Ostrá. The same locator calibration can be used for all maps derived form one base map, e.g. Lysá hora and Plasy share the same calibration though the background map is different. The existing calibrations are listed here: Geobox locator.
Help
തിരുത്തുക- If anything doesn't work as it should, feel free to contact me, the author of the Geobox system, either on my userpage or here at the talkpage or at the appropriate Geobox talkpage. Caroig 22:40, 2 March 2007 (UTC)
Blank
തിരുത്തുക2 blank templates which can be copied into a page and filled in. There's no difference between them, just fields which won't be needed are not included. Metric/imperial values are calculated automatically from their imperial/metric counterparts, there's no need to input both. See Category:Geobox.
Metric values | Imperial values |
---|---|
{{Geobox Protected Area <!-- *** Name section *** --> | name = | native_name = | other_name = | other_name1 = <!-- *** Category *** --> | category_local = | category_iucn = <!-- *** Image *** --> | image = | image_size = | image_caption = <!-- *** Etymology *** ---> | etymology = <!-- *** Country etc. *** --> | country = | country1 = | state = | state1 = | region = | region1 = | district = | district1 = | city = | city1 = <!-- *** Geography *** --> | location = | lat_d = | lat_m = | lat_s = | lat_NS = | long_d = | long_m = | long_s = | long_EW = | elevation = | area = | area1 = | area1_type = | length = | length_orientation = | width = | width_orientation = | highest = | highest location = | highest_lat_d = | highest_lat_m = | highest_lat_s = | highest_lat_NS = | highest_long_d = | highest_long_m = | highest_long_s = | highest_long_EW = | highest_elevation = | lowest = | lowest_location = | lowest_lat_d = | lowest_lat_m = | lowest_lat_s = | lowest_lat_NS = | lowest_long_d = | lowest_long_m = | lowest_long_s = | lowest_long_EW = | lowest_elevation = <!-- *** Nature *** --> | biome = | biome_share = | biome1 = | biome1_share = | geology = | geology1 = | plant = | plant1 = | animal = | animal1 = <!-- *** People *** --> | established_type = | established = | established1_type = | established1 = | management_body = | management_location = | management_lat_d = | management_lat_m = | management_lat_s = | management_lat_NS = | management_long_d = | management_long_m = | management_long_s = | management_long_EW = | management_elevation = | visitation = | visitation_year = <!-- *** Free fields *** --> | free_type = | free = | free1_type = | free1 = <!-- *** Map section *** --> | map = | map_locator_x = | map_locator_y = | map_size = | map_caption = | map_locator = | map_first = <!-- *** Website *** --> | website = }} |
{{Geobox Protected Area <!-- *** Name section *** --> | name = | native_name = | other_name = | other_name1 = <!-- *** Category *** --> | category_local = | category_iucn = <!-- *** Image *** --> | image = | image_size = | image_caption = <!-- *** Etymology *** ---> | etymology = <!-- *** Country etc. *** --> | country = | country1 = | state = | state1 = | region = | region1 = | district = | district1 = | city = | city1 = <!-- *** Geography *** --> | location = | lat_d = | lat_m = | lat_s = | lat_NS = | long_d = | long_m = | long_s = | long_EW = | elevation_imperial = | area_imperial = | area1_imperial = | area1_type = | length_imperial = | length_orientation = | width_imperial = | width_orientation = | highest = | highest location = | highest_lat_d = | highest_lat_m = | highest_lat_s = | highest_lat_NS = | highest_long_d = | highest_long_m = | highest_long_s = | highest_long_EW = | highest_elevation_imperial = | lowest = | lowest_location = | lowest_lat_d = | lowest_lat_m = | lowest_lat_s = | lowest_lat_NS = | lowest_long_d = | lowest_long_m = | lowest_long_s = | lowest_long_EW = | lowest_elevation_imperial = <!-- *** Nature *** --> | biome = | biome_share = | biome1 = | biome1_share = | geology = | geology1 = | plant = | plant1 = | animal = | animal1 = <!-- *** People *** --> | established_type = | established = | established1_type = | established1 = | management_body = | management_location = | management_lat_d = | management_lat_m = | management_lat_s = | management_lat_NS = | management_long_d = | management_long_m = | management_long_s = | management_long_EW = | management_elevation = | visitation = | visitation_year = <!-- *** Free fields *** --> | free_type = | free = | free1_type = | free1 = <!-- *** Map section *** --> | map = | map_locator_x = | map_locator_y = | map_size = | map_caption = | map_locator = | map_first = <!-- *** Website *** --> | website = }} |
Microformat
തിരുത്തുകThe HTML markup produced by this template includes an hCard microformat, which makes the place-name and location parsable by computers, either acting automatically to catalogue articles across Wikipedia, or via a browser tool operated by a person, to (for example) add the subject to an address book. Within the hCard is a Geo microformat, which additionally makes the coordinates (latitude & longitude) parsable, so that they can be, say, looked up on a map, or downloaded to a GPS unit. For more information about the use of microformats on Wikipedia, please see the microformat project.
Sub-templates
തിരുത്തുകIf the place or venue has "established", "founded", "opened" or similar dates, use {{start date}} for the earliest of those dates unless the date is before 1583 CE.
If it has a URL, use {{URL}}.
Please do not remove instances of these sub-templates.
Classes
തിരുത്തുകhCard uses HTML classes including:
- adr
- agent
- category
- county-name
- extended-address
- fn
- label
- locality
- nickname
- note
- org
- region
- street-address
- uid
- url
- vcard
Geo is produced by calling {{coord}}, and uses HTML classes:
- geo
- latitude
- longitude
Please do not rename or remove these classes nor collapse nested elements which use them.
Precision
തിരുത്തുകWhen giving coordinates, please use an appropriate level of precision. Do not use {{coord}}'s |name=
parameter.