Wikivoyage:Marker Package
Erscheinungsbild
The Marker Package provides Lua modules and JavaScript scripts for the support of map markers.
Content
[Bearbeiten]The Marker Package consists of
- Lua modules
- Marker module and its submodules,
- Marker utilities module and its submodules,
- VCard module and its submodules,
- JavaScript scripts
- Gadgets
JavaScript scripts implementation
[Bearbeiten]Gadget-InitListingTools.js calls both the Gadget-ListingEditor and the Gadget-ListingInfo. Please add the JavaScript scripts to the pages MediaWiki:Common.js and MediaWiki:Mobile.js, respectively.
// Initialization of listing editor and listing info
mw.loader.load( "//de.wikivoyage.org/w/index.php?title=MediaWiki:Gadget-ListingEditor.js&action=raw&ctype=text/javascript" );
Please note the slight difference between MediaWiki:Common.js and MediaWiki:Mobile.js.
Style sheets
[Bearbeiten]- Template:VCard/styles.css — style sheet for {{Marker}} and {{vCard}} templates,
- MediaWiki:Gadget-MarkerTooltip.css — style sheet for the marker tooltips, which is embedded by the JavaScript script itself,
- MediaWiki:Gadget-ListingEditor.css — style sheet for the listing editor, which is embedded by the JavaScript script itself,
- MediaWiki:Gadget-ListingInfo.css – style sheet for the ListingInfo dialogue, which is embedded by the JavaScript script itself.
Maintenance
[Bearbeiten]- {{Modulversion}} – Template to compare the module version stored in the module with that noted in Wikidata. Modules with a version which differ from the Wikidata value are recorded in Different module version in Wikidata category.
- Listing maintenance – Maintenance category for categories used by {{Marker}} and {{vCard}} templates.
- Pages using Wikidata properties – Maintenance category for categories of Wikidata properties used.
