Module:ExtensionJson/GeoData.json: Difference between revisions

From J-Fusion Wiki
Jump to navigationJump to search
Resyncing with extension.json from git
 
m 1 revision imported
 
(No difference)

Latest revision as of 20:50, 4 January 2026

master
name"GeoData"
author
"Max Semenik"
url"https://www.mediawiki.org/wiki/Extension:GeoData"
descriptionmsg"geodata-desc"
license-name"WTFPL"
type"other"
requires
MediaWiki">= 1.46"
APIListModules
geosearch
class"GeoData\Api\QueryGeoSearch"
factory"GeoData\Api\QueryGeoSearch::factory"
services
"NamespaceInfo"
APIPropModules
coordinates
class"GeoData\Api\QueryCoordinates"
services
"WikiPageFactory"
ExtensionMessagesFiles
GeoDataMagic"GeoData.i18n.magic.php"
HookHandlers
geodata
class"GeoData\Hooks"
services
"MainConfig"
"ConnectionProvider"
"DBLoadBalancerFactory"
"RepoGroup"
"WikiPageFactory"
cirrussearch
class"GeoData\CirrusSearchHooks"
schema
class"GeoData\SchemaHooks"
Hooks
LoadExtensionSchemaUpdates"schema"
ParserFirstCallInit"geodata"
ArticleDeleteComplete"geodata"
LinksUpdateComplete"geodata"
FileUpload"geodata"
OutputPageParserOutput"geodata"
SearchIndexFields"geodata"
SearchDataForIndex
handler"geodata"
deprecatedtrue
SearchDataForIndex2"geodata"
CirrusSearchAddQueryFeatures"cirrussearch"
TrackingCategories
"geodata-broken-tags-category"
"geodata-unknown-globe-category"
"geodata-unknown-region-category"
"geodata-unknown-type-category"
config
MaxGeoSearchRadius
value10000
description"Maximum radius in meters users can use for the "radius=" parameter in "list=geosearch" API queries."
MaxCoordinatesPerPage
value500
description"Maximum number of {{#coordinates:…}} parser functions that can be used on a single page. Usages beyond this limit will be ignored and not render anything. Set to 0 for unlimited."
TypeToDim
value
country1000000
satellite1000000
state300000
adm1st100000
adm2nd30000
adm3rd10000
city10000
isle10000
mountain10000
river10000
waterbody10000
event5000
forest5000
glacier5000
airport3000
railwaystation1000
edu1000
pass1000
camera1000
landmark1000
description"Default viewing radius in meters for coordinates that don't specify their own "dim=" or "scale=", but have a "type=". This list also defines what an "unknown type" is, see $wgGeoDataWarningLevel."
DefaultDim
value1000
description"Default viewing radius in meters for coordinates that don't specify their own "dim=", "scale=", or "type=" (see $wgTypeToDim)."
Globes
value
Empty array
description"Allows to specify additional globes, in addition to the globes hardcoded in Globe.php. Array keys are lowercase globe names. Values are arrays with the elements "lon" (a 2-element array with minimum and maximum longitude), "east" (one of the signs -1 or +1), and "radius" in meters (optional)."
GeoDataWarningLevel
value
unknown typenull
unknown globenull
invalid regionnull
description"Customizable error handling for some parameters of the {{#coordinates:…}} parser function. "unknown type" is triggered when a "type=" is used that's not listed in $wgTypeToDim. "unknown globe" is triggered when the "globe=" is neither one of the hardcoded ones nor listed in $wgGlobes. "invalid region" is triggered when the syntax of the "region=" parameter is not correct. The value "fail" makes the parser function fail with an error. "warn" adds one of the "geodata-unknown-…-category" tracking categories to the page. Other values do nothing."
GeoDataIndexGranularity
value10
description"How precise "list=geosearch" API queries are when $wgGeoDataBackend is set to "db". Higher values are more precise, e.g. 10 means 1/10 of a degree. Note you probably want to run the updateIndexGranularity maintenance script when you change this. Doesn't have any effect when $wgGeoDataBackend is set to "elastic"."
GeoDataBackend
value"db"
description"To switch to either the default "db" or "elastic" backend."
GeoDataInJS
value
"lat"
"lon"
description"Which elements from the page's primary coordinates should be exposed via "mw.config.get( 'wgCoordinates' )" in JavaScript. Possible elements are "lat", "lon", "globe", "primary", "dim", "type", "name", "country", and "region". Set to an empty array to not expose anything."
GeoDataUseCirrusSearch
valuefalse
description"Forces coordinates to be added to the CirrusSearch index even if $wgGeoDataBackend is set to "db". This is ignored and the indexing always happens when $wgGeoDataBackend is set to "elastic"."
GeoDataRadiusScoreOverrides
value
config_override"GeoDataPreferGeoRadiusWeight"
uri_param_override"geodataPreferGeoRadiusWeight"
description"Additional ways to influence the boost factor used for the "boost-nearcoord:" and "boost-neartitle:" CirrusSearch features. The hardcoded default is currently 2.0. "config_override" specifies the name of another configuration variable that, when it exists, replaces the default. "uri_param_override" is the name of a URL parameter that can be used to manually specify a different factor, e.g. for testing."
GeoDataDebug
valuefalse
description"Allows to use the "debug=1" parameter in "list=geosearch" API queries. Currently only has an effect when $wgGeoDataBackend is set to "elastic"."
repository"https://gerrit.wikimedia.org/r/mediawiki/extensions/GeoData"