مواد ڏانھن هلو

سانچو:WikidataCoord/doc

بيھڪ: 47°34′12″N 52°40′55″W / 47.57000°N 52.68194°W / 47.57000; -52.68194
کليل ڄاڻ چيڪلي، وڪيپيڊيا مان

local p = {}

function p.usesProperty(frame) local parent = frame.getParent(frame) local result = local ii = 1 while true do local p_num = parent.args[ii] or if p_num ~= then local label = mw.wikibase.label(p_num) or "NO LABEL"

result = result .. "

  • " .. label .. " (" .. string.upper(p_num) .. ") (see uses)
  • " ii = ii + 1 else break end end return result end return p This template takes geographic coordinate data in the form provided by Wikidata (dms), formats the data into the form required by Template:Coord, and then calls Template:Coord to create links to GeoHack. The basic form is: {{WikidataCoord|wikidata page name|coordinate parameters|template parameters}}

    • wikidata page name – unnamed positional parameter is the Wikidata page name (starting with Q). Default is the current page.
    • coordinate parameters – passed through to Template:Coord unmodified; see §Usage at Template:Coord
    • template parameters – passed through to Template:Coord unmodified; see §Usage at Template:Coord