Documentation icon دستاويز سانچو

This template is used to retrieve wikidata for use in {{infobox settlement}} templates transcluded in articles about populated places in East Timor. Currently, this template is used within the article, but may be moved to {{infobox settlement}} in the future. Keeping the "infobox parameter" / "wikidata property" relationships within a single template ensures some level of consistency, allows for tracking of uses, and allows for changes to the relationships without changing every single article.

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

    Tracking

    See also