Wikivoyage:Marker Package
Wikivoyage Projektseiten
The Marker Package provides Lua modules and JavaScript scripts for the support of map markers.
Content
BearbeitenThe Marker Package consists of
- Lua modules
- Marker module and its submodules,
- Marker utilities module and its submodules,
- VCard module and its submodules,
- JavaScript scripts
- Gadget-InitListingTools.js including Skype support,
- Gadget-ListingEditor.js,
- Gadget-ListingInfo.js,
- Gadget-MarkerTooltip.js.
- Gadget-Poi2gpx.js
- Gadgets
JavaScript scripts implementation
BearbeitenGadget-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.
// Wrapping li/dd/p/div containers which contain vCard templates for maintenance
// See also MediaWiki:Gadget-vCards-Notes.css
mw.loader.load( '//de.wikivoyage.org/w/index.php?title=MediaWiki:CheckWrappedVCards.js&action=raw&ctype=text/javascript' );
// Initialization of listing editor and listing info
mw.loader.load( "//de.wikivoyage.org/w/index.php?title=MediaWiki:Gadget-InitListingTools.js&action=raw&ctype=text/javascript" );
// Adding marker tooltips
mw.loader.load( '//de.wikivoyage.org/w/index.php?title=MediaWiki:Gadget-MarkerTooltip.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.