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

سانچو:PH wikidata/دستاويز

کليل ڄاڻ چيڪلي، وڪيپيڊيا مان
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 is used to retrieve wikidata for use in {{infobox settlement}} templates transcluded in articles about populated places in the Philippines. 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.

    Add {{infobox lighthouse}}

    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