Template:ParseWDCoords/doc

This template parses the output from a wikidata fetch operation (e.g. {$($$)$} String format = 99°[99&#39;[99&#34;]] A 999°[99&#39;[99&#34;]]) and parses it into its 8 constituents


 * Notes
 * Even though it was designed for output from wikidata, any character string with the correct format may be parsed. It is assumed that minutes (seconds) occur in pairs - so either both coordinate minutes (seconds) are present or neither is.  Although seconds ought not appear without minutes, this rule is immaterial for this routine.
 * Output from wikidata contains the actual character string &amp;#39; rather than literal apostrophe ' or any other symbol for arcminutes
 * Output from wikidata contains the actual character string &amp;#34; rather than literal quotes " or any other symbol for arcseconds
 * Template is invoked with two unnamed parameters:number of element to return from list above (1–8)

optional character string – default is {{#property:P625}}

Example: Working on 89°39&amp;#39;48&amp;#34;N, 123°52&amp;#39;1&amp;#34;E gives:


 * S1 latd=
 * S2 latm=
 * S3 lats=
 * S4 latNS=
 * S5 longd=
 * S6 longm=
 * S7 longs=
 * S8 longEW=