0.0.4 • Published 6 years ago
wco v0.0.4
Wikitext Coordinates
wco
extract coordinates from MediaWiki Templates. It knows the {{coord}}
and {{coordinate}}
markup variants.
Usage
wco( article[, strict, title]);
article
– mediawiki markup textstrict
– if true, only coordinates relating to the article itself are returned (display=title
orarticle=/
)title
– shown in debug output
Example
var wco = require("wco");
var coords = wco('{{Coord|13.24|52.31|display=t}}', true);