wco

0.0.4 • Public • Published

Wikitext Coordinates

wco extract coordinates from MediaWiki Templates. It knows the {{coord}} and {{coordinate}} markup variants.

Usage

wco( article[, strict[, title]]);

  • article – mediawiki markup text
  • strict – if true, only coordinates relating to the article itself are returned (display=title or article=/)
  • title – shown in debug output

Example

var wco = require("wco");

var coords = wco('{{Coord|13.24|52.31|display=t}}', true);

Package Sidebar

Install

npm i wco

Weekly Downloads

1

Version

0.0.4

License

Unlicense

Unpacked Size

6.51 kB

Total Files

3

Last publish

Collaborators

  • yetzt