Jump to content

Extension:DataMaps: Difference between revisions

From mediawiki.org
Content deleted Content added
No edit summary
No edit summary
Line 21: Line 21:
|hook3 = CodeEditorGetPageLanguage
|hook3 = CodeEditorGetPageLanguage
|hook4 = CanonicalNamespaces
|hook4 = CanonicalNamespaces
|hook5 = GetPreferences
|hook6 = SkinTemplateNavigation::Universal
|hook7 = CustomEditor
|hook8 = ParserOptionsRegister
|hook9 = ChangeTagsListActive
|hook10 = ListDefinedTags
}}
}}



Revision as of 14:17, 8 November 2022

MediaWiki extensions manual
DataMaps
Release status: beta
Implementation ContentHandler , Parser function
Author(s) alex4401 (Alex44019talk)
Latest version 0.13.1
MediaWiki 1.37
PHP >= 8.1
Database changes No
  • $wgEnableFandomPortingTools
  • $wgEnableCreateMap
  • $wgAllowExperimentalFeatures
  • $wgMaxApiMarkerBatch
  • $wgPublicSchemaPath
  • $wgEnableMapLazyLoading
  • $wgUseInProcessParserCache
  • $wgUseCodeMirror
  • $wgMarkerParserExpansionLimit
  • $wgEnableOnWikiFeatureFlags
  • $wgEnableVisualEditor
  • $wgEnableTransclusionAlias
  • $wgEnableLoadMapButton
  • $wgUseCodeEditor
  • $wgApiCaching
  • $wgNamespaceId
  • $wgDefaultApiMarkerBatch
  • $wgFullLinksUpdateBudget
  • $wgReportTimingInfo
Licence GNU General Public License 2.0 or later
Download
Example ARK: Survival Evolved Wiki
Temtem Wiki

The DataMaps extension lets you display interactive maps without additional services.

Installation

  • Download and place the file(s) in a directory called DataMaps in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php file:
    wfLoadExtension( 'DataMaps' );
    
  • Optionally, if you do not want to use the built-in namespace create one and set $wgDataMapsNamespaceId to its ID.
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Wikis on wiki.gg can request this extension to be enabled via the platform's representatives.

Configuration parameters

$wgDataMapsNamespaceId
Identifier of the namespace that all maps will live in.
Default: managed (uses built-in namespace)
$wgDataMapsCaching
Associative array of settings:
type
Default: CACHE_ANYTHING
ttl
Default: 86400 (1 day)
ttlExtensionThreshold
Default: 43200 (12 hours)
ttlExtensionValue
Default: 57600 (16 hours)
$wgDataMapsDefaultApiMarkerBatch
Default: 2500
$wgDataMapsMaxApiMarkerBatch
Default: 5000
$wgDataMapsMarkerParserExpansionLimit
Default: 800
$wgDataMapsUseInProcessParserCache
Default: true
$wgDataMapsDefaultFeatures
Associative array which controls whether features are enabled by default on maps.
ShowCoordinates
Self-explanatory.
Default: true
ShowLegendAlwaysAbove
Displays the legend above the map (mobile style) on all screens.
Default: false
RequireCustomMarkerIDs
Requires every marker to have a unique identifier specified (for permanent links or collectible identification).
Default: false
Search
Enables marker search in top-left corner of the map.
Default: false
SortChecklistsByAmount
Sorts collectible marker groups by number of markers associated.
Default: true
$wgDataMapsEnableCreateMap
Enables visual map creation dialog to streamline the process for users.
Default: true
$wgDataMapsReportTimingInfo
Default: false
$wgDataMapsAllowExperimentalFeatures
Enables any experimental features bundled in the release but disabled by default.
Default: false