词条 | Module:WikidataCoord/doc |
释义 |
This module accepts, as the first unnamed or positional parameter, a latitude and longitude string in the form returned by Wikidata or as plain-text. The lat/long is stripped of all but its numeric values which are then used in a call to Coord for proper visual rendering and link to GeoHack. Wikidata returns text strings in this form where the minute and second symbols are html numeric character references for single and double quotes:
{{code|{{#property:P625|from=Q218501}}}} {{#property:P625|from=Q218501}} The module will accept degree-minute-second (dms) plain-text strings in the form:
where the minutes and seconds indicators are single and double quotes or single and double prime symbols (′, ″; U+2032, U+2033) Latitude and longitude in decimal-degree format is also accepted:
Because Template:Coord supports a variety of coordinate and template parameters, this module accepts but does not act on these parameter except to pass them on in the call to Template:Coord. In the module UsageA typical template use where the latitude / longitude is drawn from Wikidata might look like this:
}} |
随便看 |
|
开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。