Jump to content

Extension:DataMaps: Difference between revisions

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


[[Category:Map extensions]]
[[Category:Map extensions]]

Revision as of 14:15, 8 November 2022

MediaWiki extensions manual
DataMaps
Release status: beta
Implementation ContentHandler , Parser function
Author(s) alex4401 (Alex44019talk)
Latest version 0.12.0
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