Wikivoyage:Marker Package

Aus Wikivoyage
Index > Dokumentation > Software-Pakete > Marker Package

The Marker Package provides Lua modules and JavaScript scripts for the support of map markers.

Content[Bearbeiten]

The Marker Package consists of

JavaScript scripts implementation[Bearbeiten]

InitListingTools.js calls both the ListingEditor and the 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:InitListingTools.js&action=raw&ctype=text/javascript" );

// Adding marker tooltips
mw.loader.load( '//de.wikivoyage.org/w/index.php?title=MediaWiki:MarkerTooltip.js&action=raw&ctype=text/javascript' );

Please note the slight difference between MediaWiki:Common.js and MediaWiki:Mobile.js.

Style sheets[Bearbeiten]

Maintenance[Bearbeiten]

See also[Bearbeiten]