Module:Sandbox/Wnt/FindFeatures/doc

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search


Parameters

[edit source]

function name = identifies the planet to search (mercury, venus, moon, earthCraters, mars presently implemented)

  • unnamed parameters - set four to numbers and directions to establish a bounding box (see rectangular region example)
  • center = sets the center of a circular region
  • radius = kilometers radius around the center, using haversine formula with radius set to the area of the center.
  • hits = # of hits to return (but only within radius, if provided)
  • showdist = if provided, the distance is indicated after each coordinate set. If showdist is a number it is rounded off to this amount (e.g. use 0.1 for one decimal place)
  • nowiki = debugging parameter: if set, the output is in nowiki format
  • suppress = set to "self" to prevent the link to the page presently being displayed from being included.

Creating the database from which features are searched

[edit source]

Databases for this module are created by {{#invoke:FindFeatures|venus|displaydatabase=yes}} and then copied to places like Module:FindFeatures/Venus (in module space) for later use. The data sources (articles) can be set by data=page1|page2|page3 and all records in tables, especially using the Coord template, are supposed to be mined from them. Because each article is written differently this can be problematic - the data produced should be checked, and might turn out to need further adjustment. Module talk:FindFeatures/data has been used as a scratchpad for splitting up data that wouldn't compile in a single run.

See Module talk:FindFeatures