ဝီကီးပီးဒီးယား rkiwiki https://rki.wikipedia.org/wiki/%E1%80%A1%E1%80%93%E1%80%AD%E1%80%80%E1%80%85%E1%80%AC%E1%80%99%E1%80%BB%E1%80%80%E1%80%BA%E1%80%94%E1%80%BE%E1%80%AC MediaWiki 1.47.0-wmf.15 first-letter မီဒီယာ အထူး ဆွီးနွီးချက် အသုံးပြုလူ အသုံးပြုလူ ဆွီးနွီးချက် ဝီကီးပီးဒီးယား ဝီကီးပီးဒီးယား ဆွီးနွီးချက် ဖိုင် ဖိုင် ဆွီးနွီးချက် မီဒီယာဝီကီ မီဒီယာဝီကီ ဆွီးနွီးချက် တမ်းပလိတ် တမ်းပလိတ် ဆွီးနွီးချက် အကူအညီ အကူအညီ ဆွီးနွီးချက် ကဏ္ဍ ကဏ္ဍ ဆွီးနွီးချက် TimedText TimedText talk Module Module talk Event Event talk Module:WikidataIB 828 1224 20398 3957 2026-08-14T10:33:32Z YaThaWinTha 42 20398 Scribunto text/plain -- Version: 2021-02-06 -- Module to implement use of a blacklist and whitelist for infobox fields -- Can take a named parameter |qid which is the Wikidata ID for the article -- if not supplied, it will use the Wikidata ID associated with the current page. -- Fields in blacklist are never to be displayed, i.e. module must return nil in all circumstances -- Fields in whitelist return local value if it exists or the Wikidata value otherwise -- The name of the field that this function is called from is passed in named parameter |name -- The name is compulsory when blacklist or whitelist is used, -- so the module returns nil if it is not supplied. -- blacklist is passed in named parameter |suppressfields (or |spf) -- whitelist is passed in named parameter |fetchwikidata (or |fwd) local p = {} local cdate -- initialise as nil and only load _complex_date function if needed -- Module:Complex date is loaded lazily and has the following dependencies: -- Module:Calendar -- Module:ISOdate -- Module:DateI18n -- Module:I18n/complex date -- Module:Ordinal -- Module:I18n/ordinal -- Module:Yesno -- Module:Formatnum -- Module:Linguistic -- -- The following, taken from https://www.mediawiki.org/wiki/Wikibase/DataModel#Dates_and_times, -- is needed to use Module:Complex date which seemingly requires date precision as a string. -- It would work better if only the authors of the mediawiki page could spell 'millennium'. local dp = { [6] = "millennium", [7] = "century", [8] = "decade", [9] = "year", [10] = "month", [11] = "day", } local i18n = { ["errors"] = { ["property-not-found"] = "Property not found.", ["No property supplied"] = "No property supplied", ["entity-not-found"] = "Wikidata entity not found.", ["unknown-claim-type"] = "Unknown claim type.", ["unknown-entity-type"] = "Unknown entity type.", ["qualifier-not-found"] = "Qualifier not found.", ["site-not-found"] = "Wikimedia project not found.", ["labels-not-found"] = "No labels found.", ["descriptions-not-found"] = "No descriptions found.", ["aliases-not-found"] = "No aliases found.", ["unknown-datetime-format"] = "Unknown datetime format.", ["local-article-not-found"] = "Article is available on Wikidata, but not on Wikipedia", ["dab-page"] = " (dab)", }, ["months"] = { "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" }, ["century"] = "century", ["BC"] = "BC", ["BCE"] = "BCE", ["ordinal"] = { [1] = "st", [2] = "nd", [3] = "rd", ["default"] = "th" }, ["filespace"] = "File", ["Unknown"] = "Unknown", ["NaN"] = "Not a number", -- set the following to the name of a tracking category, -- e.g. "[[Category:Articles with missing Wikidata information]]", or "" to disable: ["missinginfocat"] = "[[Category:Articles with missing Wikidata information]]", ["editonwikidata"] = "Edit this on Wikidata", ["latestdatequalifier"] = function (date) return "before " .. date end, -- some languages, e.g. Bosnian use a period as a suffix after each number in a date ["datenumbersuffix"] = "", ["list separator"] = ", ", ["multipliers"] = { [0] = "", [3] = " thousand", [6] = " million", [9] = " billion", [12] = " trillion", } } -- This allows an internationisation module to override the above table if 'en' ~= mw.getContentLanguage():getCode() then require("Module:i18n").loadI18n("Module:WikidataIB/i18n", i18n) end -- This piece of html implements a collapsible container. Check the classes exist on your wiki. local collapsediv = '<div class="mw-collapsible mw-collapsed" style="width:100%; overflow:auto;" data-expandtext="{{int:show}}" data-collapsetext="{{int:hide}}">' -- Some items should not be linked. -- Each wiki can create a list of those in Module:WikidataIB/nolinks -- It should return a table called itemsindex, containing true for each item not to be linked local donotlink = {} local nolinks_exists, nolinks = pcall(mw.loadData, "Module:WikidataIB/nolinks") if nolinks_exists then donotlink = nolinks.itemsindex end -- To satisfy Wikipedia:Manual of Style/Titles, certain types of items are italicised, and others are quoted. -- The submodule [[Module:WikidataIB/titleformats]] lists the entity-ids used in 'instance of' (P31), -- which allows this module to identify the values that should be formatted. -- WikidataIB/titleformats exports a table p.formats, which is indexed by entity-id, and contains the value " or '' local formats = {} local titleformats_exists, titleformats = pcall(mw.loadData, "Module:WikidataIB/titleformats") if titleformats_exists then formats = titleformats.formats end ------------------------------------------------------------------------------- -- Private functions ------------------------------------------------------------------------------- -- ------------------------------------------------------------------------------- -- makeOrdinal needs to be internationalised along with the above: -- takes cardinal number as a numeric and returns the ordinal as a string -- we need three exceptions in English for 1st, 2nd, 3rd, 21st, .. 31st, etc. ------------------------------------------------------------------------------- -- Dependencies: none ------------------------------------------------------------------------------- local makeOrdinal = function(cardinal) local ordsuffix = i18n.ordinal.default if cardinal % 10 == 1 then ordsuffix = i18n.ordinal[1] elseif cardinal % 10 == 2 then ordsuffix = i18n.ordinal[2] elseif cardinal % 10 == 3 then ordsuffix = i18n.ordinal[3] end -- In English, 1, 21, 31, etc. use 'st', but 11, 111, etc. use 'th' -- similarly for 12 and 13, etc. if (cardinal % 100 == 11) or (cardinal % 100 == 12) or (cardinal % 100 == 13) then ordsuffix = i18n.ordinal.default end return tostring(cardinal) .. ordsuffix end ------------------------------------------------------------------------------- -- findLang takes a "langcode" parameter if supplied and valid -- otherwise it tries to create it from the user's set language ({{int:lang}}) -- failing that it uses the wiki's content language. -- It returns a language object ------------------------------------------------------------------------------- -- Dependencies: none ------------------------------------------------------------------------------- local findLang = function(langcode) local langobj langcode = mw.text.trim(langcode or "") if mw.language.isKnownLanguageTag(langcode) then langobj = mw.language.new( langcode ) else langcode = mw.getCurrentFrame():preprocess( '{{int:lang}}' ) if mw.language.isKnownLanguageTag(langcode) then langobj = mw.language.new( langcode ) else langobj = mw.language.getContentLanguage() end end return langobj end ------------------------------------------------------------------------------- -- _getItemLangCode takes a qid parameter (using the current page's qid if blank) -- If the item for that qid has property country (P17) it looks at the first preferred value -- If the country has an official language (P37), it looks at the first preferred value -- If that official language has a language code (P424), it returns the first preferred value -- Otherwise it returns nothing. ------------------------------------------------------------------------------- -- Dependencies: none ------------------------------------------------------------------------------- local _getItemLangCode = function(qid) qid = mw.text.trim(qid or ""):upper() if qid == "" then qid = mw.wikibase.getEntityIdForCurrentPage() end if not qid then return end local prop17 = mw.wikibase.getBestStatements(qid, "P17")[1] if not prop17 or prop17.mainsnak.snaktype ~= "value" then return end local qid17 = prop17.mainsnak.datavalue.value.id local prop37 = mw.wikibase.getBestStatements(qid17, "P37")[1] if not prop37 or prop37.mainsnak.snaktype ~= "value" then return end local qid37 = prop37.mainsnak.datavalue.value.id local prop424 = mw.wikibase.getBestStatements(qid37, "P424")[1] if not prop424 or prop424.mainsnak.snaktype ~= "value" then return end return prop424.mainsnak.datavalue.value end ------------------------------------------------------------------------------- -- roundto takes a number (x) -- and returns it rounded to (sf) significant figures ------------------------------------------------------------------------------- -- Dependencies: none ------------------------------------------------------------------------------- local roundto = function(x, sf) if x == 0 then return 0 end local s = 1 if x < 0 then x = -x s = -1 end if sf < 1 then sf = 1 end local p = 10 ^ (math.floor(math.log10(x)) - sf + 1) x = math.floor(x / p + 0.5) * p * s -- if it's integral, cast to an integer: if x == math.floor(x) then x = math.floor(x) end return x end ------------------------------------------------------------------------------- -- decimalToDMS takes a decimal degrees (x) with precision (p) -- and returns degrees/minutes/seconds according to the precision ------------------------------------------------------------------------------- -- Dependencies: none ------------------------------------------------------------------------------- local decimalToDMS = function(x, p) -- if p is not supplied, use a precision around 0.1 seconds if not tonumber(p) then p = 1e-4 end local d = math.floor(x) local ms = (x - d) * 60 if p > 0.5 then -- precision is > 1/2 a degree if ms > 30 then d = d + 1 end ms = 0 end local m = math.floor(ms) local s = (ms - m) * 60 if p > 0.008 then -- precision is > 1/2 a minute if s > 30 then m = m +1 end s = 0 elseif p > 0.00014 then -- precision is > 1/2 a second s = math.floor(s + 0.5) elseif p > 0.000014 then -- precision is > 1/20 second s = math.floor(10 * s + 0.5) / 10 elseif p > 0.0000014 then -- precision is > 1/200 second s = math.floor(100 * s + 0.5) / 100 else -- cap it at 3 dec places for now s = math.floor(1000 * s + 0.5) / 1000 end return d, m, s end ------------------------------------------------------------------------------- -- decimalPrecision takes a decimal (x) with precision (p) -- and returns x rounded approximately to the given precision -- precision should be between 1 and 1e-6, preferably a power of 10. ------------------------------------------------------------------------------- -- Dependencies: none ------------------------------------------------------------------------------- local decimalPrecision = function(x, p) local s = 1 if x < 0 then x = -x s = -1 end -- if p is not supplied, pick an arbitrary precision if not tonumber(p) then p = 1e-4 elseif p > 1 then p = 1 elseif p < 1e-6 then p = 1e-6 else p = 10 ^ math.floor(math.log10(p)) end x = math.floor(x / p + 0.5) * p * s -- if it's integral, cast to an integer: if x == math.floor(x) then x = math.floor(x) end -- if it's less than 1e-4, it will be in exponent form, so return a string with 6dp -- 9e-5 becomes 0.000090 if math.abs(x) < 1e-4 then x = string.format("%f", x) end return x end ------------------------------------------------------------------------------- -- formatDate takes a datetime of the usual format from mw.wikibase.entity:formatPropertyValues -- like "1 August 30 BCE" as parameter 1 -- and formats it according to the df (date format) and bc parameters -- df = ["dmy" / "mdy" / "y"] default will be "dmy" -- bc = ["BC" / "BCE"] default will be "BCE" ------------------------------------------------------------------------------- -- Dependencies: none ------------------------------------------------------------------------------- local format_Date = function(datetime, dateformat, bc) local datetime = datetime or "1 August 30 BCE" -- in case of nil value -- chop off multiple vales and/or any hours, mins, etc. -- keep anything before punctuation - we just want a single date: local dateval = string.match( datetime, "[%w ]+") local dateformat = string.lower(dateformat or "dmy") -- default to dmy local bc = string.upper(bc or "") -- can't use nil for bc -- we only want to accept two possibilities: BC or default to BCE if bc == "BC" then bc = "&nbsp;" .. i18n["BC"] -- prepend a non-breaking space. else bc = "&nbsp;" .. i18n["BCE"] end local postchrist = true -- start by assuming no BCE local dateparts = {} for word in string.gmatch(dateval, "%w+") do if word == "BCE" or word == "BC" then -- *** internationalise later *** postchrist = false else -- we'll keep the parts that are not 'BCE' in a table dateparts[#dateparts + 1] = word end end if postchrist then bc = "" end -- set AD dates to no suffix *** internationalise later *** local sep = "&nbsp;" -- separator is nbsp local fdate = table.concat(dateparts, sep) -- set formatted date to same order as input -- if we have day month year, check dateformat if #dateparts == 3 then if dateformat == "y" then fdate = dateparts[3] elseif dateformat == "mdy" then fdate = dateparts[2] .. sep .. dateparts[1] .. "," .. sep .. dateparts[3] end elseif #dateparts == 2 and dateformat == "y" then fdate = dateparts[2] end return fdate .. bc end ------------------------------------------------------------------------------- -- dateFormat is the handler for properties that are of type "time" -- It takes timestamp, precision (6 to 11 per mediawiki), dateformat (y/dmy/mdy), BC format (BC/BCE), -- a plaindate switch (yes/no/adj) to en/disable "sourcing circumstances"/use adjectival form, -- any qualifiers for the property, the language, and any adjective to use like 'before'. -- It passes the date through the "complex date" function -- and returns a string with the internatonalised date formatted according to preferences. ------------------------------------------------------------------------------- -- Dependencies: findLang(); cdate(); dp[] ------------------------------------------------------------------------------- local dateFormat = function(timestamp, dprec, df, bcf, pd, qualifiers, lang, adj, model) -- output formatting according to preferences (y/dmy/mdy/ymd) df = (df or ""):lower() -- if ymd is required, return the part of the timestamp in YYYY-MM-DD form -- but apply Year zero#Astronomers fix: 1 BC = 0000; 2 BC = -0001; etc. if df == "ymd" then if timestamp:sub(1,1) == "+" then return timestamp:sub(2,11) else local yr = tonumber(timestamp:sub(2,5)) - 1 yr = ("000" .. yr):sub(-4) if yr ~= "0000" then yr = "-" .. yr end return yr .. timestamp:sub(6,11) end end -- A year can be stored like this: "+1872-00-00T00:00:00Z", -- which is processed here as if it were the day before "+1872-01-01T00:00:00Z", -- and that's the last day of 1871, so the year is wrong. -- So fix the month 0, day 0 timestamp to become 1 January instead: timestamp = timestamp:gsub("%-00%-00T", "-01-01T") -- just in case date precision is missing dprec = dprec or 11 -- override more precise dates if required dateformat is year alone: if df == "y" and dprec > 9 then dprec = 9 end -- complex date only deals with precisions from 6 to 11, so clip range dprec = dprec>11 and 11 or dprec dprec = dprec<6 and 6 or dprec -- BC format is "BC" or "BCE" bcf = (bcf or ""):upper() -- plaindate only needs the first letter (y/n/a) pd = (pd or ""):sub(1,1):lower() if pd == "" or pd == "n" or pd == "f" or pd == "0" then pd = false end -- in case language isn't passed lang = lang or findLang().code -- set adj as empty if nil adj = adj or "" -- extract the day, month, year from the timestamp local bc = timestamp:sub(1, 1)=="-" and "BC" or "" local year, month, day = timestamp:match("[+-](%d*)-(%d*)-(%d*)T") local iso = tonumber(year) -- if year is missing, let it throw an error -- this will adjust the date format to be compatible with cdate -- possible formats are Y, YY, YYY0, YYYY, YYYY-MM, YYYY-MM-DD if dprec == 6 then iso = math.floor( (iso - 1) / 1000 ) + 1 end if dprec == 7 then iso = math.floor( (iso - 1) / 100 ) + 1 end if dprec == 8 then iso = math.floor( iso / 10 ) .. "0" end if dprec == 10 then iso = year .. "-" .. month end if dprec == 11 then iso = year .. "-" .. month .. "-" .. day end -- add "circa" (Q5727902) from "sourcing circumstances" (P1480) local sc = not pd and qualifiers and qualifiers.P1480 if sc then for k1, v1 in pairs(sc) do if v1.datavalue and v1.datavalue.value.id == "Q5727902" then adj = "circa" break end end end -- deal with Julian dates: -- no point in saying that dates before 1582 are Julian - they are by default -- doesn't make sense for dates less precise than year -- we can suppress it by setting |plaindate, e.g. for use in constructing categories. local calendarmodel = "" if tonumber(year) > 1582 and dprec > 8 and not pd and model == "http://www.wikidata.org/entity/Q1985786" then calendarmodel = "julian" end if not cdate then cdate = require("Module:Complex date")._complex_date end local fdate = cdate(calendarmodel, adj, tostring(iso), dp[dprec], bc, "", "", "", "", lang, 1) -- this may have QuickStatements info appended to it in a div, so remove that fdate = fdate:gsub(' <div style="display: none;">[^<]*</div>', '') -- it may also be returned wrapped in a microformat, so remove that fdate = fdate:gsub("<[^>]*>", "") -- there may be leading zeros that we should remove fdate = fdate:gsub("^0*", "") -- if a plain date is required, then remove any links (like BC linked) if pd then fdate = fdate:gsub("%[%[.*|", ""):gsub("]]", "") end -- if 'circa', use the abbreviated form *** internationalise later *** fdate = fdate:gsub('circa ', '<abbr title="circa">c.</abbr>&nbsp;') -- deal with BC/BCE if bcf == "BCE" then fdate = fdate:gsub('BC', 'BCE') end -- deal with mdy format if df == "mdy" then fdate = fdate:gsub("(%d+) (%w+) (%d+)", "%2 %1, %3") end -- deal with adjectival form *** internationalise later *** if pd == "a" then fdate = fdate:gsub(' century', '-century') end return fdate end ------------------------------------------------------------------------------- -- parseParam takes a (string) parameter, e.g. from the list of frame arguments, -- and makes "false", "no", and "0" into the (boolean) false -- it makes the empty string and nil into the (boolean) value passed as default -- allowing the parameter to be true or false by default. -- It returns a boolean. ------------------------------------------------------------------------------- -- Dependencies: none ------------------------------------------------------------------------------- local parseParam = function(param, default) if type(param) == "boolean" then param = tostring(param) end if param and param ~= "" then param = param:lower() if (param == "false") or (param:sub(1,1) == "n") or (param == "0") then return false else return true end else return default end end ------------------------------------------------------------------------------- -- _getSitelink takes the qid of a Wikidata entity passed as |qid= -- It takes an optional parameter |wiki= to determine which wiki is to be checked for a sitelink -- If the parameter is blank, then it uses the local wiki. -- If there is a sitelink to an article available, it returns the plain text link to the article -- If there is no sitelink, it returns nil. ------------------------------------------------------------------------------- -- Dependencies: none ------------------------------------------------------------------------------- local _getSitelink = function(qid, wiki) qid = (qid or ""):upper() if qid == "" then qid = mw.wikibase.getEntityIdForCurrentPage() end if not qid then return nil end wiki = wiki or "" local sitelink if wiki == "" then sitelink = mw.wikibase.getSitelink(qid) else sitelink = mw.wikibase.getSitelink(qid, wiki) end return sitelink end ------------------------------------------------------------------------------- -- _getCommonslink takes an optional qid of a Wikidata entity passed as |qid= -- It returns one of the following in order of preference: -- the Commons sitelink of the Wikidata entity - but not if onlycat=true and it's not a category; -- the Commons sitelink of the topic's main category of the Wikidata entity; -- the Commons category of the Wikidata entity - unless fallback=false. ------------------------------------------------------------------------------- -- Dependencies: _getSitelink(); parseParam() ------------------------------------------------------------------------------- local _getCommonslink = function(qid, onlycat, fallback) qid = (qid or ""):upper() if qid == "" then qid = mw.wikibase.getEntityIdForCurrentPage() end if not qid then return nil end onlycat = parseParam(onlycat, false) if fallback == "" then fallback = nil end local sitelink = _getSitelink(qid, "commonswiki") if onlycat and sitelink and sitelink:sub(1,9) ~= "Category:" then sitelink = nil end if not sitelink then -- check for topic's main category local prop910 = mw.wikibase.getBestStatements(qid, "P910")[1] if prop910 then local tmcid = prop910.mainsnak.datavalue and prop910.mainsnak.datavalue.value.id sitelink = _getSitelink(tmcid, "commonswiki") end if not sitelink then -- check for list's main category local prop1754 = mw.wikibase.getBestStatements(qid, "P1754")[1] if prop1754 then local tmcid = prop1754.mainsnak.datavalue and prop1754.mainsnak.datavalue.value.id sitelink = _getSitelink(tmcid, "commonswiki") end end end if not sitelink and fallback then -- check for Commons category (string value) local prop373 = mw.wikibase.getBestStatements(qid, "P373")[1] if prop373 then sitelink = prop373.mainsnak.datavalue and prop373.mainsnak.datavalue.value if sitelink then sitelink = "Category:" .. sitelink end end end return sitelink end ------------------------------------------------------------------------------- -- The label in a Wikidata item is subject to vulnerabilities -- that an attacker might try to exploit. -- It needs to be 'sanitised' by removing any wikitext before use. -- If it doesn't exist, return the id for the item -- a second (boolean) value is also returned, value is true when the label exists ------------------------------------------------------------------------------- -- Dependencies: none ------------------------------------------------------------------------------- local labelOrId = function(id, lang) if lang == "default" then lang = findLang().code end local label if lang then label = mw.wikibase.getLabelByLang(id, lang) else label = mw.wikibase.getLabel(id) end if label then return mw.text.nowiki(label), true else return id, false end end ------------------------------------------------------------------------------- -- linkedItem takes an entity-id and returns a string, linked if possible. -- This is the handler for "wikibase-item". Preferences: -- 1. Display linked disambiguated sitelink if it exists -- 2. Display linked label if it is a redirect -- 3. TBA: Display an inter-language link for the label if it exists other than in default language -- 4. Display unlinked label if it exists -- 5. Display entity-id for now to indicate a label could be provided -- dtxt is text to be used instead of label, or nil. -- shortname is boolean switch to use P1813 (short name) instead of label if true. -- lang is the current language code. -- uselbl is boolean switch to force display of the label instead of the sitelink (default: false) -- linkredir is boolean switch to allow linking to a redirect (default: false) -- formatvalue is boolean switch to allow formatting as italics or quoted (default: false) ------------------------------------------------------------------------------- -- Dependencies: labelOrId(); donotlink[] ------------------------------------------------------------------------------- local linkedItem = function(id, args) local lprefix = (args.lp or args.lprefix or args.linkprefix or ""):gsub('"', '') -- toughen against nil values passed local lpostfix = (args.lpostfix or ""):gsub('"', '') local prefix = (args.prefix or ""):gsub('"', '') local postfix = (args.postfix or ""):gsub('"', '') local dtxt = args.dtxt local shortname = args.shortname local lang = args.lang or "en" -- fallback to default if missing local uselbl = args.uselabel or args.uselbl uselbl = parseParam(uselbl, false) local linkredir = args.linkredir linkredir = parseParam(linkredir, false) local formatvalue = args.formatvalue or args.fv formatvalue = parseParam(formatvalue, false) -- see if item might need italics or quotes local fmt = "" if next(formats) and formatvalue then for k, v in ipairs( mw.wikibase.getBestStatements(id, "P31") ) do if v.mainsnak.datavalue and formats[v.mainsnak.datavalue.value.id] then fmt = formats[v.mainsnak.datavalue.value.id] break -- pick the first match end end end local disp local sitelink = mw.wikibase.getSitelink(id) local label, islabel if dtxt then label, islabel = dtxt, true elseif shortname then -- see if there is a shortname in our language, and set label to it for k, v in ipairs( mw.wikibase.getBestStatements(id, "P1813") ) do if v.mainsnak.datavalue.value.language == lang then label, islabel = v.mainsnak.datavalue.value.text, true break end -- test for language match end -- loop through values of short name -- if we have no label set, then there was no shortname available if not islabel then label, islabel = labelOrId(id) shortname = false end else label, islabel = labelOrId(id) end if mw.site.siteName ~= "Wikimedia Commons" then if sitelink then if not (dtxt or shortname) then -- if sitelink and label are the same except for case, no need to process further if sitelink:lower() ~= label:lower() then -- strip any namespace or dab from the sitelink local pos = sitelink:find(":") or 0 local slink = sitelink if pos > 0 then local pfx = sitelink:sub(1,pos-1) if mw.site.namespaces[pfx] then -- that prefix is a valid namespace, so remove it slink = sitelink:sub(pos+1) end end -- remove stuff after commas or inside parentheses - ie. dabs slink = slink:gsub("%s%(.+%)$", ""):gsub(",.+$", "") -- if uselbl is false, use sitelink instead of label if not uselbl then -- use slink as display, preserving label case - find("^%u") is true for 1st char uppercase if label:find("^%u") then label = slink:gsub("^(%l)", string.upper) else label = slink:gsub("^(%u)", string.lower) end end end end if donotlink[label] then disp = prefix .. fmt .. label .. fmt .. postfix else disp = "[[" .. lprefix .. sitelink .. lpostfix .. "|" .. prefix .. fmt .. label .. fmt .. postfix .. "]]" end elseif islabel then -- no sitelink, label exists, so check if a redirect with that title exists, if linkredir is true -- display plain label by default disp = prefix .. fmt .. label .. fmt .. postfix if linkredir then local artitle = mw.title.new(label, 0) -- only nil if label has invalid chars if not donotlink[label] and artitle and artitle.redirectTarget then -- there's a redirect with the same title as the label, so let's link to that disp = "[[".. lprefix .. label .. lpostfix .. "|" .. prefix .. fmt .. label .. fmt .. postfix .. "]]" end end -- test if article title exists as redirect on current Wiki else -- no sitelink and no label, so return whatever was returned from labelOrId for now -- add tracking category [[Category:Articles with missing Wikidata information]] -- for enwiki, just return the tracking category if mw.wikibase.getGlobalSiteId() == "enwiki" then disp = i18n.missinginfocat else disp = prefix .. label .. postfix .. i18n.missinginfocat end end else local ccat = mw.wikibase.getBestStatements(id, "P373")[1] if ccat and ccat.mainsnak.datavalue then ccat = ccat.mainsnak.datavalue.value disp = "[[" .. lprefix .. "Category:" .. ccat .. lpostfix .. "|" .. prefix .. label .. postfix .. "]]" elseif sitelink then -- this asumes that if a sitelink exists, then a label also exists disp = "[[" .. lprefix .. sitelink .. lpostfix .. "|" .. prefix .. label .. postfix .. "]]" else -- no sitelink and no Commons cat, so return label from labelOrId for now disp = prefix .. label .. postfix end end return disp end ------------------------------------------------------------------------------- -- sourced takes a table representing a statement that may or may not have references -- it looks for a reference sourced to something not containing the word "wikipedia" -- it returns a boolean = true if it finds a sourced reference. ------------------------------------------------------------------------------- -- Dependencies: none ------------------------------------------------------------------------------- local sourced = function(claim) if claim.references then for kr, vr in pairs(claim.references) do local ref = mw.wikibase.renderSnaks(vr.snaks) if not ref:find("Wiki") then return true end end end end ------------------------------------------------------------------------------- -- setRanks takes a flag (parameter passed) that requests the values to return -- "b[est]" returns preferred if available, otherwise normal -- "p[referred]" returns preferred -- "n[ormal]" returns normal -- "d[eprecated]" returns deprecated -- multiple values are allowed, e.g. "preferred normal" (which is the default) -- "best" will override the other flags, and set p and n ------------------------------------------------------------------------------- -- Dependencies: none ------------------------------------------------------------------------------- local setRanks = function(rank) rank = (rank or ""):lower() -- if nothing passed, return preferred and normal -- if rank == "" then rank = "p n" end local ranks = {} for w in string.gmatch(rank, "%a+") do w = w:sub(1,1) if w == "b" or w == "p" or w == "n" or w == "d" then ranks[w] = true end end -- check if "best" is requested or no ranks requested; and if so, set preferred and normal if ranks.b or not next(ranks) then ranks.p = true ranks.n = true end return ranks end ------------------------------------------------------------------------------- -- parseInput processes the Q-id , the blacklist and the whitelist -- if an input parameter is supplied, it returns that and ends the call. -- it returns (1) either the qid or nil indicating whether or not the call should continue -- and (2) a table containing all of the statements for the propertyID and relevant Qid -- if "best" ranks are requested, it returns those instead of all non-deprecated ranks ------------------------------------------------------------------------------- -- Dependencies: none ------------------------------------------------------------------------------- local parseInput = function(frame, input_parm, property_id) -- There may be a local parameter supplied, if it's blank, set it to nil input_parm = mw.text.trim(input_parm or "") if input_parm == "" then input_parm = nil end -- return nil if Wikidata is not available if not mw.wikibase then return false, input_parm end local args = frame.args -- can take a named parameter |qid which is the Wikidata ID for the article. -- if it's not supplied, use the id for the current page local qid = args.qid or "" if qid == "" then qid = mw.wikibase.getEntityIdForCurrentPage() end -- if there's no Wikidata item for the current page return nil if not qid then return false, input_parm end -- The blacklist is passed in named parameter |suppressfields local blacklist = args.suppressfields or args.spf or "" -- The whitelist is passed in named parameter |fetchwikidata local whitelist = args.fetchwikidata or args.fwd or "" if whitelist == "" then whitelist = "NONE" end -- The name of the field that this function is called from is passed in named parameter |name local fieldname = args.name or "" if blacklist ~= "" then -- The name is compulsory when blacklist is used, so return nil if it is not supplied if fieldname == "" then return false, nil end -- If this field is on the blacklist, then return nil if blacklist:find(fieldname) then return false, nil end end -- If we got this far then we're not on the blacklist -- The blacklist overrides any locally supplied parameter as well -- If a non-blank input parameter was supplied return it if input_parm then return false, input_parm end -- We can filter out non-valid properties if property_id:sub(1,1):upper() ~="P" or property_id == "P0" then return false, nil end -- Otherwise see if this field is on the whitelist: -- needs a bit more logic because find will return its second value = 0 if fieldname is "" -- but nil if fieldname not found on whitelist local _, found = whitelist:find(fieldname) found = ((found or 0) > 0) if whitelist ~= 'ALL' and (whitelist:upper() == "NONE" or not found) then return false, nil end -- See what's on Wikidata (the call always returns a table, but it may be empty): local props = {} if args.reqranks.b then props = mw.wikibase.getBestStatements(qid, property_id) else props = mw.wikibase.getAllStatements(qid, property_id) end if props[1] then return qid, props end -- no property on Wikidata return false, nil end ------------------------------------------------------------------------------- -- createicon assembles the "Edit at Wikidata" pen icon. -- It returns a wikitext string inside a span class="penicon" -- if entityID is nil or empty, the ID associated with current page is used -- langcode and propertyID may be nil or empty ------------------------------------------------------------------------------- -- Dependencies: i18n[]; ------------------------------------------------------------------------------- local createicon = function(langcode, entityID, propertyID) langcode = langcode or "" if not entityID or entityID == "" then entityID= mw.wikibase.getEntityIdForCurrentPage() end propertyID = propertyID or "" local icon = "&nbsp;<span class='penicon autoconfirmed-show'>[[" -- "&nbsp;<span data-bridge-edit-flow='overwrite' class='penicon'>[[" -> enable Wikidata Bridge .. i18n["filespace"] .. ":OOjs UI icon edit-ltr-progressive.svg |frameless |text-top |10px |alt=" .. i18n["editonwikidata"] .. "|link=https://www.wikidata.org/wiki/" .. entityID if langcode ~= "" then icon = icon .. "?uselang=" .. langcode end if propertyID ~= "" then icon = icon .. "#" .. propertyID end icon = icon .. "|" .. i18n["editonwikidata"] .. "]]</span>" return icon end ------------------------------------------------------------------------------- -- assembleoutput takes the sequence table containing the property values -- and formats it according to switches given. It returns a string or nil. -- It uses the entityID (and optionally propertyID) to create a link in the pen icon. ------------------------------------------------------------------------------- -- Dependencies: parseParam(); ------------------------------------------------------------------------------- local assembleoutput = function(out, args, entityID, propertyID) -- sorted is a boolean passed to enable sorting of the values returned -- if nothing or an empty string is passed set it false -- if "false" or "no" or "0" is passed set it false local sorted = parseParam(args.sorted, false) -- noicon is a boolean passed to suppress the trailing "edit at Wikidata" icon -- for use when the value is processed further by the infobox -- if nothing or an empty string is passed set it false -- if "false" or "no" or "0" is passed set it false local noic = parseParam(args.noicon, false) -- list is the name of a template that a list of multiple values is passed through -- examples include "hlist" and "ubl" -- setting it to "prose" produces something like "1, 2, 3, and 4" local list = args.list or "" -- sep is a string that is used to separate multiple returned values -- if nothing or an empty string is passed set it to the default -- any double-quotes " are stripped out, so that spaces may be passed -- e.g. |sep=" - " local sepdefault = i18n["list separator"] local separator = args.sep or "" separator = string.gsub(separator, '"', '') if separator == "" then separator = sepdefault end -- collapse is a number that determines the maximum number of returned values -- before the output is collapsed. -- Zero or not a number result in no collapsing (default becomes 0). local collapse = tonumber(args.collapse) or 0 -- replacetext (rt) is a string that is returned instead of any non-empty Wikidata value -- this is useful for tracking and debugging local replacetext = mw.text.trim(args.rt or args.replacetext or "") -- if there's anything to return, then return a list -- comma-separated by default, but may be specified by the sep parameter -- optionally specify a hlist or ubl or a prose list, etc. local strout if #out > 0 then if sorted then table.sort(out) end -- if there's something to display and a pen icon is wanted, add it the end of the last value local hasdisplay = false for i, v in ipairs(out) do if v ~= i18n.missinginfocat then hasdisplay = true break end end if not noic and hasdisplay then out[#out] = out[#out] .. createicon(args.langobj.code, entityID, propertyID) end if list == "" then strout = table.concat(out, separator) elseif list:lower() == "prose" then strout = mw.text.listToText( out ) else strout = mw.getCurrentFrame():expandTemplate{title = list, args = out} end if collapse >0 and #out > collapse then strout = collapsediv .. strout .. "</div>" end else strout = nil -- no items had valid reference end if replacetext ~= "" and strout then strout = replacetext end return strout end ------------------------------------------------------------------------------- -- rendersnak takes a table (propval) containing the information stored on one property value -- and returns the value as a string and its language if monolingual text. -- It handles data of type: -- wikibase-item -- time -- string, url, commonsMedia, external-id -- quantity -- globe-coordinate -- monolingualtext -- It also requires linked, the link/pre/postfixes, uabbr, and the arguments passed from frame. -- The optional filter parameter allows quantities to be be filtered by unit Qid. ------------------------------------------------------------------------------- -- Dependencies: parseParam(); labelOrId(); i18n[]; dateFormat(); -- roundto(); decimalPrecision(); decimalToDMS(); linkedItem(); ------------------------------------------------------------------------------- local rendersnak = function(propval, args, linked, lpre, lpost, pre, post, uabbr, filter) lpre = lpre or "" lpost = lpost or "" pre = pre or "" post = post or "" args.lang = args.lang or findLang().code -- allow values to display a fixed text instead of label local dtxt = args.displaytext or args.dt if dtxt == "" then dtxt = nil end -- switch to use display of short name (P1813) instead of label local shortname = args.shortname or args.sn shortname = parseParam(shortname, false) local snak = propval.mainsnak or propval local dtype = snak.datatype local dv = snak.datavalue dv = dv and dv.value -- value and monolingual text language code returned local val, mlt if propval.rank and not args.reqranks[propval.rank:sub(1, 1)] then -- val is nil: value has a rank that isn't requested ------------------------------------ elseif snak.snaktype == "somevalue" then -- value is unknown val = i18n["Unknown"] ------------------------------------ elseif snak.snaktype == "novalue" then -- value is none -- val = "No value" -- don't return anything ------------------------------------ elseif dtype == "wikibase-item" then -- data type is a wikibase item: -- it's wiki-linked value, so output as link if enabled and possible local qnumber = dv.id if linked then val = linkedItem(qnumber, args) else -- no link wanted so check for display-text, otherwise test for lang code local label, islabel if dtxt then label = dtxt else label, islabel = labelOrId(qnumber) local langlabel = mw.wikibase.getLabelByLang(qnumber, args.lang) if langlabel then label = mw.text.nowiki( langlabel ) end end val = pre .. label .. post end -- test for link required ------------------------------------ elseif dtype == "time" then -- data type is time: -- time is in timestamp format -- date precision is integer per mediawiki -- output formatting according to preferences (y/dmy/mdy) -- BC format as BC or BCE -- plaindate is passed to disable looking for "sourcing cirumstances" -- or to set the adjectival form -- qualifiers (if any) is a nested table or nil -- lang is given, or user language, or site language -- -- Here we can check whether args.df has a value -- If not, use code from Module:Sandbox/RexxS/Getdateformat to set it from templates like {{Use mdy dates}} val = dateFormat(dv.time, dv.precision, args.df, args.bc, args.pd, propval.qualifiers, args.lang, "", dv.calendarmodel) ------------------------------------ -- data types which are strings: elseif dtype == "commonsMedia" or dtype == "external-id" or dtype == "string" or dtype == "url" then -- commonsMedia or external-id or string or url -- all have mainsnak.datavalue.value as string if (lpre == "" or lpre == ":") and lpost == "" then -- don't link if no linkpre/postfix or linkprefix is just ":" val = pre .. dv .. post elseif dtype == "external-id" then val = "[" .. lpre .. dv .. lpost .. " " .. pre .. dv .. post .. "]" else val = "[[" .. lpre .. dv .. lpost .. "|" .. pre .. dv .. post .. "]]" end -- check for link requested (i.e. either linkprefix or linkpostfix exists) ------------------------------------ -- data types which are quantities: elseif dtype == "quantity" then -- quantities have mainsnak.datavalue.value.amount and mainsnak.datavalue.value.unit -- the unit is of the form http://www.wikidata.org/entity/Q829073 -- -- implement a switch to turn on/off numerical formatting later local fnum = true -- -- a switch to turn on/off conversions - only for en-wiki local conv = parseParam(args.conv or args.convert, false) -- if we have conversions, we won't have formatted numbers or scales if conv then uabbr = true fnum = false args.scale = "0" end -- -- a switch to turn on/off showing units, default is true local showunits = parseParam(args.su or args.showunits, true) -- -- convert amount to a number local amount = tonumber(dv.amount) or i18n["NaN"] -- -- scale factor for millions, billions, etc. local sc = tostring(args.scale or ""):sub(1,1):lower() local scale if sc == "a" then -- automatic scaling if amount > 1e15 then scale = 12 elseif amount > 1e12 then scale = 9 elseif amount > 1e9 then scale = 6 elseif amount > 1e6 then scale = 3 else scale = 0 end else scale = tonumber(args.scale) or 0 if scale < 0 or scale > 12 then scale = 0 end scale = math.floor(scale/3) * 3 end local factor = 10^scale amount = amount / factor -- ranges: local range = "" -- check if upper and/or lower bounds are given and significant local upb = tonumber(dv.upperBound) local lowb = tonumber(dv.lowerBound) if upb and lowb then -- differences rounded to 2 sig fig: local posdif = roundto(upb - amount, 2) / factor local negdif = roundto(amount - lowb, 2) / factor upb, lowb = amount + posdif, amount - negdif -- round scaled numbers to integers or 4 sig fig if (scale > 0 or sc == "a") then if amount < 1e4 then amount = roundto(amount, 4) else amount = math.floor(amount + 0.5) end end if fnum then amount = args.langobj:formatNum( amount ) end if posdif ~= negdif then -- non-symmetrical range = " +" .. posdif .. " -" .. negdif elseif posdif ~= 0 then -- symmetrical and non-zero range = " ±" .. posdif else -- otherwise range is zero, so leave it as "" end else -- round scaled numbers to integers or 4 sig fig if (scale > 0 or sc == "a") then if amount < 1e4 then amount = roundto(amount, 4) else amount = math.floor(amount + 0.5) end end if fnum then amount = args.langobj:formatNum( amount ) end end -- unit names and symbols: -- extract the qid in the form 'Qnnn' from the value.unit url -- and then fetch the label from that - or symbol if unitabbr is true local unit = "" local usep = "" local usym = "" local unitqid = string.match( dv.unit, "(Q%d+)" ) if filter and unitqid ~= filter then return nil end if unitqid and showunits then local uname = mw.wikibase.getLabelByLang(unitqid, args.lang) or "" if uname ~= "" then usep, unit = " ", uname end if uabbr then -- see if there's a unit symbol (P5061) local unitsymbols = mw.wikibase.getBestStatements(unitqid, "P5061") -- construct fallback table, add local lang and multiple languages local fbtbl = mw.language.getFallbacksFor( args.lang ) table.insert( fbtbl, 1, args.lang ) table.insert( fbtbl, 1, "mul" ) local found = false for idx1, us in ipairs(unitsymbols) do for idx2, fblang in ipairs(fbtbl) do if us.mainsnak.datavalue.value.language == fblang then usym = us.mainsnak.datavalue.value.text found = true break end if found then break end end -- loop through fallback table end -- loop through values of P5061 if found then usep, unit = "&nbsp;", usym end end end -- format display: if conv then if range == "" then val = mw.getCurrentFrame():expandTemplate{title = "cvt", args = {amount, unit}} else val = mw.getCurrentFrame():expandTemplate{title = "cvt", args = {lowb, "to", upb, unit}} end elseif unit == "$" or unit == "£" then val = unit .. amount .. range .. i18n.multipliers[scale] else val = amount .. range .. i18n.multipliers[scale] .. usep .. unit end ------------------------------------ -- datatypes which are global coordinates: elseif dtype == "globe-coordinate" then -- 'display' parameter defaults to "inline, title" *** unused for now *** -- local disp = args.display or "" -- if disp == "" then disp = "inline, title" end -- -- format parameter switches from deg/min/sec to decimal degrees -- default is deg/min/sec -- decimal degrees needs |format = dec local form = (args.format or ""):lower():sub(1,3) if form ~= "dec" then form = "dms" end -- not needed for now -- -- show parameter allows just the latitude, or just the longitude, or both -- to be returned as a signed decimal, ignoring the format parameter. local show = (args.show or ""):lower() if show ~= "longlat" then show = show:sub(1,3) end -- local lat, long, prec = dv.latitude, dv.longitude, dv.precision if show == "lat" then val = decimalPrecision(lat, prec) elseif show == "lon" then val = decimalPrecision(long, prec) elseif show == "longlat" then val = decimalPrecision(long, prec) .. ", " .. decimalPrecision(lat, prec) else local ns = "N" local ew = "E" if lat < 0 then ns = "S" lat = - lat end if long < 0 then ew = "W" long = - long end if form == "dec" then lat = decimalPrecision(lat, prec) long = decimalPrecision(long, prec) val = lat .. "°" .. ns .. " " .. long .. "°" .. ew else local latdeg, latmin, latsec = decimalToDMS(lat, prec) local longdeg, longmin, longsec = decimalToDMS(long, prec) if latsec == 0 and longsec == 0 then if latmin == 0 and longmin == 0 then val = latdeg .. "°" .. ns .. " " .. longdeg .. "°" .. ew else val = latdeg .. "°" .. latmin .. "′" .. ns .. " " val = val .. longdeg .. "°".. longmin .. "′" .. ew end else val = latdeg .. "°" .. latmin .. "′" .. latsec .. "″" .. ns .. " " val = val .. longdeg .. "°" .. longmin .. "′" .. longsec .. "″" .. ew end end end ------------------------------------ elseif dtype == "monolingualtext" then -- data type is Monolingual text: -- has mainsnak.datavalue.value as a table containing language/text pairs -- collect all the values in 'out' and languages in 'mlt' and process them later val = pre .. dv.text .. post mlt = dv.language ------------------------------------ else -- some other data type so write a specific handler val = "unknown data type: " .. dtype end -- of datatype/unknown value/sourced check return val, mlt end ------------------------------------------------------------------------------- -- propertyvalueandquals takes a property object, the arguments passed from frame, -- and a qualifier propertyID. -- It returns a sequence (table) of values representing the values of that property -- and qualifiers that match the qualifierID if supplied. ------------------------------------------------------------------------------- -- Dependencies: parseParam(); sourced(); labelOrId(); i18n.latestdatequalifier(); format_Date(); -- makeOrdinal(); roundto(); decimalPrecision(); decimalToDMS(); assembleoutput(); ------------------------------------------------------------------------------- local function propertyvalueandquals(objproperty, args, qualID) -- needs this style of declaration because it's re-entrant -- onlysourced is a boolean passed to return only values sourced to other than Wikipedia -- if nothing or an empty string is passed set it true local onlysrc = parseParam(args.onlysourced or args.osd, true) -- linked is a a boolean that enables the link to a local page via sitelink -- if nothing or an empty string is passed set it true local linked = parseParam(args.linked, true) -- prefix is a string that may be nil, empty (""), or a string of characters -- this is prefixed to each value -- useful when when multiple values are returned -- any double-quotes " are stripped out, so that spaces may be passed local prefix = (args.prefix or ""):gsub('"', '') -- postfix is a string that may be nil, empty (""), or a string of characters -- this is postfixed to each value -- useful when when multiple values are returned -- any double-quotes " are stripped out, so that spaces may be passed local postfix = (args.postfix or ""):gsub('"', '') -- linkprefix is a string that may be nil, empty (""), or a string of characters -- this creates a link and is then prefixed to each value -- useful when when multiple values are returned and indirect links are needed -- any double-quotes " are stripped out, so that spaces may be passed local lprefix = (args.linkprefix or args.lp or ""):gsub('"', '') -- linkpostfix is a string that may be nil, empty (""), or a string of characters -- this is postfixed to each value when linking is enabled with lprefix -- useful when when multiple values are returned -- any double-quotes " are stripped out, so that spaces may be passed local lpostfix = (args.linkpostfix or ""):gsub('"', '') -- wdlinks is a boolean passed to enable links to Wikidata when no article exists -- if nothing or an empty string is passed set it false local wdl = parseParam(args.wdlinks or args.wdl, false) -- unitabbr is a boolean passed to enable unit abbreviations for common units -- if nothing or an empty string is passed set it false local uabbr = parseParam(args.unitabbr or args.uabbr, false) -- qualsonly is a boolean passed to return just the qualifiers -- if nothing or an empty string is passed set it false local qualsonly = parseParam(args.qualsonly or args.qo, false) -- maxvals is a string that may be nil, empty (""), or a number -- this determines how many items may be returned when multiple values are available -- setting it = 1 is useful where the returned string is used within another call, e.g. image local maxvals = tonumber(args.maxvals) or 0 -- pd (plain date) is a string: yes/true/1 | no/false/0 | adj -- to disable/enable "sourcing cirumstances" or use adjectival form for the plain date local pd = args.plaindate or args.pd or "no" args.pd = pd -- allow qualifiers to have a different date format; default to year unless qualsonly is set args.qdf = args.qdf or args.qualifierdateformat or args.df or (not qualsonly and "y") local lang = args.lang or findLang().code -- qualID is a string list of wanted qualifiers or "ALL" qualID = qualID or "" -- capitalise list of wanted qualifiers and substitute "DATES" qualID = qualID:upper():gsub("DATES", "P580, P582") local allflag = (qualID == "ALL") -- create table of wanted qualifiers as key local qwanted = {} -- create sequence of wanted qualifiers local qorder = {} for q in mw.text.gsplit(qualID, "%p") do -- split at punctuation and iterate local qtrim = mw.text.trim(q) if qtrim ~= "" then qwanted[mw.text.trim(q)] = true qorder[#qorder+1] = qtrim end end -- qsep is the output separator for rendering qualifier list local qsep = (args.qsep or ""):gsub('"', '') -- qargs are the arguments to supply to assembleoutput() local qargs = { ["osd"] = "false", ["linked"] = tostring(linked), ["prefix"] = args.qprefix, ["postfix"] = args.qpostfix, ["linkprefix"] = args.qlinkprefix or args.qlp, ["linkpostfix"] = args.qlinkpostfix, ["wdl"] = "false", ["unitabbr"] = tostring(uabbr), ["maxvals"] = 0, ["sorted"] = tostring(args.qsorted), ["noicon"] = "true", ["list"] = args.qlist, ["sep"] = qsep, ["langobj"] = args.langobj, ["lang"] = args.langobj.code, ["df"] = args.qdf, ["sn"] = parseParam(args.qsn or args.qshortname, false), } -- all proper values of a Wikidata property will be the same type as the first -- qualifiers don't have a mainsnak, properties do local datatype = objproperty[1].datatype or objproperty[1].mainsnak.datatype -- out[] holds the a list of returned values for this property -- mlt[] holds the language code if the datatype is monolingual text local out = {} local mlt = {} for k, v in ipairs(objproperty) do local hasvalue = true if (onlysrc and not sourced(v)) then -- no value: it isn't sourced when onlysourced=true hasvalue = false else local val, lcode = rendersnak(v, args, linked, lprefix, lpostfix, prefix, postfix, uabbr) if not val then hasvalue = false -- rank doesn't match elseif qualsonly and qualID then -- suppress value returned: only qualifiers are requested else out[#out+1], mlt[#out+1] = val, lcode end end -- See if qualifiers are to be returned: local snak = v.mainsnak or v if hasvalue and v.qualifiers and qualID ~= "" and snak.snaktype~="novalue" then -- collect all wanted qualifier values returned in qlist, indexed by propertyID local qlist = {} local timestart, timeend = "", "" -- loop through qualifiers for k1, v1 in pairs(v.qualifiers) do if allflag or qwanted[k1] then if k1 == "P1326" then local ts = v1[1].datavalue.value.time local dp = v1[1].datavalue.value.precision qlist[k1] = dateFormat(ts, dp, args.qdf, args.bc, pd, "", lang, "before") elseif k1 == "P1319" then local ts = v1[1].datavalue.value.time local dp = v1[1].datavalue.value.precision qlist[k1] = dateFormat(ts, dp, args.qdf, args.bc, pd, "", lang, "after") elseif k1 == "P580" then timestart = propertyvalueandquals(v1, qargs)[1] or "" -- treat only one start time as valid elseif k1 == "P582" then timeend = propertyvalueandquals(v1, qargs)[1] or "" -- treat only one end time as valid else local q = assembleoutput(propertyvalueandquals(v1, qargs), qargs) -- we already deal with circa via 'sourcing circumstances' if the datatype was time -- circa may be either linked or unlinked *** internationalise later *** if datatype ~= "time" or q ~= "circa" and not (type(q) == "string" and q:find("circa]]")) then qlist[k1] = q end end end -- of test for wanted end -- of loop through qualifiers -- set date separator local t = timestart .. timeend -- *** internationalise date separators later *** local dsep = "&ndash;" if t:find("%s") or t:find("&nbsp;") then dsep = " &ndash; " end -- set the order for the list of qualifiers returned; start time and end time go last if next(qlist) then local qlistout = {} if allflag then for k2, v2 in pairs(qlist) do qlistout[#qlistout+1] = v2 end else for i2, v2 in ipairs(qorder) do qlistout[#qlistout+1] = qlist[v2] end end if t ~= "" then qlistout[#qlistout+1] = timestart .. dsep .. timeend end local qstr = assembleoutput(qlistout, qargs) if qualsonly then out[#out+1] = qstr else out[#out] = out[#out] .. " (" .. qstr .. ")" end elseif t ~= "" then if qualsonly then if timestart == "" then out[#out+1] = timeend elseif timeend == "" then out[#out+1] = timestart else out[#out+1] = timestart .. dsep .. timeend end else out[#out] = out[#out] .. " (" .. timestart .. dsep .. timeend .. ")" end end end -- of test for qualifiers wanted if maxvals > 0 and #out >= maxvals then break end end -- of for each value loop -- we need to pick one value to return if the datatype was "monolingualtext" -- if there's only one value, use that -- otherwise look through the fallback languages for a match if datatype == "monolingualtext" and #out >1 then lang = mw.text.split( lang, '-', true )[1] local fbtbl = mw.language.getFallbacksFor( lang ) table.insert( fbtbl, 1, lang ) local bestval = "" local found = false for idx1, lang1 in ipairs(fbtbl) do for idx2, lang2 in ipairs(mlt) do if (lang1 == lang2) and not found then bestval = out[idx2] found = true break end end -- loop through values of property end -- loop through fallback languages if found then -- replace output table with a table containing the best value out = { bestval } else -- more than one value and none of them on the list of fallback languages -- sod it, just give them the first one out = { out[1] } end end return out end ------------------------------------------------------------------------------- -- Common code for p.getValueByQual and p.getValueByLang ------------------------------------------------------------------------------- -- Dependencies: parseParam; setRanks; parseInput; sourced; assembleoutput; ------------------------------------------------------------------------------- local _getvaluebyqual = function(frame, qualID, checkvalue) -- The property ID that will have a qualifier is the first unnamed parameter local propertyID = mw.text.trim(frame.args[1] or "") if propertyID == "" then return "no property supplied" end if qualID == "" then return "no qualifier supplied" end -- onlysourced is a boolean passed to return property values -- only when property values are sourced to something other than Wikipedia -- if nothing or an empty string is passed set it true -- if "false" or "no" or 0 is passed set it false local onlysrc = parseParam(frame.args.onlysourced or frame.args.osd, true) -- set the requested ranks flags frame.args.reqranks = setRanks(frame.args.rank) -- set a language object and code in the frame.args table frame.args.langobj = findLang(frame.args.lang) frame.args.lang = frame.args.langobj.code local args = frame.args -- check for locally supplied parameter in second unnamed parameter -- success means no local parameter and the property exists local qid, props = parseInput(frame, args[2], propertyID) local linked = parseParam(args.linked, true) local lpre = (args.linkprefix or args.lp or ""):gsub('"', '') local lpost = (args.linkpostfix or ""):gsub('"', '') local pre = (args.prefix or ""):gsub('"', '') local post = (args.postfix or ""):gsub('"', '') local uabbr = parseParam(args.unitabbr or args.uabbr, false) local filter = (args.unit or ""):upper() local maxvals = tonumber(args.maxvals) or 0 if filter == "" then filter = nil end if qid then local out = {} -- Scan through the values of the property -- we want something like property is "pronunciation audio (P443)" in propertyID -- with a qualifier like "language of work or name (P407)" in qualID -- whose value has the required ID, like "British English (Q7979)", in qval for k1, v1 in ipairs(props) do if v1.mainsnak.snaktype == "value" then -- check if it has the right qualifier local v1q = v1.qualifiers if v1q and v1q[qualID] then if onlysrc == false or sourced(v1) then -- if we've got this far, we have a (sourced) claim with qualifiers -- so see if matches the required value -- We'll only deal with wikibase-items and strings for now if v1q[qualID][1].datatype == "wikibase-item" then if checkvalue(v1q[qualID][1].datavalue.value.id) then out[#out + 1] = rendersnak(v1, args, linked, lpre, lpost, pre, post, uabbr, filter) end elseif v1q[qualID][1].datatype == "string" then if checkvalue(v1q[qualID][1].datavalue.value) then out[#out + 1] = rendersnak(v1, args, linked, lpre, lpost, pre, post, uabbr, filter) end end end -- of check for sourced end -- of check for matching required value and has qualifiers else return nil end -- of check for string if maxvals > 0 and #out >= maxvals then break end end -- of loop through values of propertyID return assembleoutput(out, frame.args, qid, propertyID) else return props -- either local parameter or nothing end -- of test for success return nil end ------------------------------------------------------------------------------- -- _location takes Q-id and follows P276 (location) -- or P131 (located in the administrative territorial entity) or P706 (located on terrain feature) -- from the initial item to higher level territories/locations until it reaches the highest. -- An optional boolean, 'first', determines whether the first item is returned (default: false). -- An optional boolean 'skip' toggles the display to skip to the last item (default: false). -- It returns a table containing the locations - linked where possible, except for the highest. ------------------------------------------------------------------------------- -- Dependencies: findLang(); labelOrId(); linkedItem ------------------------------------------------------------------------------- local _location = function(qid, first, skip) first = parseParam(first, false) skip = parseParam(skip, false) local locs = {"P276", "P131", "P706"} local out = {} local langcode = findLang():getCode() local finished = false local count = 0 local prevqid = "Q0" repeat local prop for i1, v1 in ipairs(locs) do local proptbl = mw.wikibase.getBestStatements(qid, v1) if #proptbl > 1 then -- there is more than one higher location local prevP131, prevP131id if prevqid ~= "Q0" then prevP131 = mw.wikibase.getBestStatements(prevqid, "P131")[1] prevP131id = prevP131 and prevP131.mainsnak.datavalue and prevP131.mainsnak.datavalue.value.id end for i2, v2 in ipairs(proptbl) do local parttbl = v2.qualifiers and v2.qualifiers.P518 if parttbl then -- this higher location has qualifier 'applies to part' (P518) for i3, v3 in ipairs(parttbl) do if v3.snaktype == "value" and v3.datavalue.value.id == prevqid then -- it has a value equal to the previous location prop = proptbl[i2] break end -- of test for matching last location end -- of loop through values of 'applies to part' else -- there's no qualifier 'applies to part' (P518) -- so check if the previous location had a P131 that matches this alternate if qid == prevP131id then prop = proptbl[i2] break end -- of test for matching previous P131 end end -- of loop through parent locations -- fallback to second value if match not found prop = prop or proptbl[2] elseif #proptbl > 0 then prop = proptbl[1] end if prop then break end end -- check if it's an instance of (P31) a country (Q6256) or sovereign state (Q3624078) -- and terminate the chain if it is local inst = mw.wikibase.getAllStatements(qid, "P31") if #inst > 0 then for k, v in ipairs(inst) do local instid = v.mainsnak.datavalue and v.mainsnak.datavalue.value.id -- stop if it's a country (or a country within the United Kingdom if skip is true) if instid == "Q6256" or instid == "Q3624078" or (skip and instid == "Q3336843") then prop = nil -- this will ensure this is treated as top-level location break end end end -- get the name of this location and update qid to point to the parent location if prop and prop.mainsnak.datavalue then if not skip or count == 0 then local args = { lprefix = ":" } out[#out+1] = linkedItem(qid, args) -- get a linked value if we can end qid, prevqid = prop.mainsnak.datavalue.value.id, qid else -- This is top-level location, so get short name except when this is the first item -- Use full label if there's no short name or this is the first item local prop1813 = mw.wikibase.getAllStatements(qid, "P1813") -- if there's a short name and this isn't the only item if prop1813[1] and (#out > 0)then local shortname -- short name is monolingual text, so look for match to the local language -- choose the shortest 'short name' in that language for k, v in pairs(prop1813) do if v.mainsnak.datavalue.value.language == langcode then local name = v.mainsnak.datavalue.value.text if (not shortname) or (#name < #shortname) then shortname = name end end end -- add the shortname if one is found, fallback to the label -- but skip it if it's "USA" if shortname ~= "USA" then out[#out+1] = shortname or labelOrId(qid) else if skip then out[#out+1] = "US" end end else -- no shortname, so just add the label local loc = labelOrId(qid) -- exceptions go here: if loc == "United States of America" then out[#out+1] = "United States" else out[#out+1] = loc end end finished = true end count = count + 1 until finished or count >= 10 -- limit to 10 levels to avoid infinite loops -- remove the first location if not required if not first then table.remove(out, 1) end -- we might have duplicate text for consecutive locations, so remove them if #out > 2 then local plain = {} for i, v in ipairs(out) do -- strip any links plain[i] = v:gsub("^%[%[[^|]*|", ""):gsub("]]$", "") end local idx = 2 repeat if plain[idx] == plain[idx-1] then -- duplicate found local removeidx = 0 if (plain[idx] ~= out[idx]) and (plain[idx-1] == out[idx-1]) then -- only second one is linked, so drop the first removeidx = idx - 1 elseif (plain[idx] == out[idx]) and (plain[idx-1] ~= out[idx-1]) then -- only first one is linked, so drop the second removeidx = idx else -- pick one removeidx = idx - (os.time()%2) end table.remove(out, removeidx) table.remove(plain, removeidx) else idx = idx +1 end until idx >= #out end return out end ------------------------------------------------------------------------------- -- _getsumofparts scans the property 'has part' (P527) for values matching a list. -- The list (args.vlist) consists of a string of Qids separated by spaces or any usual punctuation. -- If the matched values have a qualifer 'quantity' (P1114), those quantites are summed. -- The sum is returned as a number (i.e. 0 if none) -- a table of arguments is supplied implementing the usual parameters. ------------------------------------------------------------------------------- -- Dependencies: setRanks; parseParam; parseInput; sourced; assembleoutput; ------------------------------------------------------------------------------- local _getsumofparts = function(args) local vallist = (args.vlist or ""):upper() if vallist == "" then return end args.reqranks = setRanks(args.rank) local f = {} f.args = args local qid, props = parseInput(f, "", "P527") if not qid then return 0 end local onlysrc = parseParam(args.onlysourced or args.osd, true) local sum = 0 for k1, v1 in ipairs(props) do if (onlysrc == false or sourced(v1)) and v1.mainsnak.snaktype == "value" and v1.mainsnak.datavalue.type == "wikibase-entityid" and vallist:match( v1.mainsnak.datavalue.value.id ) and v1.qualifiers then local quals = v1.qualifiers["P1114"] if quals then for k2, v2 in ipairs(quals) do sum = sum + v2.datavalue.value.amount end end end end return sum end ------------------------------------------------------------------------------- ------------------------------------------------------------------------------- -- Public functions ------------------------------------------------------------------------------- ------------------------------------------------------------------------------- -- _getValue makes the functionality of getValue available to other modules ------------------------------------------------------------------------------- -- Dependencies: setRanks; parseInput; propertyvalueandquals; assembleoutput; parseParam; sourced; -- labelOrId; i18n.latestdatequalifier; format_Date; makeOrdinal; roundto; decimalPrecision; decimalToDMS; ------------------------------------------------------------------------------- p._getValue = function(args) -- parameter sets for commonly used groups of parameters local paraset = tonumber(args.ps or args.parameterset or 0) if paraset == 1 then -- a common setting args.rank = "best" args.fetchwikidata = "ALL" args.onlysourced = "no" args.noicon = "true" elseif paraset == 2 then -- equivalent to raw args.rank = "best" args.fetchwikidata = "ALL" args.onlysourced = "no" args.noicon = "true" args.linked = "no" args.pd = "true" elseif paraset == 3 then -- third set goes here end -- implement eid parameter local eid = args.eid if eid == "" then return nil elseif eid then args.qid = eid end local propertyID = mw.text.trim(args[1] or "") args.reqranks = setRanks(args.rank) -- replacetext (rt) is a string that is returned instead of any non-empty Wikidata value -- this is useful for tracking and debugging, so we set fetchwikidata=ALL to fill the whitelist local replacetext = mw.text.trim(args.rt or args.replacetext or "") if replacetext ~= "" then args.fetchwikidata = "ALL" end local f = {} f.args = args local entityid, props = parseInput(f, f.args[2], propertyID) if not entityid then return props -- either the input parameter or nothing end -- qual is a string containing the property ID of the qualifier(s) to be returned -- if qual == "ALL" then all qualifiers returned -- if qual == "DATES" then qualifiers P580 (start time) and P582 (end time) returned -- if nothing or an empty string is passed set it nil -> no qualifiers returned local qualID = mw.text.trim(args.qual or ""):upper() if qualID == "" then qualID = nil end -- set a language object and code in the args table args.langobj = findLang(args.lang) args.lang = args.langobj.code -- table 'out' stores the return value(s): local out = propertyvalueandquals(props, args, qualID) -- format the table of values and return it as a string: return assembleoutput(out, args, entityid, propertyID) end ------------------------------------------------------------------------------- -- getValue is used to get the value(s) of a property -- The property ID is passed as the first unnamed parameter and is required. -- A locally supplied parameter may optionaly be supplied as the second unnamed parameter. -- The function will now also return qualifiers if parameter qual is supplied ------------------------------------------------------------------------------- -- Dependencies: _getValue; setRanks; parseInput; propertyvalueandquals; assembleoutput; parseParam; sourced; -- labelOrId; i18n.latestdatequalifier; format_Date; makeOrdinal; roundto; decimalPrecision; decimalToDMS; ------------------------------------------------------------------------------- p.getValue = function(frame) local args= frame.args if not args[1] then args = frame:getParent().args if not args[1] then return i18n.errors["No property supplied"] end end return p._getValue(args) end ------------------------------------------------------------------------------- -- getPreferredValue is used to get a value, -- (or a comma separated list of them if multiple values exist). -- If preferred ranks are set, it will return those values, otherwise values with normal ranks -- now redundant to getValue with |rank=best ------------------------------------------------------------------------------- -- Dependencies: p.getValue; setRanks; parseInput; propertyvalueandquals; assembleoutput; -- parseParam; sourced; labelOrId; i18n.latestdatequalifier; format_Date; -- makeOrdinal; roundto; decimalPrecision; decimalToDMS; ------------------------------------------------------------------------------- p.getPreferredValue = function(frame) frame.args.rank = "best" return p.getValue(frame) end ------------------------------------------------------------------------------- -- getCoords is used to get coordinates for display in an infobox -- whitelist and blacklist are implemented -- optional 'display' parameter is allowed, defaults to nil - was "inline, title" ------------------------------------------------------------------------------- -- Dependencies: setRanks(); parseInput(); decimalPrecision(); ------------------------------------------------------------------------------- p.getCoords = function(frame) local propertyID = "P625" -- if there is a 'display' parameter supplied, use it -- otherwise default to nothing local disp = frame.args.display or "" if disp == "" then disp = nil -- default to not supplying display parameter, was "inline, title" end -- there may be a format parameter to switch from deg/min/sec to decimal degrees -- default is deg/min/sec -- decimal degrees needs |format = dec local form = (frame.args.format or ""):lower():sub(1,3) if form ~= "dec" then form = "dms" end -- just deal with best values frame.args.reqranks = setRanks("best") local qid, props = parseInput(frame, frame.args[1], propertyID) if not qid then return props -- either local parameter or nothing else local dv = props[1].mainsnak.datavalue.value local lat, long, prec = dv.latitude, dv.longitude, dv.precision lat = decimalPrecision(lat, prec) long = decimalPrecision(long, prec) local lat_long = { lat, long } lat_long["display"] = disp lat_long["format"] = form -- invoke template Coord with the values stored in the table return frame:expandTemplate{title = 'coord', args = lat_long} end end ------------------------------------------------------------------------------- -- getQualifierValue is used to get a formatted value of a qualifier -- -- The call needs: a property (the unnamed parameter or 1=) -- a target value for that property (pval=) -- a qualifier for that target value (qual=) -- The usual whitelisting and blacklisting of the property is implemented -- The boolean onlysourced= parameter can be set to return nothing -- when the property is unsourced (or only sourced to Wikipedia) ------------------------------------------------------------------------------- -- Dependencies: parseParam(); setRanks(); parseInput(); sourced(); -- propertyvalueandquals(); assembleoutput(); -- labelOrId(); i18n.latestdatequalifier(); format_Date(); -- findLang(); makeOrdinal(); roundto(); decimalPrecision(); decimalToDMS(); ------------------------------------------------------------------------------- p.getQualifierValue = function(frame) -- The property ID that will have a qualifier is the first unnamed parameter local propertyID = mw.text.trim(frame.args[1] or "") -- The value of the property we want to match whose qualifier value is to be returned -- is passed in named parameter |pval= local propvalue = frame.args.pval -- The property ID of the qualifier -- whose value is to be returned is passed in named parameter |qual= local qualifierID = frame.args.qual -- A filter can be set like this: filter=P642==Q22674854 local filter, fprop, fval local ftable = mw.text.split(frame.args.filter or "", "==") if ftable[2] then fprop = mw.text.trim(ftable[1]) fval = mw.text.trim(ftable[2]) filter = true end -- onlysourced is a boolean passed to return qualifiers -- only when property values are sourced to something other than Wikipedia -- if nothing or an empty string is passed set it true -- if "false" or "no" or 0 is passed set it false local onlysrc = parseParam(frame.args.onlysourced or frame.args.osd, true) -- set a language object and language code in the frame.args table frame.args.langobj = findLang(frame.args.lang) frame.args.lang = frame.args.langobj.code -- set the requested ranks flags frame.args.reqranks = setRanks(frame.args.rank) -- check for locally supplied parameter in second unnamed parameter -- success means no local parameter and the property exists local qid, props = parseInput(frame, frame.args[2], propertyID) if qid then local out = {} -- Scan through the values of the property -- we want something like property is P793, significant event (in propertyID) -- whose value is something like Q385378, construction (in propvalue) -- then we can return the value(s) of a qualifier such as P580, start time (in qualifierID) for k1, v1 in pairs(props) do if v1.mainsnak.snaktype == "value" and v1.mainsnak.datavalue.type == "wikibase-entityid" then -- It's a wiki-linked value, so check if it's the target (in propvalue) and if it has qualifiers if v1.mainsnak.datavalue.value.id == propvalue and v1.qualifiers then if onlysrc == false or sourced(v1) then -- if we've got this far, we have a (sourced) claim with qualifiers -- which matches the target, so apply the filter and find the value(s) of the qualifier we want if not filter or (v1.qualifiers[fprop] and v1.qualifiers[fprop][1].datavalue.value.id == fval) then local quals = v1.qualifiers[qualifierID] if quals then -- can't reference qualifer, so set onlysourced = "no" (args are strings, not boolean) local qargs = frame.args qargs.onlysourced = "no" local vals = propertyvalueandquals(quals, qargs, qid) for k, v in ipairs(vals) do out[#out + 1] = v end end end end -- of check for sourced end -- of check for matching required value and has qualifiers end -- of check for wikibase entity end -- of loop through values of propertyID return assembleoutput(out, frame.args, qid, propertyID) else return props -- either local parameter or nothing end -- of test for success return nil end ------------------------------------------------------------------------------- -- getSumOfParts scans the property 'has part' (P527) for values matching a list. -- The list is passed in parameter vlist. -- It consists of a string of Qids separated by spaces or any usual punctuation. -- If the matched values have a qualifier 'quantity' (P1114), those quantities are summed. -- The sum is returned as a number or nothing if zero. ------------------------------------------------------------------------------- -- Dependencies: _getsumofparts; ------------------------------------------------------------------------------- p.getSumOfParts = function(frame) local sum = _getsumofparts(frame.args) if sum == 0 then return end return sum end ------------------------------------------------------------------------------- -- getValueByQual gets the value of a property which has a qualifier with a given entity value -- The call needs: -- a property ID (the unnamed parameter or 1=Pxxx) -- the ID of a qualifier for that property (qualID=Pyyy) -- either the Wikibase-entity ID of a value for that qualifier (qvalue=Qzzz) -- or a string value for that qualifier (qvalue=abc123) -- The usual whitelisting, blacklisting, onlysourced, etc. are implemented ------------------------------------------------------------------------------- -- Dependencies: _getvaluebyqual; parseParam; setRanks; parseInput; sourced; -- assembleoutput; ------------------------------------------------------------------------------- p.getValueByQual = function(frame) local qualID = frame.args.qualID -- The Q-id of the value for the qualifier we want to match is in named parameter |qvalue= local qval = frame.args.qvalue or "" if qval == "" then return "no qualifier value supplied" end local function checkQID(id) return id == qval end return _getvaluebyqual(frame, qualID, checkQID) end ------------------------------------------------------------------------------- -- getValueByLang gets the value of a property which has a qualifier P407 -- ("language of work or name") whose value has the given language code -- The call needs: -- a property ID (the unnamed parameter or 1=Pxxx) -- the MediaWiki language code to match the language (lang=xx[-yy]) -- (if no code is supplied, it uses the default language) -- The usual whitelisting, blacklisting, onlysourced, etc. are implemented ------------------------------------------------------------------------------- -- Dependencies: _getvaluebyqual; parseParam; setRanks; parseInput; sourced; assembleoutput; ------------------------------------------------------------------------------- p.getValueByLang = function(frame) -- The language code for the qualifier we want to match is in named parameter |lang= local langcode = findLang(frame.args.lang).code local function checkLanguage(id) -- id should represent a language like "British English (Q7979)" -- it should have string property "Wikimedia language code (P424)" -- qlcode will be a table: local qlcode = mw.wikibase.getBestStatements(id, "P424") if (#qlcode > 0) and (qlcode[1].mainsnak.datavalue.value == langcode) then return true end end return _getvaluebyqual(frame, "P407", checkLanguage) end ------------------------------------------------------------------------------- -- getValueByRefSource gets the value of a property which has a reference "stated in" (P248) -- whose value has the given entity-ID. -- The call needs: -- a property ID (the unnamed parameter or 1=Pxxx) -- the entity ID of a value to match where the reference is stated in (match=Qzzz) -- The usual whitelisting, blacklisting, onlysourced, etc. are implemented ------------------------------------------------------------------------------- -- Dependencies: parseParam; setRanks; parseInput; sourced; propertyvalueandquals assembleoutput; ------------------------------------------------------------------------------- p.getValueByRefSource = function(frame) -- The property ID that we want to check is the first unnamed parameter local propertyID = mw.text.trim(frame.args[1] or ""):upper() if propertyID == "" then return "no property supplied" end -- The Q-id of the value we want to match is in named parameter |qvalue= local qval = (frame.args.match or ""):upper() if qval == "" then qval = "Q21540096" end local unit = (frame.args.unit or ""):upper() if unit == "" then unit = "Q4917" end local onlysrc = parseParam(frame.args.onlysourced or frame.args.osd, true) -- set the requested ranks flags frame.args.reqranks = setRanks(frame.args.rank) -- set a language object and code in the frame.args table frame.args.langobj = findLang(frame.args.lang) frame.args.lang = frame.args.langobj.code local linked = parseParam(frame.args.linked, true) local uabbr = parseParam(frame.args.uabbr or frame.args.unitabbr, false) -- qid not nil means no local parameter and the property exists local qid, props = parseInput(frame, frame.args[2], propertyID) if qid then local out = {} local mlt= {} for k1, v1 in ipairs(props) do if onlysrc == false or sourced(v1) then if v1.references then for k2, v2 in ipairs(v1.references) do if v2.snaks.P248 then for k3, v3 in ipairs(v2.snaks.P248) do if v3.datavalue.value.id == qval then out[#out+1], mlt[#out+1] = rendersnak(v1, frame.args, linked, "", "", "", "", uabbr, unit) if not mlt[#out] then -- we only need one match per property value -- unless datatype was monolingual text break end end -- of test for match end -- of loop through values "stated in" end -- of test that "stated in" exists end -- of loop through references end -- of test that references exist end -- of test for sourced end -- of loop through values of propertyID if #mlt > 0 then local langcode = frame.args.lang langcode = mw.text.split( langcode, '-', true )[1] local fbtbl = mw.language.getFallbacksFor( langcode ) table.insert( fbtbl, 1, langcode ) local bestval = "" local found = false for idx1, lang1 in ipairs(fbtbl) do for idx2, lang2 in ipairs(mlt) do if (lang1 == lang2) and not found then bestval = out[idx2] found = true break end end -- loop through values of property end -- loop through fallback languages if found then -- replace output table with a table containing the best value out = { bestval } else -- more than one value and none of them on the list of fallback languages -- sod it, just give them the first one out = { out[1] } end end return assembleoutput(out, frame.args, qid, propertyID) else return props -- no property or local parameter supplied end -- of test for success end ------------------------------------------------------------------------------- -- getPropertyIDs takes most of the usual parameters. -- The usual whitelisting, blacklisting, onlysourced, etc. are implemented. -- It returns the Entity-IDs (Qids) of the values of a property if it is a Wikibase-Entity. -- Otherwise it returns nothing. ------------------------------------------------------------------------------- -- Dependencies: parseParam; setRanks; parseInput; sourced; propertyvalueandquals assembleoutput; ------------------------------------------------------------------------------- p._getPropertyIDs = function(args) args.reqranks = setRanks(args.rank) args.langobj = findLang(args.lang) args.lang = args.langobj.code -- change default for noicon to true args.noicon = tostring(parseParam(args.noicon or "", true)) local f = {} f.args = args local pid = mw.text.trim(args[1] or ""):upper() -- get the qid and table of claims for the property, or nothing and the local value passed local qid, props = parseInput(f, args[2], pid) if not qid then return props end if not props[1] then return nil end local onlysrc = parseParam(args.onlysourced or args.osd, true) local maxvals = tonumber(args.maxvals) or 0 local out = {} for i, v in ipairs(props) do local snak = v.mainsnak if ( snak.datatype == "wikibase-item" ) and ( v.rank and args.reqranks[v.rank:sub(1, 1)] ) and ( snak.snaktype == "value" ) and ( sourced(v) or not onlysrc ) then out[#out+1] = snak.datavalue.value.id end if maxvals > 0 and #out >= maxvals then break end end return assembleoutput(out, args, qid, pid) end p.getPropertyIDs = function(frame) local args = frame.args return p._getPropertyIDs(args) end ------------------------------------------------------------------------------- -- getQualifierIDs takes most of the usual parameters. -- The usual whitelisting, blacklisting, onlysourced, etc. are implemented. -- It takes a property-id as the first unnamed parameter, and an optional parameter qlist -- which is a list of qualifier property-ids to search for (default is "ALL") -- It returns the Entity-IDs (Qids) of the values of a property if it is a Wikibase-Entity. -- Otherwise it returns nothing. ------------------------------------------------------------------------------- -- Dependencies: parseParam; setRanks; parseInput; sourced; propertyvalueandquals assembleoutput; ------------------------------------------------------------------------------- p.getQualifierIDs = function(frame) local args = frame.args args.reqranks = setRanks(args.rank) args.langobj = findLang(args.lang) args.lang = args.langobj.code -- change default for noicon to true args.noicon = tostring(parseParam(args.noicon or "", true)) local f = {} f.args = args local pid = mw.text.trim(args[1] or ""):upper() -- get the qid and table of claims for the property, or nothing and the local value passed local qid, props = parseInput(f, args[2], pid) if not qid then return props end if not props[1] then return nil end -- get the other parameters local onlysrc = parseParam(args.onlysourced or args.osd, true) local maxvals = tonumber(args.maxvals) or 0 local qlist = args.qlist or "" if qlist == "" then qlist = "ALL" end qlist = qlist:gsub("[%p%s]+", " ") .. " " local out = {} for i, v in ipairs(props) do local snak = v.mainsnak if ( v.rank and args.reqranks[v.rank:sub(1, 1)] ) and ( snak.snaktype == "value" ) and ( sourced(v) or not onlysrc ) then if v.qualifiers then for k1, v1 in pairs(v.qualifiers) do if qlist == "ALL " or qlist:match(k1 .. " ") then for i2, v2 in ipairs(v1) do if v2.datatype == "wikibase-item" and v2.snaktype == "value" then out[#out+1] = v2.datavalue.value.id end -- of test that id exists end -- of loop through qualifier values end -- of test for kq in qlist end -- of loop through qualifiers end -- of test for qualifiers end -- of test for rank value, sourced, and value exists if maxvals > 0 and #out >= maxvals then break end end -- of loop through property values return assembleoutput(out, args, qid, pid) end ------------------------------------------------------------------------------- -- getPropOfProp takes two propertyIDs: prop1 and prop2 (as well as the usual parameters) -- If the value(s) of prop1 are of type "wikibase-item" then it returns the value(s) of prop2 -- of each of those wikibase-items. -- The usual whitelisting, blacklisting, onlysourced, etc. are implemented ------------------------------------------------------------------------------- -- Dependencies: parseParam; setRanks; parseInput; sourced; propertyvalueandquals assembleoutput; ------------------------------------------------------------------------------- p._getPropOfProp = function(args) -- parameter sets for commonly used groups of parameters local paraset = tonumber(args.ps or args.parameterset or 0) if paraset == 1 then -- a common setting args.rank = "best" args.fetchwikidata = "ALL" args.onlysourced = "no" args.noicon = "true" elseif paraset == 2 then -- equivalent to raw args.rank = "best" args.fetchwikidata = "ALL" args.onlysourced = "no" args.noicon = "true" args.linked = "no" args.pd = "true" elseif paraset == 3 then -- third set goes here end args.reqranks = setRanks(args.rank) args.langobj = findLang(args.lang) args.lang = args.langobj.code local pid1 = args.prop1 or args.pid1 or "" local pid2 = args.prop2 or args.pid2 or "" if pid1 == "" or pid2 == "" then return nil end local f = {} f.args = args local qid1, statements1 = parseInput(f, args[1], pid1) -- parseInput nulls empty args[1] and returns args[1] if nothing on Wikidata if not qid1 then return statements1 end -- otherwise it returns the qid and a table for the statement local onlysrc = parseParam(args.onlysourced or args.osd, true) local maxvals = tonumber(args.maxvals) or 0 local qualID = mw.text.trim(args.qual or ""):upper() if qualID == "" then qualID = nil end local out = {} for k, v in ipairs(statements1) do if not onlysrc or sourced(v) then local snak = v.mainsnak if snak.datatype == "wikibase-item" and snak.snaktype == "value" then local qid2 = snak.datavalue.value.id local statements2 = {} if args.reqranks.b then statements2 = mw.wikibase.getBestStatements(qid2, pid2) else statements2 = mw.wikibase.getAllStatements(qid2, pid2) end if statements2[1] then local out2 = propertyvalueandquals(statements2, args, qualID) out[#out+1] = assembleoutput(out2, args, qid2, pid2) end end -- of test for valid property1 value end -- of test for sourced if maxvals > 0 and #out >= maxvals then break end end -- of loop through values of property1 return assembleoutput(out, args, qid1, pid1) end p.getPropOfProp = function(frame) local args= frame.args if not args.prop1 and not args.pid1 then args = frame:getParent().args if not args.prop1 and not args.pid1 then return i18n.errors["No property supplied"] end end return p._getPropOfProp(args) end ------------------------------------------------------------------------------- -- getAwardCat takes most of the usual parameters. If the item has values of P166 (award received), -- then it examines each of those awards for P2517 (category for recipients of this award). -- If it exists, it returns the corresponding category, -- with the item's P734 (family name) as sort key, or no sort key if there is no family name. -- The sort key may be overridden by the parameter |sortkey (alias |sk). -- The usual whitelisting, blacklisting, onlysourced, etc. are implemented ------------------------------------------------------------------------------- -- Dependencies: parseParam; setRanks; parseInput; sourced; propertyvalueandquals assembleoutput; ------------------------------------------------------------------------------- p.getAwardCat = function(frame) frame.args.reqranks = setRanks(frame.args.rank) frame.args.langobj = findLang(frame.args.lang) frame.args.lang = frame.args.langobj.code local args = frame.args args.sep = " " local pid1 = args.prop1 or "P166" local pid2 = args.prop2 or "P2517" if pid1 == "" or pid2 == "" then return nil end -- locally supplied value: local localval = mw.text.trim(args[1] or "") local qid1, statements1 = parseInput(frame, localval, pid1) if not qid1 then return localval end -- linkprefix (strip quotes) local lp = (args.linkprefix or args.lp or ""):gsub('"', '') -- sort key (strip quotes, hyphens and periods): local sk = (args.sortkey or args.sk or ""):gsub('["-.]', '') -- family name: local famname = "" if sk == "" then local p734 = mw.wikibase.getBestStatements(qid1, "P734")[1] local p734id = p734 and p734.mainsnak.snaktype == "value" and p734.mainsnak.datavalue.value.id or "" famname = mw.wikibase.getSitelink(p734id) or "" -- strip namespace and disambigation local pos = famname:find(":") or 0 famname = famname:sub(pos+1):gsub("%s%(.+%)$", "") if famname == "" then local lbl = mw.wikibase.getLabel(p734id) famname = lbl and mw.text.nowiki(lbl) or "" end end local onlysrc = parseParam(args.onlysourced or args.osd, true) local maxvals = tonumber(args.maxvals) or 0 local qualID = mw.text.trim(args.qual or ""):upper() if qualID == "" then qualID = nil end local out = {} for k, v in ipairs(statements1) do if not onlysrc or sourced(v) then local snak = v.mainsnak if snak.datatype == "wikibase-item" and snak.snaktype == "value" then local qid2 = snak.datavalue.value.id local statements2 = {} if args.reqranks.b then statements2 = mw.wikibase.getBestStatements(qid2, pid2) else statements2 = mw.wikibase.getAllStatements(qid2, pid2) end if statements2[1] and statements2[1].mainsnak.snaktype == "value" then local qid3 = statements2[1].mainsnak.datavalue.value.id local sitelink = mw.wikibase.getSitelink(qid3) -- if there's no local sitelink, create the sitelink from English label if not sitelink then local lbl = mw.wikibase.getLabelByLang(qid3, "en") if lbl then if lbl:sub(1,9) == "Category:" then sitelink = mw.text.nowiki(lbl) else sitelink = "Category:" .. mw.text.nowiki(lbl) end end end if sitelink then if sk ~= "" then out[#out+1] = "[[" .. lp .. sitelink .. "|" .. sk .. "]]" elseif famname ~= "" then out[#out+1] = "[[" .. lp .. sitelink .. "|" .. famname .. "]]" else out[#out+1] = "[[" .. lp .. sitelink .. "]]" end -- of check for sort keys end -- of test for sitelink end -- of test for category end -- of test for wikibase item has a value end -- of test for sourced if maxvals > 0 and #out >= maxvals then break end end -- of loop through values of property1 return assembleoutput(out, args, qid1, pid1) end ------------------------------------------------------------------------------- -- getIntersectCat takes most of the usual parameters. -- The usual whitelisting, blacklisting, onlysourced, etc. are implemented -- It takes two properties, |prop1 and |prop2 (e.g. occupation and country of citizenship) -- Each property's value is a wiki-base entity -- For each value of the first parameter (ranks implemented) it fetches the value's main category -- and then each value of the second parameter (possibly substituting a simpler description) -- then it returns all of the categories representing the intersection of those properties, -- (e.g. Category:Actors from Canada). A joining term may be supplied (e.g. |join=from). -- The item's P734 (family name) is the sort key, or no sort key if there is no family name. -- The sort key may be overridden by the parameter |sortkey (alias |sk). ------------------------------------------------------------------------------- -- Dependencies: parseParam; setRanks; parseInput; sourced; propertyvalueandquals assembleoutput; ------------------------------------------------------------------------------- p.getIntersectCat = function(frame) frame.args.reqranks = setRanks(frame.args.rank) frame.args.langobj = findLang(frame.args.lang) frame.args.lang = frame.args.langobj.code local args = frame.args args.sep = " " args.linked = "no" local pid1 = args.prop1 or "P106" local pid2 = args.prop2 or "P27" if pid1 == "" or pid2 == "" then return nil end local qid, statements1 = parseInput(frame, "", pid1) if not qid then return nil end local qid, statements2 = parseInput(frame, "", pid2) if not qid then return nil end -- topics like countries may have different names in categories from their label in Wikidata local subs_exists, subs = pcall(mw.loadData, "Module:WikidataIB/subs") local join = args.join or "" local onlysrc = parseParam(args.onlysourced or args.osd, true) local maxvals = tonumber(args.maxvals) or 0 -- linkprefix (strip quotes) local lp = (args.linkprefix or args.lp or ""):gsub('"', '') -- sort key (strip quotes, hyphens and periods): local sk = (args.sortkey or args.sk or ""):gsub('["-.]', '') -- family name: local famname = "" if sk == "" then local p734 = mw.wikibase.getBestStatements(qid, "P734")[1] local p734id = p734 and p734.mainsnak.snaktype == "value" and p734.mainsnak.datavalue.value.id or "" famname = mw.wikibase.getSitelink(p734id) or "" -- strip namespace and disambigation local pos = famname:find(":") or 0 famname = famname:sub(pos+1):gsub("%s%(.+%)$", "") if famname == "" then local lbl = mw.wikibase.getLabel(p734id) famname = lbl and mw.text.nowiki(lbl) or "" end end local cat1 = {} for k, v in ipairs(statements1) do if not onlysrc or sourced(v) then -- get the ID representing the value of the property local pvalID = (v.mainsnak.snaktype == "value") and v.mainsnak.datavalue.value.id if pvalID then -- get the topic's main category (P910) for that entity local p910 = mw.wikibase.getBestStatements(pvalID, "P910")[1] if p910 and p910.mainsnak.snaktype == "value" then local tmcID = p910.mainsnak.datavalue.value.id -- use sitelink or the English label for the cat local cat = mw.wikibase.getSitelink(tmcID) if not cat then local lbl = mw.wikibase.getLabelByLang(tmcID, "en") if lbl then if lbl:sub(1,9) == "Category:" then cat = mw.text.nowiki(lbl) else cat = "Category:" .. mw.text.nowiki(lbl) end end end cat1[#cat1+1] = cat end -- of test for topic's main category exists end -- of test for property has vaild value end -- of test for sourced if maxvals > 0 and #cat1 >= maxvals then break end end local cat2 = {} for k, v in ipairs(statements2) do if not onlysrc or sourced(v) then local cat = rendersnak(v, args) if subs[cat] then cat = subs[cat] end cat2[#cat2+1] = cat end if maxvals > 0 and #cat2 >= maxvals then break end end local out = {} for k1, v1 in ipairs(cat1) do for k2, v2 in ipairs(cat2) do if sk ~= "" then out[#out+1] = "[[" .. lp .. v1 .. " " .. join .. " " .. v2 .. "|" .. sk .. "]]" elseif famname ~= "" then out[#out+1] = "[[" .. lp .. v1 .. " " .. join .. " " .. v2 .. "|" .. famname .. "]]" else out[#out+1] = "[[" .. lp .. v1 .. " " .. join .. " " .. v2 .. "]]" end -- of check for sort keys end end args.noicon = "true" return assembleoutput(out, args, qid, pid1) end ------------------------------------------------------------------------------- -- qualsToTable takes most of the usual parameters. -- The usual whitelisting, blacklisting, onlysourced, etc. are implemented. -- A qid may be given, and the first unnamed parameter is the property ID, which is of type wikibase item. -- It takes a list of qualifier property IDs as |quals= -- For a given qid and property, it creates the rows of an html table, -- each row being a value of the property (optionally only if the property matches the value in |pval= ) -- each cell being the first value of the qualifier corresponding to the list in |quals ------------------------------------------------------------------------------- -- Dependencies: parseParam; setRanks; parseInput; sourced; ------------------------------------------------------------------------------- p.qualsToTable = function(frame) local args = frame.args local quals = args.quals or "" if quals == "" then return "" end args.reqranks = setRanks(args.rank) local propertyID = mw.text.trim(args[1] or "") local f = {} f.args = args local entityid, props = parseInput(f, "", propertyID) if not entityid then return "" end args.langobj = findLang(args.lang) args.lang = args.langobj.code local pval = args.pval or "" local qplist = mw.text.split(quals, "%p") -- split at punctuation and make a sequential table for i, v in ipairs(qplist) do qplist[i] = mw.text.trim(v):upper() -- remove whitespace and capitalise end local col1 = args.firstcol or "" if col1 ~= "" then col1 = col1 .. "</td><td>" end local emptycell = args.emptycell or "&nbsp;" -- construct a 2-D array of qualifier values in qvals local qvals = {} for i, v in ipairs(props) do local skip = false if pval ~= "" then local pid = v.mainsnak.datavalue and v.mainsnak.datavalue.value.id if pid ~= pval then skip = true end end if not skip then local qval = {} local vqualifiers = v.qualifiers or {} -- go through list of wanted qualifier properties for i1, v1 in ipairs(qplist) do -- check for that property ID in the statement's qualifiers local qv, qtype if vqualifiers[v1] then qtype = vqualifiers[v1][1].datatype if qtype == "time" then if vqualifiers[v1][1].snaktype == "value" then qv = mw.wikibase.renderSnak(vqualifiers[v1][1]) qv = frame:expandTemplate{title="dts", args={qv}} else qv = "?" end elseif qtype == "url" then if vqualifiers[v1][1].snaktype == "value" then qv = mw.wikibase.renderSnak(vqualifiers[v1][1]) local display = mw.ustring.match( mw.uri.decode(qv, "WIKI"), "([%w ]+)$" ) if display then qv = "[" .. qv .. " " .. display .. "]" end end else qv = mw.wikibase.formatValue(vqualifiers[v1][1]) end end -- record either the value or a placeholder qval[i1] = qv or emptycell end -- of loop through list of qualifiers -- add the list of qualifier values as a "row" in the main list qvals[#qvals+1] = qval end end -- of for each value loop local out = {} for i, v in ipairs(qvals) do out[i] = "<tr><td>" .. col1 .. table.concat(qvals[i], "</td><td>") .. "</td></tr>" end return table.concat(out, "\n") end ------------------------------------------------------------------------------- -- getGlobe takes an optional qid of a Wikidata entity passed as |qid= -- otherwise it uses the linked item for the current page. -- If returns the Qid of the globe used in P625 (coordinate location), -- or nil if there isn't one. ------------------------------------------------------------------------------- -- Dependencies: none ------------------------------------------------------------------------------- p.getGlobe = function(frame) local qid = frame.args.qid or frame.args[1] or "" if qid == "" then qid = mw.wikibase.getEntityIdForCurrentPage() end local coords = mw.wikibase.getBestStatements(qid, "P625")[1] local globeid if coords and coords.mainsnak.snaktype == "value" then globeid = coords.mainsnak.datavalue.value.globe:match("(Q%d+)") end return globeid end ------------------------------------------------------------------------------- -- getCommonsLink takes an optional qid of a Wikidata entity passed as |qid= -- It returns one of the following in order of preference: -- the Commons sitelink of the linked Wikidata item; -- the Commons sitelink of the topic's main category of the linked Wikidata item; ------------------------------------------------------------------------------- -- Dependencies: _getCommonslink(); _getSitelink(); parseParam() ------------------------------------------------------------------------------- p.getCommonsLink = function(frame) local oc = frame.args.onlycat or frame.args.onlycategories local fb = parseParam(frame.args.fallback or frame.args.fb, true) return _getCommonslink(frame.args.qid, oc, fb) end ------------------------------------------------------------------------------- -- getSitelink takes the qid of a Wikidata entity passed as |qid= -- It takes an optional parameter |wiki= to determine which wiki is to be checked for a sitelink -- If the parameter is blank, then it uses the local wiki. -- If there is a sitelink to an article available, it returns the plain text link to the article -- If there is no sitelink, it returns nil. ------------------------------------------------------------------------------- -- Dependencies: none ------------------------------------------------------------------------------- p.getSiteLink = function(frame) return _getSitelink(frame.args.qid, frame.args.wiki or mw.text.trim(frame.args[1] or "")) end ------------------------------------------------------------------------------- -- getLink has the qid of a Wikidata entity passed as the first unnamed parameter or as |qid= -- If there is a sitelink to an article on the local Wiki, it returns a link to the article -- with the Wikidata label as the displayed text. -- If there is no sitelink, it returns the label as plain text. -- If there is no label in the local language, it displays the qid instead. ------------------------------------------------------------------------------- -- Dependencies: none ------------------------------------------------------------------------------- p.getLink = function(frame) local itemID = mw.text.trim(frame.args[1] or frame.args.qid or "") if itemID == "" then return end local sitelink = mw.wikibase.getSitelink(itemID) local label = labelOrId(itemID) if sitelink then return "[[:" .. sitelink .. "|" .. label .. "]]" else return label end end ------------------------------------------------------------------------------- -- getLabel has the qid of a Wikidata entity passed as the first unnamed parameter or as |qid= -- It returns the Wikidata label for the local language as plain text. -- If there is no label in the local language, it displays the qid instead. ------------------------------------------------------------------------------- -- Dependencies: none ------------------------------------------------------------------------------- p.getLabel = function(frame) local itemID = mw.text.trim(frame.args[1] or frame.args.qid or "") if itemID == "" then return end local lang = frame.args.lang or "" if lang == "" then lang = nil end local label = labelOrId(itemID, lang) return label end ------------------------------------------------------------------------------- -- label has the qid of a Wikidata entity passed as the first unnamed parameter or as |qid= -- if no qid is supplied, it uses the qid associated with the current page. -- It returns the Wikidata label for the local language as plain text. -- If there is no label in the local language, it returns nil. ------------------------------------------------------------------------------- -- Dependencies: none ------------------------------------------------------------------------------- p.label = function(frame) local qid = mw.text.trim(frame.args[1] or frame.args.qid or "") if qid == "" then qid = mw.wikibase.getEntityIdForCurrentPage() end if not qid then return end local lang = frame.args.lang or "" if lang == "" then lang = nil end local label, success = labelOrId(qid, lang) if success then return label end end ------------------------------------------------------------------------------- -- getAT (Article Title) -- has the qid of a Wikidata entity passed as the first unnamed parameter or as |qid= -- If there is a sitelink to an article on the local Wiki, it returns the sitelink as plain text. -- If there is no sitelink or qid supplied, it returns nothing. ------------------------------------------------------------------------------- -- Dependencies: none ------------------------------------------------------------------------------- p.getAT = function(frame) local itemID = mw.text.trim(frame.args[1] or frame.args.qid or "") if itemID == "" then return end return mw.wikibase.getSitelink(itemID) end ------------------------------------------------------------------------------- -- getDescription has the qid of a Wikidata entity passed as |qid= -- (it defaults to the associated qid of the current article if omitted) -- and a local parameter passed as the first unnamed parameter. -- Any local parameter passed (other than "Wikidata" or "none") becomes the return value. -- It returns the article description for the Wikidata entity if the local parameter is "Wikidata". -- Nothing is returned if the description doesn't exist or "none" is passed as the local parameter. ------------------------------------------------------------------------------- -- Dependencies: none ------------------------------------------------------------------------------- p.getDescription = function(frame) local desc = mw.text.trim(frame.args[1] or "") local itemID = mw.text.trim(frame.args.qid or "") if itemID == "" then itemID = nil end if desc:lower() == 'wikidata' then return mw.wikibase.getDescription(itemID) elseif desc:lower() == 'none' then return nil else return desc end end ------------------------------------------------------------------------------- -- getAliases has the qid of a Wikidata entity passed as |qid= -- (it defaults to the associated qid of the current article if omitted) -- and a local parameter passed as the first unnamed parameter. -- It implements blacklisting and whitelisting with a field name of "alias" by default. -- Any local parameter passed becomes the return value. -- Otherwise it returns the aliases for the Wikidata entity with the usual list options. -- Nothing is returned if the aliases do not exist. ------------------------------------------------------------------------------- -- Dependencies: findLang(); assembleoutput() ------------------------------------------------------------------------------- p.getAliases = function(frame) local args = frame.args local fieldname = args.name or "" if fieldname == "" then fieldname = "alias" end local blacklist = args.suppressfields or args.spf or "" if blacklist:find(fieldname) then return nil end local localval = mw.text.trim(args[1] or "") if localval ~= "" then return localval end local whitelist = args.fetchwikidata or args.fwd or "" if whitelist == "" then whitelist = "NONE" end if not (whitelist == 'ALL' or whitelist:find(fieldname)) then return nil end local qid = args.qid or "" if qid == "" then qid = mw.wikibase.getEntityIdForCurrentPage() end if not qid or not mw.wikibase.entityExists(qid) then return nil end local aliases = mw.wikibase.getEntity(qid).aliases if not aliases then return nil end args.langobj = findLang(args.lang) local langcode = args.langobj.code args.lang = langcode local out = {} for k1, v1 in pairs(aliases) do if v1[1].language == langcode then for k1, v2 in ipairs(v1) do out[#out+1] = v2.value end break end end return assembleoutput(out, args, qid) end ------------------------------------------------------------------------------- -- pageId returns the page id (entity ID, Qnnn) of the current page -- returns nothing if the page is not connected to Wikidata ------------------------------------------------------------------------------- -- Dependencies: none ------------------------------------------------------------------------------- p.pageId = function(frame) return mw.wikibase.getEntityIdForCurrentPage() end ------------------------------------------------------------------------------- -- formatDate is a wrapper to export the private function format_Date ------------------------------------------------------------------------------- -- Dependencies: format_Date(); ------------------------------------------------------------------------------- p.formatDate = function(frame) return format_Date(frame.args[1], frame.args.df, frame.args.bc) end ------------------------------------------------------------------------------- -- location is a wrapper to export the private function _location -- it takes the entity-id as qid or the first unnamed parameter -- optional boolean parameter first toggles the display of the first item -- optional boolean parameter skip toggles the display to skip to the last item -- parameter debug=<y/n> (default 'n') adds error msg if not a location ------------------------------------------------------------------------------- -- Dependencies: _location(); ------------------------------------------------------------------------------- p.location = function(frame) local debug = (frame.args.debug or ""):sub(1, 1):lower() if debug == "" then debug = "n" end local qid = mw.text.trim(frame.args.qid or frame.args[1] or ""):upper() if qid == "" then qid=mw.wikibase.getEntityIdForCurrentPage() end if not qid then if debug ~= "n" then return i18n.errors["entity-not-found"] else return nil end end local first = mw.text.trim(frame.args.first or "") local skip = mw.text.trim(frame.args.skip or "") return table.concat( _location(qid, first, skip), ", " ) end ------------------------------------------------------------------------------- -- checkBlacklist implements a test to check whether a named field is allowed -- returns true if the field is not blacklisted (i.e. allowed) -- returns false if the field is blacklisted (i.e. disallowed) -- {{#if:{{#invoke:WikidataIB |checkBlacklist |name=Joe |suppressfields=Dave; Joe; Fred}} | not blacklisted | blacklisted}} -- displays "blacklisted" -- {{#if:{{#invoke:WikidataIB |checkBlacklist |name=Jim |suppressfields=Dave; Joe; Fred}} | not blacklisted | blacklisted}} -- displays "not blacklisted" ------------------------------------------------------------------------------- -- Dependencies: none ------------------------------------------------------------------------------- p.checkBlacklist = function(frame) local blacklist = frame.args.suppressfields or frame.args.spf or "" local fieldname = frame.args.name or "" if blacklist ~= "" and fieldname ~= "" then if blacklist:find(fieldname) then return false else return true end else -- one of the fields is missing: let's call that "not on the list" return true end end ------------------------------------------------------------------------------- -- emptyor returns nil if its first unnamed argument is just punctuation, whitespace or html tags -- otherwise it returns the argument unchanged (including leading/trailing space). -- If the argument may contain "=", then it must be called explicitly: -- |1=arg -- (In that case, leading and trailing spaces are trimmed) -- It finds use in infoboxes where it can replace tests like: -- {{#if: {{#invoke:WikidatIB |getvalue |P99 |fwd=ALL}} | <span class="xxx">{{#invoke:WikidatIB |getvalue |P99 |fwd=ALL}}</span> | }} -- with a form that uses just a single call to Wikidata: -- {{#invoke |WikidataIB |emptyor |1= <span class="xxx">{{#invoke:WikidataIB |getvalue |P99 |fwd=ALL}}</span> }} ------------------------------------------------------------------------------- -- Dependencies: none ------------------------------------------------------------------------------- p.emptyor = function(frame) local s = frame.args[1] or "" if s == "" then return nil end local sx = s:gsub("%s", ""):gsub("<[^>]*>", ""):gsub("%p", "") if sx == "" then return nil else return s end end ------------------------------------------------------------------------------- -- labelorid is a public function to expose the output of labelOrId() -- Pass the Q-number as |qid= or as an unnamed parameter. -- It returns the Wikidata label for that entity or the qid if no label exists. ------------------------------------------------------------------------------- -- Dependencies: labelOrId ------------------------------------------------------------------------------- p.labelorid = function(frame) return (labelOrId(frame.args.qid or frame.args[1])) end ------------------------------------------------------------------------------- -- getLang returns the MediaWiki language code of the current content. -- If optional parameter |style=full, it returns the language name. ------------------------------------------------------------------------------- -- Dependencies: none ------------------------------------------------------------------------------- p.getLang = function(frame) local style = (frame.args.style or ""):lower() local langcode = mw.language.getContentLanguage().code if style == "full" then return mw.language.fetchLanguageName( langcode ) end return langcode end ------------------------------------------------------------------------------- -- getItemLangCode takes a qid parameter (using the current page's qid if blank) -- If the item for that qid has property country (P17) it looks at the first preferred value -- If the country has an official language (P37), it looks at the first preferred value -- If that official language has a language code (P424), it returns the first preferred value -- Otherwise it returns nothing. ------------------------------------------------------------------------------- -- Dependencies: _getItemLangCode() ------------------------------------------------------------------------------- p.getItemLangCode = function(frame) return _getItemLangCode(frame.args.qid or frame.args[1]) end ------------------------------------------------------------------------------- -- findLanguage exports the local findLang() function -- It takes an optional language code and returns, in order of preference: -- the code if a known language; -- the user's language, if set; -- the server's content language. ------------------------------------------------------------------------------- -- Dependencies: findLang ------------------------------------------------------------------------------- p.findLanguage = function(frame) return findLang(frame.args.lang or frame.args[1]).code end ------------------------------------------------------------------------------- -- getQid returns the qid, if supplied -- failing that, the Wikidata entity ID of the "category's main topic (P301)", if it exists -- failing that, the Wikidata entity ID associated with the current page, if it exists -- otherwise, nothing ------------------------------------------------------------------------------- -- Dependencies: none ------------------------------------------------------------------------------- p.getQid = function(frame) local qid = (frame.args.qid or ""):upper() -- check if a qid was passed; if so, return it: if qid ~= "" then return qid end -- check if there's a "category's main topic (P301)": qid = mw.wikibase.getEntityIdForCurrentPage() if qid then local prop301 = mw.wikibase.getBestStatements(qid, "P301") if prop301[1] then local mctid = prop301[1].mainsnak.datavalue.value.id if mctid then return mctid end end end -- otherwise return the page qid (if any) return qid end ------------------------------------------------------------------------------- -- followQid takes four optional parameters: qid, props, list and all. -- If qid is not given, it uses the qid for the connected page -- or returns nil if there isn't one. -- props is a list of properties, separated by punctuation. -- If props is given, the Wikidata item for the qid is examined for each property in turn. -- If that property contains a value that is another Wikibase-item, that item's qid is returned, -- and the search terminates, unless |all=y when all of the qids are returned, separated by spaces. -- If |list= is set to a template, the qids are passed as arguments to the template. -- If props is not given, the qid is returned. ------------------------------------------------------------------------------- -- Dependencies: parseParam() ------------------------------------------------------------------------------- p._followQid = function(args) local qid = (args.qid or ""):upper() local all = parseParam(args.all, false) local list = args.list or "" if list == "" then list = nil end if qid == "" then qid = mw.wikibase.getEntityIdForCurrentPage() end if not qid then return nil end local out = {} local props = (args.props or ""):upper() if props ~= "" then for p in mw.text.gsplit(props, "%p") do -- split at punctuation and iterate p = mw.text.trim(p) for i, v in ipairs( mw.wikibase.getBestStatements(qid, p) ) do local linkedid = v.mainsnak.datavalue and v.mainsnak.datavalue.value.id if linkedid then if all then out[#out+1] = linkedid else return linkedid end -- test for all or just the first one found end -- test for value exists for that property end -- loop through values of property to follow end -- loop through list of properties to follow end if #out > 0 then local ret = "" if list then ret = mw.getCurrentFrame():expandTemplate{title = list, args = out} else ret = table.concat(out, " ") end return ret else return qid end end p.followQid = function(frame) return p._followQid(frame.args) end ------------------------------------------------------------------------------- -- globalSiteID returns the globalSiteID for the current wiki -- e.g. returns "enwiki" for the English Wikipedia, "enwikisource" for English Wikisource, etc. ------------------------------------------------------------------------------- -- Dependencies: none ------------------------------------------------------------------------------- p.globalSiteID = function(frame) return mw.wikibase.getGlobalSiteId() end ------------------------------------------------------------------------------- -- siteID returns the root of the globalSiteID -- e.g. "en" for "enwiki", "enwikisource", etc. -- treats "en-gb" as "en", etc. ------------------------------------------------------------------------------- -- Dependencies: none ------------------------------------------------------------------------------- p.siteID = function(frame) local txtlang = frame:preprocess( "{{int:lang}}" ) or "" -- This deals with specific exceptions: be-tarask -> be-x-old if txtlang == "be-tarask" then return "be_x_old" end local pos = txtlang:find("-") local ret = "" if pos then ret = txtlang:sub(1, pos-1) else ret = txtlang end return ret end ------------------------------------------------------------------------------- -- projID returns the code used to link to the reader's language's project -- e.g "en" for [[:en:WikidataIB]] -- treats "en-gb" as "en", etc. ------------------------------------------------------------------------------- -- Dependencies: none ------------------------------------------------------------------------------- p.projID = function(frame) local txtlang = frame:preprocess( "{{int:lang}}" ) or "" -- This deals with specific exceptions: be-tarask -> be-x-old if txtlang == "be-tarask" then return "be-x-old" end local pos = txtlang:find("-") local ret = "" if pos then ret = txtlang:sub(1, pos-1) else ret = txtlang end return ret end ------------------------------------------------------------------------------- -- formatNumber formats a number according to the the supplied language code ("|lang=") -- or the default language if not supplied. -- The number is the first unnamed parameter or "|num=" ------------------------------------------------------------------------------- -- Dependencies: findLang() ------------------------------------------------------------------------------- p.formatNumber = function(frame) local lang local num = tonumber(frame.args[1] or frame.args.num) or 0 lang = findLang(frame.args.lang) return lang:formatNum( num ) end ------------------------------------------------------------------------------- -- examine dumps the property (the unnamed parameter or pid) -- from the item given by the parameter 'qid' (or the other unnamed parameter) -- or from the item corresponding to the current page if qid is not supplied. -- e.g. {{#invoke:WikidataIB |examine |pid=P26 |qid=Q42}} -- or {{#invoke:WikidataIB |examine |P26 |Q42}} or any combination of these -- or {{#invoke:WikidataIB |examine |P26}} for the current page. ------------------------------------------------------------------------------- -- Dependencies: none ------------------------------------------------------------------------------- p.examine = function( frame ) local args if frame.args[1] or frame.args.pid or frame.args.qid then args = frame.args else args = frame:getParent().args end local par = {} local pid = (args.pid or ""):upper() local qid = (args.qid or ""):upper() par[1] = mw.text.trim( args[1] or "" ):upper() par[2] = mw.text.trim( args[2] or "" ):upper() table.sort(par) if par[2]:sub(1,1) == "P" then par[1], par[2] = par[2], par[1] end if pid == "" then pid = par[1] end if qid == "" then qid = par[2] end local q1 = qid:sub(1,1) if pid:sub(1,1) ~= "P" then return "No property supplied" end if q1 ~= "Q" and q1 ~= "M" then qid = mw.wikibase.getEntityIdForCurrentPage() end if not qid then return "No item for this page" end return "<pre>" .. mw.dumpObject( mw.wikibase.getAllStatements( qid, pid ) ) .. "</pre>" end ------------------------------------------------------------------------------- -- checkvalue looks for 'val' as a wikibase-item value of a property (the unnamed parameter or pid) -- from the item given by the parameter 'qid' -- or from the Wikidata item associated with the current page if qid is not supplied. -- It only checks ranks that are requested (preferred and normal by default) -- If property is not supplied, then P31 (instance of) is assumed. -- It returns val if found or nothing if not found. -- e.g. {{#invoke:WikidataIB |checkvalue |val=Q5 |pid=P31 |qid=Q42}} -- or {{#invoke:WikidataIB |checkvalue |val=Q5 |P31 |qid=Q42}} -- or {{#invoke:WikidataIB |checkvalue |val=Q5 |qid=Q42}} -- or {{#invoke:WikidataIB |checkvalue |val=Q5 |P31}} for the current page. ------------------------------------------------------------------------------- -- Dependencies: none ------------------------------------------------------------------------------- p.checkvalue = function( frame ) local args if frame.args.val then args = frame.args else args = frame:getParent().args end local val = args.val if not val then return nil end local pid = mw.text.trim(args.pid or args[1] or "P31"):upper() local qid = (args.qid or ""):upper() if pid:sub(1,1) ~= "P" then return nil end if qid:sub(1,1) ~= "Q" then qid = mw.wikibase.getEntityIdForCurrentPage() end if not qid then return nil end local ranks = setRanks(args.rank) local stats = {} if ranks.b then stats = mw.wikibase.getBestStatements(qid, pid) else stats = mw.wikibase.getAllStatements( qid, pid ) end if not stats[1] then return nil end if stats[1].mainsnak.datatype == "wikibase-item" then for k, v in pairs( stats ) do local ms = v.mainsnak if ranks[v.rank:sub(1,1)] and ms.snaktype == "value" and ms.datavalue.value.id == val then return val end end end return nil end ------------------------------------------------------------------------------- -- url2 takes a parameter url= that is a proper url and formats it for use in an infobox. -- If no parameter is supplied, it returns nothing. -- This is the equivalent of Template:URL -- but it keeps the "edit at Wikidata" pen icon out of the microformat. -- Usually it will take its url parameter directly from a Wikidata call: -- e.g. {{#invoke:WikidataIB |url2 |url={{wdib |P856 |qid=Q23317 |fwd=ALL |osd=no}} }} ------------------------------------------------------------------------------- -- Dependencies: none ------------------------------------------------------------------------------- p.url2 = function(frame) local txt = frame.args.url or "" if txt == "" then return nil end -- extract any icon local url, icon = txt:match("(.+)&nbsp;(.+)") -- make sure there's at least a space at the end url = (url or txt) .. " " icon = icon or "" -- extract any protocol like https:// local prot = url:match("(https*://).+[ \"\']") -- extract address local addr = "" if prot then addr = url:match("https*://(.+)[ \"\']") or " " else prot = "//" addr = url:match("[^%p%s]+%.(.+)[ \"\']") or " " end -- strip trailing / from end of domain-only url and add <wbr/> before . and / local disp, n = addr:gsub( "^([^/]+)/$", "%1" ):gsub("%/", "<wbr/>/"):gsub("%.", "<wbr/>.") return '<span class="url">[' .. prot .. addr .. " " .. disp .. "]</span>&nbsp;" .. icon end ------------------------------------------------------------------------------- -- getWebsite fetches the Official website (P856) and formats it for use in an infobox. -- This is similar to Template:Official website but with a url displayed, -- and it adds the "edit at Wikidata" pen icon beyond the microformat if enabled. -- A local value will override the Wikidata value. "NONE" returns nothing. -- e.g. {{#invoke:WikidataIB |getWebsite |qid= |noicon= |lang= |url= }} ------------------------------------------------------------------------------- -- Dependencies: findLang(); parseParam(); ------------------------------------------------------------------------------- p.getWebsite = function(frame) local url = frame.args.url or "" if url:upper() == "NONE" then return nil end local urls = {} local quals = {} local qid = frame.args.qid or "" if url and url ~= "" then urls[1] = url else if qid == "" then qid = mw.wikibase.getEntityIdForCurrentPage() end if not qid then return nil end local prop856 = mw.wikibase.getBestStatements(qid, "P856") for k, v in pairs(prop856) do if v.mainsnak.snaktype == "value" then urls[#urls+1] = v.mainsnak.datavalue.value if v.qualifiers and v.qualifiers["P1065"] then -- just take the first archive url (P1065) local au = v.qualifiers["P1065"][1] if au.snaktype == "value" then quals[#urls] = au.datavalue.value end -- test for archive url having a value end -- test for qualifers end -- test for website having a value end -- loop through website(s) end if #urls == 0 then return nil end local out = {} for i, u in ipairs(urls) do local link = quals[i] or u local prot, addr = u:match("(http[s]*://)(.+)") addr = addr or u local disp, n = addr:gsub("%.", "<wbr/>%.") out[#out+1] = '<span class="url">[' .. link .. " " .. disp .. "]</span>" end local langcode = findLang(frame.args.lang).code local noicon = parseParam(frame.args.noicon, false) if url == "" and not noicon then out[#out] = out[#out] .. createicon(langcode, qid, "P856") end local ret = "" if #out > 1 then ret = mw.getCurrentFrame():expandTemplate{title = "ubl", args = out} else ret = out[1] end return ret end ------------------------------------------------------------------------------- -- getAllLabels fetches the set of labels and formats it for display as wikitext. -- It takes a parameter 'qid' for arbitrary access, otherwise it uses the current page. ------------------------------------------------------------------------------- -- Dependencies: none ------------------------------------------------------------------------------- p.getAllLabels = function(frame) local args = frame.args or frame:getParent().args or {} local qid = args.qid or "" if qid == "" then qid = mw.wikibase.getEntityIdForCurrentPage() end if not qid or not mw.wikibase.entityExists(qid) then return i18n["entity-not-found"] end local labels = mw.wikibase.getEntity(qid).labels if not labels then return i18n["labels-not-found"] end local out = {} for k, v in pairs(labels) do out[#out+1] = v.value .. " (" .. v.language .. ")" end return table.concat(out, "; ") end ------------------------------------------------------------------------------- -- getAllDescriptions fetches the set of descriptions and formats it for display as wikitext. -- It takes a parameter 'qid' for arbitrary access, otherwise it uses the current page. ------------------------------------------------------------------------------- -- Dependencies: none ------------------------------------------------------------------------------- p.getAllDescriptions = function(frame) local args = frame.args or frame:getParent().args or {} local qid = args.qid or "" if qid == "" then qid = mw.wikibase.getEntityIdForCurrentPage() end if not qid or not mw.wikibase.entityExists(qid) then return i18n["entity-not-found"] end local descriptions = mw.wikibase.getEntity(qid).descriptions if not descriptions then return i18n["descriptions-not-found"] end local out = {} for k, v in pairs(descriptions) do out[#out+1] = v.value .. " (" .. v.language .. ")" end return table.concat(out, "; ") end ------------------------------------------------------------------------------- -- getAllAliases fetches the set of aliases and formats it for display as wikitext. -- It takes a parameter 'qid' for arbitrary access, otherwise it uses the current page. ------------------------------------------------------------------------------- -- Dependencies: none ------------------------------------------------------------------------------- p.getAllAliases = function(frame) local args = frame.args or frame:getParent().args or {} local qid = args.qid or "" if qid == "" then qid = mw.wikibase.getEntityIdForCurrentPage() end if not qid or not mw.wikibase.entityExists(qid) then return i18n["entity-not-found"] end local aliases = mw.wikibase.getEntity(qid).aliases if not aliases then return i18n["aliases-not-found"] end local out = {} for k1, v1 in pairs(aliases) do local lang = v1[1].language local val = {} for k1, v2 in ipairs(v1) do val[#val+1] = v2.value end out[#out+1] = table.concat(val, ", ") .. " (" .. lang .. ")" end return table.concat(out, "; ") end ------------------------------------------------------------------------------- -- showNoLinks displays the article titles that should not be linked. ------------------------------------------------------------------------------- -- Dependencies: none ------------------------------------------------------------------------------- p.showNoLinks = function(frame) local out = {} for k, v in pairs(donotlink) do out[#out+1] = k end table.sort( out ) return table.concat(out, "; ") end ------------------------------------------------------------------------------- -- checkValidity checks whether the first unnamed parameter represents a valid entity-id, -- that is, something like Q1235 or P123. -- It returns the strings "true" or "false". -- Change false to nil to return "true" or "" (easier to test with #if:). ------------------------------------------------------------------------------- -- Dependencies: none ------------------------------------------------------------------------------- function p.checkValidity(frame) local id = mw.text.trim(frame.args[1] or "") if mw.wikibase.isValidEntityId(id) then return true else return false end end ------------------------------------------------------------------------------- -- getEntityFromTitle returns the Entity-ID (Q-number) for a given title. -- Modification of Module:ResolveEntityId -- The title is the first unnamed parameter. -- The site parameter determines the site/language for the title. Defaults to current wiki. -- The showdab parameter determines whether dab pages should return the Q-number or nil. Defaults to true. -- Returns the Q-number or nil if it does not exist. ------------------------------------------------------------------------------- -- Dependencies: parseParam ------------------------------------------------------------------------------- function p.getEntityFromTitle(frame) local args=frame.args if not args[1] then args=frame:getParent().args end if not args[1] then return nil end local title = mw.text.trim(args[1]) local site = args.site or "" local showdab = parseParam(args.showdab, true) local qid = mw.wikibase.getEntityIdForTitle(title, site) if qid then local prop31 = mw.wikibase.getBestStatements(qid, "P31")[1] if not showdab and prop31 and prop31.mainsnak.datavalue.value.id == "Q4167410" then return nil else return qid end end end ------------------------------------------------------------------------------- -- getDatePrecision returns the number representing the precision of the first best date value -- for the given property. -- It takes the qid and property ID -- The meanings are given at https://www.mediawiki.org/wiki/Wikibase/DataModel#Dates_and_times -- 0 = 1 billion years .. 6 = millennium, 7 = century, 8 = decade, 9 = year, 10 = month, 11 = day -- Returns 0 (or the second unnamed parameter) if the Wikidata does not exist. ------------------------------------------------------------------------------- -- Dependencies: parseParam; sourced; ------------------------------------------------------------------------------- function p.getDatePrecision(frame) local args=frame.args if not args[1] then args=frame:getParent().args end local default = tonumber(args[2] or args.default) or 0 local prop = mw.text.trim(args[1] or "") if prop == "" then return default end local qid = args.qid or "" if qid == "" then qid = mw.wikibase.getEntityIdForCurrentPage() end if not qid then return default end local onlysrc = parseParam(args.onlysourced or args.osd, true) local stat = mw.wikibase.getBestStatements(qid, prop) for i, v in ipairs(stat) do local prec = (onlysrc == false or sourced(v)) and v.mainsnak.datavalue and v.mainsnak.datavalue.value and v.mainsnak.datavalue.value.precision if prec then return prec end end return default end return p ------------------------------------------------------------------------------- -- List of exported functions ------------------------------------------------------------------------------- --[[ _getValue getValue getPreferredValue getCoords getQualifierValue getSumOfParts getValueByQual getValueByLang getValueByRefSource getPropertyIDs getQualifierIDs getPropOfProp getAwardCat getIntersectCat getGlobe getCommonsLink getSiteLink getLink getLabel label getAT getDescription getAliases pageId formatDate location checkBlacklist emptyor labelorid getLang getItemLangCode findLanguage getQID followQid globalSiteID siteID projID formatNumber examine checkvalue url2 getWebsite getAllLabels getAllDescriptions getAllAliases showNoLinks checkValidity getEntityFromTitle getDatePrecision --]] ------------------------------------------------------------------------------- sn1bnm5zx8fp65ddtrq4qdw0dof0oyd 20405 20398 2026-08-14T10:51:53Z YaThaWinTha 42 20405 Scribunto text/plain -- Version: 2023-07-10 -- Module to implement use of a blacklist and whitelist for infobox fields -- Can take a named parameter |qid which is the Wikidata ID for the article -- if not supplied, it will use the Wikidata ID associated with the current page. -- Fields in blacklist are never to be displayed, i.e. module must return nil in all circumstances -- Fields in whitelist return local value if it exists or the Wikidata value otherwise -- The name of the field that this function is called from is passed in named parameter |name -- The name is compulsory when blacklist or whitelist is used, -- so the module returns nil if it is not supplied. -- blacklist is passed in named parameter |suppressfields (or |spf) -- whitelist is passed in named parameter |fetchwikidata (or |fwd) require("strict") local p = {} local cdate -- initialise as nil and only load _complex_date function if needed -- Module:Complex date is loaded lazily and has the following dependencies: -- Module:Calendar -- Module:ISOdate -- Module:DateI18n -- Module:I18n/complex date -- Module:Ordinal -- Module:I18n/ordinal -- Module:Yesno -- Module:Formatnum -- Module:Linguistic -- -- The following, taken from https://www.mediawiki.org/wiki/Wikibase/DataModel#Dates_and_times, -- is needed to use Module:Complex date which seemingly requires date precision as a string. -- It would work better if only the authors of the mediawiki page could spell 'millennium'. local dp = { [6] = "millennium", [7] = "century", [8] = "decade", [9] = "year", [10] = "month", [11] = "day", } local i18n = { ["errors"] = { ["property-not-found"] = "Property not found.", ["No property supplied"] = "No property supplied", ["entity-not-found"] = "Wikidata entity not found.", ["unknown-claim-type"] = "Unknown claim type.", ["unknown-entity-type"] = "Unknown entity type.", ["qualifier-not-found"] = "Qualifier not found.", ["site-not-found"] = "Wikimedia project not found.", ["labels-not-found"] = "No labels found.", ["descriptions-not-found"] = "No descriptions found.", ["aliases-not-found"] = "No aliases found.", ["unknown-datetime-format"] = "Unknown datetime format.", ["local-article-not-found"] = "Article is available on Wikidata, but not on Wikipedia", ["dab-page"] = " (dab)", }, ["months"] = { "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" }, ["century"] = "century", ["BC"] = "BC", ["BCE"] = "BCE", ["ordinal"] = { [1] = "st", [2] = "nd", [3] = "rd", ["default"] = "th" }, ["filespace"] = "File", ["Unknown"] = "Unknown", ["NaN"] = "Not a number", -- set the following to the name of a tracking category, -- e.g. "[[Category:Articles with missing Wikidata information]]", or "" to disable: ["missinginfocat"] = "[[Category:Articles with missing Wikidata information]]", ["editonwikidata"] = "Edit this on Wikidata", ["latestdatequalifier"] = function (date) return "before " .. date end, -- some languages, e.g. Bosnian use a period as a suffix after each number in a date ["datenumbersuffix"] = "", ["list separator"] = ", ", ["multipliers"] = { [0] = "", [3] = " thousand", [6] = " million", [9] = " billion", [12] = " trillion", } } -- This allows an internationisation module to override the above table if 'en' ~= mw.getContentLanguage():getCode() then require("Module:i18n").loadI18n("Module:WikidataIB/i18n", i18n) end -- This piece of html implements a collapsible container. Check the classes exist on your wiki. local collapsediv = '<div class="mw-collapsible mw-collapsed" style="width:100%; overflow:auto;" data-expandtext="{{int:show}}" data-collapsetext="{{int:hide}}">' -- Some items should not be linked. -- Each wiki can create a list of those in Module:WikidataIB/nolinks -- It should return a table called itemsindex, containing true for each item not to be linked local donotlink = {} local nolinks_exists, nolinks = pcall(mw.loadData, "Module:WikidataIB/nolinks") if nolinks_exists then donotlink = nolinks.itemsindex end -- To satisfy Wikipedia:Manual of Style/Titles, certain types of items are italicised, and others are quoted. -- The submodule [[Module:WikidataIB/titleformats]] lists the entity-ids used in 'instance of' (P31), -- which allows this module to identify the values that should be formatted. -- WikidataIB/titleformats exports a table p.formats, which is indexed by entity-id, and contains the value " or '' local formats = {} local titleformats_exists, titleformats = pcall(mw.loadData, "Module:WikidataIB/titleformats") if titleformats_exists then formats = titleformats.formats end ------------------------------------------------------------------------------- -- Private functions ------------------------------------------------------------------------------- -- ------------------------------------------------------------------------------- -- makeOrdinal needs to be internationalised along with the above: -- takes cardinal number as a numeric and returns the ordinal as a string -- we need three exceptions in English for 1st, 2nd, 3rd, 21st, .. 31st, etc. ------------------------------------------------------------------------------- -- Dependencies: none ------------------------------------------------------------------------------- local makeOrdinal = function(cardinal) local ordsuffix = i18n.ordinal.default if cardinal % 10 == 1 then ordsuffix = i18n.ordinal[1] elseif cardinal % 10 == 2 then ordsuffix = i18n.ordinal[2] elseif cardinal % 10 == 3 then ordsuffix = i18n.ordinal[3] end -- In English, 1, 21, 31, etc. use 'st', but 11, 111, etc. use 'th' -- similarly for 12 and 13, etc. if (cardinal % 100 == 11) or (cardinal % 100 == 12) or (cardinal % 100 == 13) then ordsuffix = i18n.ordinal.default end return tostring(cardinal) .. ordsuffix end ------------------------------------------------------------------------------- -- findLang takes a "langcode" parameter if supplied and valid -- otherwise it tries to create it from the user's set language ({{int:lang}}) -- failing that it uses the wiki's content language. -- It returns a language object ------------------------------------------------------------------------------- -- Dependencies: none ------------------------------------------------------------------------------- local findLang = function(langcode) local langobj langcode = mw.text.trim(langcode or "") if mw.language.isKnownLanguageTag(langcode) then langobj = mw.language.new( langcode ) else langcode = mw.getCurrentFrame():callParserFunction('int', {'lang'}) if mw.language.isKnownLanguageTag(langcode) then langobj = mw.language.new( langcode ) else langobj = mw.language.getContentLanguage() end end return langobj end ------------------------------------------------------------------------------- -- _getItemLangCode takes a qid parameter (using the current page's qid if blank) -- If the item for that qid has property country (P17) it looks at the first preferred value -- If the country has an official language (P37), it looks at the first preferred value -- If that official language has a language code (P424), it returns the first preferred value -- Otherwise it returns nothing. ------------------------------------------------------------------------------- -- Dependencies: none ------------------------------------------------------------------------------- local _getItemLangCode = function(qid) qid = mw.text.trim(qid or ""):upper() if qid == "" then qid = mw.wikibase.getEntityIdForCurrentPage() end if not qid then return end local prop17 = mw.wikibase.getBestStatements(qid, "P17")[1] if not prop17 or prop17.mainsnak.snaktype ~= "value" then return end local qid17 = prop17.mainsnak.datavalue.value.id local prop37 = mw.wikibase.getBestStatements(qid17, "P37")[1] if not prop37 or prop37.mainsnak.snaktype ~= "value" then return end local qid37 = prop37.mainsnak.datavalue.value.id local prop424 = mw.wikibase.getBestStatements(qid37, "P424")[1] if not prop424 or prop424.mainsnak.snaktype ~= "value" then return end return prop424.mainsnak.datavalue.value end ------------------------------------------------------------------------------- -- roundto takes a number (x) -- and returns it rounded to (sf) significant figures ------------------------------------------------------------------------------- -- Dependencies: none ------------------------------------------------------------------------------- local roundto = function(x, sf) if x == 0 then return 0 end local s = 1 if x < 0 then x = -x s = -1 end if sf < 1 then sf = 1 end local p = 10 ^ (math.floor(math.log10(x)) - sf + 1) x = math.floor(x / p + 0.5) * p * s -- if it's integral, cast to an integer: if x == math.floor(x) then x = math.floor(x) end return x end ------------------------------------------------------------------------------- -- decimalToDMS takes a decimal degrees (x) with precision (p) -- and returns degrees/minutes/seconds according to the precision ------------------------------------------------------------------------------- -- Dependencies: none ------------------------------------------------------------------------------- local decimalToDMS = function(x, p) -- if p is not supplied, use a precision around 0.1 seconds if not tonumber(p) then p = 1e-4 end local d = math.floor(x) local ms = (x - d) * 60 if p > 0.5 then -- precision is > 1/2 a degree if ms > 30 then d = d + 1 end ms = 0 end local m = math.floor(ms) local s = (ms - m) * 60 if p > 0.008 then -- precision is > 1/2 a minute if s > 30 then m = m +1 end s = 0 elseif p > 0.00014 then -- precision is > 1/2 a second s = math.floor(s + 0.5) elseif p > 0.000014 then -- precision is > 1/20 second s = math.floor(10 * s + 0.5) / 10 elseif p > 0.0000014 then -- precision is > 1/200 second s = math.floor(100 * s + 0.5) / 100 else -- cap it at 3 dec places for now s = math.floor(1000 * s + 0.5) / 1000 end return d, m, s end ------------------------------------------------------------------------------- -- decimalPrecision takes a decimal (x) with precision (p) -- and returns x rounded approximately to the given precision -- precision should be between 1 and 1e-6, preferably a power of 10. ------------------------------------------------------------------------------- -- Dependencies: none ------------------------------------------------------------------------------- local decimalPrecision = function(x, p) local s = 1 if x < 0 then x = -x s = -1 end -- if p is not supplied, pick an arbitrary precision if not tonumber(p) then p = 1e-4 elseif p > 1 then p = 1 elseif p < 1e-6 then p = 1e-6 else p = 10 ^ math.floor(math.log10(p)) end x = math.floor(x / p + 0.5) * p * s -- if it's integral, cast to an integer: if x == math.floor(x) then x = math.floor(x) end -- if it's less than 1e-4, it will be in exponent form, so return a string with 6dp -- 9e-5 becomes 0.000090 if math.abs(x) < 1e-4 then x = string.format("%f", x) end return x end ------------------------------------------------------------------------------- -- formatDate takes a datetime of the usual format from mw.wikibase.entity:formatPropertyValues -- like "1 August 30 BCE" as parameter 1 -- and formats it according to the df (date format) and bc parameters -- df = ["dmy" / "mdy" / "y"] default will be "dmy" -- bc = ["BC" / "BCE"] default will be "BCE" ------------------------------------------------------------------------------- -- Dependencies: none ------------------------------------------------------------------------------- local format_Date = function(datetime, dateformat, bc) local datetime = datetime or "1 August 30 BCE" -- in case of nil value -- chop off multiple vales and/or any hours, mins, etc. -- keep anything before punctuation - we just want a single date: local dateval = string.match( datetime, "[%w ]+") local dateformat = string.lower(dateformat or "dmy") -- default to dmy local bc = string.upper(bc or "") -- can't use nil for bc -- we only want to accept two possibilities: BC or default to BCE if bc == "BC" then bc = "&nbsp;" .. i18n["BC"] -- prepend a non-breaking space. else bc = "&nbsp;" .. i18n["BCE"] end local postchrist = true -- start by assuming no BCE local dateparts = {} for word in string.gmatch(dateval, "%w+") do if word == "BCE" or word == "BC" then -- *** internationalise later *** postchrist = false else -- we'll keep the parts that are not 'BCE' in a table dateparts[#dateparts + 1] = word end end if postchrist then bc = "" end -- set AD dates to no suffix *** internationalise later *** local sep = "&nbsp;" -- separator is nbsp local fdate = table.concat(dateparts, sep) -- set formatted date to same order as input -- if we have day month year, check dateformat if #dateparts == 3 then if dateformat == "y" then fdate = dateparts[3] elseif dateformat == "mdy" then fdate = dateparts[2] .. sep .. dateparts[1] .. "," .. sep .. dateparts[3] end elseif #dateparts == 2 and dateformat == "y" then fdate = dateparts[2] end return fdate .. bc end ------------------------------------------------------------------------------- -- dateFormat is the handler for properties that are of type "time" -- It takes timestamp, precision (6 to 11 per mediawiki), dateformat (y/dmy/mdy), BC format (BC/BCE), -- a plaindate switch (yes/no/adj) to en/disable "sourcing circumstances"/use adjectival form, -- any qualifiers for the property, the language, and any adjective to use like 'before'. -- It passes the date through the "complex date" function -- and returns a string with the internatonalised date formatted according to preferences. ------------------------------------------------------------------------------- -- Dependencies: findLang(); cdate(); dp[] ------------------------------------------------------------------------------- local dateFormat = function(timestamp, dprec, df, bcf, pd, qualifiers, lang, adj, model) -- output formatting according to preferences (y/dmy/mdy/ymd) df = (df or ""):lower() -- if ymd is required, return the part of the timestamp in YYYY-MM-DD form -- but apply Year zero#Astronomers fix: 1 BC = 0000; 2 BC = -0001; etc. if df == "ymd" then if timestamp:sub(1,1) == "+" then return timestamp:sub(2,11) else local yr = tonumber(timestamp:sub(2,5)) - 1 yr = ("000" .. yr):sub(-4) if yr ~= "0000" then yr = "-" .. yr end return yr .. timestamp:sub(6,11) end end -- A year can be stored like this: "+1872-00-00T00:00:00Z", -- which is processed here as if it were the day before "+1872-01-01T00:00:00Z", -- and that's the last day of 1871, so the year is wrong. -- So fix the month 0, day 0 timestamp to become 1 January instead: timestamp = timestamp:gsub("%-00%-00T", "-01-01T") -- just in case date precision is missing dprec = dprec or 11 -- override more precise dates if required dateformat is year alone: if df == "y" and dprec > 9 then dprec = 9 end -- complex date only deals with precisions from 6 to 11, so clip range dprec = dprec>11 and 11 or dprec dprec = dprec<6 and 6 or dprec -- BC format is "BC" or "BCE" bcf = (bcf or ""):upper() -- plaindate only needs the first letter (y/n/a) pd = (pd or ""):sub(1,1):lower() if pd == "" or pd == "n" or pd == "f" or pd == "0" then pd = false end -- in case language isn't passed lang = lang or findLang().code -- set adj as empty if nil adj = adj or "" -- extract the day, month, year from the timestamp local bc = timestamp:sub(1, 1)=="-" and "BC" or "" local year, month, day = timestamp:match("[+-](%d*)-(%d*)-(%d*)T") local iso = tonumber(year) -- if year is missing, let it throw an error -- this will adjust the date format to be compatible with cdate -- possible formats are Y, YY, YYY0, YYYY, YYYY-MM, YYYY-MM-DD if dprec == 6 then iso = math.floor( (iso - 1) / 1000 ) + 1 end if dprec == 7 then iso = math.floor( (iso - 1) / 100 ) + 1 end if dprec == 8 then iso = math.floor( iso / 10 ) .. "0" end if dprec == 10 then iso = year .. "-" .. month end if dprec == 11 then iso = year .. "-" .. month .. "-" .. day end -- add "circa" (Q5727902) from "sourcing circumstances" (P1480) local sc = not pd and qualifiers and qualifiers.P1480 if sc then for k1, v1 in pairs(sc) do if v1.datavalue and v1.datavalue.value.id == "Q5727902" then adj = "circa" break end end end -- deal with Julian dates: -- no point in saying that dates before 1582 are Julian - they are by default -- doesn't make sense for dates less precise than year -- we can suppress it by setting |plaindate, e.g. for use in constructing categories. local calendarmodel = "" if tonumber(year) > 1582 and dprec > 8 and not pd and model == "http://www.wikidata.org/entity/Q1985786" then calendarmodel = "julian" end if not cdate then cdate = require("Module:Complex date")._complex_date end local fdate = cdate(calendarmodel, adj, tostring(iso), dp[dprec], bc, "", "", "", "", lang, 1) -- this may have QuickStatements info appended to it in a div, so remove that fdate = fdate:gsub(' <div style="display: none;">[^<]*</div>', '') -- it may also be returned wrapped in a microformat, so remove that fdate = fdate:gsub("<[^>]*>", "") -- there may be leading zeros that we should remove fdate = fdate:gsub("^0*", "") -- if a plain date is required, then remove any links (like BC linked) if pd then fdate = fdate:gsub("%[%[.*|", ""):gsub("]]", "") end -- if 'circa', use the abbreviated form *** internationalise later *** fdate = fdate:gsub('circa ', '<abbr title="circa">c.</abbr>&nbsp;') -- deal with BC/BCE if bcf == "BCE" then fdate = fdate:gsub('BC', 'BCE') end -- deal with mdy format if df == "mdy" then fdate = fdate:gsub("(%d+) (%w+) (%d+)", "%2 %1, %3") end -- deal with adjectival form *** internationalise later *** if pd == "a" then fdate = fdate:gsub(' century', '-century') end return fdate end ------------------------------------------------------------------------------- -- parseParam takes a (string) parameter, e.g. from the list of frame arguments, -- and makes "false", "no", and "0" into the (boolean) false -- it makes the empty string and nil into the (boolean) value passed as default -- allowing the parameter to be true or false by default. -- It returns a boolean. ------------------------------------------------------------------------------- -- Dependencies: none ------------------------------------------------------------------------------- local parseParam = function(param, default) if type(param) == "boolean" then param = tostring(param) end if param and param ~= "" then param = param:lower() if (param == "false") or (param:sub(1,1) == "n") or (param == "0") then return false else return true end else return default end end ------------------------------------------------------------------------------- -- _getSitelink takes the qid of a Wikidata entity passed as |qid= -- It takes an optional parameter |wiki= to determine which wiki is to be checked for a sitelink -- If the parameter is blank, then it uses the local wiki. -- If there is a sitelink to an article available, it returns the plain text link to the article -- If there is no sitelink, it returns nil. ------------------------------------------------------------------------------- -- Dependencies: none ------------------------------------------------------------------------------- local _getSitelink = function(qid, wiki) qid = (qid or ""):upper() if qid == "" then qid = mw.wikibase.getEntityIdForCurrentPage() end if not qid then return nil end wiki = wiki or "" local sitelink if wiki == "" then sitelink = mw.wikibase.getSitelink(qid) else sitelink = mw.wikibase.getSitelink(qid, wiki) end return sitelink end ------------------------------------------------------------------------------- -- _getCommonslink takes an optional qid of a Wikidata entity passed as |qid= -- It returns one of the following in order of preference: -- the Commons sitelink of the Wikidata entity - but not if onlycat=true and it's not a category; -- the Commons sitelink of the topic's main category of the Wikidata entity; -- the Commons category of the Wikidata entity - unless fallback=false. ------------------------------------------------------------------------------- -- Dependencies: _getSitelink(); parseParam() ------------------------------------------------------------------------------- local _getCommonslink = function(qid, onlycat, fallback) qid = (qid or ""):upper() if qid == "" then qid = mw.wikibase.getEntityIdForCurrentPage() end if not qid then return nil end onlycat = parseParam(onlycat, false) if fallback == "" then fallback = nil end local sitelink = _getSitelink(qid, "commonswiki") if onlycat and sitelink and sitelink:sub(1,9) ~= "Category:" then sitelink = nil end if not sitelink then -- check for topic's main category local prop910 = mw.wikibase.getBestStatements(qid, "P910")[1] if prop910 then local tmcid = prop910.mainsnak.datavalue and prop910.mainsnak.datavalue.value.id sitelink = _getSitelink(tmcid, "commonswiki") end if not sitelink then -- check for list's main category local prop1754 = mw.wikibase.getBestStatements(qid, "P1754")[1] if prop1754 then local tmcid = prop1754.mainsnak.datavalue and prop1754.mainsnak.datavalue.value.id sitelink = _getSitelink(tmcid, "commonswiki") end end end if not sitelink and fallback then -- check for Commons category (string value) local prop373 = mw.wikibase.getBestStatements(qid, "P373")[1] if prop373 then sitelink = prop373.mainsnak.datavalue and prop373.mainsnak.datavalue.value if sitelink then sitelink = "Category:" .. sitelink end end end return sitelink end ------------------------------------------------------------------------------- -- The label in a Wikidata item is subject to vulnerabilities -- that an attacker might try to exploit. -- It needs to be 'sanitised' by removing any wikitext before use. -- If it doesn't exist, return the id for the item -- a second (boolean) value is also returned, value is true when the label exists ------------------------------------------------------------------------------- -- Dependencies: none ------------------------------------------------------------------------------- local labelOrId = function(id, lang) if lang == "default" then lang = findLang().code end local label if lang then label = mw.wikibase.getLabelByLang(id, lang) else label = mw.wikibase.getLabel(id) end if label then return mw.text.nowiki(label), true else return id, false end end ------------------------------------------------------------------------------- -- linkedItem takes an entity-id and returns a string, linked if possible. -- This is the handler for "wikibase-item". Preferences: -- 1. Display linked disambiguated sitelink if it exists -- 2. Display linked label if it is a redirect -- 3. TBA: Display an inter-language link for the label if it exists other than in default language -- 4. Display unlinked label if it exists -- 5. Display entity-id for now to indicate a label could be provided -- dtxt is text to be used instead of label, or nil. -- shortname is boolean switch to use P1813 (short name) instead of label if true. -- lang is the current language code. -- uselbl is boolean switch to force display of the label instead of the sitelink (default: false) -- linkredir is boolean switch to allow linking to a redirect (default: false) -- formatvalue is boolean switch to allow formatting as italics or quoted (default: false) ------------------------------------------------------------------------------- -- Dependencies: labelOrId(); donotlink[] ------------------------------------------------------------------------------- local linkedItem = function(id, args) local lprefix = (args.lp or args.lprefix or args.linkprefix or ""):gsub('"', '') -- toughen against nil values passed local lpostfix = (args.lpostfix or ""):gsub('"', '') local prefix = (args.prefix or ""):gsub('"', '') local postfix = (args.postfix or ""):gsub('"', '') local dtxt = args.dtxt local shortname = args.shortname or args.sn local lang = args.lang or "en" -- fallback to default if missing local uselbl = args.uselabel or args.uselbl uselbl = parseParam(uselbl, false) local linkredir = args.linkredir linkredir = parseParam(linkredir, false) local formatvalue = args.formatvalue or args.fv formatvalue = parseParam(formatvalue, false) -- see if item might need italics or quotes local fmt = "" if next(formats) and formatvalue then for k, v in ipairs( mw.wikibase.getBestStatements(id, "P31") ) do if v.mainsnak.datavalue and formats[v.mainsnak.datavalue.value.id] then fmt = formats[v.mainsnak.datavalue.value.id] break -- pick the first match end end end local disp local sitelink = mw.wikibase.getSitelink(id) local label, islabel if dtxt then label, islabel = dtxt, true elseif shortname then -- see if there is a shortname in our language, and set label to it for k, v in ipairs( mw.wikibase.getBestStatements(id, "P1813") ) do if v.mainsnak.datavalue.value.language == lang then label, islabel = v.mainsnak.datavalue.value.text, true break end -- test for language match end -- loop through values of short name -- if we have no label set, then there was no shortname available if not islabel then label, islabel = labelOrId(id) shortname = false end else label, islabel = labelOrId(id) end if mw.site.siteName ~= "Wikimedia Commons" then if sitelink then if not (dtxt or shortname) then -- if sitelink and label are the same except for case, no need to process further if sitelink:lower() ~= label:lower() then -- strip any namespace or dab from the sitelink local pos = sitelink:find(":") or 0 local slink = sitelink if pos > 0 then local pfx = sitelink:sub(1,pos-1) if mw.site.namespaces[pfx] then -- that prefix is a valid namespace, so remove it slink = sitelink:sub(pos+1) end end -- remove stuff after commas or inside parentheses - ie. dabs slink = slink:gsub("%s%(.+%)$", ""):gsub(",.+$", "") -- if uselbl is false, use sitelink instead of label if not uselbl then -- use slink as display, preserving label case - find("^%u") is true for 1st char uppercase if label:find("^%u") then label = slink:gsub("^(%l)", string.upper) else label = slink:gsub("^(%u)", string.lower) end end end end if donotlink[label] then disp = prefix .. fmt .. label .. fmt .. postfix else disp = "[[" .. lprefix .. sitelink .. lpostfix .. "|" .. prefix .. fmt .. label .. fmt .. postfix .. "]]" end elseif islabel then -- no sitelink, label exists, so check if a redirect with that title exists, if linkredir is true -- display plain label by default disp = prefix .. fmt .. label .. fmt .. postfix if linkredir then local artitle = mw.title.new(label, 0) -- only nil if label has invalid chars if not donotlink[label] and artitle and artitle.redirectTarget then -- there's a redirect with the same title as the label, so let's link to that disp = "[[".. lprefix .. label .. lpostfix .. "|" .. prefix .. fmt .. label .. fmt .. postfix .. "]]" end end -- test if article title exists as redirect on current Wiki else -- no sitelink and no label, so return whatever was returned from labelOrId for now -- add tracking category [[Category:Articles with missing Wikidata information]] -- for enwiki, just return the tracking category if mw.wikibase.getGlobalSiteId() == "enwiki" then disp = i18n.missinginfocat else disp = prefix .. label .. postfix .. i18n.missinginfocat end end else local ccat = mw.wikibase.getBestStatements(id, "P373")[1] if ccat and ccat.mainsnak.datavalue then ccat = ccat.mainsnak.datavalue.value disp = "[[" .. lprefix .. "Category:" .. ccat .. lpostfix .. "|" .. prefix .. label .. postfix .. "]]" elseif sitelink then -- this asumes that if a sitelink exists, then a label also exists disp = "[[" .. lprefix .. sitelink .. lpostfix .. "|" .. prefix .. label .. postfix .. "]]" else -- no sitelink and no Commons cat, so return label from labelOrId for now disp = prefix .. label .. postfix end end return disp end ------------------------------------------------------------------------------- -- sourced takes a table representing a statement that may or may not have references -- it looks for a reference sourced to something not containing the word "wikipedia" -- it returns a boolean = true if it finds a sourced reference. ------------------------------------------------------------------------------- -- Dependencies: none ------------------------------------------------------------------------------- local sourced = function(claim) if claim.references then for kr, vr in pairs(claim.references) do local ref = mw.wikibase.renderSnaks(vr.snaks) if not ref:find("Wiki") then return true end end end end ------------------------------------------------------------------------------- -- setRanks takes a flag (parameter passed) that requests the values to return -- "b[est]" returns preferred if available, otherwise normal -- "p[referred]" returns preferred -- "n[ormal]" returns normal -- "d[eprecated]" returns deprecated -- multiple values are allowed, e.g. "preferred normal" (which is the default) -- "best" will override the other flags, and set p and n ------------------------------------------------------------------------------- -- Dependencies: none ------------------------------------------------------------------------------- local setRanks = function(rank) rank = (rank or ""):lower() -- if nothing passed, return preferred and normal -- if rank == "" then rank = "p n" end local ranks = {} for w in string.gmatch(rank, "%a+") do w = w:sub(1,1) if w == "b" or w == "p" or w == "n" or w == "d" then ranks[w] = true end end -- check if "best" is requested or no ranks requested; and if so, set preferred and normal if ranks.b or not next(ranks) then ranks.p = true ranks.n = true end return ranks end ------------------------------------------------------------------------------- -- parseInput processes the Q-id , the blacklist and the whitelist -- if an input parameter is supplied, it returns that and ends the call. -- it returns (1) either the qid or nil indicating whether or not the call should continue -- and (2) a table containing all of the statements for the propertyID and relevant Qid -- if "best" ranks are requested, it returns those instead of all non-deprecated ranks ------------------------------------------------------------------------------- -- Dependencies: none ------------------------------------------------------------------------------- local parseInput = function(frame, input_parm, property_id) -- There may be a local parameter supplied, if it's blank, set it to nil input_parm = mw.text.trim(input_parm or "") if input_parm == "" then input_parm = nil end -- return nil if Wikidata is not available if not mw.wikibase then return false, input_parm end local args = frame.args -- can take a named parameter |qid which is the Wikidata ID for the article. -- if it's not supplied, use the id for the current page local qid = args.qid or "" if qid == "" then qid = mw.wikibase.getEntityIdForCurrentPage() end -- if there's no Wikidata item for the current page return nil if not qid then return false, input_parm end -- The blacklist is passed in named parameter |suppressfields local blacklist = args.suppressfields or args.spf or "" -- The whitelist is passed in named parameter |fetchwikidata local whitelist = args.fetchwikidata or args.fwd or "" if whitelist == "" then whitelist = "NONE" end -- The name of the field that this function is called from is passed in named parameter |name local fieldname = args.name or "" if blacklist ~= "" then -- The name is compulsory when blacklist is used, so return nil if it is not supplied if fieldname == "" then return false, nil end -- If this field is on the blacklist, then return nil if blacklist:find(fieldname) then return false, nil end end -- If we got this far then we're not on the blacklist -- The blacklist overrides any locally supplied parameter as well -- If a non-blank input parameter was supplied return it if input_parm then return false, input_parm end -- We can filter out non-valid properties if property_id:sub(1,1):upper() ~="P" or property_id == "P0" then return false, nil end -- Otherwise see if this field is on the whitelist: -- needs a bit more logic because find will return its second value = 0 if fieldname is "" -- but nil if fieldname not found on whitelist local _, found = whitelist:find(fieldname) found = ((found or 0) > 0) if whitelist ~= 'ALL' and (whitelist:upper() == "NONE" or not found) then return false, nil end -- See what's on Wikidata (the call always returns a table, but it may be empty): local props = {} if args.reqranks.b then props = mw.wikibase.getBestStatements(qid, property_id) else props = mw.wikibase.getAllStatements(qid, property_id) end if props[1] then return qid, props end -- no property on Wikidata return false, nil end ------------------------------------------------------------------------------- -- createicon assembles the "Edit at Wikidata" pen icon. -- It returns a wikitext string inside a span class="penicon" -- if entityID is nil or empty, the ID associated with current page is used -- langcode and propertyID may be nil or empty ------------------------------------------------------------------------------- -- Dependencies: i18n[]; ------------------------------------------------------------------------------- local createicon = function(langcode, entityID, propertyID) langcode = langcode or "" if not entityID or entityID == "" then entityID= mw.wikibase.getEntityIdForCurrentPage() end propertyID = propertyID or "" local icon = "&nbsp;<span class='penicon autoconfirmed-show'>[[" -- "&nbsp;<span data-bridge-edit-flow='overwrite' class='penicon'>[[" -> enable Wikidata Bridge .. i18n["filespace"] .. ":OOjs UI icon edit-ltr-progressive.svg |frameless |text-top |10px |alt=" .. i18n["editonwikidata"] .. "|link=https://www.wikidata.org/wiki/" .. entityID if langcode ~= "" then icon = icon .. "?uselang=" .. langcode end if propertyID ~= "" then icon = icon .. "#" .. propertyID end icon = icon .. "|" .. i18n["editonwikidata"] .. "]]</span>" return icon end ------------------------------------------------------------------------------- -- assembleoutput takes the sequence table containing the property values -- and formats it according to switches given. It returns a string or nil. -- It uses the entityID (and optionally propertyID) to create a link in the pen icon. ------------------------------------------------------------------------------- -- Dependencies: parseParam(); ------------------------------------------------------------------------------- local assembleoutput = function(out, args, entityID, propertyID) -- sorted is a boolean passed to enable sorting of the values returned -- if nothing or an empty string is passed set it false -- if "false" or "no" or "0" is passed set it false local sorted = parseParam(args.sorted, false) -- noicon is a boolean passed to suppress the trailing "edit at Wikidata" icon -- for use when the value is processed further by the infobox -- if nothing or an empty string is passed set it false -- if "false" or "no" or "0" is passed set it false local noic = parseParam(args.noicon, false) -- list is the name of a template that a list of multiple values is passed through -- examples include "hlist" and "ubl" -- setting it to "prose" produces something like "1, 2, 3, and 4" local list = args.list or "" -- sep is a string that is used to separate multiple returned values -- if nothing or an empty string is passed set it to the default -- any double-quotes " are stripped out, so that spaces may be passed -- e.g. |sep=" - " local sepdefault = i18n["list separator"] local separator = args.sep or "" separator = string.gsub(separator, '"', '') if separator == "" then separator = sepdefault end -- collapse is a number that determines the maximum number of returned values -- before the output is collapsed. -- Zero or not a number result in no collapsing (default becomes 0). local collapse = tonumber(args.collapse) or 0 -- replacetext (rt) is a string that is returned instead of any non-empty Wikidata value -- this is useful for tracking and debugging local replacetext = mw.text.trim(args.rt or args.replacetext or "") -- if there's anything to return, then return a list -- comma-separated by default, but may be specified by the sep parameter -- optionally specify a hlist or ubl or a prose list, etc. local strout if #out > 0 then if sorted then table.sort(out) end -- if there's something to display and a pen icon is wanted, add it the end of the last value local hasdisplay = false for i, v in ipairs(out) do if v ~= i18n.missinginfocat then hasdisplay = true break end end if not noic and hasdisplay then out[#out] = out[#out] .. createicon(args.langobj.code, entityID, propertyID) end if list == "" then strout = table.concat(out, separator) elseif list:lower() == "prose" then strout = mw.text.listToText( out ) else strout = mw.getCurrentFrame():expandTemplate{title = list, args = out} end if collapse >0 and #out > collapse then strout = collapsediv .. strout .. "</div>" end else strout = nil -- no items had valid reference end if replacetext ~= "" and strout then strout = replacetext end return strout end ------------------------------------------------------------------------------- -- rendersnak takes a table (propval) containing the information stored on one property value -- and returns the value as a string and its language if monolingual text. -- It handles data of type: -- wikibase-item -- time -- string, url, commonsMedia, external-id -- quantity -- globe-coordinate -- monolingualtext -- It also requires linked, the link/pre/postfixes, uabbr, and the arguments passed from frame. -- The optional filter parameter allows quantities to be be filtered by unit Qid. ------------------------------------------------------------------------------- -- Dependencies: parseParam(); labelOrId(); i18n[]; dateFormat(); -- roundto(); decimalPrecision(); decimalToDMS(); linkedItem(); ------------------------------------------------------------------------------- local rendersnak = function(propval, args, linked, lpre, lpost, pre, post, uabbr, filter) lpre = lpre or "" lpost = lpost or "" pre = pre or "" post = post or "" args.lang = args.lang or findLang().code -- allow values to display a fixed text instead of label local dtxt = args.displaytext or args.dt if dtxt == "" then dtxt = nil end -- switch to use display of short name (P1813) instead of label local shortname = args.shortname or args.sn shortname = parseParam(shortname, false) local snak = propval.mainsnak or propval local dtype = snak.datatype local dv = snak.datavalue dv = dv and dv.value -- value and monolingual text language code returned local val, mlt if propval.rank and not args.reqranks[propval.rank:sub(1, 1)] then -- val is nil: value has a rank that isn't requested ------------------------------------ elseif snak.snaktype == "somevalue" then -- value is unknown val = i18n["Unknown"] ------------------------------------ elseif snak.snaktype == "novalue" then -- value is none -- val = "No value" -- don't return anything ------------------------------------ elseif dtype == "wikibase-item" then -- data type is a wikibase item: -- it's wiki-linked value, so output as link if enabled and possible local qnumber = dv.id if linked then val = linkedItem(qnumber, args) else -- no link wanted so check for display-text, otherwise test for lang code local label, islabel if dtxt then label = dtxt else label, islabel = labelOrId(qnumber) local langlabel = mw.wikibase.getLabelByLang(qnumber, args.lang) if langlabel then label = mw.text.nowiki( langlabel ) end end val = pre .. label .. post end -- test for link required ------------------------------------ elseif dtype == "time" then -- data type is time: -- time is in timestamp format -- date precision is integer per mediawiki -- output formatting according to preferences (y/dmy/mdy) -- BC format as BC or BCE -- plaindate is passed to disable looking for "sourcing cirumstances" -- or to set the adjectival form -- qualifiers (if any) is a nested table or nil -- lang is given, or user language, or site language -- -- Here we can check whether args.df has a value -- If not, use code from Module:Sandbox/RexxS/Getdateformat to set it from templates like {{Use mdy dates}} val = dateFormat(dv.time, dv.precision, args.df, args.bc, args.pd, propval.qualifiers, args.lang, "", dv.calendarmodel) ------------------------------------ -- data types which are strings: elseif dtype == "commonsMedia" or dtype == "external-id" or dtype == "string" or dtype == "url" then -- commonsMedia or external-id or string or url -- all have mainsnak.datavalue.value as string if (lpre == "" or lpre == ":") and lpost == "" then -- don't link if no linkpre/postfix or linkprefix is just ":" val = pre .. dv .. post elseif dtype == "external-id" then val = "[" .. lpre .. dv .. lpost .. " " .. pre .. dv .. post .. "]" else val = "[[" .. lpre .. dv .. lpost .. "|" .. pre .. dv .. post .. "]]" end -- check for link requested (i.e. either linkprefix or linkpostfix exists) ------------------------------------ -- data types which are quantities: elseif dtype == "quantity" then -- quantities have mainsnak.datavalue.value.amount and mainsnak.datavalue.value.unit -- the unit is of the form http://www.wikidata.org/entity/Q829073 -- -- implement a switch to turn on/off numerical formatting later local fnum = true -- -- a switch to turn on/off conversions - only for en-wiki local conv = parseParam(args.conv or args.convert, false) -- if we have conversions, we won't have formatted numbers or scales if conv then uabbr = true fnum = false args.scale = "0" end -- -- a switch to turn on/off showing units, default is true local showunits = parseParam(args.su or args.showunits, true) -- -- convert amount to a number local amount = tonumber(dv.amount) or i18n["NaN"] -- -- scale factor for millions, billions, etc. local sc = tostring(args.scale or ""):sub(1,1):lower() local scale if sc == "a" then -- automatic scaling if amount > 1e15 then scale = 12 elseif amount > 1e12 then scale = 9 elseif amount > 1e9 then scale = 6 elseif amount > 1e6 then scale = 3 else scale = 0 end else scale = tonumber(args.scale) or 0 if scale < 0 or scale > 12 then scale = 0 end scale = math.floor(scale/3) * 3 end local factor = 10^scale amount = amount / factor -- ranges: local range = "" -- check if upper and/or lower bounds are given and significant local upb = tonumber(dv.upperBound) local lowb = tonumber(dv.lowerBound) if upb and lowb then -- differences rounded to 2 sig fig: local posdif = roundto(upb - amount, 2) / factor local negdif = roundto(amount - lowb, 2) / factor upb, lowb = amount + posdif, amount - negdif -- round scaled numbers to integers or 4 sig fig if (scale > 0 or sc == "a") then if amount < 1e4 then amount = roundto(amount, 4) else amount = math.floor(amount + 0.5) end end if fnum then amount = args.langobj:formatNum( amount ) end if posdif ~= negdif then -- non-symmetrical range = " +" .. posdif .. " -" .. negdif elseif posdif ~= 0 then -- symmetrical and non-zero range = " ±" .. posdif else -- otherwise range is zero, so leave it as "" end else -- round scaled numbers to integers or 4 sig fig if (scale > 0 or sc == "a") then if amount < 1e4 then amount = roundto(amount, 4) else amount = math.floor(amount + 0.5) end end if fnum then amount = args.langobj:formatNum( amount ) end end -- unit names and symbols: -- extract the qid in the form 'Qnnn' from the value.unit url -- and then fetch the label from that - or symbol if unitabbr is true local unit = "" local usep = "" local usym = "" local unitqid = string.match( dv.unit, "(Q%d+)" ) if filter and unitqid ~= filter then return nil end if unitqid and showunits then local uname = mw.wikibase.getLabelByLang(unitqid, args.lang) or "" if uname ~= "" then usep, unit = " ", uname end if uabbr then -- see if there's a unit symbol (P5061) local unitsymbols = mw.wikibase.getBestStatements(unitqid, "P5061") -- construct fallback table, add local lang and multiple languages local fbtbl = mw.language.getFallbacksFor( args.lang ) table.insert( fbtbl, 1, args.lang ) table.insert( fbtbl, 1, "mul" ) local found = false for idx1, us in ipairs(unitsymbols) do for idx2, fblang in ipairs(fbtbl) do if us.mainsnak.datavalue.value.language == fblang then usym = us.mainsnak.datavalue.value.text found = true break end if found then break end end -- loop through fallback table end -- loop through values of P5061 if found then usep, unit = "&nbsp;", usym end end end -- format display: if conv then if range == "" then val = mw.getCurrentFrame():expandTemplate{title = "cvt", args = {amount, unit}} else val = mw.getCurrentFrame():expandTemplate{title = "cvt", args = {lowb, "to", upb, unit}} end elseif unit == "$" or unit == "£" then val = unit .. amount .. range .. i18n.multipliers[scale] else val = amount .. range .. i18n.multipliers[scale] .. usep .. unit end ------------------------------------ -- datatypes which are global coordinates: elseif dtype == "globe-coordinate" then -- 'display' parameter defaults to "inline, title" *** unused for now *** -- local disp = args.display or "" -- if disp == "" then disp = "inline, title" end -- -- format parameter switches from deg/min/sec to decimal degrees -- default is deg/min/sec -- decimal degrees needs |format = dec local form = (args.format or ""):lower():sub(1,3) if form ~= "dec" then form = "dms" end -- not needed for now -- -- show parameter allows just the latitude, or just the longitude, or both -- to be returned as a signed decimal, ignoring the format parameter. local show = (args.show or ""):lower() if show ~= "longlat" then show = show:sub(1,3) end -- local lat, long, prec = dv.latitude, dv.longitude, dv.precision if show == "lat" then val = decimalPrecision(lat, prec) elseif show == "lon" then val = decimalPrecision(long, prec) elseif show == "longlat" then val = decimalPrecision(long, prec) .. ", " .. decimalPrecision(lat, prec) else local ns = "N" local ew = "E" if lat < 0 then ns = "S" lat = - lat end if long < 0 then ew = "W" long = - long end if form == "dec" then lat = decimalPrecision(lat, prec) long = decimalPrecision(long, prec) val = lat .. "°" .. ns .. " " .. long .. "°" .. ew else local latdeg, latmin, latsec = decimalToDMS(lat, prec) local longdeg, longmin, longsec = decimalToDMS(long, prec) if latsec == 0 and longsec == 0 then if latmin == 0 and longmin == 0 then val = latdeg .. "°" .. ns .. " " .. longdeg .. "°" .. ew else val = latdeg .. "°" .. latmin .. "′" .. ns .. " " val = val .. longdeg .. "°".. longmin .. "′" .. ew end else val = latdeg .. "°" .. latmin .. "′" .. latsec .. "″" .. ns .. " " val = val .. longdeg .. "°" .. longmin .. "′" .. longsec .. "″" .. ew end end end ------------------------------------ elseif dtype == "monolingualtext" then -- data type is Monolingual text: -- has mainsnak.datavalue.value as a table containing language/text pairs -- collect all the values in 'out' and languages in 'mlt' and process them later val = pre .. dv.text .. post mlt = dv.language ------------------------------------ else -- some other data type so write a specific handler val = "unknown data type: " .. dtype end -- of datatype/unknown value/sourced check return val, mlt end ------------------------------------------------------------------------------- -- propertyvalueandquals takes a property object, the arguments passed from frame, -- and a qualifier propertyID. -- It returns a sequence (table) of values representing the values of that property -- and qualifiers that match the qualifierID if supplied. ------------------------------------------------------------------------------- -- Dependencies: parseParam(); sourced(); labelOrId(); i18n.latestdatequalifier(); format_Date(); -- makeOrdinal(); roundto(); decimalPrecision(); decimalToDMS(); assembleoutput(); ------------------------------------------------------------------------------- local function propertyvalueandquals(objproperty, args, qualID) -- needs this style of declaration because it's re-entrant -- onlysourced is a boolean passed to return only values sourced to other than Wikipedia -- if nothing or an empty string is passed set it true local onlysrc = parseParam(args.onlysourced or args.osd, true) -- linked is a a boolean that enables the link to a local page via sitelink -- if nothing or an empty string is passed set it true local linked = parseParam(args.linked, true) -- prefix is a string that may be nil, empty (""), or a string of characters -- this is prefixed to each value -- useful when when multiple values are returned -- any double-quotes " are stripped out, so that spaces may be passed local prefix = (args.prefix or ""):gsub('"', '') -- postfix is a string that may be nil, empty (""), or a string of characters -- this is postfixed to each value -- useful when when multiple values are returned -- any double-quotes " are stripped out, so that spaces may be passed local postfix = (args.postfix or ""):gsub('"', '') -- linkprefix is a string that may be nil, empty (""), or a string of characters -- this creates a link and is then prefixed to each value -- useful when when multiple values are returned and indirect links are needed -- any double-quotes " are stripped out, so that spaces may be passed local lprefix = (args.linkprefix or args.lp or ""):gsub('"', '') -- linkpostfix is a string that may be nil, empty (""), or a string of characters -- this is postfixed to each value when linking is enabled with lprefix -- useful when when multiple values are returned -- any double-quotes " are stripped out, so that spaces may be passed local lpostfix = (args.linkpostfix or ""):gsub('"', '') -- wdlinks is a boolean passed to enable links to Wikidata when no article exists -- if nothing or an empty string is passed set it false local wdl = parseParam(args.wdlinks or args.wdl, false) -- unitabbr is a boolean passed to enable unit abbreviations for common units -- if nothing or an empty string is passed set it false local uabbr = parseParam(args.unitabbr or args.uabbr, false) -- qualsonly is a boolean passed to return just the qualifiers -- if nothing or an empty string is passed set it false local qualsonly = parseParam(args.qualsonly or args.qo, false) -- maxvals is a string that may be nil, empty (""), or a number -- this determines how many items may be returned when multiple values are available -- setting it = 1 is useful where the returned string is used within another call, e.g. image local maxvals = tonumber(args.maxvals) or 0 -- pd (plain date) is a string: yes/true/1 | no/false/0 | adj -- to disable/enable "sourcing cirumstances" or use adjectival form for the plain date local pd = args.plaindate or args.pd or "no" args.pd = pd -- allow qualifiers to have a different date format; default to year unless qualsonly is set args.qdf = args.qdf or args.qualifierdateformat or args.df or (not qualsonly and "y") local lang = args.lang or findLang().code -- qualID is a string list of wanted qualifiers or "ALL" qualID = qualID or "" -- capitalise list of wanted qualifiers and substitute "DATES" qualID = qualID:upper():gsub("DATES", "P580, P582") local allflag = (qualID == "ALL") -- create table of wanted qualifiers as key local qwanted = {} -- create sequence of wanted qualifiers local qorder = {} for q in mw.text.gsplit(qualID, "%p") do -- split at punctuation and iterate local qtrim = mw.text.trim(q) if qtrim ~= "" then qwanted[mw.text.trim(q)] = true qorder[#qorder+1] = qtrim end end -- qsep is the output separator for rendering qualifier list local qsep = (args.qsep or ""):gsub('"', '') -- qargs are the arguments to supply to assembleoutput() local qargs = { ["osd"] = "false", ["linked"] = tostring(linked), ["prefix"] = args.qprefix, ["postfix"] = args.qpostfix, ["linkprefix"] = args.qlinkprefix or args.qlp, ["linkpostfix"] = args.qlinkpostfix, ["wdl"] = "false", ["unitabbr"] = tostring(uabbr), ["maxvals"] = 0, ["sorted"] = tostring(args.qsorted), ["noicon"] = "true", ["list"] = args.qlist, ["sep"] = qsep, ["langobj"] = args.langobj, ["lang"] = args.langobj.code, ["df"] = args.qdf, ["sn"] = parseParam(args.qsn or args.qshortname, false), } -- all proper values of a Wikidata property will be the same type as the first -- qualifiers don't have a mainsnak, properties do local datatype = objproperty[1].datatype or objproperty[1].mainsnak.datatype -- out[] holds the a list of returned values for this property -- mlt[] holds the language code if the datatype is monolingual text local out = {} local mlt = {} for k, v in ipairs(objproperty) do local hasvalue = true if (onlysrc and not sourced(v)) then -- no value: it isn't sourced when onlysourced=true hasvalue = false else local val, lcode = rendersnak(v, args, linked, lprefix, lpostfix, prefix, postfix, uabbr) if not val then hasvalue = false -- rank doesn't match elseif qualsonly and qualID then -- suppress value returned: only qualifiers are requested else out[#out+1], mlt[#out+1] = val, lcode end end -- See if qualifiers are to be returned: local snak = v.mainsnak or v if hasvalue and v.qualifiers and qualID ~= "" and snak.snaktype~="novalue" then -- collect all wanted qualifier values returned in qlist, indexed by propertyID local qlist = {} local timestart, timeend = "", "" -- loop through qualifiers for k1, v1 in pairs(v.qualifiers) do if allflag or qwanted[k1] then if k1 == "P1326" then local ts = v1[1].datavalue.value.time local dp = v1[1].datavalue.value.precision qlist[k1] = dateFormat(ts, dp, args.qdf, args.bc, pd, "", lang, "before") elseif k1 == "P1319" then local ts = v1[1].datavalue.value.time local dp = v1[1].datavalue.value.precision qlist[k1] = dateFormat(ts, dp, args.qdf, args.bc, pd, "", lang, "after") elseif k1 == "P580" then timestart = propertyvalueandquals(v1, qargs)[1] or "" -- treat only one start time as valid elseif k1 == "P582" then timeend = propertyvalueandquals(v1, qargs)[1] or "" -- treat only one end time as valid else local q = assembleoutput(propertyvalueandquals(v1, qargs), qargs) -- we already deal with circa via 'sourcing circumstances' if the datatype was time -- circa may be either linked or unlinked *** internationalise later *** if datatype ~= "time" or q ~= "circa" and not (type(q) == "string" and q:find("circa]]")) then qlist[k1] = q end end end -- of test for wanted end -- of loop through qualifiers -- set date separator local t = timestart .. timeend -- *** internationalise date separators later *** local dsep = "&ndash;" if t:find("%s") or t:find("&nbsp;") then dsep = " &ndash; " end -- set the order for the list of qualifiers returned; start time and end time go last if next(qlist) then local qlistout = {} if allflag then for k2, v2 in pairs(qlist) do qlistout[#qlistout+1] = v2 end else for i2, v2 in ipairs(qorder) do qlistout[#qlistout+1] = qlist[v2] end end if t ~= "" then qlistout[#qlistout+1] = timestart .. dsep .. timeend end local qstr = assembleoutput(qlistout, qargs) if qualsonly then out[#out+1] = qstr else out[#out] = out[#out] .. " (" .. qstr .. ")" end elseif t ~= "" then if qualsonly then if timestart == "" then out[#out+1] = timeend elseif timeend == "" then out[#out+1] = timestart else out[#out+1] = timestart .. dsep .. timeend end else out[#out] = out[#out] .. " (" .. timestart .. dsep .. timeend .. ")" end end end -- of test for qualifiers wanted if maxvals > 0 and #out >= maxvals then break end end -- of for each value loop -- we need to pick one value to return if the datatype was "monolingualtext" -- if there's only one value, use that -- otherwise look through the fallback languages for a match if datatype == "monolingualtext" and #out >1 then lang = mw.text.split( lang, '-', true )[1] local fbtbl = mw.language.getFallbacksFor( lang ) table.insert( fbtbl, 1, lang ) local bestval = "" local found = false for idx1, lang1 in ipairs(fbtbl) do for idx2, lang2 in ipairs(mlt) do if (lang1 == lang2) and not found then bestval = out[idx2] found = true break end end -- loop through values of property end -- loop through fallback languages if found then -- replace output table with a table containing the best value out = { bestval } else -- more than one value and none of them on the list of fallback languages -- sod it, just give them the first one out = { out[1] } end end return out end ------------------------------------------------------------------------------- -- Common code for p.getValueByQual and p.getValueByLang ------------------------------------------------------------------------------- -- Dependencies: parseParam; setRanks; parseInput; sourced; assembleoutput; ------------------------------------------------------------------------------- local _getvaluebyqual = function(frame, qualID, checkvalue) -- The property ID that will have a qualifier is the first unnamed parameter local propertyID = mw.text.trim(frame.args[1] or "") if propertyID == "" then return "no property supplied" end if qualID == "" then return "no qualifier supplied" end -- onlysourced is a boolean passed to return property values -- only when property values are sourced to something other than Wikipedia -- if nothing or an empty string is passed set it true -- if "false" or "no" or 0 is passed set it false local onlysrc = parseParam(frame.args.onlysourced or frame.args.osd, true) -- set the requested ranks flags frame.args.reqranks = setRanks(frame.args.rank) -- set a language object and code in the frame.args table frame.args.langobj = findLang(frame.args.lang) frame.args.lang = frame.args.langobj.code local args = frame.args -- check for locally supplied parameter in second unnamed parameter -- success means no local parameter and the property exists local qid, props = parseInput(frame, args[2], propertyID) local linked = parseParam(args.linked, true) local lpre = (args.linkprefix or args.lp or ""):gsub('"', '') local lpost = (args.linkpostfix or ""):gsub('"', '') local pre = (args.prefix or ""):gsub('"', '') local post = (args.postfix or ""):gsub('"', '') local uabbr = parseParam(args.unitabbr or args.uabbr, false) local filter = (args.unit or ""):upper() local maxvals = tonumber(args.maxvals) or 0 if filter == "" then filter = nil end if qid then local out = {} -- Scan through the values of the property -- we want something like property is "pronunciation audio (P443)" in propertyID -- with a qualifier like "language of work or name (P407)" in qualID -- whose value has the required ID, like "British English (Q7979)", in qval for k1, v1 in ipairs(props) do if v1.mainsnak.snaktype == "value" then -- check if it has the right qualifier local v1q = v1.qualifiers if v1q and v1q[qualID] then if onlysrc == false or sourced(v1) then -- if we've got this far, we have a (sourced) claim with qualifiers -- so see if matches the required value -- We'll only deal with wikibase-items and strings for now if v1q[qualID][1].datatype == "wikibase-item" then if checkvalue(v1q[qualID][1].datavalue.value.id) then out[#out + 1] = rendersnak(v1, args, linked, lpre, lpost, pre, post, uabbr, filter) end elseif v1q[qualID][1].datatype == "string" then if checkvalue(v1q[qualID][1].datavalue.value) then out[#out + 1] = rendersnak(v1, args, linked, lpre, lpost, pre, post, uabbr, filter) end end end -- of check for sourced end -- of check for matching required value and has qualifiers else return nil end -- of check for string if maxvals > 0 and #out >= maxvals then break end end -- of loop through values of propertyID return assembleoutput(out, frame.args, qid, propertyID) else return props -- either local parameter or nothing end -- of test for success return nil end ------------------------------------------------------------------------------- -- _location takes Q-id and follows P276 (location) -- or P131 (located in the administrative territorial entity) or P706 (located on terrain feature) -- from the initial item to higher level territories/locations until it reaches the highest. -- An optional boolean, 'first', determines whether the first item is returned (default: false). -- An optional boolean 'skip' toggles the display to skip to the last item (default: false). -- It returns a table containing the locations - linked where possible, except for the highest. ------------------------------------------------------------------------------- -- Dependencies: findLang(); labelOrId(); linkedItem ------------------------------------------------------------------------------- local _location = function(qid, first, skip) first = parseParam(first, false) skip = parseParam(skip, false) local locs = {"P276", "P131", "P706"} local out = {} local langcode = findLang():getCode() local finished = false local count = 0 local prevqid = "Q0" repeat local prop for i1, v1 in ipairs(locs) do local proptbl = mw.wikibase.getBestStatements(qid, v1) if #proptbl > 1 then -- there is more than one higher location local prevP131, prevP131id if prevqid ~= "Q0" then prevP131 = mw.wikibase.getBestStatements(prevqid, "P131")[1] prevP131id = prevP131 and prevP131.mainsnak.datavalue and prevP131.mainsnak.datavalue.value.id end for i2, v2 in ipairs(proptbl) do local parttbl = v2.qualifiers and v2.qualifiers.P518 if parttbl then -- this higher location has qualifier 'applies to part' (P518) for i3, v3 in ipairs(parttbl) do if v3.snaktype == "value" and v3.datavalue.value.id == prevqid then -- it has a value equal to the previous location prop = proptbl[i2] break end -- of test for matching last location end -- of loop through values of 'applies to part' else -- there's no qualifier 'applies to part' (P518) -- so check if the previous location had a P131 that matches this alternate if qid == prevP131id then prop = proptbl[i2] break end -- of test for matching previous P131 end end -- of loop through parent locations -- fallback to second value if match not found prop = prop or proptbl[2] elseif #proptbl > 0 then prop = proptbl[1] end if prop then break end end -- check if it's an instance of (P31) a country (Q6256) or sovereign state (Q3624078) -- and terminate the chain if it is local inst = mw.wikibase.getAllStatements(qid, "P31") if #inst > 0 then for k, v in ipairs(inst) do local instid = v.mainsnak.datavalue and v.mainsnak.datavalue.value.id -- stop if it's a country (or a country within the United Kingdom if skip is true) if instid == "Q6256" or instid == "Q3624078" or (skip and instid == "Q3336843") then prop = nil -- this will ensure this is treated as top-level location break end end end -- get the name of this location and update qid to point to the parent location if prop and prop.mainsnak.datavalue then if not skip or count == 0 then local args = { lprefix = ":" } out[#out+1] = linkedItem(qid, args) -- get a linked value if we can end qid, prevqid = prop.mainsnak.datavalue.value.id, qid else -- This is top-level location, so get short name except when this is the first item -- Use full label if there's no short name or this is the first item local prop1813 = mw.wikibase.getAllStatements(qid, "P1813") -- if there's a short name and this isn't the only item if prop1813[1] and (#out > 0)then local shortname -- short name is monolingual text, so look for match to the local language -- choose the shortest 'short name' in that language for k, v in pairs(prop1813) do if v.mainsnak.datavalue.value.language == langcode then local name = v.mainsnak.datavalue.value.text if (not shortname) or (#name < #shortname) then shortname = name end end end -- add the shortname if one is found, fallback to the label -- but skip it if it's "USA" if shortname ~= "USA" then out[#out+1] = shortname or labelOrId(qid) else if skip then out[#out+1] = "US" end end else -- no shortname, so just add the label local loc = labelOrId(qid) -- exceptions go here: if loc == "United States of America" then out[#out+1] = "United States" else out[#out+1] = loc end end finished = true end count = count + 1 until finished or count >= 10 -- limit to 10 levels to avoid infinite loops -- remove the first location if not required if not first then table.remove(out, 1) end -- we might have duplicate text for consecutive locations, so remove them if #out > 2 then local plain = {} for i, v in ipairs(out) do -- strip any links plain[i] = v:gsub("^%[%[[^|]*|", ""):gsub("]]$", "") end local idx = 2 repeat if plain[idx] == plain[idx-1] then -- duplicate found local removeidx = 0 if (plain[idx] ~= out[idx]) and (plain[idx-1] == out[idx-1]) then -- only second one is linked, so drop the first removeidx = idx - 1 elseif (plain[idx] == out[idx]) and (plain[idx-1] ~= out[idx-1]) then -- only first one is linked, so drop the second removeidx = idx else -- pick one removeidx = idx - (os.time()%2) end table.remove(out, removeidx) table.remove(plain, removeidx) else idx = idx +1 end until idx >= #out end return out end ------------------------------------------------------------------------------- -- _getsumofparts scans the property 'has part' (P527) for values matching a list. -- The list (args.vlist) consists of a string of Qids separated by spaces or any usual punctuation. -- If the matched values have a qualifer 'quantity' (P1114), those quantites are summed. -- The sum is returned as a number (i.e. 0 if none) -- a table of arguments is supplied implementing the usual parameters. ------------------------------------------------------------------------------- -- Dependencies: setRanks; parseParam; parseInput; sourced; assembleoutput; ------------------------------------------------------------------------------- local _getsumofparts = function(args) local vallist = (args.vlist or ""):upper() if vallist == "" then return end args.reqranks = setRanks(args.rank) local f = {} f.args = args local qid, props = parseInput(f, "", "P527") if not qid then return 0 end local onlysrc = parseParam(args.onlysourced or args.osd, true) local sum = 0 for k1, v1 in ipairs(props) do if (onlysrc == false or sourced(v1)) and v1.mainsnak.snaktype == "value" and v1.mainsnak.datavalue.type == "wikibase-entityid" and vallist:match( v1.mainsnak.datavalue.value.id ) and v1.qualifiers then local quals = v1.qualifiers["P1114"] if quals then for k2, v2 in ipairs(quals) do sum = sum + v2.datavalue.value.amount end end end end return sum end ------------------------------------------------------------------------------- ------------------------------------------------------------------------------- -- Public functions ------------------------------------------------------------------------------- ------------------------------------------------------------------------------- -- _getValue makes the functionality of getValue available to other modules ------------------------------------------------------------------------------- -- Dependencies: setRanks; parseInput; propertyvalueandquals; assembleoutput; parseParam; sourced; -- labelOrId; i18n.latestdatequalifier; format_Date; makeOrdinal; roundto; decimalPrecision; decimalToDMS; ------------------------------------------------------------------------------- p._getValue = function(args) -- parameter sets for commonly used groups of parameters local paraset = tonumber(args.ps or args.parameterset or 0) if paraset == 1 then -- a common setting args.rank = "best" args.fetchwikidata = "ALL" args.onlysourced = "no" args.noicon = "true" elseif paraset == 2 then -- equivalent to raw args.rank = "best" args.fetchwikidata = "ALL" args.onlysourced = "no" args.noicon = "true" args.linked = "no" args.pd = "true" elseif paraset == 3 then -- third set goes here end -- implement eid parameter local eid = args.eid if eid == "" then return nil elseif eid then args.qid = eid end local propertyID = mw.text.trim(args[1] or "") args.reqranks = setRanks(args.rank) -- replacetext (rt) is a string that is returned instead of any non-empty Wikidata value -- this is useful for tracking and debugging, so we set fetchwikidata=ALL to fill the whitelist local replacetext = mw.text.trim(args.rt or args.replacetext or "") if replacetext ~= "" then args.fetchwikidata = "ALL" end local f = {} f.args = args local entityid, props = parseInput(f, f.args[2], propertyID) if not entityid then return props -- either the input parameter or nothing end -- qual is a string containing the property ID of the qualifier(s) to be returned -- if qual == "ALL" then all qualifiers returned -- if qual == "DATES" then qualifiers P580 (start time) and P582 (end time) returned -- if nothing or an empty string is passed set it nil -> no qualifiers returned local qualID = mw.text.trim(args.qual or ""):upper() if qualID == "" then qualID = nil end -- set a language object and code in the args table args.langobj = findLang(args.lang) args.lang = args.langobj.code -- table 'out' stores the return value(s): local out = propertyvalueandquals(props, args, qualID) -- format the table of values and return it as a string: return assembleoutput(out, args, entityid, propertyID) end ------------------------------------------------------------------------------- -- getValue is used to get the value(s) of a property -- The property ID is passed as the first unnamed parameter and is required. -- A locally supplied parameter may optionaly be supplied as the second unnamed parameter. -- The function will now also return qualifiers if parameter qual is supplied ------------------------------------------------------------------------------- -- Dependencies: _getValue; setRanks; parseInput; propertyvalueandquals; assembleoutput; parseParam; sourced; -- labelOrId; i18n.latestdatequalifier; format_Date; makeOrdinal; roundto; decimalPrecision; decimalToDMS; ------------------------------------------------------------------------------- p.getValue = function(frame) local args= frame.args if not args[1] then args = frame:getParent().args if not args[1] then return i18n.errors["No property supplied"] end end return p._getValue(args) end ------------------------------------------------------------------------------- -- getPreferredValue is used to get a value, -- (or a comma separated list of them if multiple values exist). -- If preferred ranks are set, it will return those values, otherwise values with normal ranks -- now redundant to getValue with |rank=best ------------------------------------------------------------------------------- -- Dependencies: p.getValue; setRanks; parseInput; propertyvalueandquals; assembleoutput; -- parseParam; sourced; labelOrId; i18n.latestdatequalifier; format_Date; -- makeOrdinal; roundto; decimalPrecision; decimalToDMS; ------------------------------------------------------------------------------- p.getPreferredValue = function(frame) frame.args.rank = "best" return p.getValue(frame) end ------------------------------------------------------------------------------- -- getCoords is used to get coordinates for display in an infobox -- whitelist and blacklist are implemented -- optional 'display' parameter is allowed, defaults to nil - was "inline, title" ------------------------------------------------------------------------------- -- Dependencies: setRanks(); parseInput(); decimalPrecision(); ------------------------------------------------------------------------------- p.getCoords = function(frame) local propertyID = "P625" -- if there is a 'display' parameter supplied, use it -- otherwise default to nothing local disp = frame.args.display or "" if disp == "" then disp = nil -- default to not supplying display parameter, was "inline, title" end -- there may be a format parameter to switch from deg/min/sec to decimal degrees -- default is deg/min/sec -- decimal degrees needs |format = dec local form = (frame.args.format or ""):lower():sub(1,3) if form ~= "dec" then form = "dms" end -- just deal with best values frame.args.reqranks = setRanks("best") local qid, props = parseInput(frame, frame.args[1], propertyID) if not qid then return props -- either local parameter or nothing else local dv = props[1].mainsnak.datavalue.value local lat, long, prec = dv.latitude, dv.longitude, dv.precision lat = decimalPrecision(lat, prec) long = decimalPrecision(long, prec) local lat_long = { lat, long } lat_long["display"] = disp lat_long["format"] = form -- invoke template Coord with the values stored in the table return frame:expandTemplate{title = 'coord', args = lat_long} end end ------------------------------------------------------------------------------- -- getQualifierValue is used to get a formatted value of a qualifier -- -- The call needs: a property (the unnamed parameter or 1=) -- a target value for that property (pval=) -- a qualifier for that target value (qual=) -- The usual whitelisting and blacklisting of the property is implemented -- The boolean onlysourced= parameter can be set to return nothing -- when the property is unsourced (or only sourced to Wikipedia) ------------------------------------------------------------------------------- -- Dependencies: parseParam(); setRanks(); parseInput(); sourced(); -- propertyvalueandquals(); assembleoutput(); -- labelOrId(); i18n.latestdatequalifier(); format_Date(); -- findLang(); makeOrdinal(); roundto(); decimalPrecision(); decimalToDMS(); ------------------------------------------------------------------------------- p.getQualifierValue = function(frame) -- The property ID that will have a qualifier is the first unnamed parameter local propertyID = mw.text.trim(frame.args[1] or "") -- The value of the property we want to match whose qualifier value is to be returned -- is passed in named parameter |pval= local propvalue = frame.args.pval -- The property ID of the qualifier -- whose value is to be returned is passed in named parameter |qual= local qualifierID = frame.args.qual -- A filter can be set like this: filter=P642==Q22674854 local filter, fprop, fval local ftable = mw.text.split(frame.args.filter or "", "==") if ftable[2] then fprop = mw.text.trim(ftable[1]) fval = mw.text.trim(ftable[2]) filter = true end -- onlysourced is a boolean passed to return qualifiers -- only when property values are sourced to something other than Wikipedia -- if nothing or an empty string is passed set it true -- if "false" or "no" or 0 is passed set it false local onlysrc = parseParam(frame.args.onlysourced or frame.args.osd, true) -- set a language object and language code in the frame.args table frame.args.langobj = findLang(frame.args.lang) frame.args.lang = frame.args.langobj.code -- set the requested ranks flags frame.args.reqranks = setRanks(frame.args.rank) -- check for locally supplied parameter in second unnamed parameter -- success means no local parameter and the property exists local qid, props = parseInput(frame, frame.args[2], propertyID) if qid then local out = {} -- Scan through the values of the property -- we want something like property is P793, significant event (in propertyID) -- whose value is something like Q385378, construction (in propvalue) -- then we can return the value(s) of a qualifier such as P580, start time (in qualifierID) for k1, v1 in pairs(props) do if v1.mainsnak.snaktype == "value" and v1.mainsnak.datavalue.type == "wikibase-entityid" then -- It's a wiki-linked value, so check if it's the target (in propvalue) and if it has qualifiers if v1.mainsnak.datavalue.value.id == propvalue and v1.qualifiers then if onlysrc == false or sourced(v1) then -- if we've got this far, we have a (sourced) claim with qualifiers -- which matches the target, so apply the filter and find the value(s) of the qualifier we want if not filter or (v1.qualifiers[fprop] and v1.qualifiers[fprop][1].datavalue.value.id == fval) then local quals = v1.qualifiers[qualifierID] if quals then -- can't reference qualifer, so set onlysourced = "no" (args are strings, not boolean) local qargs = frame.args qargs.onlysourced = "no" local vals = propertyvalueandquals(quals, qargs, qid) for k, v in ipairs(vals) do out[#out + 1] = v end end end end -- of check for sourced end -- of check for matching required value and has qualifiers end -- of check for wikibase entity end -- of loop through values of propertyID return assembleoutput(out, frame.args, qid, propertyID) else return props -- either local parameter or nothing end -- of test for success return nil end ------------------------------------------------------------------------------- -- getSumOfParts scans the property 'has part' (P527) for values matching a list. -- The list is passed in parameter vlist. -- It consists of a string of Qids separated by spaces or any usual punctuation. -- If the matched values have a qualifier 'quantity' (P1114), those quantities are summed. -- The sum is returned as a number or nothing if zero. ------------------------------------------------------------------------------- -- Dependencies: _getsumofparts; ------------------------------------------------------------------------------- p.getSumOfParts = function(frame) local sum = _getsumofparts(frame.args) if sum == 0 then return end return sum end ------------------------------------------------------------------------------- -- getValueByQual gets the value of a property which has a qualifier with a given entity value -- The call needs: -- a property ID (the unnamed parameter or 1=Pxxx) -- the ID of a qualifier for that property (qualID=Pyyy) -- either the Wikibase-entity ID of a value for that qualifier (qvalue=Qzzz) -- or a string value for that qualifier (qvalue=abc123) -- The usual whitelisting, blacklisting, onlysourced, etc. are implemented ------------------------------------------------------------------------------- -- Dependencies: _getvaluebyqual; parseParam; setRanks; parseInput; sourced; -- assembleoutput; ------------------------------------------------------------------------------- p.getValueByQual = function(frame) local qualID = frame.args.qualID -- The Q-id of the value for the qualifier we want to match is in named parameter |qvalue= local qval = frame.args.qvalue or "" if qval == "" then return "no qualifier value supplied" end local function checkQID(id) return id == qval end return _getvaluebyqual(frame, qualID, checkQID) end ------------------------------------------------------------------------------- -- getValueByLang gets the value of a property which has a qualifier P407 -- ("language of work or name") whose value has the given language code -- The call needs: -- a property ID (the unnamed parameter or 1=Pxxx) -- the MediaWiki language code to match the language (lang=xx[-yy]) -- (if no code is supplied, it uses the default language) -- The usual whitelisting, blacklisting, onlysourced, etc. are implemented ------------------------------------------------------------------------------- -- Dependencies: _getvaluebyqual; parseParam; setRanks; parseInput; sourced; assembleoutput; ------------------------------------------------------------------------------- p.getValueByLang = function(frame) -- The language code for the qualifier we want to match is in named parameter |lang= local langcode = findLang(frame.args.lang).code local function checkLanguage(id) -- id should represent a language like "British English (Q7979)" -- it should have string property "Wikimedia language code (P424)" -- qlcode will be a table: local qlcode = mw.wikibase.getBestStatements(id, "P424") if (#qlcode > 0) and (qlcode[1].mainsnak.datavalue.value == langcode) then return true end end return _getvaluebyqual(frame, "P407", checkLanguage) end ------------------------------------------------------------------------------- -- getValueByRefSource gets the value of a property which has a reference "stated in" (P248) -- whose value has the given entity-ID. -- The call needs: -- a property ID (the unnamed parameter or 1=Pxxx) -- the entity ID of a value to match where the reference is stated in (match=Qzzz) -- The usual whitelisting, blacklisting, onlysourced, etc. are implemented ------------------------------------------------------------------------------- -- Dependencies: parseParam; setRanks; parseInput; sourced; propertyvalueandquals assembleoutput; ------------------------------------------------------------------------------- p.getValueByRefSource = function(frame) -- The property ID that we want to check is the first unnamed parameter local propertyID = mw.text.trim(frame.args[1] or ""):upper() if propertyID == "" then return "no property supplied" end -- The Q-id of the value we want to match is in named parameter |qvalue= local qval = (frame.args.match or ""):upper() if qval == "" then qval = "Q21540096" end local unit = (frame.args.unit or ""):upper() if unit == "" then unit = "Q4917" end local onlysrc = parseParam(frame.args.onlysourced or frame.args.osd, true) -- set the requested ranks flags frame.args.reqranks = setRanks(frame.args.rank) -- set a language object and code in the frame.args table frame.args.langobj = findLang(frame.args.lang) frame.args.lang = frame.args.langobj.code local linked = parseParam(frame.args.linked, true) local uabbr = parseParam(frame.args.uabbr or frame.args.unitabbr, false) -- qid not nil means no local parameter and the property exists local qid, props = parseInput(frame, frame.args[2], propertyID) if qid then local out = {} local mlt= {} for k1, v1 in ipairs(props) do if onlysrc == false or sourced(v1) then if v1.references then for k2, v2 in ipairs(v1.references) do if v2.snaks.P248 then for k3, v3 in ipairs(v2.snaks.P248) do if v3.datavalue.value.id == qval then out[#out+1], mlt[#out+1] = rendersnak(v1, frame.args, linked, "", "", "", "", uabbr, unit) if not mlt[#out] then -- we only need one match per property value -- unless datatype was monolingual text break end end -- of test for match end -- of loop through values "stated in" end -- of test that "stated in" exists end -- of loop through references end -- of test that references exist end -- of test for sourced end -- of loop through values of propertyID if #mlt > 0 then local langcode = frame.args.lang langcode = mw.text.split( langcode, '-', true )[1] local fbtbl = mw.language.getFallbacksFor( langcode ) table.insert( fbtbl, 1, langcode ) local bestval = "" local found = false for idx1, lang1 in ipairs(fbtbl) do for idx2, lang2 in ipairs(mlt) do if (lang1 == lang2) and not found then bestval = out[idx2] found = true break end end -- loop through values of property end -- loop through fallback languages if found then -- replace output table with a table containing the best value out = { bestval } else -- more than one value and none of them on the list of fallback languages -- sod it, just give them the first one out = { out[1] } end end return assembleoutput(out, frame.args, qid, propertyID) else return props -- no property or local parameter supplied end -- of test for success end ------------------------------------------------------------------------------- -- getPropertyIDs takes most of the usual parameters. -- The usual whitelisting, blacklisting, onlysourced, etc. are implemented. -- It returns the Entity-IDs (Qids) of the values of a property if it is a Wikibase-Entity. -- Otherwise it returns nothing. ------------------------------------------------------------------------------- -- Dependencies: parseParam; setRanks; parseInput; sourced; propertyvalueandquals assembleoutput; ------------------------------------------------------------------------------- p._getPropertyIDs = function(args) args.reqranks = setRanks(args.rank) args.langobj = findLang(args.lang) args.lang = args.langobj.code -- change default for noicon to true args.noicon = tostring(parseParam(args.noicon or "", true)) local f = {} f.args = args local pid = mw.text.trim(args[1] or ""):upper() -- get the qid and table of claims for the property, or nothing and the local value passed local qid, props = parseInput(f, args[2], pid) if not qid then return props end if not props[1] then return nil end local onlysrc = parseParam(args.onlysourced or args.osd, true) local maxvals = tonumber(args.maxvals) or 0 local out = {} for i, v in ipairs(props) do local snak = v.mainsnak if ( snak.datatype == "wikibase-item" ) and ( v.rank and args.reqranks[v.rank:sub(1, 1)] ) and ( snak.snaktype == "value" ) and ( sourced(v) or not onlysrc ) then out[#out+1] = snak.datavalue.value.id end if maxvals > 0 and #out >= maxvals then break end end return assembleoutput(out, args, qid, pid) end p.getPropertyIDs = function(frame) local args = frame.args return p._getPropertyIDs(args) end ------------------------------------------------------------------------------- -- getQualifierIDs takes most of the usual parameters. -- The usual whitelisting, blacklisting, onlysourced, etc. are implemented. -- It takes a property-id as the first unnamed parameter, and an optional parameter qlist -- which is a list of qualifier property-ids to search for (default is "ALL") -- It returns the Entity-IDs (Qids) of the values of a property if it is a Wikibase-Entity. -- Otherwise it returns nothing. ------------------------------------------------------------------------------- -- Dependencies: parseParam; setRanks; parseInput; sourced; propertyvalueandquals assembleoutput; ------------------------------------------------------------------------------- p.getQualifierIDs = function(frame) local args = frame.args args.reqranks = setRanks(args.rank) args.langobj = findLang(args.lang) args.lang = args.langobj.code -- change default for noicon to true args.noicon = tostring(parseParam(args.noicon or "", true)) local f = {} f.args = args local pid = mw.text.trim(args[1] or ""):upper() -- get the qid and table of claims for the property, or nothing and the local value passed local qid, props = parseInput(f, args[2], pid) if not qid then return props end if not props[1] then return nil end -- get the other parameters local onlysrc = parseParam(args.onlysourced or args.osd, true) local maxvals = tonumber(args.maxvals) or 0 local qlist = args.qlist or "" if qlist == "" then qlist = "ALL" end qlist = qlist:gsub("[%p%s]+", " ") .. " " local out = {} for i, v in ipairs(props) do local snak = v.mainsnak if ( v.rank and args.reqranks[v.rank:sub(1, 1)] ) and ( snak.snaktype == "value" ) and ( sourced(v) or not onlysrc ) then if v.qualifiers then for k1, v1 in pairs(v.qualifiers) do if qlist == "ALL " or qlist:match(k1 .. " ") then for i2, v2 in ipairs(v1) do if v2.datatype == "wikibase-item" and v2.snaktype == "value" then out[#out+1] = v2.datavalue.value.id end -- of test that id exists end -- of loop through qualifier values end -- of test for kq in qlist end -- of loop through qualifiers end -- of test for qualifiers end -- of test for rank value, sourced, and value exists if maxvals > 0 and #out >= maxvals then break end end -- of loop through property values return assembleoutput(out, args, qid, pid) end ------------------------------------------------------------------------------- -- getPropOfProp takes two propertyIDs: prop1 and prop2 (as well as the usual parameters) -- If the value(s) of prop1 are of type "wikibase-item" then it returns the value(s) of prop2 -- of each of those wikibase-items. -- The usual whitelisting, blacklisting, onlysourced, etc. are implemented ------------------------------------------------------------------------------- -- Dependencies: parseParam; setRanks; parseInput; sourced; propertyvalueandquals assembleoutput; ------------------------------------------------------------------------------- p._getPropOfProp = function(args) -- parameter sets for commonly used groups of parameters local paraset = tonumber(args.ps or args.parameterset or 0) if paraset == 1 then -- a common setting args.rank = "best" args.fetchwikidata = "ALL" args.onlysourced = "no" args.noicon = "true" elseif paraset == 2 then -- equivalent to raw args.rank = "best" args.fetchwikidata = "ALL" args.onlysourced = "no" args.noicon = "true" args.linked = "no" args.pd = "true" elseif paraset == 3 then -- third set goes here end args.reqranks = setRanks(args.rank) args.langobj = findLang(args.lang) args.lang = args.langobj.code local pid1 = args.prop1 or args.pid1 or "" local pid2 = args.prop2 or args.pid2 or "" if pid1 == "" or pid2 == "" then return nil end local f = {} f.args = args local qid1, statements1 = parseInput(f, args[1], pid1) -- parseInput nulls empty args[1] and returns args[1] if nothing on Wikidata if not qid1 then return statements1 end -- otherwise it returns the qid and a table for the statement local onlysrc = parseParam(args.onlysourced or args.osd, true) local maxvals = tonumber(args.maxvals) or 0 local qualID = mw.text.trim(args.qual or ""):upper() if qualID == "" then qualID = nil end local out = {} for k, v in ipairs(statements1) do if not onlysrc or sourced(v) then local snak = v.mainsnak if snak.datatype == "wikibase-item" and snak.snaktype == "value" then local qid2 = snak.datavalue.value.id local statements2 = {} if args.reqranks.b then statements2 = mw.wikibase.getBestStatements(qid2, pid2) else statements2 = mw.wikibase.getAllStatements(qid2, pid2) end if statements2[1] then local out2 = propertyvalueandquals(statements2, args, qualID) out[#out+1] = assembleoutput(out2, args, qid2, pid2) end end -- of test for valid property1 value end -- of test for sourced if maxvals > 0 and #out >= maxvals then break end end -- of loop through values of property1 return assembleoutput(out, args, qid1, pid1) end p.getPropOfProp = function(frame) local args= frame.args if not args.prop1 and not args.pid1 then args = frame:getParent().args if not args.prop1 and not args.pid1 then return i18n.errors["No property supplied"] end end return p._getPropOfProp(args) end ------------------------------------------------------------------------------- -- getAwardCat takes most of the usual parameters. If the item has values of P166 (award received), -- then it examines each of those awards for P2517 (category for recipients of this award). -- If it exists, it returns the corresponding category, -- with the item's P734 (family name) as sort key, or no sort key if there is no family name. -- The sort key may be overridden by the parameter |sortkey (alias |sk). -- The usual whitelisting, blacklisting, onlysourced, etc. are implemented ------------------------------------------------------------------------------- -- Dependencies: parseParam; setRanks; parseInput; sourced; propertyvalueandquals assembleoutput; ------------------------------------------------------------------------------- p.getAwardCat = function(frame) frame.args.reqranks = setRanks(frame.args.rank) frame.args.langobj = findLang(frame.args.lang) frame.args.lang = frame.args.langobj.code local args = frame.args args.sep = " " local pid1 = args.prop1 or "P166" local pid2 = args.prop2 or "P2517" if pid1 == "" or pid2 == "" then return nil end -- locally supplied value: local localval = mw.text.trim(args[1] or "") local qid1, statements1 = parseInput(frame, localval, pid1) if not qid1 then return localval end -- linkprefix (strip quotes) local lp = (args.linkprefix or args.lp or ""):gsub('"', '') -- sort key (strip quotes, hyphens and periods): local sk = (args.sortkey or args.sk or ""):gsub('["-.]', '') -- family name: local famname = "" if sk == "" then local p734 = mw.wikibase.getBestStatements(qid1, "P734")[1] local p734id = p734 and p734.mainsnak.snaktype == "value" and p734.mainsnak.datavalue.value.id or "" famname = mw.wikibase.getSitelink(p734id) or "" -- strip namespace and disambigation local pos = famname:find(":") or 0 famname = famname:sub(pos+1):gsub("%s%(.+%)$", "") if famname == "" then local lbl = mw.wikibase.getLabel(p734id) famname = lbl and mw.text.nowiki(lbl) or "" end end local onlysrc = parseParam(args.onlysourced or args.osd, true) local maxvals = tonumber(args.maxvals) or 0 local qualID = mw.text.trim(args.qual or ""):upper() if qualID == "" then qualID = nil end local out = {} for k, v in ipairs(statements1) do if not onlysrc or sourced(v) then local snak = v.mainsnak if snak.datatype == "wikibase-item" and snak.snaktype == "value" then local qid2 = snak.datavalue.value.id local statements2 = {} if args.reqranks.b then statements2 = mw.wikibase.getBestStatements(qid2, pid2) else statements2 = mw.wikibase.getAllStatements(qid2, pid2) end if statements2[1] and statements2[1].mainsnak.snaktype == "value" then local qid3 = statements2[1].mainsnak.datavalue.value.id local sitelink = mw.wikibase.getSitelink(qid3) -- if there's no local sitelink, create the sitelink from English label if not sitelink then local lbl = mw.wikibase.getLabelByLang(qid3, "en") if lbl then if lbl:sub(1,9) == "Category:" then sitelink = mw.text.nowiki(lbl) else sitelink = "Category:" .. mw.text.nowiki(lbl) end end end if sitelink then if sk ~= "" then out[#out+1] = "[[" .. lp .. sitelink .. "|" .. sk .. "]]" elseif famname ~= "" then out[#out+1] = "[[" .. lp .. sitelink .. "|" .. famname .. "]]" else out[#out+1] = "[[" .. lp .. sitelink .. "]]" end -- of check for sort keys end -- of test for sitelink end -- of test for category end -- of test for wikibase item has a value end -- of test for sourced if maxvals > 0 and #out >= maxvals then break end end -- of loop through values of property1 return assembleoutput(out, args, qid1, pid1) end ------------------------------------------------------------------------------- -- getIntersectCat takes most of the usual parameters. -- The usual whitelisting, blacklisting, onlysourced, etc. are implemented -- It takes two properties, |prop1 and |prop2 (e.g. occupation and country of citizenship) -- Each property's value is a wiki-base entity -- For each value of the first parameter (ranks implemented) it fetches the value's main category -- and then each value of the second parameter (possibly substituting a simpler description) -- then it returns all of the categories representing the intersection of those properties, -- (e.g. Category:Actors from Canada). A joining term may be supplied (e.g. |join=from). -- The item's P734 (family name) is the sort key, or no sort key if there is no family name. -- The sort key may be overridden by the parameter |sortkey (alias |sk). ------------------------------------------------------------------------------- -- Dependencies: parseParam; setRanks; parseInput; sourced; propertyvalueandquals assembleoutput; ------------------------------------------------------------------------------- p.getIntersectCat = function(frame) frame.args.reqranks = setRanks(frame.args.rank) frame.args.langobj = findLang(frame.args.lang) frame.args.lang = frame.args.langobj.code local args = frame.args args.sep = " " args.linked = "no" local pid1 = args.prop1 or "P106" local pid2 = args.prop2 or "P27" if pid1 == "" or pid2 == "" then return nil end local qid, statements1 = parseInput(frame, "", pid1) if not qid then return nil end local qid, statements2 = parseInput(frame, "", pid2) if not qid then return nil end -- topics like countries may have different names in categories from their label in Wikidata local subs_exists, subs = pcall(mw.loadData, "Module:WikidataIB/subs") local join = args.join or "" local onlysrc = parseParam(args.onlysourced or args.osd, true) local maxvals = tonumber(args.maxvals) or 0 -- linkprefix (strip quotes) local lp = (args.linkprefix or args.lp or ""):gsub('"', '') -- sort key (strip quotes, hyphens and periods): local sk = (args.sortkey or args.sk or ""):gsub('["-.]', '') -- family name: local famname = "" if sk == "" then local p734 = mw.wikibase.getBestStatements(qid, "P734")[1] local p734id = p734 and p734.mainsnak.snaktype == "value" and p734.mainsnak.datavalue.value.id or "" famname = mw.wikibase.getSitelink(p734id) or "" -- strip namespace and disambigation local pos = famname:find(":") or 0 famname = famname:sub(pos+1):gsub("%s%(.+%)$", "") if famname == "" then local lbl = mw.wikibase.getLabel(p734id) famname = lbl and mw.text.nowiki(lbl) or "" end end local cat1 = {} for k, v in ipairs(statements1) do if not onlysrc or sourced(v) then -- get the ID representing the value of the property local pvalID = (v.mainsnak.snaktype == "value") and v.mainsnak.datavalue.value.id if pvalID then -- get the topic's main category (P910) for that entity local p910 = mw.wikibase.getBestStatements(pvalID, "P910")[1] if p910 and p910.mainsnak.snaktype == "value" then local tmcID = p910.mainsnak.datavalue.value.id -- use sitelink or the English label for the cat local cat = mw.wikibase.getSitelink(tmcID) if not cat then local lbl = mw.wikibase.getLabelByLang(tmcID, "en") if lbl then if lbl:sub(1,9) == "Category:" then cat = mw.text.nowiki(lbl) else cat = "Category:" .. mw.text.nowiki(lbl) end end end cat1[#cat1+1] = cat end -- of test for topic's main category exists end -- of test for property has vaild value end -- of test for sourced if maxvals > 0 and #cat1 >= maxvals then break end end local cat2 = {} for k, v in ipairs(statements2) do if not onlysrc or sourced(v) then local cat = rendersnak(v, args) if subs[cat] then cat = subs[cat] end cat2[#cat2+1] = cat end if maxvals > 0 and #cat2 >= maxvals then break end end local out = {} for k1, v1 in ipairs(cat1) do for k2, v2 in ipairs(cat2) do if sk ~= "" then out[#out+1] = "[[" .. lp .. v1 .. " " .. join .. " " .. v2 .. "|" .. sk .. "]]" elseif famname ~= "" then out[#out+1] = "[[" .. lp .. v1 .. " " .. join .. " " .. v2 .. "|" .. famname .. "]]" else out[#out+1] = "[[" .. lp .. v1 .. " " .. join .. " " .. v2 .. "]]" end -- of check for sort keys end end args.noicon = "true" return assembleoutput(out, args, qid, pid1) end ------------------------------------------------------------------------------- -- qualsToTable takes most of the usual parameters. -- The usual whitelisting, blacklisting, onlysourced, etc. are implemented. -- A qid may be given, and the first unnamed parameter is the property ID, which is of type wikibase item. -- It takes a list of qualifier property IDs as |quals= -- For a given qid and property, it creates the rows of an html table, -- each row being a value of the property (optionally only if the property matches the value in |pval= ) -- each cell being the first value of the qualifier corresponding to the list in |quals ------------------------------------------------------------------------------- -- Dependencies: parseParam; setRanks; parseInput; sourced; ------------------------------------------------------------------------------- p.qualsToTable = function(frame) local args = frame.args local quals = args.quals or "" if quals == "" then return "" end args.reqranks = setRanks(args.rank) local propertyID = mw.text.trim(args[1] or "") local f = {} f.args = args local entityid, props = parseInput(f, "", propertyID) if not entityid then return "" end args.langobj = findLang(args.lang) args.lang = args.langobj.code local pval = args.pval or "" local qplist = mw.text.split(quals, "%p") -- split at punctuation and make a sequential table for i, v in ipairs(qplist) do qplist[i] = mw.text.trim(v):upper() -- remove whitespace and capitalise end local col1 = args.firstcol or "" if col1 ~= "" then col1 = col1 .. "</td><td>" end local emptycell = args.emptycell or "&nbsp;" -- construct a 2-D array of qualifier values in qvals local qvals = {} for i, v in ipairs(props) do local skip = false if pval ~= "" then local pid = v.mainsnak.datavalue and v.mainsnak.datavalue.value.id if pid ~= pval then skip = true end end if not skip then local qval = {} local vqualifiers = v.qualifiers or {} -- go through list of wanted qualifier properties for i1, v1 in ipairs(qplist) do -- check for that property ID in the statement's qualifiers local qv, qtype if vqualifiers[v1] then qtype = vqualifiers[v1][1].datatype if qtype == "time" then if vqualifiers[v1][1].snaktype == "value" then qv = mw.wikibase.renderSnak(vqualifiers[v1][1]) qv = frame:expandTemplate{title="dts", args={qv}} else qv = "?" end elseif qtype == "url" then if vqualifiers[v1][1].snaktype == "value" then qv = mw.wikibase.renderSnak(vqualifiers[v1][1]) local display = mw.ustring.match( mw.uri.decode(qv, "WIKI"), "([%w ]+)$" ) if display then qv = "[" .. qv .. " " .. display .. "]" end end else qv = mw.wikibase.formatValue(vqualifiers[v1][1]) end end -- record either the value or a placeholder qval[i1] = qv or emptycell end -- of loop through list of qualifiers -- add the list of qualifier values as a "row" in the main list qvals[#qvals+1] = qval end end -- of for each value loop local out = {} for i, v in ipairs(qvals) do out[i] = "<tr><td>" .. col1 .. table.concat(qvals[i], "</td><td>") .. "</td></tr>" end return table.concat(out, "\n") end ------------------------------------------------------------------------------- -- getGlobe takes an optional qid of a Wikidata entity passed as |qid= -- otherwise it uses the linked item for the current page. -- If returns the Qid of the globe used in P625 (coordinate location), -- or nil if there isn't one. ------------------------------------------------------------------------------- -- Dependencies: none ------------------------------------------------------------------------------- p.getGlobe = function(frame) local qid = frame.args.qid or frame.args[1] or "" if qid == "" then qid = mw.wikibase.getEntityIdForCurrentPage() end local coords = mw.wikibase.getBestStatements(qid, "P625")[1] local globeid if coords and coords.mainsnak.snaktype == "value" then globeid = coords.mainsnak.datavalue.value.globe:match("(Q%d+)") end return globeid end ------------------------------------------------------------------------------- -- getCommonsLink takes an optional qid of a Wikidata entity passed as |qid= -- It returns one of the following in order of preference: -- the Commons sitelink of the linked Wikidata item; -- the Commons sitelink of the topic's main category of the linked Wikidata item; ------------------------------------------------------------------------------- -- Dependencies: _getCommonslink(); _getSitelink(); parseParam() ------------------------------------------------------------------------------- p.getCommonsLink = function(frame) local oc = frame.args.onlycat or frame.args.onlycategories local fb = parseParam(frame.args.fallback or frame.args.fb, true) return _getCommonslink(frame.args.qid, oc, fb) end ------------------------------------------------------------------------------- -- getSitelink takes the qid of a Wikidata entity passed as |qid= -- It takes an optional parameter |wiki= to determine which wiki is to be checked for a sitelink -- If the parameter is blank, then it uses the local wiki. -- If there is a sitelink to an article available, it returns the plain text link to the article -- If there is no sitelink, it returns nil. ------------------------------------------------------------------------------- -- Dependencies: none ------------------------------------------------------------------------------- p.getSiteLink = function(frame) return _getSitelink(frame.args.qid, frame.args.wiki or mw.text.trim(frame.args[1] or "")) end ------------------------------------------------------------------------------- -- getLink has the qid of a Wikidata entity passed as the first unnamed parameter or as |qid= -- If there is a sitelink to an article on the local Wiki, it returns a link to the article -- with the Wikidata label as the displayed text. -- If there is no sitelink, it returns the label as plain text. -- If there is no label in the local language, it displays the qid instead. ------------------------------------------------------------------------------- -- Dependencies: none ------------------------------------------------------------------------------- p.getLink = function(frame) local itemID = mw.text.trim(frame.args[1] or frame.args.qid or "") if itemID == "" then return end local sitelink = mw.wikibase.getSitelink(itemID) local label = labelOrId(itemID) if sitelink then return "[[:" .. sitelink .. "|" .. label .. "]]" else return label end end ------------------------------------------------------------------------------- -- getLabel has the qid of a Wikidata entity passed as the first unnamed parameter or as |qid= -- It returns the Wikidata label for the local language as plain text. -- If there is no label in the local language, it displays the qid instead. ------------------------------------------------------------------------------- -- Dependencies: none ------------------------------------------------------------------------------- p.getLabel = function(frame) local itemID = mw.text.trim(frame.args[1] or frame.args.qid or "") if itemID == "" then return end local lang = frame.args.lang or "" if lang == "" then lang = nil end local label = labelOrId(itemID, lang) return label end ------------------------------------------------------------------------------- -- label has the qid of a Wikidata entity passed as the first unnamed parameter or as |qid= -- if no qid is supplied, it uses the qid associated with the current page. -- It returns the Wikidata label for the local language as plain text. -- If there is no label in the local language, it returns nil. ------------------------------------------------------------------------------- -- Dependencies: none ------------------------------------------------------------------------------- p.label = function(frame) local qid = mw.text.trim(frame.args[1] or frame.args.qid or "") if qid == "" then qid = mw.wikibase.getEntityIdForCurrentPage() end if not qid then return end local lang = frame.args.lang or "" if lang == "" then lang = nil end local label, success = labelOrId(qid, lang) if success then return label end end ------------------------------------------------------------------------------- -- getAT (Article Title) -- has the qid of a Wikidata entity passed as the first unnamed parameter or as |qid= -- If there is a sitelink to an article on the local Wiki, it returns the sitelink as plain text. -- If there is no sitelink or qid supplied, it returns nothing. ------------------------------------------------------------------------------- -- Dependencies: none ------------------------------------------------------------------------------- p.getAT = function(frame) local itemID = mw.text.trim(frame.args[1] or frame.args.qid or "") if itemID == "" then return end return mw.wikibase.getSitelink(itemID) end ------------------------------------------------------------------------------- -- getDescription has the qid of a Wikidata entity passed as |qid= -- (it defaults to the associated qid of the current article if omitted) -- and a local parameter passed as the first unnamed parameter. -- Any local parameter passed (other than "Wikidata" or "none") becomes the return value. -- It returns the article description for the Wikidata entity if the local parameter is "Wikidata". -- Nothing is returned if the description doesn't exist or "none" is passed as the local parameter. ------------------------------------------------------------------------------- -- Dependencies: none ------------------------------------------------------------------------------- p.getDescription = function(frame) local desc = mw.text.trim(frame.args[1] or "") local itemID = mw.text.trim(frame.args.qid or "") if itemID == "" then itemID = nil end if desc:lower() == 'wikidata' then return mw.wikibase.getDescription(itemID) elseif desc:lower() == 'none' then return nil else return desc end end ------------------------------------------------------------------------------- -- getAliases has the qid of a Wikidata entity passed as |qid= -- (it defaults to the associated qid of the current article if omitted) -- and a local parameter passed as the first unnamed parameter. -- It implements blacklisting and whitelisting with a field name of "alias" by default. -- Any local parameter passed becomes the return value. -- Otherwise it returns the aliases for the Wikidata entity with the usual list options. -- Nothing is returned if the aliases do not exist. ------------------------------------------------------------------------------- -- Dependencies: findLang(); assembleoutput() ------------------------------------------------------------------------------- p.getAliases = function(frame) local args = frame.args local fieldname = args.name or "" if fieldname == "" then fieldname = "alias" end local blacklist = args.suppressfields or args.spf or "" if blacklist:find(fieldname) then return nil end local localval = mw.text.trim(args[1] or "") if localval ~= "" then return localval end local whitelist = args.fetchwikidata or args.fwd or "" if whitelist == "" then whitelist = "NONE" end if not (whitelist == 'ALL' or whitelist:find(fieldname)) then return nil end local qid = args.qid or "" if qid == "" then qid = mw.wikibase.getEntityIdForCurrentPage() end if not qid or not mw.wikibase.entityExists(qid) then return nil end local aliases = mw.wikibase.getEntity(qid).aliases if not aliases then return nil end args.langobj = findLang(args.lang) local langcode = args.langobj.code args.lang = langcode local out = {} for k1, v1 in pairs(aliases) do if v1[1].language == langcode then for k1, v2 in ipairs(v1) do out[#out+1] = v2.value end break end end return assembleoutput(out, args, qid) end ------------------------------------------------------------------------------- -- pageId returns the page id (entity ID, Qnnn) of the current page -- returns nothing if the page is not connected to Wikidata ------------------------------------------------------------------------------- -- Dependencies: none ------------------------------------------------------------------------------- p.pageId = function(frame) return mw.wikibase.getEntityIdForCurrentPage() end ------------------------------------------------------------------------------- -- formatDate is a wrapper to export the private function format_Date ------------------------------------------------------------------------------- -- Dependencies: format_Date(); ------------------------------------------------------------------------------- p.formatDate = function(frame) return format_Date(frame.args[1], frame.args.df, frame.args.bc) end ------------------------------------------------------------------------------- -- location is a wrapper to export the private function _location -- it takes the entity-id as qid or the first unnamed parameter -- optional boolean parameter first toggles the display of the first item -- optional boolean parameter skip toggles the display to skip to the last item -- parameter debug=<y/n> (default 'n') adds error msg if not a location ------------------------------------------------------------------------------- -- Dependencies: _location(); ------------------------------------------------------------------------------- p.location = function(frame) local debug = (frame.args.debug or ""):sub(1, 1):lower() if debug == "" then debug = "n" end local qid = mw.text.trim(frame.args.qid or frame.args[1] or ""):upper() if qid == "" then qid=mw.wikibase.getEntityIdForCurrentPage() end if not qid then if debug ~= "n" then return i18n.errors["entity-not-found"] else return nil end end local first = mw.text.trim(frame.args.first or "") local skip = mw.text.trim(frame.args.skip or "") return table.concat( _location(qid, first, skip), ", " ) end ------------------------------------------------------------------------------- -- checkBlacklist implements a test to check whether a named field is allowed -- returns true if the field is not blacklisted (i.e. allowed) -- returns false if the field is blacklisted (i.e. disallowed) -- {{#if:{{#invoke:WikidataIB |checkBlacklist |name=Joe |suppressfields=Dave; Joe; Fred}} | not blacklisted | blacklisted}} -- displays "blacklisted" -- {{#if:{{#invoke:WikidataIB |checkBlacklist |name=Jim |suppressfields=Dave; Joe; Fred}} | not blacklisted | blacklisted}} -- displays "not blacklisted" ------------------------------------------------------------------------------- -- Dependencies: none ------------------------------------------------------------------------------- p.checkBlacklist = function(frame) local blacklist = frame.args.suppressfields or frame.args.spf or "" local fieldname = frame.args.name or "" if blacklist ~= "" and fieldname ~= "" then if blacklist:find(fieldname) then return false else return true end else -- one of the fields is missing: let's call that "not on the list" return true end end ------------------------------------------------------------------------------- -- emptyor returns nil if its first unnamed argument is just punctuation, whitespace or html tags -- otherwise it returns the argument unchanged (including leading/trailing space). -- If the argument may contain "=", then it must be called explicitly: -- |1=arg -- (In that case, leading and trailing spaces are trimmed) -- It finds use in infoboxes where it can replace tests like: -- {{#if: {{#invoke:WikidatIB |getvalue |P99 |fwd=ALL}} | <span class="xxx">{{#invoke:WikidatIB |getvalue |P99 |fwd=ALL}}</span> | }} -- with a form that uses just a single call to Wikidata: -- {{#invoke |WikidataIB |emptyor |1= <span class="xxx">{{#invoke:WikidataIB |getvalue |P99 |fwd=ALL}}</span> }} ------------------------------------------------------------------------------- -- Dependencies: none ------------------------------------------------------------------------------- p.emptyor = function(frame) local s = frame.args[1] or "" if s == "" then return nil end local sx = s:gsub("%s", ""):gsub("<[^>]*>", ""):gsub("%p", "") if sx == "" then return nil else return s end end ------------------------------------------------------------------------------- -- labelorid is a public function to expose the output of labelOrId() -- Pass the Q-number as |qid= or as an unnamed parameter. -- It returns the Wikidata label for that entity or the qid if no label exists. ------------------------------------------------------------------------------- -- Dependencies: labelOrId ------------------------------------------------------------------------------- p.labelorid = function(frame) return (labelOrId(frame.args.qid or frame.args[1])) end ------------------------------------------------------------------------------- -- getLang returns the MediaWiki language code of the current content. -- If optional parameter |style=full, it returns the language name. ------------------------------------------------------------------------------- -- Dependencies: none ------------------------------------------------------------------------------- p.getLang = function(frame) local style = (frame.args.style or ""):lower() local langcode = mw.language.getContentLanguage().code if style == "full" then return mw.language.fetchLanguageName( langcode ) end return langcode end ------------------------------------------------------------------------------- -- getItemLangCode takes a qid parameter (using the current page's qid if blank) -- If the item for that qid has property country (P17) it looks at the first preferred value -- If the country has an official language (P37), it looks at the first preferred value -- If that official language has a language code (P424), it returns the first preferred value -- Otherwise it returns nothing. ------------------------------------------------------------------------------- -- Dependencies: _getItemLangCode() ------------------------------------------------------------------------------- p.getItemLangCode = function(frame) return _getItemLangCode(frame.args.qid or frame.args[1]) end ------------------------------------------------------------------------------- -- findLanguage exports the local findLang() function -- It takes an optional language code and returns, in order of preference: -- the code if a known language; -- the user's language, if set; -- the server's content language. ------------------------------------------------------------------------------- -- Dependencies: findLang ------------------------------------------------------------------------------- p.findLanguage = function(frame) return findLang(frame.args.lang or frame.args[1]).code end ------------------------------------------------------------------------------- -- getQid returns the qid, if supplied -- failing that, the Wikidata entity ID of the "category's main topic (P301)", if it exists -- failing that, the Wikidata entity ID associated with the current page, if it exists -- otherwise, nothing ------------------------------------------------------------------------------- -- Dependencies: none ------------------------------------------------------------------------------- p.getQid = function(frame) local qid = (frame.args.qid or ""):upper() -- check if a qid was passed; if so, return it: if qid ~= "" then return qid end -- check if there's a "category's main topic (P301)": qid = mw.wikibase.getEntityIdForCurrentPage() if qid then local prop301 = mw.wikibase.getBestStatements(qid, "P301") if prop301[1] then local mctid = prop301[1].mainsnak.datavalue.value.id if mctid then return mctid end end end -- otherwise return the page qid (if any) return qid end ------------------------------------------------------------------------------- -- followQid takes four optional parameters: qid, props, list and all. -- If qid is not given, it uses the qid for the connected page -- or returns nil if there isn't one. -- props is a list of properties, separated by punctuation. -- If props is given, the Wikidata item for the qid is examined for each property in turn. -- If that property contains a value that is another Wikibase-item, that item's qid is returned, -- and the search terminates, unless |all=y when all of the qids are returned, separated by spaces. -- If |list= is set to a template, the qids are passed as arguments to the template. -- If props is not given, the qid is returned. ------------------------------------------------------------------------------- -- Dependencies: parseParam() ------------------------------------------------------------------------------- p._followQid = function(args) local qid = (args.qid or ""):upper() local all = parseParam(args.all, false) local list = args.list or "" if list == "" then list = nil end if qid == "" then qid = mw.wikibase.getEntityIdForCurrentPage() end if not qid then return nil end local out = {} local props = (args.props or ""):upper() if props ~= "" then for p in mw.text.gsplit(props, "%p") do -- split at punctuation and iterate p = mw.text.trim(p) for i, v in ipairs( mw.wikibase.getBestStatements(qid, p) ) do local linkedid = v.mainsnak.datavalue and v.mainsnak.datavalue.value.id if linkedid then if all then out[#out+1] = linkedid else return linkedid end -- test for all or just the first one found end -- test for value exists for that property end -- loop through values of property to follow end -- loop through list of properties to follow end if #out > 0 then local ret = "" if list then ret = mw.getCurrentFrame():expandTemplate{title = list, args = out} else ret = table.concat(out, " ") end return ret else return qid end end p.followQid = function(frame) return p._followQid(frame.args) end ------------------------------------------------------------------------------- -- globalSiteID returns the globalSiteID for the current wiki -- e.g. returns "enwiki" for the English Wikipedia, "enwikisource" for English Wikisource, etc. ------------------------------------------------------------------------------- -- Dependencies: none ------------------------------------------------------------------------------- p.globalSiteID = function(frame) return mw.wikibase.getGlobalSiteId() end ------------------------------------------------------------------------------- -- siteID returns the root of the globalSiteID -- e.g. "en" for "enwiki", "enwikisource", etc. -- treats "en-gb" as "en", etc. ------------------------------------------------------------------------------- -- Dependencies: none ------------------------------------------------------------------------------- p.siteID = function(frame) local txtlang = frame:callParserFunction('int', {'lang'}) or "" -- This deals with specific exceptions: be-tarask -> be-x-old if txtlang == "be-tarask" then return "be_x_old" end local pos = txtlang:find("-") local ret = "" if pos then ret = txtlang:sub(1, pos-1) else ret = txtlang end return ret end ------------------------------------------------------------------------------- -- projID returns the code used to link to the reader's language's project -- e.g "en" for [[:en:WikidataIB]] -- treats "en-gb" as "en", etc. ------------------------------------------------------------------------------- -- Dependencies: none ------------------------------------------------------------------------------- p.projID = function(frame) local txtlang = frame:callParserFunction('int', {'lang'}) or "" -- This deals with specific exceptions: be-tarask -> be-x-old if txtlang == "be-tarask" then return "be-x-old" end local pos = txtlang:find("-") local ret = "" if pos then ret = txtlang:sub(1, pos-1) else ret = txtlang end return ret end ------------------------------------------------------------------------------- -- formatNumber formats a number according to the the supplied language code ("|lang=") -- or the default language if not supplied. -- The number is the first unnamed parameter or "|num=" ------------------------------------------------------------------------------- -- Dependencies: findLang() ------------------------------------------------------------------------------- p.formatNumber = function(frame) local lang local num = tonumber(frame.args[1] or frame.args.num) or 0 lang = findLang(frame.args.lang) return lang:formatNum( num ) end ------------------------------------------------------------------------------- -- examine dumps the property (the unnamed parameter or pid) -- from the item given by the parameter 'qid' (or the other unnamed parameter) -- or from the item corresponding to the current page if qid is not supplied. -- e.g. {{#invoke:WikidataIB |examine |pid=P26 |qid=Q42}} -- or {{#invoke:WikidataIB |examine |P26 |Q42}} or any combination of these -- or {{#invoke:WikidataIB |examine |P26}} for the current page. ------------------------------------------------------------------------------- -- Dependencies: none ------------------------------------------------------------------------------- p.examine = function( frame ) local args if frame.args[1] or frame.args.pid or frame.args.qid then args = frame.args else args = frame:getParent().args end local par = {} local pid = (args.pid or ""):upper() local qid = (args.qid or ""):upper() par[1] = mw.text.trim( args[1] or "" ):upper() par[2] = mw.text.trim( args[2] or "" ):upper() table.sort(par) if par[2]:sub(1,1) == "P" then par[1], par[2] = par[2], par[1] end if pid == "" then pid = par[1] end if qid == "" then qid = par[2] end local q1 = qid:sub(1,1) if pid:sub(1,1) ~= "P" then return "No property supplied" end if q1 ~= "Q" and q1 ~= "M" then qid = mw.wikibase.getEntityIdForCurrentPage() end if not qid then return "No item for this page" end return "<pre>" .. mw.dumpObject( mw.wikibase.getAllStatements( qid, pid ) ) .. "</pre>" end ------------------------------------------------------------------------------- -- checkvalue looks for 'val' as a wikibase-item value of a property (the unnamed parameter or pid) -- from the item given by the parameter 'qid' -- or from the Wikidata item associated with the current page if qid is not supplied. -- It only checks ranks that are requested (preferred and normal by default) -- If property is not supplied, then P31 (instance of) is assumed. -- It returns val if found or nothing if not found. -- e.g. {{#invoke:WikidataIB |checkvalue |val=Q5 |pid=P31 |qid=Q42}} -- or {{#invoke:WikidataIB |checkvalue |val=Q5 |P31 |qid=Q42}} -- or {{#invoke:WikidataIB |checkvalue |val=Q5 |qid=Q42}} -- or {{#invoke:WikidataIB |checkvalue |val=Q5 |P31}} for the current page. ------------------------------------------------------------------------------- -- Dependencies: none ------------------------------------------------------------------------------- p.checkvalue = function( frame ) local args if frame.args.val then args = frame.args else args = frame:getParent().args end local val = args.val if not val then return nil end local pid = mw.text.trim(args.pid or args[1] or "P31"):upper() local qid = (args.qid or ""):upper() if pid:sub(1,1) ~= "P" then return nil end if qid:sub(1,1) ~= "Q" then qid = mw.wikibase.getEntityIdForCurrentPage() end if not qid then return nil end local ranks = setRanks(args.rank) local stats = {} if ranks.b then stats = mw.wikibase.getBestStatements(qid, pid) else stats = mw.wikibase.getAllStatements( qid, pid ) end if not stats[1] then return nil end if stats[1].mainsnak.datatype == "wikibase-item" then for k, v in pairs( stats ) do local ms = v.mainsnak if ranks[v.rank:sub(1,1)] and ms.snaktype == "value" and ms.datavalue.value.id == val then return val end end end return nil end ------------------------------------------------------------------------------- -- url2 takes a parameter url= that is a proper url and formats it for use in an infobox. -- If no parameter is supplied, it returns nothing. -- This is the equivalent of Template:URL -- but it keeps the "edit at Wikidata" pen icon out of the microformat. -- Usually it will take its url parameter directly from a Wikidata call: -- e.g. {{#invoke:WikidataIB |url2 |url={{wdib |P856 |qid=Q23317 |fwd=ALL |osd=no}} }} ------------------------------------------------------------------------------- -- Dependencies: none ------------------------------------------------------------------------------- p.url2 = function(frame) local txt = frame.args.url or "" if txt == "" then return nil end -- extract any icon local url, icon = txt:match("(.+)&nbsp;(.+)") -- make sure there's at least a space at the end url = (url or txt) .. " " icon = icon or "" -- extract any protocol like https:// local prot = url:match("(https*://).+[ \"\']") -- extract address local addr = "" if prot then addr = url:match("https*://(.+)[ \"\']") or " " else prot = "//" addr = url:match("[^%p%s]+%.(.+)[ \"\']") or " " end -- strip trailing / from end of domain-only url and add <wbr/> before . and / local disp, n = addr:gsub( "^([^/]+)/$", "%1" ):gsub("%/", "<wbr/>/"):gsub("%.", "<wbr/>.") return '<span class="url">[' .. prot .. addr .. " " .. disp .. "]</span>&nbsp;" .. icon end ------------------------------------------------------------------------------- -- getWebsite fetches the Official website (P856) and formats it for use in an infobox. -- This is similar to Template:Official website but with a url displayed, -- and it adds the "edit at Wikidata" pen icon beyond the microformat if enabled. -- A local value will override the Wikidata value. "NONE" returns nothing. -- e.g. {{#invoke:WikidataIB |getWebsite |qid= |noicon= |lang= |url= }} ------------------------------------------------------------------------------- -- Dependencies: findLang(); parseParam(); ------------------------------------------------------------------------------- p.getWebsite = function(frame) local url = frame.args.url or "" if url:upper() == "NONE" then return nil end local urls = {} local quals = {} local qid = frame.args.qid or "" if url and url ~= "" then urls[1] = url else if qid == "" then qid = mw.wikibase.getEntityIdForCurrentPage() end if not qid then return nil end local prop856 = mw.wikibase.getBestStatements(qid, "P856") for k, v in pairs(prop856) do if v.mainsnak.snaktype == "value" then urls[#urls+1] = v.mainsnak.datavalue.value if v.qualifiers and v.qualifiers["P1065"] then -- just take the first archive url (P1065) local au = v.qualifiers["P1065"][1] if au.snaktype == "value" then quals[#urls] = au.datavalue.value end -- test for archive url having a value end -- test for qualifers end -- test for website having a value end -- loop through website(s) end if #urls == 0 then return nil end local out = {} for i, u in ipairs(urls) do local link = quals[i] or u local prot, addr = u:match("(http[s]*://)(.+)") addr = addr or u local disp, n = addr:gsub("%.", "<wbr/>%.") out[#out+1] = '<span class="url">[' .. link .. " " .. disp .. "]</span>" end local langcode = findLang(frame.args.lang).code local noicon = parseParam(frame.args.noicon, false) if url == "" and not noicon then out[#out] = out[#out] .. createicon(langcode, qid, "P856") end local ret = "" if #out > 1 then ret = mw.getCurrentFrame():expandTemplate{title = "ubl", args = out} else ret = out[1] end return ret end ------------------------------------------------------------------------------- -- getAllLabels fetches the set of labels and formats it for display as wikitext. -- It takes a parameter 'qid' for arbitrary access, otherwise it uses the current page. ------------------------------------------------------------------------------- -- Dependencies: none ------------------------------------------------------------------------------- p.getAllLabels = function(frame) local args = frame.args or frame:getParent().args or {} local qid = args.qid or "" if qid == "" then qid = mw.wikibase.getEntityIdForCurrentPage() end if not qid or not mw.wikibase.entityExists(qid) then return i18n["entity-not-found"] end local labels = mw.wikibase.getEntity(qid).labels if not labels then return i18n["labels-not-found"] end local out = {} for k, v in pairs(labels) do out[#out+1] = v.value .. " (" .. v.language .. ")" end return table.concat(out, "; ") end ------------------------------------------------------------------------------- -- getAllDescriptions fetches the set of descriptions and formats it for display as wikitext. -- It takes a parameter 'qid' for arbitrary access, otherwise it uses the current page. ------------------------------------------------------------------------------- -- Dependencies: none ------------------------------------------------------------------------------- p.getAllDescriptions = function(frame) local args = frame.args or frame:getParent().args or {} local qid = args.qid or "" if qid == "" then qid = mw.wikibase.getEntityIdForCurrentPage() end if not qid or not mw.wikibase.entityExists(qid) then return i18n["entity-not-found"] end local descriptions = mw.wikibase.getEntity(qid).descriptions if not descriptions then return i18n["descriptions-not-found"] end local out = {} for k, v in pairs(descriptions) do out[#out+1] = v.value .. " (" .. v.language .. ")" end return table.concat(out, "; ") end ------------------------------------------------------------------------------- -- getAllAliases fetches the set of aliases and formats it for display as wikitext. -- It takes a parameter 'qid' for arbitrary access, otherwise it uses the current page. ------------------------------------------------------------------------------- -- Dependencies: none ------------------------------------------------------------------------------- p.getAllAliases = function(frame) local args = frame.args or frame:getParent().args or {} local qid = args.qid or "" if qid == "" then qid = mw.wikibase.getEntityIdForCurrentPage() end if not qid or not mw.wikibase.entityExists(qid) then return i18n["entity-not-found"] end local aliases = mw.wikibase.getEntity(qid).aliases if not aliases then return i18n["aliases-not-found"] end local out = {} for k1, v1 in pairs(aliases) do local lang = v1[1].language local val = {} for k1, v2 in ipairs(v1) do val[#val+1] = v2.value end out[#out+1] = table.concat(val, ", ") .. " (" .. lang .. ")" end return table.concat(out, "; ") end ------------------------------------------------------------------------------- -- showNoLinks displays the article titles that should not be linked. ------------------------------------------------------------------------------- -- Dependencies: none ------------------------------------------------------------------------------- p.showNoLinks = function(frame) local out = {} for k, v in pairs(donotlink) do out[#out+1] = k end table.sort( out ) return table.concat(out, "; ") end ------------------------------------------------------------------------------- -- checkValidity checks whether the first unnamed parameter represents a valid entity-id, -- that is, something like Q1235 or P123. -- It returns the strings "true" or "false". -- Change false to nil to return "true" or "" (easier to test with #if:). ------------------------------------------------------------------------------- -- Dependencies: none ------------------------------------------------------------------------------- function p.checkValidity(frame) local id = mw.text.trim(frame.args[1] or "") if mw.wikibase.isValidEntityId(id) then return true else return false end end ------------------------------------------------------------------------------- -- getEntityFromTitle returns the Entity-ID (Q-number) for a given title. -- Modification of Module:ResolveEntityId -- The title is the first unnamed parameter. -- The site parameter determines the site/language for the title. Defaults to current wiki. -- The showdab parameter determines whether dab pages should return the Q-number or nil. Defaults to true. -- Returns the Q-number or nil if it does not exist. ------------------------------------------------------------------------------- -- Dependencies: parseParam ------------------------------------------------------------------------------- function p.getEntityFromTitle(frame) local args=frame.args if not args[1] then args=frame:getParent().args end if not args[1] then return nil end local title = mw.text.trim(args[1]) local site = args.site or "" local showdab = parseParam(args.showdab, true) local qid = mw.wikibase.getEntityIdForTitle(title, site) if qid then local prop31 = mw.wikibase.getBestStatements(qid, "P31")[1] if not showdab and prop31 and prop31.mainsnak.datavalue.value.id == "Q4167410" then return nil else return qid end end end ------------------------------------------------------------------------------- -- getDatePrecision returns the number representing the precision of the first best date value -- for the given property. -- It takes the qid and property ID -- The meanings are given at https://www.mediawiki.org/wiki/Wikibase/DataModel#Dates_and_times -- 0 = 1 billion years .. 6 = millennium, 7 = century, 8 = decade, 9 = year, 10 = month, 11 = day -- Returns 0 (or the second unnamed parameter) if the Wikidata does not exist. ------------------------------------------------------------------------------- -- Dependencies: parseParam; sourced; ------------------------------------------------------------------------------- function p.getDatePrecision(frame) local args=frame.args if not args[1] then args=frame:getParent().args end local default = tonumber(args[2] or args.default) or 0 local prop = mw.text.trim(args[1] or "") if prop == "" then return default end local qid = args.qid or "" if qid == "" then qid = mw.wikibase.getEntityIdForCurrentPage() end if not qid then return default end local onlysrc = parseParam(args.onlysourced or args.osd, true) local stat = mw.wikibase.getBestStatements(qid, prop) for i, v in ipairs(stat) do local prec = (onlysrc == false or sourced(v)) and v.mainsnak.datavalue and v.mainsnak.datavalue.value and v.mainsnak.datavalue.value.precision if prec then return prec end end return default end return p ------------------------------------------------------------------------------- -- List of exported functions ------------------------------------------------------------------------------- --[[ _getValue getValue getPreferredValue getCoords getQualifierValue getSumOfParts getValueByQual getValueByLang getValueByRefSource getPropertyIDs getQualifierIDs getPropOfProp getAwardCat getIntersectCat getGlobe getCommonsLink getSiteLink getLink getLabel label getAT getDescription getAliases pageId formatDate location checkBlacklist emptyor labelorid getLang getItemLangCode findLanguage getQID followQid globalSiteID siteID projID formatNumber examine checkvalue url2 getWebsite getAllLabels getAllDescriptions getAllAliases showNoLinks checkValidity getEntityFromTitle getDatePrecision --]] ------------------------------------------------------------------------------- o26pvdzoveksr04pobp213ncnrqerd6 Module:I18n 828 1234 20399 3992 2026-08-14T10:39:26Z YaThaWinTha 42 20399 Scribunto text/plain --- I18n library for message storage in Lua datastores. -- The module is designed to enable message separation from modules & -- templates. It has support for handling language fallbacks. This -- module is a Lua port of [[wikia:dev:I18n-js]] and i18n modules that can be loaded -- by it are editable through [[wikia:dev:I18nEdit]]. -- -- On Wikimedia projects, i18n messages are editable -- through [[c:Special:PrefixIndex/Data:i18n/|Data:i18n/]] subpages on -- Wikimedia Commons. -- -- @module i18n -- @version 1.4.0 -- @require Module:Entrypoint -- @require Module:Fallbacklist -- @author [[wikia:dev:User:KockaAdmiralac|KockaAdmiralac]] (original Fandom implementation) -- @author [[wikia:dev:User:Speedit|Speedit]] (original Fandom implementation) -- @author [[User:Awesome Aasim|Awesome Aasim]] (Wikimedia port) -- @attribution [[wikia:dev:User:Cqm|Cqm]] -- @release beta -- @see [[wikia:dev:I18n|I18n guide]] -- @see [[wikia:dev:I18n-js]] -- @see [[wikia:dev:I18nEdit]] -- <nowiki> local i18n, _i18n = {}, {} -- Module variables & dependencies. local title = mw.title.getCurrentTitle() local fallbacks = require('Module:Fallbacklist') local entrypoint = require('Module:Entrypoint') local uselang --- Argument substitution as $n where n > 0. -- @function _i18n.handleArgs -- @param {string} msg Message to substitute arguments into. -- @param {table} args Arguments table to substitute. -- @return {string} Resulting message. -- @local function _i18n.handleArgs(msg, args) for i, a in ipairs(args) do msg = (string.gsub(msg, '%$' .. tostring(i), tostring(a))) end return msg end --- Checks whether a language code is valid. -- @function _i18n.isValidCode -- @param {string} code Language code to check. -- @return {boolean} Whether the language code is valid. -- @local function _i18n.isValidCode(code) return type(code) == 'string' and #mw.language.fetchLanguageName(code) ~= 0 end --- Checks whether a message contains unprocessed wikitext. -- Used to optimise message getter by not preprocessing pure text. -- @function _i18n.isWikitext -- @param {string} msg Message to check. -- @return {boolean} Whether the message contains wikitext. function _i18n.isWikitext(msg) return type(msg) == 'string' and ( msg:find('%-%-%-%-') or msg:find('%f[^\n%z][;:*#] ') or msg:find('%f[^\n%z]==* *[^\n|]+ =*=%f[\n]') or msg:find('%b<>') or msg:find('\'\'') or msg:find('%[%b[]%]') or msg:find('{%b{}}') ) end --- I18n datastore class. -- This is used to control language translation and access to individual -- messages. The datastore instance provides language and message -- getter-setter methods, which can be used to internationalize Lua modules. -- The language methods (any ending in `Lang`) are all **chainable**. -- @type Data local Data = {} Data.__index = Data --- Datastore message getter utility. -- This method returns localized messages from the datastore corresponding -- to a `key`. These messages may have `$n` parameters, which can be -- replaced by optional argument strings supplied by the `msg` call. -- -- This function supports [[mw:Extension:Scribunto/Lua reference manual#named_arguments|named -- arguments]]. The named argument syntax is more versatile despite its -- verbosity; it can be used to select message language & source(s). -- @function Data:msg -- @usage -- -- ds:msg{ -- key = 'message-name', -- lang = '', -- args = {...}, -- sources = {} -- } -- -- @usage -- -- ds:msg('message-name', ...) -- -- @param {string|table} opts Message configuration or key. -- @param[opt] {string} opts.key Message key to return from the -- datastore. -- @param[opt] {table} opts.args Arguments to substitute into the -- message (`$n`). -- @param[opt] {table} opts.sources Source names to limit to (see -- `Data:fromSources`). -- @param[opt] {table} opts.lang Temporary language to use (see -- `Data:inLang`). -- @param[opt] {string} ... Arguments to substitute into the message -- (`$n`). -- @error[115] {string} 'missing arguments in Data:msg' -- @return {string} Localised datastore message or `'<key>'`. function Data:msg(opts, ...) local frame = mw.getCurrentFrame() -- Argument normalization. if not self or not opts then error('missing arguments in Data:msg') end local key = type(opts) == 'table' and opts.key or opts local args = opts.args or {...} -- Configuration parameters. if opts.sources then self:fromSources(unpack(opts.sources)) end if opts.lang then self:inLang(opts.lang) end -- Source handling. local source_n = self.tempSources or self._sources local source_i = {} for n, i in pairs(source_n) do source_i[i] = n end self.tempSources = nil -- Language handling. local lang = self.tempLang or self.defaultLang self.tempLang = nil -- Message fetching. local msg for i, messages in ipairs(self._messages) do -- Message data. local msg = (messages[lang] or {})[key] -- Fallback support (experimental). for _, l in ipairs((fallbacks[lang] or {})) do if msg == nil then msg = (messages[l] or {})[key] end end -- Internal fallback to 'en'. msg = msg ~= nil and msg or messages.en[key] -- Handling argument substitution from Lua. if msg and source_i[i] and #args > 0 then msg = _i18n.handleArgs(msg, args) end if msg and source_i[i] and lang ~= 'qqx' then return frame and _i18n.isWikitext(msg) and frame:preprocess(mw.text.trim(msg)) or mw.text.trim(msg) end end return '&#x29FC;' .. mw.text.nowiki(key) .. '&#x29FD;' end --- Datastore template parameter getter utility. -- This method, given a table of arguments, tries to find a parameter's -- localized name in the datastore and returns its value, or nil if -- not present. -- -- This method always uses the wiki's content language. -- @function Data:parameter -- @param {string} parameter Parameter's key in the datastore -- @param {table} args Arguments to find the parameter in -- @error[176] {string} 'missing arguments in Data:parameter' -- @return {string|nil} Parameter's value or nil if not present function Data:parameter(key, args) -- Argument normalization. if not self or not key or not args then error('missing arguments in Data:parameter') end local contentLang = mw.language.getContentLanguage():getCode() -- Message fetching. for i, messages in ipairs(self._messages) do local msg = (messages[contentLang] or {})[key] if msg ~= nil and args[msg] ~= nil then return args[msg] end for _, l in ipairs((fallbacks[contentLang] or {})) do if msg == nil or args[msg] == nil then -- Check next fallback. msg = (messages[l] or {})[key] else -- A localized message was found. return args[msg] end end -- Fallback to English. msg = messages.en[key] if msg ~= nil and args[msg] ~= nil then return args[msg] end end end --- Datastore temporary source setter to a specificed subset of datastores. -- By default, messages are fetched from the datastore in the same -- order of priority as `i18n.loadMessages`. -- @function Data:fromSource -- @param {string} ... Source name(s) to use. -- @return {Data} Datastore instance. function Data:fromSource(...) local c = select('#', ...) if c ~= 0 then self.tempSources = {} for i = 1, c do local n = select(i, ...) if type(n) == 'string' and type(self._sources[n]) == 'number' then self.tempSources[n] = self._sources[n] end end end return self end --- Datastore default language getter. -- @function Data:getLang -- @return {string} Default language to serve datastore messages in. function Data:getLang() return self.defaultLang end --- Datastore language setter to `wgUserLanguage`. -- @function Data:useUserLang -- @return {Data} Datastore instance. -- @note Scribunto only registers `wgUserLanguage` when an -- invocation is at the top of the call stack. function Data:useUserLang() self.defaultLang = i18n.getLang() or self.defaultLang return self end --- Datastore language setter to `wgContentLanguage`. -- @function Data:useContentLang -- @return {Data} Datastore instance. function Data:useContentLang() self.defaultLang = mw.language.getContentLanguage():getCode() return self end --- Datastore language setter to specificed language. -- @function Data:useLang -- @param {string} code Language code to use. -- @return {Data} Datastore instance. function Data:useLang(code) self.defaultLang = _i18n.isValidCode(code) and code or self.defaultLang return self end --- Temporary datastore language setter to `wgUserLanguage`. -- The datastore language reverts to the default language in the next -- @{Data:msg} call. -- @function Data:inUserLang -- @return {Data} Datastore instance. function Data:inUserLang() self.tempLang = i18n.getLang() or self.tempLang return self end --- Temporary datastore language setter to `wgContentLanguage`. -- Only affects the next @{Data:msg} call. -- @function Data:inContentLang -- @return {Data} Datastore instance. function Data:inContentLang() self.tempLang = mw.language.getContentLanguage():getCode() return self end --- Temporary datastore language setter to a specificed language. -- Only affects the next @{Data:msg} call. -- @function Data:inLang -- @param {string} code Language code to use. -- @return {Data} Datastore instance. function Data:inLang(code) self.tempLang = _i18n.isValidCode(code) and code or self.tempLang return self end -- Package functions. --- Localized message getter by key. -- Can be used to fetch messages in a specific language code through `uselang` -- parameter. Extra numbered parameters can be supplied for substitution into -- the datastore message. -- @function i18n.getMsg -- @param {table} frame Frame table from invocation. -- @param {table} frame.args Metatable containing arguments. -- @param {string} frame.args[1] ROOTPAGENAME of i18n submodule. -- @param {string} frame.args[2] Key of i18n message. -- @param[opt] {string} frame.args.lang Default language of message. -- @error[271] {string} 'missing arguments in i18n.getMsg' -- @return {string} I18n message in localised language. function i18n.getMsg(frame) if not frame or not frame.args or not frame.args[1] or not frame.args[2] then error('missing arguments in i18n.getMsg') end local source = frame.args[1] local key = frame.args[2] -- Pass through extra arguments. local repl = {} for i, a in ipairs(frame.args) do if i >= 3 then repl[i-2] = a end end -- Load message data. local ds = i18n.loadMessages(source) -- Pass through language argument. ds:inLang(frame.args.uselang) -- Return message. return ds:msg { key = key, args = repl } end --- I18n message datastore loader. -- @function i18n.loadMessages -- @param {string} ... ROOTPAGENAME/path for target i18n -- submodules. -- @error[322] {string} 'no source supplied to i18n.loadMessages' -- @return {table} I18n datastore instance. -- @usage require('Module:I18n').loadMessages('1', '2') function i18n.loadMessages(...) local ds local i = 0 local s = {} for j = 1, select('#', ...) do local source = select(j, ...) if type(source) == 'string' and source ~= '' then i = i + 1 s[source] = i if not ds then -- Instantiate datastore. ds = {} ds._messages = {} -- Set default language. setmetatable(ds, Data) ds:useUserLang() end source = string.gsub(source, '^.', mw.ustring.upper) local success, messages = pcall(mw.loadData, mw.ustring.find(source, ':') and source or 'Module:' .. source .. '/i18n') if success then local msgCopy = {} local langSecond = nil for lang_id, msgtbl in pairs(messages) do if langSecond == nil then if lang_id == "qqq" or fallbacks[lang_id] ~= nil then langSecond = false else langSecond = true end end for id_lang, msg in pairs(msgtbl) do if langSecond then msgCopy[id_lang] = msgCopy[id_lang] or {} msgCopy[id_lang][lang_id] = msg else msgCopy[lang_id] = msgCopy[lang_id] or {} msgCopy[lang_id][id_lang] = msg end end end ds._messages[i] = msgCopy end local tab = mw.ext.data.get('I18n/' .. source .. '.tab', '_') local T = {} if not success and not tab then error("i18n for " .. source .. " is missing") end for _, row in pairs(tab.data) do -- convert the output into a dictionary table local id, t = unpack(row) for lang, msg in pairs(t) do if not T[lang] then T[lang] = {} end T[lang][id] = msg end end if not success then ds._messages[i] = T else for lang, msgTbl in pairs(T) do ds._messages[i][lang] = ds._messages[i][lang] or msgTbl end end end end if not ds then error('no source supplied to i18n.loadMessages') else -- Attach source index map. ds._sources = s -- Return datastore instance. return ds end end --- Language code getter. -- Can validate a template's language code through `uselang` parameter. -- @function i18n.getLang -- @return {string} Language code. function i18n.getLang() local frame = mw.getCurrentFrame() or {} local parentFrame = frame.getParent and frame:getParent() or {} local code = mw.language.getContentLanguage():getCode() local subPage = title.subpageText -- Language argument test. local langOverride = (frame.args or {}).uselang or (parentFrame.args or {}).uselang if _i18n.isValidCode(langOverride) then code = langOverride -- Subpage language test. elseif title.isSubpage and _i18n.isValidCode(subPage) then code = _i18n.isValidCode(subPage) and subPage or code -- User language test. elseif parentFrame.preprocess or frame.preprocess then uselang = uselang or parentFrame.preprocess and parentFrame:preprocess('{{int:lang}}') or frame:preprocess('{{int:lang}}') local decodedLang = mw.text.decode(uselang) if decodedLang ~= '<lang>' and decodedLang ~= '⧼lang⧽' then code = decodedLang == '(lang)' and 'qqx' or uselang end end return code end -- Credit to http://stackoverflow.com/a/1283608/2644759 -- cc-by-sa 3.0 local function tableMerge(t1, t2, overwrite) for k,v in pairs(t2) do if type(v) == "table" and type(t1[k]) == "table" then -- since type(t1[k]) == type(v) == "table", so t1[k] and v is true tableMerge(t1[k], v, overwrite) -- t2[k] == v else if overwrite or t1[k] == nil then t1[k] = v end end end return t1 end --- Given an i18n table instantiates the values (deprecated) -- @function i18n.loadI18n -- @param {string} name name of module with i18n -- @param {table} i18n_arg existing i18n function i18n.loadI18n(name, i18n_arg) local exist, res = pcall(require, name) if exist and next(res) ~= nil then if i18n_arg then tableMerge(i18n_arg, res.i18n, true) end end end --- Loads an i18n for a specific frame (deprecated) -- @function i18n.loadI18nFrame -- @param {string} name name of module with i18n -- @param {table} i18n_arg existing i18n function i18n.loadI18nFrame(frame, i18n_arg) return i18n.loadI18n(frame:getTitle().."/i18n", i18n_arg) end --- Wrapper for the module. -- @function i18n.main -- @param {table} frame Frame invocation object. -- @return {string} Module output in template context. -- @usage {{#invoke:i18n|main}} i18n.main = entrypoint(i18n) return require("Module:Deprecated")(i18n, { ["loadI18n"] = { deprecated = true, replacement = "use <code>i18n.loadMessages</code>" }, ["loadI18nFrame"] = { deprecated = true, replacement = "use <code>i18n.loadMessages</code>" } } ) -- </nowiki> mgfuyxvne0w09w2187b5onpo2rwoh53 အွိုက်စတာမီးပြ 0 1322 20412 4395 2026-08-14T11:07:50Z YaThaWinTha 42 20412 wikitext text/x-wiki အွိုက်စတာမီးပြရေစစ်တွေမြို့မှ အနောက်တောင်ဘက် ၁၅ မိုင်အကွာ ပင်လယ်ပြင်ထဲမှာဟိရေ ကျောက်ဆောင်ကျွန်းနန့် မီးပြတိုက် ဖြစ်ရေ။ မီးပြတည်ဟိရာ အွိုက်စတာကျွန်း (အင်္ဂလိပ်လို Oyster Island) ကိုအစွဲပြုပြီး အွိုက်စတာမီးပြဟု နာမည်တွင်ရေ။ မယူမြစ်ဝမှာဟိသဖြင့် မယူမီးပြဟုလည်း တွင်ရေ။ အွိုက်စတာမီးပြကို ၁၈၇၆ ခုနှစ်မှာတည်ဆောက်ခရေ။ အမြင့်ပေ ၁၄၅ ပေ ဟိပြီး မြင်နိုင်အားမှာ မိုင်၂၀ ဖြစ်ရေ။ ဒေကျွန်းမှာပင်လယ်လိပ်ထိန်းသိမ်းရေးစခန်း ဟိရေ။ <ref>ရခိုင်သုတအဘိဓာန် - အောင်လှသိန်း (၂၀၁၅) </ref> ==ကိုးကာ== [[ကဏ္ဍ:ရခိုင်ပြည် မီးပြတိုက်တိ]] {{INTERWIKI|Q117814240}} rq6x7m4v5q0wzwy16dx5cwy9xmth7wu လေးရှင်းတောင်မီးပြ 0 1589 20430 5715 2026-08-14T11:32:35Z YaThaWinTha 42 20430 wikitext text/x-wiki လေးရှင်းတောင်မီးပြရေ မြန်မာ့ပင်လယ်ပြင်ဧ အစောဆုံးမီးပြတိထဲမှ တစ်ခုဖြစ်ပြီး ၁၈၄၄ ခုနှစ်က စတင်တည်ကာ ၁၉၅၆ ခုနှစ်အထိ အသုံးပြုခရေ။ အမြင့် ၁၃၈ ပေ ဟိရေ။ ယခင်က မီးပြအလင်းရောင်ကို ၁၄ မိုင်ထိ မြင်နိုင်ခရေ။ နောက်ပိုင်း ရေတိုက်စားမှု အန္တရာယ်ကြောင့် ရပ်ဆိုင်းပြီး ၎င်းအစား စစ်တွေမီးပြကို ပြန်လည်အသုံးပြုလာရေ။ လေးရှင်းတောင်မီးပြရေ ကုလားတန်မြစ်ဝမှာစစ်တွေမြို့မှ တောင်ဘက် နှစ်မိုင်အကွာ ကျောက်ထူရေကျွန်းမှာတည်ဟိရေ။ ဒေကျွန်းကို အင်္ဂလိပ်လို Savage Island ဟုခေါ်ဧ။ ကျွန်းအရှေ့ဘက်မှာမြေငူကျွန်း ဟိရေ။ ဒေမီးပြဟောင်းရေ စစ်တွေအဝင် ရေလမ်းသင်္ကေတအဖြစ် ဆက်လက် တည်ဟိနီဆဲဖြစ်ရေ။ <ref>ရခိုင်သုတအဘိဓာန် - အောင်လှသိန်း (၂၀၁၅) </ref> ==ကိုးကာ== [[Category:ရခိုင်ပြည် မီးပြတိုက်တိ‎]] {{INTERWIKI|Q117814218}} 62y59ejsqku4ccqji8sjwps30ifj4xx ရခိုင်ရိုးမ 0 1869 20407 14373 2026-08-14T10:58:22Z YaThaWinTha 42 20407 wikitext text/x-wiki {{Infobox mountain |name = ရခိုင်ရိုးမ |other_name = ရခိုင်တောင်ကုန်းဒေသ |photo = Naf River 2.JPG |photo_caption = ရခိုင်ရိုးမတောင်တန်းအား မောင်တောခရိုင်အတွင်းမှ တွိ့မြင်ရစဉ် |photo_size = 240px |country = Myanmar |state = [[ရခိုင်ပြည်နယ်]] |highest = [[နတ်မတောင်]] |elevation_m = ၃၀၉၄ |coordinates = {{Coord|21|25|46.36|N|93|49|10.75|E|type:mountain_scale:100000|format=dms|display=inline}} |length_km = |width_km = |area_km2 = |length_orientation = |width_orientation = |length_note = |width_note = |area_note = <!-- Overall coordinates for the range; usually the center of the range --> |range_coordinates = {{Coord|21|16|N|93|57|E|type:mountain_scale:300000|format=dms|display=inline,title}} |range_coordinates_note = <!-- de wiki --> |geology = metamorphic and tightly folded sedimentary rocks over crystalline basement |period = |orogeny = |map = Myanmar |map_caption = | map_size = 200px }} အရှိပါကစ္စတန်ပြည်နယ်နန့် ဗမာနိုင်ငံအကြားတွင် မြောက်နန့်တောင် တန်းပနာဟိရေ တောင်ကုန်းဒေသကို အနောက်ဘက်တောင်ကုန်းဒေသဟု ခေါ်တွင်ရေ။ ထိုကုန်းမြင့်ပိုင်းတွင် ရခိုင်တောင်ကုန်းဒေသ၊ [[ချင်းတောင်တန်း]]၊ လူရှေ (လူဟိုင်း)တောင်ရို့ ပါဝင်လီရေ။ ရခိုင်ရိုးမတောင်တန်းရေ ထိုတောင်တန်းဒေသမှ တောင်ဘက်သို့ ကမ်းရိုးတန်းနန့် ယှဉ်ပြီးကေ ထိုးထွက်လာသော တောင်တန်းဖြစ်တေ။ ရခိုင်ရိုးမရေ [[မင်းဘူးခရိုင်]]၊ [[သရက်ခရိုင်]]၊ [[ပြည်ခရိုင်]]၊ [[ဟင်္သာတခရိုင်]]၊ [[ပုသိမ်ခရိုင်]]ရို့နန့် ရခိုင်ဘက်ဟိ [[စစ်တွေခရိုင်]]၊ [[ကျောက်ဖြူခရိုင်]]၊ [[သံတွဲခရိုင်]]တိကို ခွဲခြားထားလီရေ။ တောင်တန်းတစ်လျှောက်တွင် ပျမ်းမျှအနိန်နန့် အမြင့်ပေ ၄ဝဝဝ နန့် ပေ ၅ဝဝဝ အကြားမာ ဟိရေ။ မြောက်ဘက်တွင် ထိုထက်မြင့်မားသော တောင်တန်းတိ ဟိလီရေ။ ရိုးမတောင်တန်းရေ မတ်စောက်ပြီးကေ တောထူထပ်ရေ။ ယေကေလဲ ကျွန်းပင်တိ မပေါက်။ ရိုးမတောင်ပေါ်တွင် [[ချင်းလူမျိုး]]ရို့ နီထိုင်ကတ်တေ။ တောင်ယာစိုက်စားကတ်ရေ။ ပြောင်းဆန်နန့် တောင်ပေါ်စပါး တစ်မျိုးကို ရှီးရိုးနည်းပိုင် စိုက်ပျိုးလုပ်ကိုင်ကတ်လီရေ။ ရခိုင်ရိုးမတောင်ကို ဖြတ်ကျော်နိုင်သော တောင်ကြားလမ်း နှစ်ခု ဟိရေ။ ပထမတောင်ကြားလမ်းမှာ ကျောက်ဖြူခရိုင် [[အမ်းမြို့]]မှ မင်းဘူးခရိုင် [[ငဖဲမြို့]]သို့ပေါက်သော အမ်းတောင်ကြားလမ်း ဖြစ်ပြီးကေ၊ ဒုတိယတောင်ကြားလမ်းမှာ သံတွဲခရိုင် [[တောင်ကုပ်မြို့|တောင်ကုတ်မြို့]]မှ [[ပြည်မြို့]]နန့် တစ်ဖက်ကား [[ဧရာဝတီမြစ်]]ပေါ်ဟိ [[ပန်းတောင်းမြို့]]သို့ ပေါက်သော တောင်ကုတ်တောင်ကြားလမ်း ဖြစ်တေ။<ref>ဗမာ့စွယ်စုံကျမ်း၊ အတွဲ(၁၁)</ref> == ကိုးကား == <references/> [[ကဏ္ဍ:ရခိုင်ပြည်ဟိ တောင်တန်းတိ]] [[ကဏ္ဍ:ရခိုင် တောင်တန်းဒေသတိ]] [[ကဏ္ဍ:ရခိုင် တောင်ထိပ်တိ]] [[ကဏ္ဍ:ရခိုင် တောတောင်တိ]] najugwyvcj6vplbktj9vgow2lg2ozuo မုနိစက် 0 1939 20408 7545 2026-08-14T11:00:40Z YaThaWinTha 42 20408 wikitext text/x-wiki မဟာမုနိကုန်းတော်ရေ အံ့ဖွယ်ကိုးပါးနန့် ပြည့်စုံရေကြောင့် မုနိစက် နာမည်တွင်ရေ။ ထို ကိုးပါးမှာ ဝသုန္ဓရေတွင်း၊ ရောင်ခြည်တော်မှေးခြင်း၊ ရောင်ခြည်တော်လင်းခြင်း၊ ရောင်ခြည်တော် နိညမပြတ် လင်းခြင်း၊ သိမ်တော်အထက်က ကျေးငှက်ရို့ မပျံခြင်း၊ ဆင်းတုတော်အမြင့်ကို တိုင်းရာမှာထပ်တူမကျခြင်း၊ သိမ်တော်မှာလူစုဝီးရေ်လည်း ပြည့်ခြင်းမဟိခြင်း၊ ဦးတော်ဆေးကန်ရေ လျော့ခြင်းပိုခြင်း မဟိခြင်းနန့် သိမ်တော်ပတ်လည်မှာပေါက်ရေပန်းပင်တိရေ သိမ်တော်သို့ ဦးညွတ်ခြင်းရို့ ဖြစ်ကတ်ရေ။ မဟာမုနိစက်လည်း ဟူဧ။ <ref>ရခိုင်သုတအဘိဓာန် - အောင်လှသိန်း (၂၀၁၅) </ref> ==ကိုးကား== [[ကဏ္ဍ:ရခိုင်ပြည်ဟိ တောင်တန်းတိ]] [[ကဏ္ဍ:ရခိုင် တောင်တန်းဒေသတိ]] [[ကဏ္ဍ:ရခိုင် တောင်ထိပ်တိ]] [[ကဏ္ဍ:ရခိုင် တောတောင်တိ]] {{INTERWIKI|Q117814687}} jjnmpl9bkrs3cwjnq8exrubqmt2t8u9 ဘဲငါးရာတောင် 0 1996 20397 7776 2026-08-14T10:23:31Z YaThaWinTha 42 20397 wikitext text/x-wiki ကုလားတန်မြစ် အနောက်ဘက် မင်းကြီး တောင်တန်းတွင် ဟိရေ။ ၁၃၆၁ ပေ မြင့်ရေ။ တောင်ထိပ်စွာ တောင်ကလပ်ပိုင် ဖြစ်နီရေ။ ယင်းတောင်ထိပ်စွာ တောင်မြောက် ၃၅ဝ ပေ၊ အကျယ် ၂၇ ပေမျှ ဟိရေ။ အရှေ့ဘက်နန့် တောင်ဘက်ပိုင်းရို့ရေ မတ်စောက်ပြီး မြောက်ဘက်ရေ ဆင် ခြီလျော ဖြစ်ရေ။ တောင်ဝန်းကျင်တွင် ဆီးဘက်ဝင် အပင်တိ ပေါက်ရောက်မှုကေတ်ာင့် တစ်ချိန်က ထင်ယှားခရေ။ တောင် ကလပ်သို့ ယိုးတရုတ်ရွာမှ နှစ်နာရီခန့် တက်ရရေ။ <ref>ရခိုင်သုတအဘိဓာန် - အောင်လှသိန်း (၂၀၁၅) </ref> ==ကိုးကား== [[ကဏ္ဍ:ရခိုင်ပြည်ဟိ တောင်တန်းတိ]] [[ကဏ္ဍ:ရခိုင် တောင်တန်းဒေသတိ]] [[ကဏ္ဍ:ရခိုင် တောင်ထိပ်တိ]] [[ကဏ္ဍ:ရခိုင် တောတောင်တိ]] g1awt7mq7efyw7tytzv05xshtm7kxsy နေပူတောင် 0 2088 20396 8407 2026-08-14T10:23:17Z YaThaWinTha 42 20396 wikitext text/x-wiki ရခိုင်ရိုးမဟိ တစ်ခုတည်းရေ အလှဆင်ကျောက် (မာဘယ်လ်) ထွက်ဟိရာ တောင်ကြီး ဖြစ်ရေ။ ပင်လယ်ရေပြင် မှ ၂၂၂၃ ပေ မြင့်ရေ။ တောင်ကုတ်တောင်ကတ်ားလမ်း ၂၉ မိုင် ၄ ဖာလုံတွင် ဟိရေ။ ၁၉၆ဝ ပြည့်လွန်နှစ်တိက စတင် တွိ့ဟိခရေ။ ကျောက်တောင် အမြင့်ပေ ၃ဝဝ ခန့် ဟိပြီး သက်တမ်း ၇၅ သန်းကျော်ရေ။ တန်ဖိုးမှာ ကုဋေကုဋာ ချီရေ။ ယခု တစ်ကုဗ မီတာတုံးတိ ပြုကာ ရန်ကုန်သို့ နိစဉ် တင်ပို့လျက် ဟိရေ။ ́ဒေကျောက်ရေ နေပူထဲတွင်လည်း အေးမြနီရေ။<ref>ရခိုင်သုတအဘိဓာန် - အောင်လှသိန်း (၂၀၁၅) </ref> ==ကိုးကား== [[ကဏ္ဍ:ရခိုင်ပြည်ဟိ တောင်တန်းတိ]] [[ကဏ္ဍ:ရခိုင် တောင်တန်းဒေသတိ]] [[ကဏ္ဍ:ရခိုင် တောင်ထိပ်တိ]] [[ကဏ္ဍ:ရခိုင် တောတောင်တိ]] 4gr9w7zzby7eu7ea3qyzahusngdw4xq နီပူတောင် 0 2287 20395 9349 2026-08-14T10:23:00Z YaThaWinTha 42 20395 wikitext text/x-wiki ရခိုင်ရိုးမဟိ တစ်ခုတည်းရေ အလှဆင်ကျောက် (မာဘယ်) ထွက်ဟိရာ တောင်ကြီး ဖြစ်ရေ။ တောင်ကုတ်မှ ၂၉ မိုင် ၄ ဖါလုံ အကွာ တောင်ကုတ်တောင်ကြားလမ်းဘေးမှာဟိပြီး ပင်လယ်ရေပြင်မှ အထက် ၂၂၂၃ ပေမြင့်ရေ။ ၁၉၆၀ ပြည့်လွန်နှစ်တိက စတင်တွေ့ဟိခလေရေ။ ကျောက်တောင်ရေ ဂုအမြင့်ပေ ၃၀၀ ခန့်ဟိရေ။ နှစ်သက်တမ်းမှာ ၇၅ သန်းကျော် ဟိရေ။ တန်ဘိုးမှာ ကုဋေကုဋာချီပနာဟိကြောင်း ဆိုကတ်ရေ။ နီပူတောင်ကျောက်ဧ ထူးခြားချက်တစ်ခုမှာ နီပူထဲ၌ အေးမြနီခြင်းပင် ဖြစ်ရေ။ <ref>ရခိုင်သုတအဘိဓာန် - အောင်လှသိန်း (၂၀၁၅) </ref> ==ကိုးကား== [[ကဏ္ဍ:ရခိုင်ပြည်ဟိ တောင်တန်းတိ]] [[ကဏ္ဍ:ရခိုင် တောင်တန်းဒေသတိ]] [[ကဏ္ဍ:ရခိုင် တောင်ထိပ်တိ]] [[ကဏ္ဍ:ရခိုင် တောတောင်တိ]] {{INTERWIKI|Q117814528}} 8njhm5xql8jylxbgcxp5ibdslgc18h1 စစ်တွေမီးပြ 0 2438 20440 10005 2026-08-14T11:40:32Z YaThaWinTha 42 /* ကိုးကာ */ 20440 wikitext text/x-wiki စစ်တွေမီးပြရေ စစ်တွေမြို့ဧ ပွိုင့်အငူမှာတည်ဟိရေ။ မူလက စစ်တွေမြို့တည်စခါ အုတ်အဆောက်အဦနန့် တည်ခရေ။ ၂၅ ပေခန့် မြင့်ရေ။ မြန်မာကမ်းရိုးတန်းမှာယှေးအကျဆုံးမီးပြတိုက် ဖြစ်ရေ။ ၁၈၄၄ ခုနှစ်မှာလေးရှင်းတောင်မီးပြကို တည်ဆောက်သဖြင့် စစ်တွေမီးပြရေ ရပ်တန့်ခရေ။ တဖန် လေးရှင်းတောင်မီးပြမှာ ရေတိုက်စားမှု အန္တရာယ်ကြောင့် ရပ်လားပြန်သဖြင့် ၁၉၆၃ ခုမှစပနာ စစ်တွေမီးပြသစ်ကို သံဘောင်မျှော်စင်ဖြင့် တည်ခရေ။ ဂုမီးပြရေ ပင်လယ်ရေပြင်ထက် ပေ ၉၀ မြင့်ရေ။ မိုင်၂၀ အဝီးမှ မြင်နိုင်ရေ။ <ref>ရခိုင်သုတအဘိဓာန် - အောင်လှသိန်း (၂၀၁၅) </ref> ==ကိုးကာ== [[ကဏ္ဍ:ရခိုင်ပြည် မီးပြတိုက်တိ]] {{INTERWIKI|Q117814192}} kxmmojgeogjv4x5uadbtobc6do3bh85 စပါးဈီး 0 2456 20387 16436 2026-08-14T10:13:14Z YaThaWinTha 42 20387 wikitext text/x-wiki ၁၆၈၇ ခုမာ တိုင်းပြည်မှာဝက်သက်ရောဂါပေါက်ပနာ လူတိစွာ သီကတ်တေအတွက်နန့် စပါးအတောင်း တရာကို ငွေဒင်္ဂါးသုံးဆယ် ပီးရလီရေ။ (ကိုယ်ရံတော်ရို့၏လစာမှာ လေးဒင်္ဂါးရာဖြစ်၏) ၁၇၈၆ ခုနှစ် ဝါဆို၊ ဝါခေါင်၊ တော်သလင်းလတိုင်အောင် ကျားရဲ၏၊ ထမင်းငတ်၏၊ စပါးအတောင်း တရာကို ဒင်္ဂါးသုံးဆယ် ပီးရ၏၊ လူသူတိစွာ သီပျောက်ကုန်၏။ အင်္ဂလိပ်ခေတ်မှာစပါးဈီးရေ ရွှေဈီးနန့်အတူ ဟိခရေ။ စပါးတင်းတရာလျင် မူလငါးကျပ်မှ စစ်ကြီးဖြစ်စအထိမှာငါးဆယ်ကျပ်အထိ ဟိခရေ။ ၁၉၄၈ ခုမှာ သာမန်စပါးရေ ၂၈၅ိ မျှ ဟိခရေ။ ၁၉၆၂ ခုနှစ်မှာ ၃ဝဝိ၊ ၁၉၇၂ မှာ ၄၂၅ိ၊ ၁၉၇၃ မှာ ၆ဝဝိ၊ ၁၉၇၄) ၉ဝဝိ၊ ၁၉၈၈ မှာ ၁ရဝဝိ ၊ ၁၉၈၉ ၂၅ဝဝိ၊ ၁၉၉၀ ၄ရဝဝိ၊ ၁၉၉၂ ရဝဝဝိ၊ ၁၉၉၅ ၈ဝဝဝိ အစဟိသဖြင့် အသီးသီး ဖြစ်လာခရေ။ ၁၉၆ရမှ ၂၀၀၃ခုနှစ်အထိ အစိုးရ ဈီးနှုန်းထက် ပြင်ပ ပေါက်ဈီးက ကြီးမြင့်ခရေ။ ၂၀၀၃ ခုမှ စပနာ စပါးဈီးမာ ပေါက်ဈီးအတိုင်း ဖြစ်လာရေ။ <ref>ရခိုင်သုတအဘိဓာန် - အောင်လှသိန်း (၂၀၁၅) </ref> ==ကိုးကား== [[ကဏ္ဍ:ရခိုင်ပြည်ဟိ စျီးတိ]] {{INTERWIKI|Q117814276}} pznb83hyydz220cvkusfxbog7c166ot ကတညုတကုန်း 0 2717 20394 11819 2026-08-14T10:22:12Z YaThaWinTha 42 20394 wikitext text/x-wiki မဟာမုနိကုန်းတော်အား ခေါ်ရေ နာမည်တစ်ခု ဖြစ်ရေ။ စန္ဒသူရိယမင်းကြီးရေ ဒေကုန်းတော်ပေါ်၌ မဟာမုနိဆင်းတုတော်ကို သွန်းလုပ်ပူဇော်ထားခရေဟူဧ။ ဒသရာဇာမင်းကြီးက ပျောက်ကွယ် လားရေ မဟာမုနိ ဆင်းတုတော်ကို ဝက်သထိုးတောင်မှ ပြန်လည်ပင့်ယူပြီး ဒေကုန်းပေါ်၌ ပြန်လည်တည်ထား ကိုးကွယ်ခရေ။ ဓညဝတီမြို့ဧ မြောက်ဘက်အနီး လျောက်ပတ်ရေကုန်းဟူဧ။ ဂု ဓညဝတီမြို့တော်ဟောင်းဧ အလယ်မှာဟိရေ။ ကတညုတတောင်မြေရေ ယှေးရခိုင်မင်းရို့ ဘိသိက်သွန်းရာ၌ ပါရရေ [[မင်္ဂလာမြီခုနစ်မျိုး]]ဝင် ဖြစ်ရေ။<ref>ရခိုင်သုတအဘိဓာန် - အောင်လှသိန်း (၂၀၁၅) </ref> ==ကိုးကာ== [[ကဏ္ဍ:ရခိုင်ပြည်ဟိ တောင်တန်းတိ]] [[ကဏ္ဍ:ရခိုင် တောင်တန်းဒေသတိ]] [[ကဏ္ဍ:ရခိုင် တောင်ထိပ်တိ]] [[ကဏ္ဍ:ရခိုင် တောတောင်တိ]] {{INTERWIKI|Q117814038}} m353tbt5t2kscvxj9u14qlomzhkuk7v Module:WikidataIB/i18n 828 2896 20403 12617 2026-08-14T10:48:22Z YaThaWinTha 42 Replaced content with "-- Translate and set up for your language -- Please contact [[:ca:Module talk:Wikidata]] if you need any help local i18n = { ["errors"] = { ["property-not-found"] = "Property not found.", ["qualifier-not-found"] = "Qualifier not found.", }, ["datetime"] = { -- $1 is a placeholder for the actual number ["beforenow"] = "$1 BCE", -- how to format negative numbers for precisions 0 to 5 ["afternow"] = "$1 CE", -- how to format positive numbers for precisio..." 20403 Scribunto text/plain -- Translate and set up for your language -- Please contact [[:ca:Module talk:Wikidata]] if you need any help local i18n = { ["errors"] = { ["property-not-found"] = "Property not found.", ["qualifier-not-found"] = "Qualifier not found.", }, ["datetime"] = { -- $1 is a placeholder for the actual number ["beforenow"] = "$1 BCE", -- how to format negative numbers for precisions 0 to 5 ["afternow"] = "$1 CE", -- how to format positive numbers for precisions 0 to 5 ["bc"] = '$1 "BCE"', -- how print negative years ["ad"] = "$1", -- how print 1st century AD dates [0] = "$1 billion years", -- precision: billion years [1] = "$100 million years", -- precision: hundred million years [2] = "$10 million years", -- precision: ten million years [3] = "$1 million years", -- precision: million years [4] = "$100000 years", -- precision: hundred thousand years; thousand separators added afterwards [5] = "$10000 years", -- precision: ten thousand years; thousand separators added afterwards [6] = "$1 millennium", -- precision: millennium [7] = "$1 century", -- precision: century [8] = "$1s", -- precision: decade -- the following use the format of #time parser function [9] = "Y", -- precision: year, [10] = "F Y", -- precision: month [11] = "F j, Y", -- precision: day }, ["years-old"] = { ["singular"] = "year old", -- year old, as in {{PLURAL:$1|singular|plural}} ["plural"] = "years old", -- years old ["paucal"] = "", -- for languages with 3 plural forms as in {{PLURAL:$1|singular|paucal|plural}} }, ["cite"] = { -- parameters of local version of Template:Cite web ["url"] = "url", ["title"] = "title", ["website"] = "website", ["access-date"] = "access-date", ["archive-url"] = "archive-url", ["archive-date"] = "archive-date", ["author"] = "author", ["publisher"] = "publisher", ["quote"] = "quote", ["language"] = "language", ["date"] = "date", ["pages"] = "pages" } } -- Functions for local grammatical cases (as ordinal) and local fixes (if used) local cases = { -- local fixes --["infoboxlabel"] = function(word) return require("Module:Wikidata/labels").fixInfoboxLabel(word) end, -- other local cases } return { i18n = i18n, cases = cases } p2w1kegtsxmhi83v8k53v1tq9oskhx8 ကဏ္ဍ:ရခိုင်ပြည်ဟိကျွန်းတိ 14 3093 20378 15152 2026-08-14T09:52:45Z YaThaWinTha 42 20378 wikitext text/x-wiki [[Category:မြန်မာနိုင်ငံဟိ ကျွန်းတိ]] ghgc8udbahsg81r11bit5efnvvrwrp1 20379 20378 2026-08-14T09:54:31Z YaThaWinTha 42 20379 wikitext text/x-wiki [[Category:ရခိုင် ပထဝီဝင်]] [[Category:မြန်မာနိုင်ငံဟိ ကျွန်းတိ]] bova9impquwr4j380ucexri88p0vd36 ကဏ္ဍ:ရခိုင်ပြည်ဟိမြို့တိ 14 3287 20371 16729 2026-08-14T09:44:14Z YaThaWinTha 42 20371 wikitext text/x-wiki [[ကဏ္ဍ:မြို့]] [[ကဏ္ဍ:ရခိုင် ပထဝီဝင်]] t7ph2v7g2n999yo527b3otncy53vn08 ကဏ္ဍ:ရခိုင်ပြည်ဟိ ခရိုင်တိ 14 3288 20373 16733 2026-08-14T09:44:33Z YaThaWinTha 42 20373 wikitext text/x-wiki [[ကဏ္ဍ:ခရိုင်]] [[ကဏ္ဍ:ရခိုင် ပထဝီဝင်]] cjgh1nyipm62jowr6s0djbsoxmdqqq9 20383 20373 2026-08-14T10:07:01Z YaThaWinTha 42 20383 wikitext text/x-wiki [[ကဏ္ဍ:မြန်မာနိုင်ငံ ပြည်နယ်အလိုက် ခရိုင်တိ]] [[ကဏ္ဍ:ရခိုင် ပထဝီဝင်]] 38w6lpu4zh0bj6bfad8erswyds0udbv ကဏ္ဍ:ရခိုင်ပြည်ဟိ မြို့နယ်တိ 14 3289 20372 16739 2026-08-14T09:44:23Z YaThaWinTha 42 20372 wikitext text/x-wiki [[ကဏ္ဍ:မြို့နယ်]] [[ကဏ္ဍ:ရခိုင် ပထဝီဝင်]] kvx9xu9w5knca4b47uqrjyjxvkmj2hr ကဏ္ဍ:ရခိုင်ပြည်ဟိ ရွာတိ 14 3291 20374 16744 2026-08-14T09:44:50Z YaThaWinTha 42 20374 wikitext text/x-wiki [[ကဏ္ဍ:ရွာ]] [[ကဏ္ဍ:ရခိုင် ပထဝီဝင်]] szslm1wfwbxj3mf4lqur33kjdj1thvg ဥရုမြစ် 0 4969 20457 19431 2026-08-14T11:56:17Z YaThaWinTha 42 /* ကိုးကား */ 20457 wikitext text/x-wiki '''ဥရုမြစ်''' (ဥရုချောင်းလို့လေ့ ခေါ်ဆို) စွာ [[ကချင်ပြည်နယ်]] [[ဟူးကောင်းတောင်ကြား|ဟူးကောင်းလွင်ပြင်]]မှ မြစ်ဖျားခံကာ [[ဟုမ္မလင်းမြို့နယ်]] ထွက်ဝကျေးရွာမာ [[ချင်းတွင်းမြစ်]]အတွင်းကို စီးဝင်ရေ။<ref>{{cite web|url=http://www.britannica.com/EBchecked/topic/112284/Chindwin-River|title=Chindwin River|publisher=[[Encyclopædia Britannica]] online|access-date=2008-12-27}}</ref><ref>{{cite book|url= https://books.google.com/books?id=GN9UQMuNQNkC&dq=uyu+river&pg=PA1246|title=Merriam-Webster's Geographical Dictionary|year=1997|publisher=[[Merriam-Webster]] 1997|access-date=2008-12-28 | isbn=978-0-87779-546-9}}</ref> ယင်းဥရုမြစ်စွာ အယင်ကကြည်လင်ခရေ။ လွန်ခရေဆယ်စုနှစ်သုံးခုမှ စတင်ပနာ ဟုမ္မလင်းမြို့နယ်မာ ရွှီသတ္ထုတူးဖော်ရီးများ မာမာကျကျယ် ပြုလုပ်ခရေ။ ထိုလုပ်ငန်းခွင်တိက စွန့်ပစ်သော ဘိတ်ရည်တိကြောင့် ဂုချိန်ခါ အတော်ပင် နောက်နီခရေ။ ဥရုမြစ်ကို အမှီပြုပနာ ခရီးလမ်းလားလာရီးတိလေ့ ပြုလုပ်ကတ်တေ။ ဆိပ်ခုံကြီးတိမာ နောင်ပိုအောင်၊ နမ့်တော၊ ဆယ်ဇင်းဆိပ်ခုံများ ဖြစ်ကတ်တေ။ မိုးခါသားမာ လားလာရီး ခက်ခဲမှုမဟိရေ်လည်း နွေမာမှု စက်လှီတိရာ လားပနာရရေ။ စက်လှီတိစွာလည်း နွေးခါတွက်နမ့်တောအထိသာ လားလာနှိုင်ရေ။ ဥရုမြစ်ဧ့ ပေတထောင်အနက်မာ [[ယူရေနီယမ်]] သတ္ထုများထွက်ဟိကြောင်းလည်း ဆိုရေ။ ၂၀၁၀ခုနှစ်မာ ရုရှားနိုင်ငံ နန့်ပူးပေါင်းပနာ ရှာဖွေရီးများပြုလုပ်ဖို့လို့ ဒို့ကျေးရွာသတင်းစာမာ ဖော်ပြခကေလေ့ လက်တွိမှမူမပြုလုပ်ခကတ်လီ။ သတ္ထုပမာဏနည်းပါးခြင်း၊ ထုတ်လုပ်မှုကုန်ကျစရိတ်နန့် မကာမိခြင်းတိကြောင့် မထုတ်လုပ်ရေဟု ပြောဆိုမှုတိလည်း ဟိရေ။ == ကိုးကား == {{reflist}} [[ကဏ္ဍ:ကချင်ပြည်ဟိ မြစ်တိ]] ilwulb5ryz1xed0suimov1ktkuvdyiz ကျွန်းဝိုင်းမီးပြတိုက် 0 5057 20432 19540 2026-08-14T11:35:05Z YaThaWinTha 42 /* ကိုးကား */ 20432 wikitext text/x-wiki {{Infobox lighthouse | name = Round Island Lighthouse<br />''Trincomalee''<br />''Kevuliya'' | location = [[Trincomalee Harbour]]<br />[[Trincomalee]]<br />[[Eastern Province, Sri Lanka|Eastern Province]]<br /> [[Sri Lanka]] | image_name = Round Island Lighthouse.jpg | caption = The lighthouse in 2011 | coordinates = {{coord|8|30|46.6|N|81|13|33.2|E|display=inline}} | pushpin_map = Sri Lanka | pushpin = lighthouse | pushpin_map_caption = Sri Lanka | relief = 1 | yearbuilt = 1863 | yearlit = | yeardeactivated = | automated = yes | intensity = | range = | foundation = | construction = masonry tower | shape = cylindrical tower with balcony and lantern | marking = white tower | height = {{convert|21|m|ft}} | focalheight = {{convert|31|m|ft}} | characteristic = Fl (3) WR 15s. | currentlens = | fogsignal = | racon = | admiralty = F0852 | NGA = 27244 | ARLHS = SLI-019<ref>{{Cite rowlett|lka|archive-url=https://web.archive.org/web/20180422032828/http://www.ibiblio.org/lighthouse/lka.htm|archive-date=22 April 2018|url-status=live|accessdate=2016-04-03}}</ref> | USCG = }} '''ကျွန်းဝိုင်းမီးပြတိုက်''' ရေ သီရိလင်္ကာနိုင်ငံ၊ ထရင်ကွန်မလီးပင်လယ်အော်၊ ကျွန်းဝိုင်းပေါ်ဟိ ကမ်းလွန်မာ တည်ဟိရေ မီးပြတိုက်တခု ဖြစ်တေ။ ယင်းကို သီရိလင်္ကာဆိပ်ခုံအာဏာပိုင်က ထိန်းသိမ်းလုပ်ဆောင်ဗျာယ်ဟိရေ။<ref>{{cite web |url=http://teamtraveler.info/lighthouses-in-sri-lanka/ |title=List of Lighthouses in Sri Lanka |publisher=The Team Traveller |accessdate=1 July 2014 |archive-url=https://web.archive.org/web/20140714192919/http://teamtraveler.info/lighthouses-in-sri-lanka/ |archive-date=14 July 2014 |url-status=dead |archivedate=14 July 2014 |archiveurl=https://web.archive.org/web/20140714192919/http://teamtraveler.info/lighthouses-in-sri-lanka/ }}</ref> မီးပြတိုက်ကို ၁၈၆၃ မာ တည်ဆောက်ခပြီးကေ မူလက မီးပြတိုက်သည် အရဲရောင်မီးဖြစ်ကေလေ့ ၁၈၆၄ မာ အဖြူရောင်အဖြစ်သို့ ပြောင်းလဲခရေ။<ref>{{cite news |url=https://www.thegazette.co.uk/London/issue/22905/page/5007/data.pdf |title=Notice to Mariners |newspaper=[[The London Gazette]] | date=25 October 1864 |accessdate=25 September 2014 |archive-url=https://web.archive.org/web/20190121120505/https://www.thegazette.co.uk/London/issue/22905/page/5007/data.pdf |archive-date=21 January 2019 |url-status=live}}</ref> မီးပြတိုက်ရေ ၂၁ မီတာ (၆၉ ပေ) မြင့်ရေ။ ပင်လယ်အောင်ဟိ ကျွန်းငယ်တခုဧ့ ထိပ်ဖက်မာ တည်ဟိရေ။ အဖြူရောင်အစိတ်အပိုင်းတိထဲက တခုသည် ဖောင်တော်ကမ်းသို့ လားနှိုင်ရေ အလမ်းဝကို ဖော်ပြပီးရေ အမှတ်အသား ဖြစ်တေ။ မီးပြတိုက်ပါးသို့ လောင်းဖြင့်သာ လားရောက်နှိုင်ရေ။ အများပြည်သူအား ကျွန်းနန့် မီးပြတိုက်ပါးသို့ လာရောက်ခြင်းကို ပိတ်ပင်ထားရေ။ ==ပြင်ပလင့်များ== * [http://www.lighthousedigest.com/digest/database/uniquelighthouse.cfm?value=6418 Round Island Light (Sri Lanka)] {{Webarchive|url=https://web.archive.org/web/20210611050507/http://www.lighthousedigest.com/digest/database/uniquelighthouse.cfm?value=6418 |date=11 June 2021 }} * [http://www.slpa.lk/ Sri Lanka Ports Authority] * [http://amazinglanka.com/wp/lighthouses-sri-lanka/ Lighthouses of Sri Lanka] ==ကိုးကား== {{reflist}} [[ကဏ္ဍ:သီရိလင်္ကာနိုင်ငံဟိ မီးပြတိုက်တိ]] 7xqi1dsf8tm8ophsyt6o1ebs74z2323 လေးရှင်းတောင်မီးပြတိုက် 0 5058 20429 19541 2026-08-14T11:32:02Z YaThaWinTha 42 20429 wikitext text/x-wiki '''လေးရှင်းတောင်မီးပြတိုက်''' ရေ မြန်မာ့ပင်လယ်ပြင်ဧ့ အစောဆုံးမီးပြတိုက်တိထဲက တခုဖြစ်ပြီးကေ ၁၈၄၄ ခုနှစ်က စတင်တည်ကာ<ref name="popular">{{cite web |last1=Fame |first1=Asian |title=ဇရာကနင်းချေ ကျမ်းမာပါစီ ပင်လယ်စောင့်နတ်သမီး |url=https://www.popularmyanmar.com/popularnews/2016/07/13/%E1%80%87%E1%80%9B%E1%80%AC%E1%80%80%E1%80%94%E1%80%84%E1%80%B9%E1%80%B8%E1%80%B1%E1%80%81%E1%80%BA-%E1%80%80%E1%80%BA%E1%80%94%E1%80%B9%E1%80%B8%E1%80%99%E1%80%AC%E1%80%95%E1%80%AB%E1%80%B1/ |website=Popular News |access-date=၂ ဒီဇန်ဘာ ၂၀၂၁ |archive-date=2 December 2021 |archive-url=https://web.archive.org/web/20211202051712/https://www.popularmyanmar.com/popularnews/2016/07/13/%E1%80%87%E1%80%9B%E1%80%AC%E1%80%80%E1%80%94%E1%80%84%E1%80%B9%E1%80%B8%E1%80%B1%E1%80%81%E1%80%BA-%E1%80%80%E1%80%BA%E1%80%94%E1%80%B9%E1%80%B8%E1%80%99%E1%80%AC%E1%80%95%E1%80%AB%E1%80%B1/ }}</ref> ၁၉၅၆ ခုနှစ်အထိ အသုံးပြုခရေ မီးပြတိုက်တခု ဖြစ်တေ။ အမြင့် ၁၃၈ ပေ ဟိရေ။ အယင်က မီးပြအလင်းရောင်ကို ၁၄ မိုင်ထိ မြင်နိုင်ခရေ။ == တည်နီရာ == လေးရှင်းတောင်မီးပြတိုက်ရေ [[ရခိုင်ပြည်နယ်]]၊ [[စစ်တွေမြို့]]မှ တောင်ဘက် နှစ်မိုင်အကွာဟိ ကုလားတန်မြစ်ဝ Savage Island မာ တည်ဟိရေ။ ကျွန်းအရှိဖက်မာ [[မြီငူကျွန်း]] ဟိရေ။ == သမိုင်းကြောင်း == [[ပထမ အိန်းဂလိချ် - မြန်မာစစ်|အိန်းဂလိချ်- မြန်မာ ပထမစစ်ပွဲ]] အပြီးမာ မီးပြတိုက် ကို တည်ဆောက်ခရေ။<ref>{{cite web |title=မြန်မာ့ ပင်လယ်ပြင်မာ အစောဆုံး အလင်းပြခသူ တဦး - BBC News မြန်မာ |url=https://www.youtube.com/watch?v=nORKWhb2ITk |publisher=ဘီဘီစီ မြန်မာ |access-date=၂ ဒီဇန်ဘာ ၂၀၂၁ |language=en}}</ref> ၁၈၄၄ ခုနှစ်မာ တည်ဆောက်ခရေ မီးပြတိုက်သည် မြန်မာ့ ပင်လယ်ပြင်ဧ့ အစောဆုံး မီးပြတိုက်တခုလည်း ဖြစ်ခရေ။ <ref>{{cite web|url=https://newsvsinformation.com/2023/09/%E1%80%9B%E1%80%81%E1%80%AD%E1%80%AF%E1%80%84%E1%80%BA%E1%80%80-%E1%80%94%E1%80%BE%E1%80%85%E1%80%BA%E1%80%9B%E1%80%AC%E1%80%81%E1%80%BB%E1%80%AE%E1%80%9E%E1%80%80%E1%80%BA%E1%80%90%E1%80%99%E1%80%BA/|title=ရခိုင်က နှစ်ရာချီသက်တမ်းဟိ မီးပြတိုက်တိကို ထိန်းသိမ်းဖို့လိုအပ်နေ|work=ARAKAN news|access-date=၁၁ ဂျူလိုင် ၂၀၂၅|date=၂၀ စတ်တင်ဘာ ၂၀၂၃|archive-date=18 June 2025|archive-url=https://web.archive.org/web/20250618022112/https://newsvsinformation.com/2023/09/%E1%80%9B%E1%80%81%E1%80%AD%E1%80%AF%E1%80%84%E1%80%BA%E1%80%80-%E1%80%94%E1%80%BE%E1%80%85%E1%80%BA%E1%80%9B%E1%80%AC%E1%80%81%E1%80%BB%E1%80%AE%E1%80%9E%E1%80%80%E1%80%BA%E1%80%90%E1%80%99%E1%80%BA/|url-status=dead}}</ref> <ref>{{cite web|url=https://myawady.net.mm/content/%E1%80%99%E1%80%BC%E1%80%94%E1%80%BA%E1%80%99%E1%80%AC%E1%80%94%E1%80%AD%E1%80%AF%E1%80%84%E1%80%BA%E1%80%84%E1%80%B6%E1%80%9B%E1%80%BE%E1%80%AD-%E1%80%99%E1%80%AE%E1%80%B8%E1%80%95%E1%80%BC%E1%80%90%E1%80%AD%E1%80%AF%E1%80%80%E1%80%BA%E1%80%99%E1%80%BB%E1%80%AC%E1%80%B8%E1%80%A1%E1%80%80%E1%80%BC%E1%80%B1%E1%80%AC%E1%80%84%E1%80%BA%E1%80%B8|title=မြန်မာနိုင်ငံဟိ မီးပြတိုက်များအကြောင်း|work=MWD Webportal|access-date=၁၁ ဂျူလိုင် ၂၀၂၅|date=၂၄ ဂျန်နဝါရီ ၂၀၂၁ }}</ref> == ကိုးကား == {{reflist}} [[ကဏ္ဍ:ရခိုင်ပြည် မီးပြတိုက်တိ]] gxbgq2nfhgnrnkgzbals2ylsm52zo5o ဂယ်လီမီးပြတိုက် 0 5059 20439 19542 2026-08-14T11:39:21Z YaThaWinTha 42 /* ကိုးကား */ 20439 wikitext text/x-wiki {{Infobox lighthouse |name=Galle Lighthouse<br />''Pointe de Galle'' |image_name =SL Galle Fort asv2020-01 img24.jpg |caption=Galle Lighthouse |location=[[Galle Fort]]<br /> [[Galle]]<br />[[Southern Province, Sri Lanka|Southern Province]]<br /> [[Sri Lanka]] |coordinates = {{coord|6|01|28.48|N|80|13|09.76|E|display=inline,title}} | pushpin_map = Sri Lanka | pushpin = lighthouse | relief = 1 | pushpin_map_caption = Sri Lanka |yearbuilt = 1848 (first) |yearlit =1939 (current) |yeardeactivated= |automated = yes |foundation = |construction = concrete and stone |shape = cylindrical tower with balcony and lantern |marking = white tower and lantern |height = {{convert|26.5|m|ft}} | focalheight = {{convert|28|m|ft}} ||intensity= |range= {{convert|47|nmi}} |characteristic = Fl (2) W 15s. |currentlens= |lightsource = mains power |fogsignal = |racon = |admiralty = F0830 |NGA = 27284 |ARLHS = SLI-0018 |USCG = | managingagent = Sri Lanka Ports Authority<ref name="UNC"/> }} '''ဂယ်လီမီးပြတိုက်''' ရေ သီရိလင်္ကာနိုင်ငံ၊ ဂယ်လီမြို့မာ တည်ဟိရေ မီးပြတိုက်တခု ဖြစ်တေ။<ref name="LD">{{cite web|url=http://www.lighthousedigest.com/Digest/database/uniquelighthouse.cfm?value=2167|title=Galle Light|work=Lighthouse Explorer|publisher=Foghorn Publishing|accessdate=22 December 2014|archive-date=8 June 2015|archive-url=https://web.archive.org/web/20150608174701/http://www.lighthousedigest.com/Digest/database/uniquelighthouse.cfm?value=2167}}</ref> သီရိလင်္ကာဆိပ်ခုံအာဏာပိုင်က ထိန်းသိမ်းထားရေ။ ဒေမီးပြတိုက်ရေ သီရိလင်္ကာဟိ သက်တမ်းအကြာမြင့်ဆုံး မီးပြတိုက်ဖြစ်တေ။<ref>{{cite web|url=http://teamtraveler.info/lighthouses-in-sri-lanka/|title=List of Lighthouses in Sri Lanka|publisher=The Team Traveller|accessdate=1 July 2014|archive-url=https://web.archive.org/web/20140714192919/http://teamtraveler.info/lighthouses-in-sri-lanka/|archive-date=14 July 2014|url-status=dead|archivedate=14 July 2014|archiveurl=https://web.archive.org/web/20140714192919/http://teamtraveler.info/lighthouses-in-sri-lanka/}}</ref><ref name="UNC">{{Cite rowlett|lka|date=13 February 2006|access-date=22 December 2014}}</ref> ==သမိုင်းကြောင်း== ဂယ်လီမာ ပထမဆုံးသော မီးပြတိုက်ကို ၁၈၄၈ ခုနှစ်မာ ဗြိတိသျှရို့က ဆောက်လုပ်ခရေ။ <ref name="LD"/><ref name=Parliament>{{cite journal|title=Accounts and Papers of the House of Commons|volume=53|page=43|date=1850|publisher=Parliament of Great Britain|url=https://books.google.com/books?id=a6BbAAAAQAAJ&pg=RA18-PA43&dq=galle+lighthouse#v=onepage&q=galle%20lighthouse&f=false}}</ref>ယင်းသည် ၂၄.၄ မီတာ (ပေ ၈၀ ) အမြင့်ဟိရေ သံမီးပြတိုက်တခု ဖြစ်တေ။ ပြတိုက်ကို အင်္ဂလန်မှ တင်သွင်းရေ သံကြွပ်ပြားတိနန့် တည်ဆောက်ထားရေ။ <ref name=Parliament/><ref>{{cite book|title=Sailing Directions for the West Coast of India - Issue 159|publisher=United States Hydrographic Office|date=1920|page=167}}</ref> ယင်းကို ဗြိတိသျှဗိသုကာပညာသျှင် အလက်ဇန်းဒါးဂေါ်ဒန်က ဒီဇိုင်းရီးဆွဲကာ Pimlico ဧ့ အိန်ဂျန်နီယာဖြစ်သူ Messrs. Robinsonက ဆောက်လုပ်ခရေ။ <ref name=CEAJ>{{cite journal|title=The Civil Engineer and Architect's Journal|url=https://books.google.com/books?id=1iM6AQAAMAAJ&pg=PA385&dq=%22point+de+galle%22+light+lens#v=onepage&q=%22point%20de%20galle%22%20light%20lens&f=false|volume=10|page=385|date=1847}}</ref><ref>{{cite journal|first=Miles|last=Lewis|title=Construction History|volume=27|date=2012|pages=23–64|publisher=Construction History Society|journal=Iron Lighthouses}}</ref>မီးပြတိုက်သည် အဖြူရောင်ဆီးခြယ်ထားပြီးသား ဂယ်လီဆိပ်ခုံဧ့ အနောက်ဖက်မာ တည်ဟိရေ ဂယ်လီခံတပ်ဧ့ အနောက်တောင်ဘက်နီရာဖြစ်ရေ Utrtecht ခံတပ်နီရာတွင် တည်ဟိရေ။ ဒေမီးပြတိုက်မာ ၁၉ ကီလိုမီတာ (၁၂ မိုင်) အဝီးမှ မြင်နှိုင်ရေ prolate  ရောင်ပြန်တိကို တပ်ဆင်ထားရေ။ ဒေမီးပြတိုက်ရေ ၁၉၃၆ ခုနှစ်မာ မီးတိုက်ကာ ဖျက်ဆီးခံခရရေ။<ref name=CEAJ/><ref>{{cite journal|title=The Artizan|volume=5|url=https://books.google.com/books?id=EDpRAAAAYAAJ&pg=PA274&dq=%22point+de+galle%22+lighthouse+lens#v=onepage&q=%22point%20de%20galle%22%20lighthouse%20lens&f=false|page=274|date=December 1874}}</ref><ref>{{cite web|url=https://pharology.eu/history/asia/AS02_lighthousesofsrilanka.html|title=AS02: Lighthouses of Sri Lanka|publisher=The World Lighthouse Hub|accessdate=6 March 2020}}</ref> In July 1936 it was destroyed by fire.<ref name="UNC"/><ref name="LD"/> လက်ဟိ ၂၆.၅ မီတာ (၈၇ ပေ) မြင့်ရေ ကွန်ကရစ်မီးပြတိုက်ရေ ၁၉၃၉ ခုနှစ်က တည်ဆောက်ခဲ့ရေ ၁၀၀ မီတာလှောက် (၃၃၀ ပေ) မြင့်ရေ မီးပြတိုက်ကို ပြန်ပနာကာ တည်ဆောက်ထားခြင်း ဖြစ်တေ။ <ref name="UNC"/><ref name="LD"/> မီးပြတိုက်ရေ ရှီးဟောင်းဂယ်လီခံတပ်နန့် နံရံတခုရာခြာရေ။ မီးပြတိုက်ရေ နည်းဗျူဟာအရ အငူဧ့ တောင်ဘက်အစွန်ပိုင်းမာ တည်ဟိရေ။ ခံတပ်ကတုတ်ဟိ လမ်းဧ့အထက် ၆ မီတာ (၂၀ ပေ) ခန့်မာ တည်ဆောက်ထားရေ။ ယင်းခံတပ်ကတုတ်ကို Point Utrecht Bastion ဟု ခေါ်ကတ်ရား ယင်းမှနိန်ပနာ ဂယ်လီဆိပ်ခုံသို့ ဝင်ရောက်လှာရေ ဇာသင်္ဘောကိုမဆို ကောင်းစွာမြင်တွိနှိုင်ရေ။<ref name="UNC"/> ==ပြင်ပလင့်များ== *[https://web.archive.org/web/20060813163401/http://www.lhdepot.com/database/uniquelighthouse.cfm?value=2167 Galle Light] *[http://www.bl.uk/onlinegallery/onlineex/apac/photocoll/l/019pho000000249u00055000.html British Library photograph of the original 1848 lighthouse] {{Webarchive|url=https://web.archive.org/web/20211008131022/http://www.bl.uk/onlinegallery/onlineex/apac/photocoll/l/019pho000000249u00055000.html |date=8 October 2021 }} * [http://www.slpa.lk/ Sri Lanka Ports Authority] * [http://amazinglanka.com/wp/lighthouses-sri-lanka/ Lighthouses of Sri Lanka] ==ကိုးကား== {{reflist}} [[ကဏ္ဍ:သီရိလင်္ကာနိုင်ငံဟိ မီးပြတိုက်တိ]] kg7n8vg4tw0ecxlvluxb0uw1pxpedi2 ကိုလံဘိုမီးပြတိုက် 0 5060 20434 19543 2026-08-14T11:36:07Z YaThaWinTha 42 /* ကိုးကား */ 20434 wikitext text/x-wiki {{more citations needed|date=July 2015}} {{Use dmy dates|date=August 2014}} {{Infobox lighthouse |name= Colombo Lighthouse<br />''Galbokka Point'' |image_name= ColomboPortLighthouse.jpg |caption= Colombo Lighthouse |location= Galbokka Point<br /> [[Colombo]]<br /> [[Sri Lanka]] | pushpin_map = Sri Lanka Colombo Greater | pushpin_map_caption = Location in greater Colombo | pushpin = lighthouse | relief = 1 |coordinates = {{coord|6.936298|79.840766|display=inline,title}} |yearbuilt = 1820s (first) |yearlit = 1952 (current) |yeardeactivated = |automated = |foundation = |construction = stone tower |shape = cylindrical tower with balcony and lantern on a 1-storey building |marking = unpainted tower, the seaward side is painted in a black and white checkered pattern | height = {{convert|15|m|ft}} | focalheight = {{convert|26|m|ft}} |currentlens= | lightsource = mains power | intensity = |range= {{convert|15|nmi}} | characteristic = Fl (3) W 10s. | fogsignal = | racon = | admiralty = F0804 | canada = | NGA = 27332 | ARLHS = SLI-005 | USCG = | country = | countrynumber = | countrylink = | managingagent = Sri Lanka Ports Authority<ref>{{Cite rowlett|lka|accessdate=2016-04-01}}</ref> }} '''ကိုလံဘိုမီးပြတိုက်''' ရေ သီရိလင်္ကာနိုင်ငံ၊ ကိုလံဘိုမြို့မာ တည်ဟိရေ မီးပြတိုက်တခု ဖြစ်တေ။ သီရိလင်္ကာဆိပ်ခုံအာဏာပိုင်က ထိန်းခြုပ်လုပ်ဆောင်ဗျာယ်ဟိရေ။ ကိုလံဘိုဆိပ်ခုံဧ့ တောင်ဘက် ဂယ်ဘော့ကာပွိုင့်မာ တည်ဟိရေ။ ==သမိုင်းကြောင်း== ကိုလံဘိုဆိပ်ခုံတိုးချဲ့ရီးစီမံကိန်းဧ့ အစိတ်အပိုင်းတခုအနိန်နန့် ကိုလံဘိုမီးပြတိုက်အဟောင်းကို ပိတ်ခပြီးကေ ၁၉၅၂ မာ လက်ဟိ ၂၉ မီတာ (၉၅ ပေ) မြင့်ရေ မီးပြတိုက်ကို တည်ဆောက်ခရေ။ ယင်းမီးပြတိုက်ကို သီရိလင်္ကာဧ့ ပထမဆုံးသောဝန်ကြီးချုပ်ဖြစ်ရေ Rt Hon D.S. Senanayake က ဖွင့်လှစ်ခရေ။ ကွန်ကရစ်အောက်ခံဖြင့် တည်ဆောက်ထားရေ ဒေမီးပြတိုက်သည် ၁၂ မီတာ (၃၉ ပေ) မြင့်ရေ။ ယင်းဧ့ အောက်ခြီမာ ခြင်္သေ့ရုပ်တု လေးခု တည်ဟိရေ။ အိန္ဒိယသမုဒ္ဒရာကို မြင်ကွင်းကျယ်ပုံစံနန့် မြင်ရသဖြင့် ဒေပြတိုက်သည် မြို့ဧ့ အထင်ကရနီရာတခု ဖြစ်လာခရေ။ သီရိလင်္ကာပြည်မားစစ် ပြင်းထန်လာရေအခါမှ ဒေမီးပြတိုက်သို့ အများပြည်သူများ လာရောက်လည်ပတ်ခြင်းကို ကန့်သတ်ခရေ။ ယင်းပိုင် ပိတ်ပင်ရခြင်းကာ ဒေမီးပြတိုက်တည်ဟိရာနီရာသသည် လုံခြုံရီးမြင့်မားရေ ဇုန်အထဲတည်ဟိနိန်ရေ။ ကိုလံဘိုဆိပ်ခုံနန့် နီးကပ်စွာတည်ဟိနိန်ပြီးကေ ရီတပ်ဌာနချုပ်နန့်လည်း လမ်းတဖက်တချက်မာ တည်ဟိရေ။ ==ပြင်ပလင့်များ== * [http://www.slpa.lk/ Sri Lanka Ports Authority] * [http://amazinglanka.com/wp/lighthouses-sri-lanka/ Lighthouses of Sri Lanka] ==ကိုးကား== {{reflist}} [[ကဏ္ဍ:သီရိလင်္ကာနိုင်ငံဟိ မီးပြတိုက်တိ]] cdisdxpn1dgsi7azc48pveoykq2ch8p ဟမ်ဘန်တိုတာမီးပြတိုက် 0 5064 20428 19563 2026-08-14T11:30:26Z YaThaWinTha 42 20428 wikitext text/x-wiki {{Infobox lighthouse |name=Hambantota Lighthouse |image_name = |caption= |location=[[Hambantota]]<br />[[Southern Province, Sri Lanka|Southern Province]]<br /> [[Sri Lanka]] |coordinates = {{coord|6|07|19.2|N|81|07|37.6|E|display=inline,title}} | relief = 1 |yearbuilt = 1913 |yearlit = |yeardeactivated= |automated = |foundation = |construction = concrete and stone |shape = cylindrical tower with gallery and lantern |marking = black and white tower and lantern |height = {{convert|14|m|ft}} | focalheight = {{convert|15|m|ft}} ||intensity= |range= {{convert|13|nmi}} |characteristic = <!---Fl (2) W 15s.---> |currentlens= |lightsource = |fogsignal = |racon = |admiralty = formerly F0838 |NGA = |ARLHS = SLI-0011 |USCG = | managingagent = }} '''ဟမ်ဘန်တိုတာမီးပြတိုက်''' ({{lang-si|හම්බන්තොට ප්‍රදීපාගාරය}}) ရေ သီရိလင်္ကာနိုင်ငံ၊ ဟမ်ဘန်တိုတာမြို့မာ တည်ဟိရေ ကျောက်အငူထက်မာ တည်ဟိရေ မီးပြတိုက်တခု ဖြစ်တေ။<ref>{{cite news|url=http://www.dailynews.lk/2020/02/14/features/211444/hambantota%E2%80%99s-historic-gems|title=Hambantota’s historic gems|newspaper=[[The Daily News (Sri Lanka)|The Daily News]]|first=Raja|last=Waidyasekera|date=14 February 2020|accessdate=28 June 2020}}</ref> မီးပြတိုက်ရေ ဇမ်းပွတ်ဖြင့် ပြုလုပ်ထားရေ အဝိုင်းပုံစံတာဝါဖြစ်တေ။ အမြင့် ၁၄ မီတာ (၄၆ ပေ) မြင့်ရေ။ အခန်းတခုနန့် မီးပြခန်းတခု ပါဝင်ရေ။ ၁၉၁၃ ခုနှစ်မာ တည်ဆောက်ခရေ။ William Douglass က ဒီဇိုင်းရီးဆွဲခပြီးကေ ထရိုင်နစ်တီအိမ်ရာအိန်ဂျန်နီယာကုမ္ပဏီက တည်ဆောက်ခရေ။<ref>{{cite web|url=https://www.uda.gov.lk/attachments/devplan_detailed/Development%20Plans%202019-2030/Hambnthota/English.pdf|title= Hambantota Municipal Council Development Plan: 2019 – 2030|publisher=Urban Development Authority (Hambantota Office)|page=45-46|date=2019}}</ref> မီးပြတိုက်ဌာနကို ၁၉၀၃ ခုနှစ်မာ စတင်တည်ထောင်ခရေ။<ref>{{cite web|url=https://www.ceylonlanka.info/2012/09/hambantota-light-house.html|title=Hambantota Light house|publisher=Ceylonlanka.com|accessdate=28 June 2020}}</ref> မီးပြတိုက်ကို ကျောက်တုံးတိနန့် တည်ဆောက်ထားရေ။ ၁၉၇၇ ခုနှစ်ထိအောင် ဒေမီးပြတိုက်သည် လုပ်ဆောင်နီတုန်းအဆင့်သာဖြစ်ပြီးကေ အလုပ်မလုပ်နိုင်ပါ၊၊ ၂၀၁၂ ခုနှစ်မာ ဟမ်ဘန်တိုတာဆိပ်ခုံဧ့ အရှိဖက်နန့် အနောက်ဘက် ရီကာစွာတိထက်မာ မီးပြတိုက်တိကို တည်ဆောက်ခရေ။<ref>{{cite book|title=Prostar Sailing Directions 2005 India & Bay of Bengal Enroute|publisher=ProStar Publications|date=2005|isbn=9781577856627|page=87}}</ref> ၁၉၉၉ ခုနှစ်မာ ပြန်ပနာပြင်ဆင်ခပြီးကေ အဖြူ၊ အနက် အရောင်တိနန့် ဆီးခြယ်ခရေ။ နောက်ဆုံးမှာ မီးပြတိုက်ရေ Hambantota Kachcheri ဧ့ အစိတ်အပိုင်းတခုအနိန်နန့် ဟိခရေ။ Hambantota Kachcheri မာ မြီစာရင်းရုံးခွဲတခု ဟိခရေ။ ၂၀၁၆ ခုနှစ်၊ မာ့ခ်ျလ ၂၅ ရက်နိမာ မီးပြတိုက်ကို ထိန်းသိမ်းစောင့်ယှောက်ရဖို့ရှီးဟောင်းသုတေသနနီရာတခုအဖြစ် အစိုးရက သတ်မှတ်ခရေ။<ref>{{cite journal|url=http://www.documents.gov.lk/files/gz/2016/3/2016-03-25(I-I)E.pdf|date=25 March 2016|title=PART I : SECTION (I) — GENERAL Government Notifications|journal=[[The Gazette of the Democratic Socialist Republic of Sri Lanka]]|volume=1960|archive-date=4 April 2017|access-date=9 June 2021|archive-url=https://web.archive.org/web/20170404155127/http://www.documents.gov.lk/files/gz/2016/3/2016-03-25(I-I)E.pdf|url-status=dead}}</ref> ==အရာဖတ်ရှုရန်== * {{cite book|title=Tower Hill Area Conservation Project|first=Y. G. I Saman|last=Kumara|publisher=[[University of Moratuwa]]|date=2013}} ==ကိုးကား== {{reflist}} [[ကဏ္ဍ:သီရိလင်္ကာနိုင်ငံဟိ မီးပြတိုက်တိ]] 45rub2bw2dstpviv8wpzqhlrldwvm1k အိုလုဗီမီးပြတိုက် 0 5066 20424 19565 2026-08-14T11:19:43Z YaThaWinTha 42 20424 wikitext text/x-wiki {{Infobox lighthouse | name = Oluvil Lighthouse | image = | image_name = Oluvil Lighthouse 2.jpg | image_width = | caption = Oluvil Lighthouse | location = [[Oluvil]]<br />[[Ampara District]]<br /> [[Sri Lanka]] | relief = 1 | coordinates ={{Coord|07|17|25.5|N|81|52|02.2|E|region:LK|display=inline,title}} | coordinates_footnotes = | yearbuilt = 1999<ref>{{cite web|title=Oluvil Light house|url=http://www.ceylonlanka.info/2012/09/oluvil-light-house.html|publisher=ceylonlanka.info|accessdate=8 February 2015}}</ref> | yearlit = 1999<ref>{{cite web|url=http://www.slpa.lk/milstones.asp?chk=1|title=Milestones|publisher=[[Sri Lanka Ports Authority]]|accessdate=9 February 2015|url-status=dead|archiveurl=https://web.archive.org/web/20150209081842/http://www.slpa.lk/milstones.asp?chk=1|archivedate=9 February 2015}}</ref> | automated = | yeardeactivated = | foundation = | construction = concrete tower | shape = cylindrical tower with balcony and lantern | marking = white tower and lantern | height = {{Convert|24|m|ft}} | focalheight = {{Convert|24.9|m|ft}} | lens = | currentlens = | lightsource = | intensity = | range = | characteristic = Fl W 10s.<ref name="LD"/> | fogsignal = | racon = | admiralty = F0845<ref name="UNC">{{cite rowlett|lka|accessdate=8 February 2015}}</ref> | canada = | NGA = not listed | ARLHS = SLI 026<ref>{{cite web|title=Oluvil Light|url=http://wlol.arlhs.com/lighthouse/SLI26.html|publisher=[[Amateur Radio Lighthouse Society]]|accessdate=8 February 2015}}</ref> | USCG = | country = | countrynumber = | countrylink = | managingagent = Sri Lanka Ports Authority | heritage = }} '''အိုလုဗီမီးပြတိုက်''' ({{lang-si|ඔලුවිල් ප්‍රදීපාගාරය}}) ရေ [[သီရိလင်္ကာနိုင်ငံ]] အရှိတောင်ကမ်းရိုးတန်း၊ အိုလုဗီမြို့မာ တည်ဟိရေ မီးပြတိုက်တခု ဖြစ်တေ။ ကယ်မုနိုင်မြို့မှ တောင်ဘက် ၁၂ ကီလိုမီတာ (၇.၅ မိုင်) အကွာမာ တည်ဟိရေ။<ref name="UNC"/> သီရိလင်္ကာဆိပ်ခုံအာဏာပိုင်က ဒေမီးပြတိုက်ကို ထိန်းသိမ်းခြင်း၊ လုပ်ဆောင်ခြင်းများ ဆောင်ရွက်ရေ။ ၂၀၁၂ - ၂၀၁၃ မာ ဟမ်ဘန်တိုတဆိပ်ခုံနန့် ကိုလံဘိုဆိပ်ခုံရို့ တိုးချဲ့ခြင်းများ မလုပ်ဆောင်မီ သီရိလင်္ကာလွတ်လပ်ရီးရယားနောက်မာ ပထမဆုံးတည်ဆောက်ခဲ့ရေ မီးပြတိုက်ဖြစ်တေ။ အမြင့်သည် ၂၄ မီတာ (၇၉ ပေ) ဟိပြီးး အဖြူရောင်ဆလင်ဒေချင့်ကွန်ကရစ်မီးပြတိုက်တာဝါဖြစ်တေ။ ၁၉၉၉ ခုနှစ်မာ အိုလုဗီဆိပ်ခုံဖွံ့ဖြိုးရီးရေ အစိတ်အပိုင်းတခုအနိန်နန့် တည်ဆောက်ခရေ။ တည်ဆောက်ရာမာ အလင်းရောင်မီးနန့် အခန်းများပါဝင်ရေ။ <ref name="UNC"/><ref>{{cite news|url=http://www.sundayobserver.lk/2013/09/01/fea11.asp|title=Oluvil Port Development project to create 10,000 jobs by 2015|newspaper=[[Sunday Observer (Sri Lanka)|Sunday Observer]]|date=1 September 2013|last=Sirimane|first=Shirajiv|accessdate=9 February 2015|archivedate=1 September 2013|archiveurl=https://web.archive.org/web/20130901121811/http://www.sundayobserver.lk/2013/09/01/fea11.asp}}</ref>ပြတိုက်ကို ငယ်ရေတထပ်အဆောက်အဦတခုနန့် ချိတ်ဆက်ထားရေ။<ref name="UNC"/> မီးပြတိုက်ကို ၁၉၉၉ ခုနှစ်၊ ဂျုန်လ ၁၉ ရက်နိမာ သီရိလင်္ကာဆိပ်ခုံဖွံ့ဖြိုးရီး၊ ပြုပျင်ရီးနန့် ပျင်ဆင်ရီးဝန်ကြီးနန့် သီရိလင်္ကာမူဆလင်ကွန်ဂရက်ဂေါင်းဆောင် M. H. M. Ashraff ရို့က ဖွင့်လှစ်ပီးခရေ။ ==၂၀၀၄ ခုနှစ် ဆူနာမီ== ၂၀၀၄ ခုနှစ်မာ [[အိန္ဒိယသမုဒ္ဒရာ]]ဆူနာမီဖြစ်ပေါ်ခရေ ဆိပ်ခုံမြို့နန့် မီးပြတိုက်ရို့ ပျက်စီးခရေ။<ref>{{cite web|url=http://www.tamilnet.com/art.html?catid=79&artid=13812|title=Muslims on Tsunami hit southeast coast suffer heavily|publisher=Tamilnet|date=31 December 2004|accessdate=9 February 2015}}</ref> ထိုအပျက်အစီးတိကို ပြင်ဆင်ခရေ။<ref name="UNC"/><ref>{{cite web|title=Oluvil Lighthouse|url=http://www.thesrilankaguide.com/2011-04-19-08-39-43/eastern-province/oluvil-lighthouse|publisher=RSP Holdings|work=The Sri Lanka Guide|accessdate=8 February 2015|archivedate=7 February 2015|archiveurl=https://web.archive.org/web/20150207211103/http://www.thesrilankaguide.com/2011-04-19-08-39-43/eastern-province/oluvil-lighthouse}}</ref> ==ပြင်ပလင့်များ== * [http://www.slpa.lk/ Sri Lanka Ports Authority] * [http://amazinglanka.com/wp/lighthouses-sri-lanka/ Lighthouses of Sri Lanka] ==ကိုးကား== {{reflist}} [[ကဏ္ဍ:သီရိလင်္ကာနိုင်ငံဟိ မီးပြတိုက်တိ]] m8p4xp3kc7p71obxib6xb21vpxuac3f ဒွန်ဒရာထိပ်မီးပြတိုက် 0 5067 20441 19568 2026-08-14T11:41:05Z YaThaWinTha 42 /* ကိုးကား */ 20441 wikitext text/x-wiki {{Infobox lighthouse |name=Dondra Head Lighthouse |location=[[Dondra|Dondra Head]]<br />[[Southern Province, Sri Lanka|Southern Province]]<br />[[Sri Lanka]] |image_name=Dondra Head Lighthouse - ATennakoon.jpg |caption=Dondra Head lighthouse | pushpin_map = Sri Lanka | relief = 1 | pushpin = lighthouse | pushpin_map_caption = Sri Lanka |coordinates = {{coord|5|55|16.71|N|80|35|38.73|E|region:LK-31_type:landmark|display=inline,title}} | coordinates_footnotes = |yearbuilt = 1890 |yearlit = |yeardeactivated= |automated= |foundation= |construction = brick tower |shape = octagonal tower with balcony and lantern |marking = white tower, yellow windows |height={{convert|49|m|ft|abbr=on}} | focalheight = {{convert|47|m|ft}} | lens = | currentlens = | lightsource = mains power |intensity= |range= {{Convert|28|nmi|km mi}} |characteristic =Fl W 5s.<ref name="LD"/> |fogsignal = |racon = |admiralty = F0836 |NGA = 27276 |ARLHS = SLI-001 |USCG = | managingagent = Sri Lanka Ports Authority }} '''ဒွန်ဒရာထိပ်မီးပြတိုက်''' သီရိလင်္ကာနိုင်ငံတောင်ဘက်စွန်းအပိုင်း၊ ဒွန်ဒရာမာ တည်ဟိရေ မီးပြတိုက်တခု ဖြစ်တေ။ သီရိလင်္ကာဧ့ အမြင့်ဆုံးမီးပြတိုက်တခု ဖြစ်တေ။<ref name="LD">{{cite web|url=http://www.lighthousedigest.com/Digest/database/uniquelighthouse.cfm?value=2075|title=Dondra Head Light|work=Lighthouse Explorer|publisher=Foghorn Publishing|accessdate=11 December 2014}}</ref> အရှိတောင်အာသျှဧ့ အမြင့်ဆုံးမီးပြတိုက်တခုဖြစ်တေ။ သီရိလင်္ကာဆိပ်ခုံအာဏာပိုင်က ထိန်းသိမ်းလုပ်ဆောင်ရေ။ ဒွန်ဒရာရွာဧ့ နံဘေးမာ တည်ဟိပြီး မတရာမြို့ဧ့ အရှိတောင်ဘက် ၆ ကီလိုမီတာလှောက် (၃.၇ မိုင်) အကွာမာ တည်ဟိရေ။ ဒွန်ဒရာဆိုစွာမာ ဒေသမား Sinhala ဘာသာစကားဖြင့် "ဒေဝီ - နုဝရ" ဧ့ အဓိပ္ပာယ်ဆင်တူရေ ဘာသာစကား ဖြစ်တေ။ ဒေဝီ ဆိုစွာမာ နတ်ဘုရားဖြစ်ပြီးကေ၊ နုဝရဆိုစွာမာ မြို့ ဟု အဓိပ္ပာယ်ရရေ။ ဒွန်ဒရာဆိုစွာက နာမည်မာ "နတ်ဘုရားတိ၏ မြို့တော်" ဟူရေ အဓိပ္ပာယ်ဆဖြစ်တေ။ ==သမိုင်း== ==ပြင်ပလင့်များ== ==ကိုးကား== {{reflist}} [[ကဏ္ဍ:သီရိလင်္ကာနိုင်ငံဟိ မီးပြတိုက်တိ]] ihfhahzfyonjs8e5wt047dztufsi16p ကိုလံဘိုမီးပြတိုက်ဟောင်း 0 5068 20433 19562 2026-08-14T11:35:45Z YaThaWinTha 42 /* ကိုးကား */ 20433 wikitext text/x-wiki {{Infobox lighthouse |name=Old Colombo Lighthouse<br />''Clock Tower'' | image_name = LK-colombo-uhrturm.jpg | image_width = | caption = The clock tower lighthouse |location= [[Fort (Colombo)|Fort]]<br /> [[Colombo]]<br /> [[Sri Lanka]] | pushpin_map = Sri Lanka Colombo Central | pushpin_map_caption = Location in central Colombo | pushpin = lighthouse | relief = 1 | coordinates = {{coord|6|56|5|N|79|50|34|E|display=inline,title}} | coordinates_footnotes = | yearbuilt = 1829 (first) | yearlit = 1865 | automated = no | yeardeactivated = 1952 | foundation = | construction = brick tower | shape = square tower with balcony and lantern | marking = white tower with stone trim, grey metallic lantern | height = {{Convert|29|m|ft|abbr=on}} | focalheight = | lens = | currentlens = | lightsource = | intensity = | range = | characteristic = | fogsignal = | racon = | admiralty = | NGA = | ARLHS = SLI-021 | USCG = | country = | countrynumber = | countrylink = | managingagent = | heritage = }} '''ကိုလံဘိုမီးပြတိုက်ဟောင်း''' သို့မဟုတ် '''ကိုလံဘိုခံတပ်နာရီစင်''' ရေ သီရိလင်္ကာနို်င်ငံ၊ ကိုလံဘိုမြို့မာ တည်ဟိရေ မီးပြတိုက်တခု ဖြစ်တေ။ ဂုချိန်ခါမာ နာရီစင်တခု အဖြစ် တည်ဟိနိန်ရေ။ ဒေမီးပြတိုက်သည် အလုပ်လုပ်ဆောင်မှု မဟိတော့ပေ၊ ယကေလေ့ ဂုချိန်ခါမာ နာရီစင်တခုအဖြစ် ကျန်ဟိနီရေ။ ယင်းသည် ကိုလံဘိုခံတပ်ဟိ Janadhipathi Mawatha (အယင် Queens Road) နန့် ချသမ်လမ်းနှစ်ခု ဆုံရာမာ တည်ဟိရေ။ ==သမိုင်းကြောင်း== [[File:Queen Street, showing light house, Colombo (NYPL Hades-2359794-4044559).jpg|thumb|left|200px|Queen Street, showing light house in 1907.]] တာဝါကို နာရီစင်တခုအဖြစ် ၁၈၅၆ - ၅၇ မာ တည်ဆောက်ခပြီးကေ ၁၈၅၇ ခုနှစ် ဖေဖဝါရီလ ၂၅ ရက်နိမာ ပြီးစီးခရေ။<ref name="ST">{{cite news|url=http://www.sundaytimes.lk/060625/plus/plus13.0.html|title=The Big Ben of Colombo - the Chatham Street clock tower|newspaper=[[The Sunday Times (Sri Lanka)|The Sunday Times]]|last=Paranavitana|first=Dr. K. D.|date=25 June 2006|accessdate=8 October 2014}}</ref> တာဝါကို အုပ်ချုပ်သူ Sir Henry George Ward (1797 – 1860) ဧ့ ဇနီးဖြစ်သူ Emily Elizabeth Ward က ဒီဇို်င်းရီးဆွဲခရေ။<ref name="ST"/><ref>{{cite web|url=https://www.mit.edu/~dfm/genealogy/ward.html|title=Genealogy of Henry George Ward|publisher=Daniel Morgan's Genealogy Pages|date=31 December 2010|accessdate=8 October 2014}}</ref> တည်ဆောက်မှုကို ပြည်သူ့လုပ်ငန်းများဌာနက ဒါရိုက်တာဖြစ်သူ Mr John Flemming Churchill ဧ့ ဦးဆောင်မှုအောက်မာ တာဝန်ယူခရေ။ ထိုအချိန်က ၂၉ မီတာ (၉၅ ပေ) အမြင့်ဟိရေ ဒေမီးပြတိုက်ရေ ကိုလံဘိုမာ အမြင့်ဆုံး အဆောက်အဦ ဖြစ်တေ။<ref>{{cite web|title=Lighthouse Explorer: Colombo Clock Tower|url=http://www.lighthousedigest.com/Digest/database/uniquelighthouse.cfm?value=2076|publisher=[[Lighthouse Digest]]|accessdate=8 October 2014|archive-date=12 October 2014|archive-url=https://web.archive.org/web/20141012215054/http://www.lighthousedigest.com/Digest/database/uniquelighthouse.cfm?value=2076}}</ref> မူလနာရီစင်တည်ဆောက်ဖို့အစီအစိုင်ကို အုပ်ချုပ်သူ Sir Robert Brownrigg (1759 – 1833) က ၁၈၁၄ ခုနှစ်မာ £1,200 ဖြင့် ပြုလုပ်ခရေ။ ယကေလေ့ ယင်းကို ဂူဒင်ဂဒင်တခုမာသာ ထိန်းသိမ်းထားခရရေ။ စီးပွားရီးဆိုင်ရေ အကြောင်းတိကြောင့် ယင်းကို ၁၈၅၇ ခုနှစ် ရောက်ယင့်အချိန်မှ နောက်ဆုံးပြုလုပ်ခကတ်ရရေ။ နံဘေးအနားဟိ အဆောက်အဦတိစွာ မီးပြတိုက်ဧ့ အလင်းရောင်ကို ဖုံးကွယ်သဖြင့် ဒေမီးပြတိုက်ကို ပိတ်ခပြီး ၁၉၅၂ ခုနှစ်၊ ဇူလို်ငလ ၁၂ ရက်နိမာ ဖျက်သိမ်းခရေ။ ယင်းဧ့ နီရာတွင် ခေတ်မီ ဂယ်လီဘတ်မီးပြတိုက်ကို အစားထိုးကာ တည်ဆောက်ခရေ။ ==အသွင်အပြင်== ==ပြင်ပလင့်များ== * [http://www.slpa.lk/ Sri Lanka Ports Authority] * [http://amazinglanka.com/wp/lighthouses-sri-lanka/ Lighthouses of Sri Lanka] ==ကိုးကား== {{reflist}} [[ကဏ္ဍ:သီရိလင်္ကာနိုင်ငံဟိ မီးပြတိုက်တိ]] 1qtz4u8n00c86819p7xq81bik2zs31i မန်နာကျွန်းမီးပြတိုက် (အသစ်) 0 5069 20444 19569 2026-08-14T11:42:52Z YaThaWinTha 42 /* ကိုးကား */ 20444 wikitext text/x-wiki {{Infobox lighthouse | name = Mannar Island Lighthouse (new)<br />''Talaimannar'' | image_name = Lighthouse, Talaimannar.jpg | image_width = | caption = Mannar Island Lighthouse in 2014 | location = [[Mannar Island]]<br />[[Talaimannar]]<br />[[Sri Lanka]] | pushpin_map = Sri Lanka Northern Province | pushpin_map_caption = Northern Province | pushpin = Lighthouse | coordinates = {{coord|09|06|26.8|N|79|43|51.8|E|display=inline,title}} | coordinates_footnotes = | yearbuilt = 1915 | yearlit = | automated = | yeardeactivated = | foundation = | construction = masonry tower | shape = cylindrical tower with balcony and lantern | marking = white tower and lantern | height = {{Convert|19|m|ft}} | focalheight = {{Convert|17|m|ft}} | lens = | currentlens = | lightsource = | intensity = | range = {{Convert|10|nmi|km mi}} | characteristic = Fl W 5s. | fogsignal = | racon = | admiralty = F0884 | canada = | NGA = 27364 | ARLHS = SLI-015 | USCG = | country = | countrynumber = | countrylink = | managingagent = | heritage = }} '''မန်နာကျွန်းမီးပြတိုက် (အသစ်)''' ရေ သီရိလင်္ကာနိုင်ငံမြောက်ပိုင်း၊ မန်နာကျွန်းပေါ်ဟိ Talaimanner မာ တည်ဟိရေ မီးပြတိုက်တခု ဖြစ်တေ။<ref name=UNC>{{Cite rowlett|lka|date=13 February 2006}}</ref><ref>{{cite web|title=Mannar Island (New)/Talaimannar (New) Light|url=http://wlol.arlhs.com/lighthouse/SLI15.html|publisher=[[Amateur Radio Lighthouse Society]]}}</ref><ref>{{cite web|title=Lighthouse Explorer: Mannar Island Light (new)|url=http://www.lighthousedigest.com/Digest/database/uniquelighthouse.cfm?value=6428|publisher=[[Lighthouse Digest]]}}</ref> ၁၉၁၅ ခုနှစ်မာ တည်ဆောက်ခရေ။ အဖြူရောင်ဝန်းဝိုင်းရေဆလင်ဒါပုံစံတာဝါဖြစ်ကာ ရုပ်ပုံတိနန့် မှန်အိမ်များ ပါဝင်ရေ။ ၁၉ မီတာ (၆၂ ပေ) မြင့်ရေ။ ==ပြင်ပလင့်များ== * [http://www.slpa.lk/ Sri Lanka Ports Authority] * [http://amazinglanka.com/wp/lighthouses-sri-lanka/ Lighthouses of Sri Lanka] <br /> ==ကိုးကား== {{reflist}} [[ကဏ္ဍ:သီရိလင်္ကာနိုင်ငံဟိ မီးပြတိုက်]] ij3g973l0w7129opylxmay08hgfb88j 20445 20444 2026-08-14T11:43:09Z YaThaWinTha 42 /* ကိုးကား */ 20445 wikitext text/x-wiki {{Infobox lighthouse | name = Mannar Island Lighthouse (new)<br />''Talaimannar'' | image_name = Lighthouse, Talaimannar.jpg | image_width = | caption = Mannar Island Lighthouse in 2014 | location = [[Mannar Island]]<br />[[Talaimannar]]<br />[[Sri Lanka]] | pushpin_map = Sri Lanka Northern Province | pushpin_map_caption = Northern Province | pushpin = Lighthouse | coordinates = {{coord|09|06|26.8|N|79|43|51.8|E|display=inline,title}} | coordinates_footnotes = | yearbuilt = 1915 | yearlit = | automated = | yeardeactivated = | foundation = | construction = masonry tower | shape = cylindrical tower with balcony and lantern | marking = white tower and lantern | height = {{Convert|19|m|ft}} | focalheight = {{Convert|17|m|ft}} | lens = | currentlens = | lightsource = | intensity = | range = {{Convert|10|nmi|km mi}} | characteristic = Fl W 5s. | fogsignal = | racon = | admiralty = F0884 | canada = | NGA = 27364 | ARLHS = SLI-015 | USCG = | country = | countrynumber = | countrylink = | managingagent = | heritage = }} '''မန်နာကျွန်းမီးပြတိုက် (အသစ်)''' ရေ သီရိလင်္ကာနိုင်ငံမြောက်ပိုင်း၊ မန်နာကျွန်းပေါ်ဟိ Talaimanner မာ တည်ဟိရေ မီးပြတိုက်တခု ဖြစ်တေ။<ref name=UNC>{{Cite rowlett|lka|date=13 February 2006}}</ref><ref>{{cite web|title=Mannar Island (New)/Talaimannar (New) Light|url=http://wlol.arlhs.com/lighthouse/SLI15.html|publisher=[[Amateur Radio Lighthouse Society]]}}</ref><ref>{{cite web|title=Lighthouse Explorer: Mannar Island Light (new)|url=http://www.lighthousedigest.com/Digest/database/uniquelighthouse.cfm?value=6428|publisher=[[Lighthouse Digest]]}}</ref> ၁၉၁၅ ခုနှစ်မာ တည်ဆောက်ခရေ။ အဖြူရောင်ဝန်းဝိုင်းရေဆလင်ဒါပုံစံတာဝါဖြစ်ကာ ရုပ်ပုံတိနန့် မှန်အိမ်များ ပါဝင်ရေ။ ၁၉ မီတာ (၆၂ ပေ) မြင့်ရေ။ ==ပြင်ပလင့်များ== * [http://www.slpa.lk/ Sri Lanka Ports Authority] * [http://amazinglanka.com/wp/lighthouses-sri-lanka/ Lighthouses of Sri Lanka] <br /> ==ကိုးကား== {{reflist}} [[ကဏ္ဍ:သီရိလင်္ကာနိုင်ငံဟိ မီးပြတိုက်တိ]] 9d3yw5wvbth0txe0dwmouitc99gqw66 ကန်ကီစန်သုရိုင်မီးပြတိုက် 0 5070 20437 19560 2026-08-14T11:37:58Z YaThaWinTha 42 /* ကိုးကား */ 20437 wikitext text/x-wiki {{Infobox lighthouse | name = Kankesanthurai Lighthouse | image_name = | image_width = | caption = | location = Kankesanthurai<br />Northern Province, Sri Lanka<br />Sri Lanka | pushpin_map = Sri Lanka Northern Province | pushpin_map_caption = Northern Province | pushpin = Lighthouse | coordinates = {{coord|09|48|58.15|N|80|02|42.4|E|display=inline,title}} | coordinates_footnotes = | yearbuilt = 1893 | yearlit = | automated = | yeardeactivated = | foundation = | construction = masonry tower | shape = octagonal tower with balcony and lantern | marking = white tower and lantern | height = {{Convert|22|m|ft}} | focalheight = {{Convert|25|m|ft}} | lens = | currentlens = | lightsource = | intensity = | range = {{Convert|14|nmi|km mi}} | characteristic = Fl (3) W 15s. | fogsignal = | racon = | admiralty = F0872 | canada = | NGA = 27224 | ARLHS = SLI-012 | USCG = | country = | countrynumber = | countrylink = | managingagent = | heritage = }} '''ကန်ကီစန်သုရိုင်မီးပြတိုက်''' ရေ သီရိလင်္ကာနိုင်ငံမြောက်ပိုင်း၊ ကန်ကီစန်သုရိုင်မြို့မာ တည်ဟိရေ မီးပြတိုက်တခု ဖြစ်တေ။<ref name=UNC>{{cite web|last1=Rowlett|first1=Russ|title=Lighthouses of Sri Lanka|url=http://www.unc.edu/~rowlett/lighthouse/lka.htm|publisher=[[:en:University of North Carolina at Chapel Hill]]|date=13 February 2006}}</ref><ref>{{cite web|title=Kankesanturaï Light|url=http://wlol.arlhs.com/lighthouse/SLI12.html|publisher=Amateur Radio Lighthouse Society}}</ref><ref>{{cite web|title=Lighthouse Explorer: Kankesanturai Light|url=http://www.lighthousedigest.com/Digest/database/uniquelighthouse.cfm?value=6414|publisher=Lighthouse Digest|access-date=22 May 2021|archive-date=22 May 2021|archive-url=https://web.archive.org/web/20210522234438/http://www.lighthousedigest.com/Digest/database/uniquelighthouse.cfm?value=6414}}</ref> ၁၈၉၃ ခုနှစ်မာ တည်ဆောက်ခရေ။ အမြင့် ၂၂ မီတာ (၇၂ ပေ) ဟိပြီးး မျက်နှာပြင်သျှစ်ခုပါဟိရေ ဇမ်းပွတ်တာဝါတခု ဖြစ်တေ။ မှန်အိမ်နန့် လက်မှုအနုပညာများ ပါဝင်ရေ။ သီရိလင်္ကာစစ်တပ်ဧ့ Valikamam မြောက်ပိုင်း လုံခြုံရီးတင်းကျပ်ရေဇုန်မာ တည်ဟိရေ။ ယင်းဧ့ ဖီးနားမာ ရီတပ်အခြီစိုက်နီရာ တည်ဟိရေ။ မီးပြတိုက်ရေ သီရိလင်္ကာပြည်မားစစ်အတွင်းမာ ဆိုးရွားစွာပျက်စီးခပြီးကေ အဂုအချိန်မာ အသုံးပြုခြင်းမဟိပေ။<ref name=UNC/> ==ပြင်ပလင့်များ== * [http://www.slpa.lk/ Sri Lanka Ports Authority] * [http://amazinglanka.com/wp/lighthouses-sri-lanka/ Lighthouses of Sri Lanka] * [https://static.panoramio.com.storage.googleapis.com/photos/large/122758098.jpg Picture of Kankesanthurai Lighthouse in 2015] {{Webarchive|url=https://web.archive.org/web/20160418044822/https://static.panoramio.com.storage.googleapis.com/photos/large/122758098.jpg |date=18 April 2016 }} ==ကိုးကား== {{reflist}} [[ကဏ္ဍ:သီရိလင်္ကာနိုင်ငံဟိ မီးပြတိုက်တိ]] 82boobhhbumh13c6nhm6pqk2ksgy4da ဘတ်တိကလိုအာမီးပြတိုက် 0 5071 20443 19566 2026-08-14T11:41:56Z YaThaWinTha 42 /* ကိုးကား */ 20443 wikitext text/x-wiki {{Infobox lighthouse | name = Batticaloa Lighthouse<br />''Mattuwaran'' | image_name = Batticaloa lighthouse.jpg | caption = Batticaloa Lighthouse | location = [[Batticaloa]]<br />[[Eastern Province, Sri Lanka|Eastern Province]]<br />[[Sri Lanka]] | pushpin_map = Sri Lanka | relief = 1 | pushpin = lighthouse | pushpin_map_caption = Sri Lanka | coordinates = {{coord|7|45|17.7|N|81|41|07.6|E|display=inline,title}} | yearbuilt = 1913 | yearlit = | automated = | yeardeactivated = | foundation = | construction = masonry tower | shape = tapered cylindrical tower with balcony and lantern on a stone basement | marking = white tower and lantern | height = {{convert|28|m|ft}} | focalheight = {{convert|27|m|ft}} | lens = | currentlens = | lightsource = mains power | intensity = | range = | characteristic = Fl W 3s. | fogsignal = | racon = | admiralty = F0846 | canada = | NGA = 27260 | ARLHS = SLI-003 | USCG = | country = | countrynumber = | countrylink = | managingagent = Sri Lanka Ports Authority<ref>{{Cite rowlett|lka|accessdate=2016-04-01}}</ref> }} '''ဘတ်တိကလိုအာမီးပြတိုက်''' ရေ သီရိလင်္ကာနိုင်ငံမာ တည်ဟိရေ မီးပြတိုက်တခု ဖြစ်တေ။ Palameenmadu ဟိ မြစ်ဝမာ တည်ဟိရေ။ ယင်းကို ၁၉၁၃ ခုနှစ်မာ ဆောက်လုပ်ခပြီး ၂၈ မီတာ မြင့်ရေ။<ref name="GoVisit">{{cite web | url=http://www.govisitsrilanka.com/Batticaloa-Lighthouse/attractions-details/21/ | title=Batticaloa Lighthouse | accessdate=February 13, 2013 | archive-date=15 May 2021 | archive-url=https://web.archive.org/web/20210515051033/https://www.govisitsrilanka.com/batticaloa-lighthouse/attractions-details/21/ }}</ref> ==တည်နီရာ== ဘတ်တိကလိုအာမီးပြတိုက်ရေ ဘတ်တိကလိုအာမြို့မှ ၅ ကီလိုမီတာလှောက် အကွာ ဘားလမ်းထက်မာ တည်ဟိရေ။ ကယ်လဒီတန်းထားနံဘေး ကန်လမ်း ("မြူးနစ်ဗစ်တိုးရီးယားချစ်ကြည်ရီးလမ်း" လို့လေ့ ခေါ်ကြ) ကတဆင့် ယင်းပါးသို့ လားရောက်နှိုင်ရေ။ Sinna Uppodai ရီအိုင်မှ ၄ ကီလိုမီတာလှောက်ရှိးဆက်လားပါက ရောက်ဟိနှိုင်ဖို့ ဖြစ်တေ။ ထိုနီရာရေ လမ်းလျှောက်ခြင်း၊ စက်သီးစီးခြင်းတိအတွက် အလွန်ကောင်းမွန်ရေ နီရာတခု ဖြစ်တေ။ ==ရုပ်ပုံများ== <gallery> File:Batticaloa light house.jpg|Batticaloa light house from Batticaloa lagoon File:Batticaloa Lighthouse.jpg|Batticaloa Lighthiuse from Batticaloa Beeach site File:Batticaloa Lighthouse Evening Time.jpg|Batticaloa Lighthouse Evening Time File:Ruins of old Batticaloa Lighthouse.JPG|Ruins of old Batticaloa Lighthouse, which was built by British Ceylon Batticaloa Lighthouse (view from above).jpg|View from the top of the lighthouse </gallery> ==ပြင်ပလင့်များ== * [http://www.slpa.lk/ Sri Lanka Ports Authority] ==ကိုးကား== {{reflist}} [[ကဏ္ဍ:သီရိလင်္ကာနိုင်ငံဟိ မီးပြတိုက်တိ]] 9q32takiunxqfi4r6tptl2pe3ig1nc7 မူလိုင်တိဗုမီးပြတိုက် 0 5072 20431 19571 2026-08-14T11:33:24Z YaThaWinTha 42 /* ကိုးကား */ 20431 wikitext text/x-wiki {{Infobox lighthouse | name = Mullaitivu Lighthouse | image_name = | image_width = | caption = | location = | pushpin_map = Sri Lanka Northern Province | relief = | pushpin_mapsize = | pushpin_map_alt = | pushpin_map_caption = Location within Northern Province | pushpin = Lighthouse | pushpin_label_position = | coordinates = {{coord|09|17|26.90|N|80|48|38.35|E|display=inline,title}} | coordinates_footnotes = | yearbuilt = 1896 | yearlit = | automated = | yeardeactivated = | foundation = | construction = | shape = | marking = | height = {{Convert|20|m|ft}} | focalheight = {{Convert|20|m|ft}} | lens = | currentlens = | lightsource = | intensity = | range = {{Convert|10|nmi|km mi}} | characteristic = Fl.(2) W 10s | fogsignal = | racon = | admiralty = | canada = | NGA = | ARLHS = SLI-016 | USCG = | country = | countrynumber = | countrylink = | managingagent = | heritage = }} '''မူလိုင်တိဗုမီးပြတိုက်''' ရေ သီရိလင်္ကာနိုင်ငံမြောက်ပိုင်း၊ မူလိုင်တိဗုမြို့မာ တည်ဟိရေ မီးပြတိုက်တခု ဖြစ်တေ။ ၁၈၉၆ ခုနှစ်မာ တည်ဆောက်ခရေ။ အမြင့် ၂၀ မီတာ (၆၆ ပေ) ဟိကာ သံဝင်ရိုးဖြင့် တည်ဆောက်ထားရေ။<ref>{{cite web|title=Mullaittivu Light|url=http://wlol.arlhs.com/lighthouse/SLI16.html|publisher=[[Amateur Radio Lighthouse Society]]}}</ref><ref>{{cite web|title=Lighthouse Explorer: Mullaittivu Light|url=http://www.lighthousedigest.com/Digest/database/uniquelighthouse.cfm?value=6416|publisher=[[Lighthouse Digest]]}}</ref> ဒေမီးပြတိုက်ရေ သီရိလင်္ကာပြည်မားစစ်ကာလအထဲ ၁၉၉၆/၉၇ မာ ဖျက်ဆီးခံရရေဟု ယုံကြည်ရရေ။ ==ကိုးကား== {{reflist}} [[ကဏ္ဍ:သီရိလင်္ကာနိုင်ငံဟိ မီးပြတိုက်တိ]] 808v06nkbw8jwjl8lf9h8453w8lnmch ပန်ဂုဒုတိဗုမီးပြတိုက် 0 5073 20442 19567 2026-08-14T11:41:28Z YaThaWinTha 42 /* ကိုးကား */ 20442 wikitext text/x-wiki {{Infobox lighthouse | name = Pungudutivu Lighthouse | image_name = | image_width = | caption = | location = [[Pungudutivu]]<br />[[Jaffna District]]<br />[[Northern Province, Sri Lanka|Northern Province]]<br />[[Sri Lanka]] | pushpin_map = Sri Lanka Northern Province | pushpin_map_caption = Northern Province | pushpin = Lighthouse | coordinates = {{coord|09|34|04.1|N|79|51|14.7|E|display=inline,title}} | coordinates_footnotes = | yearbuilt = | yearlit = | automated = | yeardeactivated = | foundation = | construction = masonry tower | shape = | marking = | height = | focalheight = {{Convert|11|m|ft}} | lens = | currentlens = | lightsource = | intensity = | range = | characteristic = Fl W 5s. | fogsignal = | racon = | admiralty = F0877 | canada = | NGA = 27216<ref name=UNC/> | ARLHS = | USCG = | country = | countrynumber = | countrylink = | managingagent = | heritage = }} '''ပန်ဂုဒုတိဗုမီးပြတိုက်''' ရေ သီရိလင်္ကာနိုင်ငံမြောက်ပိုင်း၊ ပန်ဂုဒုတိဗုမြို့မာ တည်ဟိရေ မီးပြတိုက်တခု ဖြစ်တေ။ မီးပြတိုက်ရေ စတုရန်းပုံစံတာဝါတခု ဖြစ်တေ။ <ref name=UNC>{{Cite rowlett|lka|date=13 February 2006}}</ref> The lighthouse has a square tower.<ref name=UNC/> ==ပြင်ပလင့်များ== * [http://www.slpa.lk/ Sri Lanka Ports Authority] * [http://amazinglanka.com/wp/lighthouses-sri-lanka/ Lighthouses of Sri Lanka] ==ကိုးကား== {{reflist}} [[ကဏ္ဍ:သီရိလင်္ကာနိုင်ငံဟိ မီးပြတိုက်တိ]] mj7f9azloekesd8tinxqumdezn8ec5n မန်နာကျွန်းမီးပြတိုက် (အဟောင်း) 0 5074 20446 19570 2026-08-14T11:44:00Z YaThaWinTha 42 /* ကိုးကား */ 20446 wikitext text/x-wiki {{Infobox lighthouse | name = Mannar Island Lighthouse (old) | image_name = | image_width = | caption = | location = | pushpin_map = Sri Lanka Northern Province | relief = | pushpin_mapsize = | pushpin_map_alt = | pushpin_map_caption = Location within Northern Province | pushpin = Lighthouse | pushpin_label_position = | coordinates = {{coord|09|05|37.85|N|79|41|53.80|E|display=inline,title}} | coordinates_footnotes = | yearbuilt = 1915 | yearlit = | automated = | yeardeactivated = | foundation = | construction = | shape = | marking = | height = | focalheight = | lens = | currentlens = | lightsource = | intensity = | range = | characteristic = | fogsignal = | racon = | admiralty = | canada = | NGA = | ARLHS = SLI-025 | USCG = | country = | countrynumber = | countrylink = | managingagent = | heritage = }} '''မန်နာကျွန်းမီးပြတိုက် (အဟောင်း)''' ရေ သီရိလင်္ကာနိုင်ငံမြောက်ပိုင်း၊ မန်နာကျွန်းဟိ Urumalai မာ တည်ဟိရေ မီးပြတိုက်တခု ဖြစ်တေ။ မီးပြတိုက်ကို ၁၉၁၅ ခုနှစ်မာ တည်ဆောက်ခရေ။ <ref>{{cite web|title=Mannar Island (Old)/Urumalai/Talaimannar (Old) Light|url=http://wlol.arlhs.com/lighthouse/SLI25.html|publisher=[[Amateur Radio Lighthouse Society]]}}</ref><ref>{{cite web|title=Lighthouse Explorer: Mannar Island Light (old)|url=http://www.lighthousedigest.com/Digest/database/uniquelighthouse.cfm?value=6427|publisher=[[Lighthouse Digest]]}}</ref>ဂုချိန်ခါ အလုပ်လုပ်ဆောင်ခြင်း မဟိပေ။ ယင်းကို သံဖြင့်ပြုလုပ်ထားရေ။ ==ကိုးကား== {{reflist}} [[ကဏ္ဍ:သီရိလင်္ကာနိုင်ငံဟိ မီးပြတိုက်တိ]] p5zbc3qdqqzp4id53g8kzitsjpmglmj ကိုဗီလန်အငူမီးပြတိုက် 0 5075 20436 19561 2026-08-14T11:37:34Z YaThaWinTha 42 /* ကိုးကား */ 20436 wikitext text/x-wiki {{Infobox lighthouse | name = Kovilan Point Lighthouse | image_name = | image_width = | caption = | location = [[Karaitivu (island)|Karaitivu Island]]<br />[[Jaffna Peninsula]]<br />[[Northern Province, Sri Lanka|Northern Province]]<br /> [[Sri Lanka]] | pushpin_map = Sri Lanka Northern Province | pushpin_map_caption = Northern Province | pushpin = Lighthouse | coordinates = {{coord|09|45|42.40|N|79|51|47.85|E|display=inline,title}} | coordinates_footnotes = | yearbuilt = 1899 (first) | yearlit = 1916 (current) | automated = | yeardeactivated = | foundation = | construction = masonry tower | shape = cylindrical tower with balcony and lantern | marking = white tower and lantern | height = {{Convert|30|m|ft}} | focalheight = {{Convert|31|m|ft}} | lens = | currentlens = | lightsource = | intensity = | range = {{Convert|11|nmi|km mi}} | characteristic = Fl (2) W 10s. | fogsignal = | racon = | admiralty = F0874 | canada = | NGA = 27212 | ARLHS = SLI-013<ref name=UNC/> | USCG = | country = | countrynumber = | countrylink = | managingagent = | heritage = }} '''ကိုဗီလန်အငူမီးပြတိုက်''' ရေ သီရိလင်္ကာနိုင်ငံမြောက်ပိုင်း၊ ကရိုင်တိဗုကျွန်း (Karaitivu) မာ တည်ဟိရေ မီးပြတိုက်တခု ဖြစ်တေ။ ယင်းကို ၁၉၁၆ မာ တည်ဆောက်ခရေ။ စခန်းမာမူ ၁၈၉၉ ခုနှစ်မာ စတင်ခရေ။<ref name=UNC>{{cite web|last1=Rowlett|first1=Russ|title=Lighthouses of Sri Lanka|url=http://www.unc.edu/~rowlett/lighthouse/lka.htm|publisher=[[University of North Carolina at Chapel Hill]]|date=13 February 2006}}</ref><ref>{{cite web|title=Kovilan Point (Karaitivu Island) Light|url=http://wlol.arlhs.com/lighthouse/SLI13.html|publisher=[[Amateur Radio Lighthouse Society]]}}</ref><ref>{{cite web|title=Lighthouse Explorer: Kovilan Point Light|url=http://www.lighthousedigest.com/Digest/database/uniquelighthouse.cfm?value=6413|publisher=[[Lighthouse Digest]]}}</ref> မီးပြတိုက်သည် အဝိုင်းပုံစံ ဇမ်းပွတ်ဖြင့် ပြုလုပ်ထားပြီးသား အမြင့် ၃၀ မီတာ (၉၈ ပေ) ဟိကာ အဖြူရောင်ဖြစ်တေ။<ref name=UNC/> အလင်းရောင်မီးရေ ပင်လယ်ရီမျက်နှာပြင်အထက် ၃၁ မီတာ (၁၀၂ ပေ) ဟိရေ။ ပင်လယ်ရီမျက်နှာပြင်အထက် ၃၀.၄၈ မီတာ (၁၀၂ ပေ) ဟိ သင်္ဘောပေါ်မှ ကြည့်ရှုသူစွာ မီးအလင်းရောင်ကို ၂၁.၄ nautical miles (၃၉.၆ ကီလိုမီတာ၊ ၂၄.၆ မိုင်) အကွာမှ လှမ်းမြင်ရရေ။ ==ပြင်ပလင့်များ== ==ကိုးကား== {{reflist}} [[ကဏ္ဍ:သီရိလင်္ကာနိုင်ငံဟိ မီးပြတိုက်တိ]] [[ကဏ္ဍ:မီးပြတိုက်]] sc3oq07spamfr1a69p5ezsnkqqjtl4c 20438 20436 2026-08-14T11:38:51Z YaThaWinTha 42 /* ကိုးကား */ 20438 wikitext text/x-wiki {{Infobox lighthouse | name = Kovilan Point Lighthouse | image_name = | image_width = | caption = | location = [[Karaitivu (island)|Karaitivu Island]]<br />[[Jaffna Peninsula]]<br />[[Northern Province, Sri Lanka|Northern Province]]<br /> [[Sri Lanka]] | pushpin_map = Sri Lanka Northern Province | pushpin_map_caption = Northern Province | pushpin = Lighthouse | coordinates = {{coord|09|45|42.40|N|79|51|47.85|E|display=inline,title}} | coordinates_footnotes = | yearbuilt = 1899 (first) | yearlit = 1916 (current) | automated = | yeardeactivated = | foundation = | construction = masonry tower | shape = cylindrical tower with balcony and lantern | marking = white tower and lantern | height = {{Convert|30|m|ft}} | focalheight = {{Convert|31|m|ft}} | lens = | currentlens = | lightsource = | intensity = | range = {{Convert|11|nmi|km mi}} | characteristic = Fl (2) W 10s. | fogsignal = | racon = | admiralty = F0874 | canada = | NGA = 27212 | ARLHS = SLI-013<ref name=UNC/> | USCG = | country = | countrynumber = | countrylink = | managingagent = | heritage = }} '''ကိုဗီလန်အငူမီးပြတိုက်''' ရေ သီရိလင်္ကာနိုင်ငံမြောက်ပိုင်း၊ ကရိုင်တိဗုကျွန်း (Karaitivu) မာ တည်ဟိရေ မီးပြတိုက်တခု ဖြစ်တေ။ ယင်းကို ၁၉၁၆ မာ တည်ဆောက်ခရေ။ စခန်းမာမူ ၁၈၉၉ ခုနှစ်မာ စတင်ခရေ။<ref name=UNC>{{cite web|last1=Rowlett|first1=Russ|title=Lighthouses of Sri Lanka|url=http://www.unc.edu/~rowlett/lighthouse/lka.htm|publisher=[[University of North Carolina at Chapel Hill]]|date=13 February 2006}}</ref><ref>{{cite web|title=Kovilan Point (Karaitivu Island) Light|url=http://wlol.arlhs.com/lighthouse/SLI13.html|publisher=[[Amateur Radio Lighthouse Society]]}}</ref><ref>{{cite web|title=Lighthouse Explorer: Kovilan Point Light|url=http://www.lighthousedigest.com/Digest/database/uniquelighthouse.cfm?value=6413|publisher=[[Lighthouse Digest]]}}</ref> မီးပြတိုက်သည် အဝိုင်းပုံစံ ဇမ်းပွတ်ဖြင့် ပြုလုပ်ထားပြီးသား အမြင့် ၃၀ မီတာ (၉၈ ပေ) ဟိကာ အဖြူရောင်ဖြစ်တေ။<ref name=UNC/> အလင်းရောင်မီးရေ ပင်လယ်ရီမျက်နှာပြင်အထက် ၃၁ မီတာ (၁၀၂ ပေ) ဟိရေ။ ပင်လယ်ရီမျက်နှာပြင်အထက် ၃၀.၄၈ မီတာ (၁၀၂ ပေ) ဟိ သင်္ဘောပေါ်မှ ကြည့်ရှုသူစွာ မီးအလင်းရောင်ကို ၂၁.၄ nautical miles (၃၉.၆ ကီလိုမီတာ၊ ၂၄.၆ မိုင်) အကွာမှ လှမ်းမြင်ရရေ။ ==ပြင်ပလင့်များ== ==ကိုးကား== {{reflist}} [[ကဏ္ဍ:သီရိလင်္ကာနိုင်ငံဟိ မီးပြတိုက်တိ]] e7f30l32r3xx4s1f2vbrmtaprirpuci အလက်ဇန်းဒရီးယားရှိ မီးပြတိုက် 0 5076 20427 19564 2026-08-14T11:27:45Z YaThaWinTha 42 20427 wikitext text/x-wiki [[File:PHAROS2013-3000x2250.jpg|middle|thumb|Three-dimensional reconstruction based on a comprehensive 2013 study]] သတ္တမအံ့ချီးဖွယ်ရာမာကား အယ်လက်ဇန္ဒြီးယားမြို့ဟိ ဖေးရော့မီးပြတိုက်ကတ်ီးဖြစ်လီရေ။ အီဂျစ်ကမ်းခြီမာဟိပြီးကေ ထိုမြို့ကြီးနန့် ကပ်နိန်ရေ ကျွန်းအချေတကျွန်းမာ ဖေးရော့ ကျွန်းဟု ခေါ်ဧ့။ အယ်လက်ဇန္ဒာ-သ-ဂရိတ်ရေ အယ်လက် ဇန္ဒြီးယားမြို့ကြီးကို တည်စဉ်က ထိုဖေးရော့ကျွန်းနန့် မြို့ကြီးကို ပိုင်းခြားရေ ရီပြင်ကိုဖြတ်ပနာ ပေါင်းကူး တန်းထားဆောက်လုပ် ခ၏။ အီဂျစ်ဘုရင် ဒုတိယတော်လမီမင်း လက်ထက်မာ ထို ကျွန်းဧ့အရှိဖက်စွန်းမာ ကျောက်တုံးကြီးတိနန့် ပေ ၅ဝဝ လှောက်မြင့်သော မီးပြတိုက်ကတ်ီးကို တည်ဆောက်လီရေ။ ထို အဆောက်အအုံကြီးကို ဘီစီ ၂၆ဝ ပြည့်နှစ်မာ ပြီးစီးရာ၊အယ်လက်ဇန္ဒြီးယားမြို့ဧ့ ဖေးရော့မီးပြတိုက်ဟု ခေါ်မာဧ့။ အထက်ပါရို့ကား ရှီးဟောင်းကမ္ဘာဧ့ အံ့ဖွယ်ခနစ်သွယ် ဖြစ်လီရေ။ ဂုချိန်ခါမာကား ထိုအံ့ဖွယ်တိမာ အီဂျစ် နိုင်ငံဟိ ပိရမစ်တိကတပါး ပျက်စီးယိုယွင်းကုန်ချေပြီ။ {{Stub}} [[ကဏ္ဍ:အီဂျစ်နိုင်ငံဟိ မီးပြတိုက်တိ]] ix3z3cbgvpk1rhi6jpmmdzbhcv04jao တမ်းပလိတ်:Arakan Portals browsebar 10 5344 20368 20002 2026-08-14T09:30:27Z YaThaWinTha 42 20368 wikitext text/x-wiki {{anchor|portals-browsebar}} {{flatlist<includeonly>|class=noprint</includeonly>|style=text-align: center}} ;🏯 [[Portal:ရခိုင်/အခြီခံအကြောင်းအရာတိ|အခြီခံအကြောင်းအရာတိ]] :🛡️ [[Portal:ရခိုင်/ရခိုင်အမျိုးသားလက္ခဏာ|အမျိုးသားလက္ခဏာ]] :🛕 [[Portal:ရခိုင်/ရခိုင် ဘာသာရီးနန့် ယုံကြည်မှုတိ| ဘာသာရီးနန့် ယုံကြည်မှုတိ]] :🎭 [[Portal:ရခိုင်/ရခိုင် ယိုင်ကျေးမှုနန့် အနုပညာ| ယိုင်ကျေးမှုနန့် အနုပညာ]] :📜 [[Portal:ရခိုင်/ရခိုင် စာပီနန့် ဘာသာစကား| စာပီနန့် ဘာသာစကား]] :📚 [[Portal:ရခိုင်/ရခိုင်သမိုင်း|သမိုင်း]] :👑 [[Portal:ရခိုင်/ရခိုင်နန်းတွင်းရီးရာ|နန်းတွင်းရီးရာ]] :🪨 [[Portal:ရခိုင်/ရခိုင် ကျောက်စာတိ| ကျောက်စာတိ]] :🏺 [[Portal:ရခိုင်/ရခိုင် ရှိးဟောင်းအမွီအနှစ်တိနန့် နီရာတိ| ရှိးဟောင်းအမွီအနှစ်တိနန့် နီရာတိ]] :👥 [[Portal:ရခိုင်/ရခိုင်လူမျိုးစုတိ|လူမျိုးစုတိ]] :🏛️ [[Portal:ရခိုင်/ရခိုင် အသင်းအဖွဲ့တိနန့် အဖွဲ့အစည်းတိ| အသင်းအဖွဲ့တိနန့် အဖွဲ့အစည်းတိ]] :🌄 [[Portal:ရခိုင်/ရခိုင် ပထဝီဝင်နန့် သဘာဝ| ပထဝီဝင်နန့် သဘာဝ]] :🏡 [[Portal:ရခိုင်/ရခိုင် လူမှုဘဝနန့် ရိုးရာဓလေ့| လူမှုဘဝနန့် ရိုးရာဓလေ့]] :🧺 [[Portal:ရခိုင်/ရခိုင် ရိုးရာလက်မှုပညာတိ| ရိုးရာလက်မှုပညာတိ]] :💰 [[Portal:ရခိုင်/ရခိုင် စီးပွားရီးနန့် လုပ်ငန်းတိ| စီးပွားရီးနန့် လုပ်ငန်းတိ]] :⚖️ [[Portal:ရခိုင်/ရခိုင် နိုင်ငံရီးနန့် အုပ်ချုပ်ရီး| နိုင်ငံရီးနန့် အုပ်ချုပ်ရီး]] :🗺️ [[Portal:ရခိုင်/ရခိုင်နန့် အိမ်နီးချင်းဒေသတိ| အိမ်နီးချင်းဒေသတိ]] :🎓 [[Portal:ရခိုင်/ရခိုင်ပညာရီးဆိုင်ရာ|ပညာရီးဆိုင်ရာ]] :🩺 [[Portal:ရခိုင်/ရခိုင်ကျန်းမာရီးဆိုင်ရာ|ကျန်းမာရီးဆိုင်ရာ]] :📰 [[Portal:ရခိုင်/ရခိုင် မီဒီယာနန့် ဆက်သွယ်ရီး| မီဒီယာနန့် ဆက်သွယ်ရီး]] :⚽ [[Portal:ရခိုင်/ရခိုင် အားကဇပ်နန့် ဖျော်ဖြေရီး| အားကဇပ်နန့် ဖျော်ဖြေရီး]] :🚆 [[Portal:ရခိုင်/ရခိုင်သယ်ယူပို့ဆောင်ရီးနန့် အခြီခံအဆောက်အအုံ|သယ်ယူပို့ဆောင်ရီးနန့် အခြီခံအဆောက်အအုံ]] :💻 [[Portal:ရခိုင်/ရခိုင် နည်းပညာဆိုင်ရာ| နည်းပညာဆိုင်ရာ]] :📊 [[Portal:ရခိုင်/ရခိုင်ဒေတာနန့် စာရင်းအင်း|ဒေတာနန့် စာရင်းအင်း]] :👤 [[Portal:ရခိုင်/ရခိုင် အတ္ထုပ္ပတ္တိတိ| အတ္ထုပ္ပတ္တိတိ]] :🏘️ [[Portal:Contents/Portals|ပိုတယ်အားနုန်း]] {{endflatlist}} <noinclude> {{documentation}} </noinclude> sclwpnzy9bnc5l84npkp5b4df33v5h8 Portal:ရခိုင်/အခြီခံအကြောင်းအရာတိ 0 5345 20380 20154 2026-08-14T09:59:10Z YaThaWinTha 42 20380 wikitext text/x-wiki {{Arakan Portals browsebar}} {{Flex columns |1 = {{Box-header colour|Major topics}} <categorytree depth="1">ရခိုင်အခြီခံအကြောင်းအရာတိ</categorytree> {{Box-footer}} |2 = {{Box-header colour|Major category}} <div class="mw-category-generated"> * 📂 [[:ကဏ္ဍ:ရခိုင်အခြီခံအကြောင်းအရာတိ|ရခိုင်အခြီခံအကြောင်းအရာတိ]] * 📂 [[:ကဏ္ဍ:ရခိုင်ပြည်နယ်|ရခိုင်ပြည်နယ်]] * 📂 [[:ကဏ္ဍ:ရခိုင်ပြည်|ရခိုင်ပြည်]] * 📂 [[:ကဏ္ဍ:ရခိုင်တိုင်း|ရခိုင်တိုင်း]] * 📂 [[:ကဏ္ဍ:ရခိုင်ဘုရင့်နိုင်ငံ|ရခိုင်ဘုရင့်နိုင်ငံ]] * 📂 [[:ကဏ္ဍ:ရခိုင်လူမျိုး|ရခိုင်လူမျိုး]] * 📂 [[:ကဏ္ဍ:ရခိုင်သမိုင်း|ရခိုင်သမိုင်း]] * 📂 [[:ကဏ္ဍ:ရခိုင် ပထဝီဝင်|ရခိုင် ပထဝီဝင်]] * 📂 [[:ကဏ္ဍ:ရခိုင်နိုင်ငံရီး|ရခိုင်နိုင်ငံရီး]] * 📂 [[:ကဏ္ဍ:ရခိုင်ဥပဒေ|ရခိုင်ဥပဒေ]] * 📂 [[:ကဏ္ဍ:ရခိုင်စီးပွားရီး|ရခိုင်စီးပွားရီး]] * 📂 [[:ကဏ္ဍ:ရခိုင်ပညာရီး|ရခိုင်ပညာရီး]] * 📂 [[:ကဏ္ဍ:ရခိုင်ကျန်းမာရီး|ရခိုင်ကျန်းမာရီး]] * 📂 [[:ကဏ္ဍ:ရခိုင်သိပ္ပံ|ရခိုင်သိပ္ပံ]] * 📂 [[:ကဏ္ဍ:ရခိုင်သဘာဝ|ရခိုင်သဘာဝ]] * 📂 [[:ကဏ္ဍ:ရခိုင်နည်းပညာ|ရခိုင်နည်းပညာ]] * 📂 [[:ကဏ္ဍ:ရခိုင်သင်္ချာ|ရခိုင်သင်္ချာ]] * 📂 [[:ကဏ္ဍ:ရခိုင်တိုင်းတာမှုတိ|ရခိုင်တိုင်းတာမှုတိ]] * 📂 [[:ကဏ္ဍ:ရခိုင်စိတ်ပညာ|ရခိုင်စိတ်ပညာ]] * 📂 [[:ကဏ္ဍ:ရခိုင်အတွေးအခေါ်|ရခိုင်အတွေးအခေါ်]] </div> {{Box-footer}} }} {{Portal navbar no header2}} <noinclude> [[ကဏ္ဍ:ရခိုင်ပိုတယ်တိ]] </noinclude> ga8zdlzqqbfybs7fu7kwuksm0z4o5h9 Portal:ရခိုင်/ရခိုင် ပထဝီဝင်နန့် သဘာဝ 0 5359 20369 19944 2026-08-14T09:31:48Z YaThaWinTha 42 20369 wikitext text/x-wiki {{Arakan Portals browsebar}} {{Flex columns |1 = {{Box-header colour|Major category}} <categorytree depth="1">ရခိုင် ပထဝီဝင်နန့် သဘာဝ</categorytree> {{Box-footer}} |2 = {{Box-header colour|Major category}} <div class="mw-category-generated"> * 📂 [[:ကဏ္ဍ:ရခိုင် ပထဝီဝင်|ရခိုင် ပထဝီဝင်]] * 📂 [[:ကဏ္ဍ:ရခိုင် သဘာဝ|ရခိုင် သဘာဝ]] * 📂 [[:ကဏ္ဍ:ရခိုင် ကမ်းရိုးတန်းဒေသ|ရခိုင် ကမ်းရိုးတန်းဒေသ]] * 📂 [[:ကဏ္ဍ:ရခိုင် ပင်လယ်ကမ်းရိုးတန်း|ရခိုင် ပင်လယ်ကမ်းရိုးတန်း]] * 📂 [[:ကဏ္ဍ:ရခိုင် ပင်လယ်ပြင်|ရခိုင် ပင်လယ်ပြင်]] * 📂 [[:ကဏ္ဍ:ရခိုင် ပင်လယ်အော်|ရခိုင် ပင်လယ်အော်]] * 📂 [[:ကဏ္ဍ:ရခိုင် ကမ်းခြီတိ|ရခိုင် ကမ်းခြီတိ]] * 📂 [[:ကဏ္ဍ:ရခိုင် ကျွန်းစုတိ|ရခိုင် ကျွန်းစုတိ]] * 📂 [[:ကဏ္ဍ:ရခိုင် ကျွန်းတိ|ရခိုင် ကျွန်းတိ]] * 📂 [[:ကဏ္ဍ:ရခိုင် သန္တာကျောက်တန်းတိ|ရခိုင် သန္တာကျောက်တန်းတိ]] * 📂 [[:ကဏ္ဍ:ရခိုင် ဒီရေတောတိ|ရခိုင် ဒီရေတောတိ]] * 📂 [[:ကဏ္ဍ:ရခိုင် ပင်လယ်ဂေဟစနစ်|ရခိုင် ပင်လယ်ဂေဟစနစ်]] * 📂 [[:ကဏ္ဍ:ရခိုင် ရိုးမ|ရခိုင် ရိုးမ]] * 📂 [[:ကဏ္ဍ:ရခိုင် တောင်တန်းတိ|ရခိုင် တောင်တန်းတိ]] * 📂 [[:ကဏ္ဍ:ရခိုင် တောင်တန်းဒေသတိ|ရခိုင် တောင်တန်းဒေသတိ]] * 📂 [[:ကဏ္ဍ:ရခိုင် ပြည်နယ်တောင်တန်းတိ|ရခိုင် ပြည်နယ်တောင်တန်းတိ]] * 📂 [[:ကဏ္ဍ:ရခိုင် တောင်ထိပ်တိ|ရခိုင် တောင်ထိပ်တိ]] * 📂 [[:ကဏ္ဍ:ရခိုင် လွင်ပြင်တိ|ရခိုင် လွင်ပြင်တိ]] * 📂 [[:ကဏ္ဍ:ရခိုင် ချိုင့်ဝှမ်းတိ|ရခိုင် ချိုင့်ဝှမ်းတိ]] * 📂 [[:ကဏ္ဍ:ရခိုင် မြီမျက်နှာသွင်ပြင် အမျိုးအစားတိ|ရခိုင် မြီမျက်နှာသွင်ပြင် အမျိုးအစားတိ]] * 📂 [[:ကဏ္ဍ:ရခိုင် မြစ်တိ|ရခိုင် မြစ်တိ]] * 📂 [[:ကဏ္ဍ:ရခိုင် ချောင်းတိ|ရခိုင် ချောင်းတိ]] * 📂 [[:ကဏ္ဍ:ရခိုင် ရီကန်တိ|ရခိုင် ရီကန်တိ]] * 📂 [[:ကဏ္ဍ:ရခိုင် ရီတံခွန်တိ|ရခိုင် ရီတံခွန်တိ]] * 📂 [[:ကဏ္ဍ:ရခိုင် ရီအရင်းအမြစ်တိ|ရခိုင် ရီအရင်းအမြစ်တိ]] * 📂 [[:ကဏ္ဍ:ရခိုင် ရီအောက်ရီ အရင်းအမြစ်တိ|ရခိုင် ရီအောက်ရီ အရင်းအမြစ်တိ]] * 📂 [[:ကဏ္ဍ:ရခိုင် ဘူမိဗေဒ|ရခိုင် ဘူမိဗေဒ]] * 📂 [[:ကဏ္ဍ:ရခိုင် ဘူမိရုပ်သွင်ဗေဒ|ရခိုင် ဘူမိရုပ်သွင်ဗေဒ]] * 📂 [[:ကဏ္ဍ:ရခိုင် မြီဆီလွှာ အမျိုးအစားတိ|ရခိုင် မြီဆီလွှာ အမျိုးအစားတိ]] * 📂 [[:ကဏ္ဍ:ရခိုင် တွင်းထွက် ပစ္စည်းတိ|ရခိုင် တွင်းထွက် ပစ္စည်းတိ]] * 📂 [[:ကဏ္ဍ:ရခိုင် ရီနံနန့် သဘာဝဓာတ်ငွေ့|ရခိုင် ရီနံနန့် သဘာဝဓာတ်ငွေ့]] * 📂 [[:ကဏ္ဍ:ရခိုင် သဘာဝသယံဇာတတိ|ရခိုင် သဘာဝသယံဇာတတိ]] * 📂 [[:ကဏ္ဍ:ရခိုင် ရာသီဥတု|ရခိုင် ရာသီဥတု]] * 📂 [[:ကဏ္ဍ:ရခိုင်ပြည် သစ်တောတိ|ရခိုင်ပြည် သစ်တောတိ]] * 📂 [[:ကဏ္ဍ:ရခိုင်ပြည် ဥယျာဉ်တိ|ရခိုင်ပြည် ဥယျာဉ်တိ]] * 📂 [[:ကဏ္ဍ:ရခိုင်ပြည် ပန်းခြံတိ|ရခိုင်ပြည် ပန်းခြံတိ]] * 📂 [[:ကဏ္ဍ:ရခိုင်ပြည် သဘာဝထိန်းသိမ်းရီး နယ်မြီတိ|ရခိုင်ပြည် သဘာဝထိန်းသိမ်းရီး နယ်မြီတိ]] * 📂 [[:ကဏ္ဍ:ရခိုင်ပြည် ဘေးမဲ့တောတိ|ရခိုင်ပြည် ဘေးမဲ့တောတိ]] * 📂 [[:ကဏ္ဍ:ရခိုင်ပြည် ဇီဝမျိုးစုံမျိုးကွဲတိ|ရခိုင်ပြည် ဇီဝမျိုးစုံမျိုးကွဲတိ]] * 📂 [[:ကဏ္ဍ:ရခိုင်ပြည် အပင်မျိုးကွဲတိ|ရခိုင်ပြည် အပင်မျိုးကွဲတိ]] * 📂 [[:ကဏ္ဍ:ရခိုင်ပြည် ကုန်းနီသတ္တဝါတိ|ရခိုင်ပြည် ကုန်းနီသတ္တဝါတိ]] * 📂 [[:ကဏ္ဍ:ရခိုင်ပြည် ရီနီသတ္တဝါတိ|ရခိုင်ပြည် ရီနီသတ္တဝါတိ]] * 📂 [[:ကဏ္ဍ:ရခိုင်ပြည် တိရစ္ဆန်မျိုးကွဲတိ|ရခိုင်ပြည် တိရစ္ဆန်မျိုးကွဲတိ]] * 📂 [[:ကဏ္ဍ:ရခိုင်ပြည် မွီးမြူရီးတိရစ္ဆန်တိ|ရခိုင်ပြည် မွီးမြူရီးတိရစ္ဆန်တိ]] * 📂 [[:ကဏ္ဍ:ရခိုင်ပြည် အိမ်မွီးတိရစ္ဆန်တိ|ရခိုင်ပြည် အိမ်မွီးတိရစ္ဆန်တိ]] * 📂 [[:ကဏ္ဍ:ရခိုင်ပြည် မျိုးသုန်းခါနီးသတ္တဝါတိ|ရခိုင်ပြည် မျိုးသုန်းခါနီးသတ္တဝါတိ]] * 📂 [[:ကဏ္ဍ:ရခိုင် ပတ်ဝန်းကျင်ထိန်းသိမ်းရီး|ရခိုင် ပတ်ဝန်းကျင်ထိန်းသိမ်းရီး]] * 📂 [[:ကဏ္ဍ:ရခိုင်ပြည် ပတ်ဝန်းကျင် ညစ်ညမ်းမှုတိ|ရခိုင်ပြည် ပတ်ဝန်းကျင် ညစ်ညမ်းမှုတိ]] * 📂 [[:ကဏ္ဍ:ရခိုင်ပြည် ရာသီဥတုပြောင်းလဲမှုတိ|ရခိုင်ပြည် ရာသီဥတုပြောင်းလဲမှုတိ]] * 📂 [[:ကဏ္ဍ:ရခိုင်ပြည် သဘာဝဖီးအန္တရာယ်တိ|ရခိုင်ပြည် သဘာဝဖီးအန္တရာယ်တိ]] * 📂 [[:ကဏ္ဍ:ရခိုင်ပြည် ဆိုင်ကလုန်းမုန်တိုင်းတိ|ရခိုင်ပြည် ဆိုင်ကလုန်းမုန်တိုင်းတိ]] * 📂 [[:ကဏ္ဍ:ရခိုင်ပြည် ရီလွှမ်းမိုးမှုတိ|ရခိုင်ပြည် ရီလွှမ်းမိုးမှုတိ]] * 📂 [[:ကဏ္ဍ:ရခိုင်ပြည် မြီပြိုမှုတိ|ရခိုင်ပြည် မြီပြိုမှုတိ]] * 📂 [[:ကဏ္ဍ:ရခိုင်ပြည် ငလျင်တိ|ရခိုင်ပြည် ငလျင်တိ]] * 📂 [[:ကဏ္ဍ:ရခိုင်ပြည် မီးတောင်တိ|ရခိုင်ပြည် မီးတောင်တိ]] * 📂 [[:ကဏ္ဍ:ရခိုင်ပြည် သဘာဝဖီးအန္တရာယ် စီမံခန့်ခွဲမှု|ရခိုင်ပြည် သဘာဝဖီးအန္တရာယ် စီမံခန့်ခွဲမှု]] * 📂 [[:ကဏ္ဍ:ရခိုင်ပြည် သဘာဝဖီးအန္တရာယ် ကယ်ဆယ်ရီးလုပ်ငန်းတိ|ရခိုင်ပြည် သဘာဝဖီးအန္တရာယ် ကယ်ဆယ်ရီးလုပ်ငန်းတိ]] * 📂 [[:ကဏ္ဍ:ရခိုင်ပြည် မီးပြတိုက်တိ|ရခိုင်ပြည် မီးပြတိုက်တိ]] * 📂 [[:ကဏ္ဍ:ရခိုင်ပြည်|ရခိုင်ပြည်]] * 📂 [[:ကဏ္ဍ:ရခိုင်ပြည်ဟိမြို့တိ|ရခိုင်ပြည်ဟိ မြို့တိ]] * 📂 [[:ကဏ္ဍ:ရခိုင်ပြည်ဟိ မြို့နယ်တိ|ရခိုင်ပြည်ဟိ မြို့နယ်တိ]] * 📂 [[:ကဏ္ဍ:ရခိုင်ပြည်ဟိ ခရိုင်တိ|ရခိုင်ပြည်ဟိ ခရိုင်တိ]] * 📂 [[:ကဏ္ဍ:ရခိုင်ပြည်ဟိ ကျေးရွာအုပ်စုတိ|ရခိုင်ပြည်ဟိ ကျေးရွာအုပ်စုတိ]] * 📂 [[:ကဏ္ဍ:ရခိုင်ပြည်ဟိ ရွာတိ|ရခိုင်ပြည်ဟိ ရွာတိ]] * 📂 [[:ကဏ္ဍ:ရခိုင် ရှိးဟောင်းမြို့တိ|ရခိုင် ရှိးဟောင်းမြို့တိ]] * 📂 [[:ကဏ္ဍ:ရခိုင် သမိုင်းဝင်မြို့တိ|ရခိုင် သမိုင်းဝင်မြို့တိ]] * 📂 [[:ကဏ္ဍ:ရခိုင် အထင်ကရနီရာတိ|ရခိုင် အထင်ကရနီရာတိ]] * 📂 [[:ကဏ္ဍ:ရခိုင် ကမ်းရိုးတန်း|ရခိုင် ကမ်းရိုးတန်း]] * 📂 [[:ကဏ္ဍ:ရခိုင် ကျွန်းတိ|ရခိုင် ကျွန်းတိ]] * 📂 [[:ကဏ္ဍ:ရခိုင် ကျွန်းစုတိ|ရခိုင် ကျွန်းစုတိ]] * 📂 [[:ကဏ္ဍ:ရခိုင် ကမ်းခြီတိ|ရခိုင် ကမ်းခြီတိ]] * 📂 [[:ကဏ္ဍ:ရခိုင် မြစ်တိ|ရခိုင် မြစ်တိ]] * 📂 [[:ကဏ္ဍ:ရခိုင် ချောင်းတိ|ရခိုင် ချောင်းတိ]] * 📂 [[:ကဏ္ဍ:ရခိုင် ရီကန်တိ|ရခိုင် ရီကန်တိ]] * 📂 [[:ကဏ္ဍ:ရခိုင် ရီတံခွန်တိ|ရခိုင် ရီတံခွန်တိ]] * 📂 [[:ကဏ္ဍ:ရခိုင် တောင်တန်းတိ|ရခိုင် တောင်တန်းတိ]] * 📂 [[:ကဏ္ဍ:ရခိုင် တောင်ထိပ်တိ|ရခိုင် တောင်ထိပ်တိ]] * 📂 [[:ကဏ္ဍ:ရခိုင် လွင်ပြင်တိ|ရခိုင် လွင်ပြင်တိ]] * 📂 [[:ကဏ္ဍ:ရခိုင် တောတောင်တိ|ရခိုင် တောတောင်တိ]] * 📂 [[:ကဏ္ဍ:ရခိုင် သဘာဝထိန်းသိမ်းရီးနယ်မြီတိ|ရခိုင် သဘာဝထိန်းသိမ်းရီးနယ်မြီတိ]] * 📂 [[:ကဏ္ဍ:ရခိုင် အမျိုးသားဥယျာဉ်တိ|ရခိုင် အမျိုးသားဥယျာဉ်တိ]] * 📂 [[:ကဏ္ဍ:ရခိုင် တောရိုင်းတိရစ္ဆာန်ဘေးမဲ့တောတိ|ရခိုင် တောရိုင်းတိရစ္ဆာန်ဘေးမဲ့တောတိ]] * 📂 [[:ကဏ္ဍ:ရခိုင် နယ်နိမိတ်တိ|ရခိုင် နယ်နိမိတ်တိ]] * 📂 [[:ကဏ္ဍ:ရခိုင် နယ်စပ်ဒေသတိ|ရခိုင် နယ်စပ်ဒေသတိ]] * 📂 [[:ကဏ္ဍ:ရခိုင် ဆိပ်ကမ်းတိ|ရခိုင် ဆိပ်ကမ်းတိ]] * 📂 [[:ကဏ္ဍ:ရခိုင် ငါးဖမ်းဆိပ်ကမ်းတိ|ရခိုင် ငါးဖမ်းဆိပ်ကမ်းတိ]] * 📂 [[:ကဏ္ဍ:ရခိုင် လီဆိပ်တိ|ရခိုင် လီဆိပ်တိ]] * 📂 [[:ကဏ္ဍ:ရခိုင် လမ်းပန်းဆက်သွယ်ရီး|ရခိုင် လမ်းပန်းဆက်သွယ်ရီး]] * 📂 [[:ကဏ္ဍ:ရခိုင် သယ်ယူပို့ဆောင်ရီး|ရခိုင် သယ်ယူပို့ဆောင်ရီး]] * 📂 [[:ကဏ္ဍ:ရခိုင် ဒေသနာမည်တိ|ရခိုင် ဒေသနာမည်တိ]] </div> {{Box-footer}} }} {{Portal navbar no header2}} <noinclude> [[ကဏ္ဍ:ရခိုင်ပိုတယ်တိ]] </noinclude> e353fk9ddg6o4gigplho4zfll5g11oh 20375 20369 2026-08-14T09:46:25Z YaThaWinTha 42 20375 wikitext text/x-wiki {{Arakan Portals browsebar}} {{Flex columns |1 = {{Box-header colour|Major category}} <categorytree depth="1">ရခိုင် ပထဝီဝင်</categorytree> {{Box-footer}} |2 = {{Box-header colour|Major category}} <div class="mw-category-generated"> * 📂 [[:ကဏ္ဍ: ရခိုင် ပထဝီဝင်| ရခိုင်ပထဝီဝင်]] * 📂 [[:ကဏ္ဍ: ရခိုင်ပြည်ဟိကျွန်းတိ| ရခိုင်ပြည်ဟိကျွန်းတိ]] * 📂 [[:ကဏ္ဍ:ရခိုင် ကမ်းခြီတိ|ရခိုင် ကမ်းခြီတိ]] * 📂 [[:ကဏ္ဍ:ရခိုင် ကမ်းရိုးတန်း|ရခိုင် ကမ်းရိုးတန်း]] * 📂 [[:ကဏ္ဍ:ရခိုင် ကမ်းရိုးတန်းဒေသ|ရခိုင် ကမ်းရိုးတန်းဒေသ]] * 📂 [[:ကဏ္ဍ:ရခိုင် ကျွန်းစုတိ|ရခိုင် ကျွန်းစုတိ]] * 📂 [[:ကဏ္ဍ:ရခိုင် ချိုင့်ဝှမ်းတိ|ရခိုင် ချိုင့်ဝှမ်းတိ]] * 📂 [[:ကဏ္ဍ:ရခိုင် ချောင်းတိ|ရခိုင် ချောင်းတိ]] * 📂 [[:ကဏ္ဍ:ရခိုင် ငါးဖမ်းဆိပ်ကမ်းတိ|ရခိုင် ငါးဖမ်းဆိပ်ကမ်းတိ]] * 📂 [[:ကဏ္ဍ:ရခိုင် ဆိပ်ကမ်းတိ|ရခိုင် ဆိပ်ကမ်းတိ]] * 📂 [[:ကဏ္ဍ:ရခိုင် တွင်းထွက် ပစ္စည်းတိ|ရခိုင် တွင်းထွက် ပစ္စည်းတိ]] * 📂 [[:ကဏ္ဍ:ရခိုင် တောင်တန်းတိ|ရခိုင် တောင်တန်းတိ]] * 📂 [[:ကဏ္ဍ:ရခိုင် တောင်တန်းဒေသတိ|ရခိုင် တောင်တန်းဒေသတိ]] * 📂 [[:ကဏ္ဍ:ရခိုင် တောင်ထိပ်တိ|ရခိုင် တောင်ထိပ်တိ]] * 📂 [[:ကဏ္ဍ:ရခိုင် တောတောင်တိ|ရခိုင် တောတောင်တိ]] * 📂 [[:ကဏ္ဍ:ရခိုင် တောရိုင်းတိရစ္ဆာန်ဘေးမဲ့တောတိ|ရခိုင် တောရိုင်းတိရစ္ဆာန်ဘေးမဲ့တောတိ]] * 📂 [[:ကဏ္ဍ:ရခိုင် ဒီရေတောတိ|ရခိုင် ဒီရေတောတိ]] * 📂 [[:ကဏ္ဍ:ရခိုင် ဒေသနာမည်တိ|ရခိုင် ဒေသနာမည်တိ]] * 📂 [[:ကဏ္ဍ:ရခိုင် နယ်စပ်ဒေသတိ|ရခိုင် နယ်စပ်ဒေသတိ]] * 📂 [[:ကဏ္ဍ:ရခိုင် နယ်နိမိတ်တိ|ရခိုင် နယ်နိမိတ်တိ]] * 📂 [[:ကဏ္ဍ:ရခိုင် ပင်လယ်ကမ်းရိုးတန်း|ရခိုင် ပင်လယ်ကမ်းရိုးတန်း]] * 📂 [[:ကဏ္ဍ:ရခိုင် ပင်လယ်ဂေဟစနစ်|ရခိုင် ပင်လယ်ဂေဟစနစ်]] * 📂 [[:ကဏ္ဍ:ရခိုင် ပင်လယ်ပြင်|ရခိုင် ပင်လယ်ပြင်]] * 📂 [[:ကဏ္ဍ:ရခိုင် ပင်လယ်အော်|ရခိုင် ပင်လယ်အော်]] * 📂 [[:ကဏ္ဍ:ရခိုင် ပတ်ဝန်းကျင်ထိန်းသိမ်းရီး|ရခိုင် ပတ်ဝန်းကျင်ထိန်းသိမ်းရီး]] * 📂 [[:ကဏ္ဍ:ရခိုင် ပထဝီဝင်|ရခိုင် ပထဝီဝင်]] * 📂 [[:ကဏ္ဍ:ရခိုင် ပြည်နယ်တောင်တန်းတိ|ရခိုင် ပြည်နယ်တောင်တန်းတိ]] * 📂 [[:ကဏ္ဍ:ရခိုင် ဘူမိဗေဒ|ရခိုင် ဘူမိဗေဒ]] * 📂 [[:ကဏ္ဍ:ရခိုင် ဘူမိရုပ်သွင်ဗေဒ|ရခိုင် ဘူမိရုပ်သွင်ဗေဒ]] * 📂 [[:ကဏ္ဍ:ရခိုင် မြစ်တိ|ရခိုင် မြစ်တိ]] * 📂 [[:ကဏ္ဍ:ရခိုင် မြီဆီလွှာ အမျိုးအစားတိ|ရခိုင် မြီဆီလွှာ အမျိုးအစားတိ]] * 📂 [[:ကဏ္ဍ:ရခိုင် မြီမျက်နှာသွင်ပြင် အမျိုးအစားတိ|ရခိုင် မြီမျက်နှာသွင်ပြင် အမျိုးအစားတိ]] * 📂 [[:ကဏ္ဍ:ရခိုင် ရှိးဟောင်းမြို့တိ|ရခိုင် ရှိးဟောင်းမြို့တိ]] * 📂 [[:ကဏ္ဍ:ရခိုင် ရာသီဥတု|ရခိုင် ရာသီဥတု]] * 📂 [[:ကဏ္ဍ:ရခိုင် ရိုးမ|ရခိုင် ရိုးမ]] * 📂 [[:ကဏ္ဍ:ရခိုင် ရီကန်တိ|ရခိုင် ရီကန်တိ]] * 📂 [[:ကဏ္ဍ:ရခိုင် ရီတံခွန်တိ|ရခိုင် ရီတံခွန်တိ]] * 📂 [[:ကဏ္ဍ:ရခိုင် ရီနံနန့် သဘာဝဓာတ်ငွေ့|ရခိုင် ရီနံနန့် သဘာဝဓာတ်ငွေ့]] * 📂 [[:ကဏ္ဍ:ရခိုင် ရီအရင်းအမြစ်တိ|ရခိုင် ရီအရင်းအမြစ်တိ]] * 📂 [[:ကဏ္ဍ:ရခိုင် ရီအောက်ရီ အရင်းအမြစ်တိ|ရခိုင် ရီအောက်ရီ အရင်းအမြစ်တိ]] * 📂 [[:ကဏ္ဍ:ရခိုင် လမ်းပန်းဆက်သွယ်ရီး|ရခိုင် လမ်းပန်းဆက်သွယ်ရီး]] * 📂 [[:ကဏ္ဍ:ရခိုင် လွင်ပြင်တိ|ရခိုင် လွင်ပြင်တိ]] * 📂 [[:ကဏ္ဍ:ရခိုင် လီဆိပ်တိ|ရခိုင် လီဆိပ်တိ]] * 📂 [[:ကဏ္ဍ:ရခိုင် သန္တာကျောက်တန်းတိ|ရခိုင် သန္တာကျောက်တန်းတိ]] * 📂 [[:ကဏ္ဍ:ရခိုင် သဘာဝ|ရခိုင် သဘာဝ]] * 📂 [[:ကဏ္ဍ:ရခိုင် သဘာဝထိန်းသိမ်းရီးနယ်မြီတိ|ရခိုင် သဘာဝထိန်းသိမ်းရီးနယ်မြီတိ]] * 📂 [[:ကဏ္ဍ:ရခိုင် သဘာဝသယံဇာတတိ|ရခိုင် သဘာဝသယံဇာတတိ]] * 📂 [[:ကဏ္ဍ:ရခိုင် သမိုင်းဝင်မြို့တိ|ရခိုင် သမိုင်းဝင်မြို့တိ]] * 📂 [[:ကဏ္ဍ:ရခိုင် သယ်ယူပို့ဆောင်ရီး|ရခိုင် သယ်ယူပို့ဆောင်ရီး]] * 📂 [[:ကဏ္ဍ:ရခိုင် အထင်ကရနီရာတိ|ရခိုင် အထင်ကရနီရာတိ]] * 📂 [[:ကဏ္ဍ:ရခိုင် အမျိုးသားဥယျာဉ်တိ|ရခိုင် အမျိုးသားဥယျာဉ်တိ]] * 📂 [[:ကဏ္ဍ:ရခိုင်ပြည် ကုန်းနီသတ္တဝါတိ|ရခိုင်ပြည် ကုန်းနီသတ္တဝါတိ]] * 📂 [[:ကဏ္ဍ:ရခိုင်ပြည် ငလျင်တိ|ရခိုင်ပြည် ငလျင်တိ]] * 📂 [[:ကဏ္ဍ:ရခိုင်ပြည် ဆိုင်ကလုန်းမုန်တိုင်းတိ|ရခိုင်ပြည် ဆိုင်ကလုန်းမုန်တိုင်းတိ]] * 📂 [[:ကဏ္ဍ:ရခိုင်ပြည် ဇီဝမျိုးစုံမျိုးကွဲတိ|ရခိုင်ပြည် ဇီဝမျိုးစုံမျိုးကွဲတိ]] * 📂 [[:ကဏ္ဍ:ရခိုင်ပြည် တိရစ္ဆန်မျိုးကွဲတိ|ရခိုင်ပြည် တိရစ္ဆန်မျိုးကွဲတိ]] * 📂 [[:ကဏ္ဍ:ရခိုင်ပြည် ပတ်ဝန်းကျင် ညစ်ညမ်းမှုတိ|ရခိုင်ပြည် ပတ်ဝန်းကျင် ညစ်ညမ်းမှုတိ]] * 📂 [[:ကဏ္ဍ:ရခိုင်ပြည် ပန်းခြံတိ|ရခိုင်ပြည် ပန်းခြံတိ]] * 📂 [[:ကဏ္ဍ:ရခိုင်ပြည် ဘေးမဲ့တောတိ|ရခိုင်ပြည် ဘေးမဲ့တောတိ]] * 📂 [[:ကဏ္ဍ:ရခိုင်ပြည် မျိုးသုန်းခါနီးသတ္တဝါတိ|ရခိုင်ပြည် မျိုးသုန်းခါနီးသတ္တဝါတိ]] * 📂 [[:ကဏ္ဍ:ရခိုင်ပြည် မြီပြိုမှုတိ|ရခိုင်ပြည် မြီပြိုမှုတိ]] * 📂 [[:ကဏ္ဍ:ရခိုင်ပြည် မွီးမြူရီးတိရစ္ဆန်တိ|ရခိုင်ပြည် မွီးမြူရီးတိရစ္ဆန်တိ]] * 📂 [[:ကဏ္ဍ:ရခိုင်ပြည် မီးတောင်တိ|ရခိုင်ပြည် မီးတောင်တိ]] * 📂 [[:ကဏ္ဍ:ရခိုင်ပြည် မီးပြတိုက်တိ|ရခိုင်ပြည် မီးပြတိုက်တိ]] * 📂 [[:ကဏ္ဍ:ရခိုင်ပြည် ရာသီဥတုပြောင်းလဲမှုတိ|ရခိုင်ပြည် ရာသီဥတုပြောင်းလဲမှုတိ]] * 📂 [[:ကဏ္ဍ:ရခိုင်ပြည် ရီနီသတ္တဝါတိ|ရခိုင်ပြည် ရီနီသတ္တဝါတိ]] * 📂 [[:ကဏ္ဍ:ရခိုင်ပြည် ရီလွှမ်းမိုးမှုတိ|ရခိုင်ပြည် ရီလွှမ်းမိုးမှုတိ]] * 📂 [[:ကဏ္ဍ:ရခိုင်ပြည် သစ်တောတိ|ရခိုင်ပြည် သစ်တောတိ]] * 📂 [[:ကဏ္ဍ:ရခိုင်ပြည် သဘာဝထိန်းသိမ်းရီး နယ်မြီတိ|ရခိုင်ပြည် သဘာဝထိန်းသိမ်းရီး နယ်မြီတိ]] * 📂 [[:ကဏ္ဍ:ရခိုင်ပြည် သဘာဝဖီးအန္တရာယ် ကယ်ဆယ်ရီးလုပ်ငန်းတိ|ရခိုင်ပြည် သဘာဝဖီးအန္တရာယ် ကယ်ဆယ်ရီးလုပ်ငန်းတိ]] * 📂 [[:ကဏ္ဍ:ရခိုင်ပြည် သဘာဝဖီးအန္တရာယ် စီမံခန့်ခွဲမှု|ရခိုင်ပြည် သဘာဝဖီးအန္တရာယ် စီမံခန့်ခွဲမှု]] * 📂 [[:ကဏ္ဍ:ရခိုင်ပြည် သဘာဝဖီးအန္တရာယ်တိ|ရခိုင်ပြည် သဘာဝဖီးအန္တရာယ်တိ]] * 📂 [[:ကဏ္ဍ:ရခိုင်ပြည် အပင်မျိုးကွဲတိ|ရခိုင်ပြည် အပင်မျိုးကွဲတိ]] * 📂 [[:ကဏ္ဍ:ရခိုင်ပြည် အိမ်မွီးတိရစ္ဆန်တိ|ရခိုင်ပြည် အိမ်မွီးတိရစ္ဆန်တိ]] * 📂 [[:ကဏ္ဍ:ရခိုင်ပြည် ဥယျာဉ်တိ|ရခိုင်ပြည် ဥယျာဉ်တိ]] * 📂 [[:ကဏ္ဍ:ရခိုင်ပြည်|ရခိုင်ပြည်]] * 📂 [[:ကဏ္ဍ:ရခိုင်ပြည်ဟိ ကျေးရွာအုပ်စုတိ|ရခိုင်ပြည်ဟိ ကျေးရွာအုပ်စုတိ]] * 📂 [[:ကဏ္ဍ:ရခိုင်ပြည်ဟိ ခရိုင်တိ|ရခိုင်ပြည်ဟိ ခရိုင်တိ]] * 📂 [[:ကဏ္ဍ:ရခိုင်ပြည်ဟိ မြို့နယ်တိ|ရခိုင်ပြည်ဟိ မြို့နယ်တိ]] * 📂 [[:ကဏ္ဍ:ရခိုင်ပြည်ဟိ ရွာတိ|ရခိုင်ပြည်ဟိ ရွာတိ]] * 📂 [[:ကဏ္ဍ:ရခိုင်ပြည်ဟိမြို့တိ|ရခိုင်ပြည်ဟိ မြို့တိ]] </div> {{Box-footer}} }} {{Portal navbar no header2}} <noinclude> [[ကဏ္ဍ:ရခိုင်ပိုတယ်တိ]] </noinclude> 6x72doasq1sgpc2n5p0qbblum9c53m5 ကဏ္ဍ:ရခိုင် ပထဝီဝင် 14 5581 20370 2026-08-14T09:41:55Z YaThaWinTha 42 Created page with "[[ကဏ္ဍ:ရခိုင်အခြီခံအကြောင်းအရာတိ]]" 20370 wikitext text/x-wiki [[ကဏ္ဍ:ရခိုင်အခြီခံအကြောင်းအရာတိ]] qp49m31neq3mjrskl00twuqaa2dp42s ကဏ္ဍ:နိုင်ငံအလိုက်ကျွန်းတိ 14 5582 20376 2026-08-14T09:51:10Z YaThaWinTha 42 Created page with "[[ကဏ္ဍ:ကျွန်း]]" 20376 wikitext text/x-wiki [[ကဏ္ဍ:ကျွန်း]] emod95ptj4f7cpni2lgzt5kegr40c3g ကဏ္ဍ:မြန်မာနိုင်ငံဟိ ကျွန်းတိ 14 5583 20377 2026-08-14T09:51:40Z YaThaWinTha 42 Created page with "[[ကဏ္ဍ:နိုင်ငံအလိုက်ကျွန်းတိ]]" 20377 wikitext text/x-wiki [[ကဏ္ဍ:နိုင်ငံအလိုက်ကျွန်းတိ]] ip9z175zwmaxlqynonnx0725tcii9x7 ကဏ္ဍ:နိုင်ငံအလိုက်ခရိုင်တိ 14 5584 20381 2026-08-14T10:06:16Z YaThaWinTha 42 Created page with "[[ကဏ္ဍ:ခရိုင်]]" 20381 wikitext text/x-wiki [[ကဏ္ဍ:ခရိုင်]] 12le8wh9ukcspaeoyohah8kc3zzv3i7 ကဏ္ဍ:မြန်မာနိုင်ငံ ပြည်နယ်အလိုက် ခရိုင်တိ 14 5585 20382 2026-08-14T10:06:33Z YaThaWinTha 42 Created page with "[[ကဏ္ဍ:နိုင်ငံအလိုက်ခရိုင်တိ]]" 20382 wikitext text/x-wiki [[ကဏ္ဍ:နိုင်ငံအလိုက်ခရိုင်တိ]] 46e8bf9z2as4w0dzj8cmxl39iupm328 ကဏ္ဍ:နိုင်ငံအလိုက် စျီးတိ 14 5586 20384 2026-08-14T10:11:08Z YaThaWinTha 42 Created page with "[[ကဏ္ဍ:ဈီး]]" 20384 wikitext text/x-wiki [[ကဏ္ဍ:ဈီး]] pfxrnl5lwbjbo51x8lekj1oq85eannb ကဏ္ဍ:မြန်မာနိုင်ငံ ပြည်နယ်အလိုက် စျီးတိ 14 5587 20385 2026-08-14T10:11:57Z YaThaWinTha 42 Created page with "[[ကဏ္ဍ:နိုင်ငံအလိုက် စျီးတိ]]" 20385 wikitext text/x-wiki [[ကဏ္ဍ:နိုင်ငံအလိုက် စျီးတိ]] 84j7za1werkty1vuhimaivfilb3cp6d ကဏ္ဍ:ရခိုင်ပြည်ဟိ စျီးတိ 14 5588 20386 2026-08-14T10:12:32Z YaThaWinTha 42 Created page with "[[ကဏ္ဍ:မြန်မာနိုင်ငံ ပြည်နယ်အလိုက် စျီးတိ]] [[ကဏ္ဍ:ရခိုင် ပထဝီဝင်]]" 20386 wikitext text/x-wiki [[ကဏ္ဍ:မြန်မာနိုင်ငံ ပြည်နယ်အလိုက် စျီးတိ]] [[ကဏ္ဍ:ရခိုင် ပထဝီဝင်]] 65g7vh59qlw6wlu84h4hyw2dcxmlmcl ကဏ္ဍ:နိုင်ငံအလိုက် တောင်တန်းတိ 14 5589 20388 2026-08-14T10:18:30Z YaThaWinTha 42 Created page with "[[ကဏ္ဍ:တောင်တန်းတိ]]" 20388 wikitext text/x-wiki [[ကဏ္ဍ:တောင်တန်းတိ]] 07hd8jc3aiaqg554gal4tuti9f8gmbj ကဏ္ဍ:မြန်မာနိုင်ဟိ တောင်တန်းတိ 14 5590 20389 2026-08-14T10:18:42Z YaThaWinTha 42 Created page with "[[ကဏ္ဍ:နိုင်ငံအလိုက် တောင်တန်းတိ]]" 20389 wikitext text/x-wiki [[ကဏ္ဍ:နိုင်ငံအလိုက် တောင်တန်းတိ]] 2qckxp20v29ngssluryhfd1wj21z97z ကဏ္ဍ:ရခိုင်ပြည်ဟိ တောင်တန်းတိ 14 5591 20390 2026-08-14T10:19:31Z YaThaWinTha 42 Created page with "[[ကဏ္ဍ:မြန်မာနိုင်ဟိ တောင်တန်းတိ]] [[ကဏ္ဍ:ရခိုင် ပထဝီဝင်]]" 20390 wikitext text/x-wiki [[ကဏ္ဍ:မြန်မာနိုင်ဟိ တောင်တန်းတိ]] [[ကဏ္ဍ:ရခိုင် ပထဝီဝင်]] 25jxlan4r3v324gwbg65hq5c4y6ec5a ကဏ္ဍ:ရခိုင် တောင်တန်းဒေသတိ 14 5592 20391 2026-08-14T10:19:41Z YaThaWinTha 42 Created page with "[[ကဏ္ဍ:မြန်မာနိုင်ဟိ တောင်တန်းတိ]] [[ကဏ္ဍ:ရခိုင် ပထဝီဝင်]]" 20391 wikitext text/x-wiki [[ကဏ္ဍ:မြန်မာနိုင်ဟိ တောင်တန်းတိ]] [[ကဏ္ဍ:ရခိုင် ပထဝီဝင်]] 25jxlan4r3v324gwbg65hq5c4y6ec5a ကဏ္ဍ:ရခိုင် တောင်ထိပ်တိ 14 5593 20392 2026-08-14T10:19:52Z YaThaWinTha 42 Created page with "[[ကဏ္ဍ:မြန်မာနိုင်ဟိ တောင်တန်းတိ]] [[ကဏ္ဍ:ရခိုင် ပထဝီဝင်]]" 20392 wikitext text/x-wiki [[ကဏ္ဍ:မြန်မာနိုင်ဟိ တောင်တန်းတိ]] [[ကဏ္ဍ:ရခိုင် ပထဝီဝင်]] 25jxlan4r3v324gwbg65hq5c4y6ec5a ကဏ္ဍ:ရခိုင် တောတောင်တိ 14 5594 20393 2026-08-14T10:19:57Z YaThaWinTha 42 Created page with "[[ကဏ္ဍ:မြန်မာနိုင်ဟိ တောင်တန်းတိ]] [[ကဏ္ဍ:ရခိုင် ပထဝီဝင်]]" 20393 wikitext text/x-wiki [[ကဏ္ဍ:မြန်မာနိုင်ဟိ တောင်တန်းတိ]] [[ကဏ္ဍ:ရခိုင် ပထဝီဝင်]] 25jxlan4r3v324gwbg65hq5c4y6ec5a Module:Fallbacklist 828 5595 20400 2026-08-14T10:40:26Z YaThaWinTha 42 Created page with "--- Language fallback rules for other Lua modules. -- @see [[c:Module:Fallbacklist]] -- @release stable -- @submodule return { -- crh (Crimean Tatar) cluster: crh-cyrl , crh-latn -> crh (Crimean Tatar) ['crh'] = {'crh-latn'}, ['crh-cyrl'] = {'crh', 'ru'}, ['crh-latn'] = {'crh'}, -- de (German) cluster: ['als'] = {'gsw', 'de'}, -- Alemannisch ['bar'] = {'de'},..." 20400 Scribunto text/plain --- Language fallback rules for other Lua modules. -- @see [[c:Module:Fallbacklist]] -- @release stable -- @submodule return { -- crh (Crimean Tatar) cluster: crh-cyrl , crh-latn -> crh (Crimean Tatar) ['crh'] = {'crh-latn'}, ['crh-cyrl'] = {'crh', 'ru'}, ['crh-latn'] = {'crh'}, -- de (German) cluster: ['als'] = {'gsw', 'de'}, -- Alemannisch ['bar'] = {'de'}, -- Bavarian ['de-at'] = {'de'}, -- Austrian German ['de-ch'] = {'de'}, -- Swiss High German ['de-formal'] = {'de'}, -- German (formal address) ['dsb'] = {'de'}, -- Lower Sorbian ['frr'] = {'de'}, -- Northern Frisian ['hsb'] = {'de'}, -- Upper Sorbian ['ksh'] = {'de'}, -- Colognian ['lb'] = {'de'}, -- Luxembourgish ['nds'] = {'nds-nl', 'de'}, -- Low German ['nds-nl'] = {'nds', 'nl'}, -- Low Saxon (Netherlands) ['pdc'] = {'de'}, -- Deitsch ['pdt'] = {'nds', 'de'}, -- Plautdietsch ['pfl'] = {'de'}, -- Pälzisch ['sli'] = {'de'}, -- Lower Silesian ['stq'] = {'de'}, -- Seeltersk ['vmf'] = {'de'}, -- Upper Franconian -- es (Spanish) cluster ['an'] = {'es'}, -- Aragonese ['arn'] = {'es'}, -- Mapuche ['ay'] = {'es'}, -- Aymara ['cbk-zam'] = {'es'}, -- Chavacano de Zamboanga ['gn'] = {'es'}, -- Guarani ['lad'] = {'es'}, -- Ladino ['nah'] = {'es'}, -- Nahuatl ['qu'] = {'es'}, -- Quechua ['qug'] = {'qu', 'es'}, -- Runa shimi -- et (Estonian) cluster ['liv'] = {'et'}, -- Līvõ kēļ ['vep'] = {'et'}, -- Veps ['vro'] = {'et'}, -- Võro ['fiu-vro'] = {'vro', 'et'}, -- Võro -- fa (Persian) cluster ['bcc'] = {'fa'}, -- Southern Balochi ['bqi'] = {'fa'}, -- Bakhtiari ['glk'] = {'fa'}, -- Gilaki ['mzn'] = {'fa'}, -- Mazandarani -- fi (Finnish) cluster: ['fit'] = {'fi'}, -- meänkieli ['vot'] = {'fi'}, -- Votic -- fr (French) cluster: ['bm'] = {'fr'}, -- Bambara ['br'] = {'fr'}, -- Breton ['co'] = {'fr'}, -- Corsican ['ff'] = {'fr'}, -- Fulah ['frc'] = {'fr'}, -- Cajun French ['frp'] = {'fr'}, -- Franco-Provençal ['ht'] = {'fr'}, -- Haitian ['ln'] = {'fr'}, -- Lingala ['mg'] = {'fr'}, -- Malagasy ['pcd'] = {'fr'}, -- Picard ['sg'] = {'fr'}, -- Sango ['ty'] = {'fr'}, -- Tahitian ['wa'] = {'fr'}, -- Walloon ['wo'] = {'fr'}, -- Wolof -- hi (Hindi) cluster ['anp'] = {'hi'}, -- Angika ['mai'] = {'hi'}, -- Maithili ['sa'] = {'hi'}, -- Sanskrit -- hif (Fiji Hindi) cluster: hif-deva , hif-latn -> hif (Fiji Hindi) ['hif'] = {'hif-latn'}, ['hif-deva'] = {'hif'}, ['hif-latn'] = {'hif'}, -- id (Indonesian) cluster ['min'] = {'id'}, -- Minangkabau ['ace'] = {'id'}, -- Achinese ['bug'] = {'id'}, -- Buginese ['bjn'] = {'id'}, -- Banjar ['jv'] = {'id'}, -- Javanese ['su'] = {'id'}, -- Sundanese ['map-bms'] = {'jv', 'id'}, -- Basa Banyumasan -- ike (Eastern Canadian Inuktitut) cluster: ike-cans , ike-latn -> ike (Eastern Canadian Inuktitut) ['ike-cans'] = {'ik'}, ['ike-latn'] = {'ik'}, -- it (Italian) cluster ['egl'] = {'it'}, -- Emiliàn ['eml'] = {'it'}, -- Emiliano-Romagnolo ['fur'] = {'it'}, -- Friulian ['lij'] = {'it'}, -- Ligure ['lmo'] = {'it'}, -- lumbaart ['nap'] = {'it'}, -- Neapolitan ['pms'] = {'it'}, -- Piedmontese ['rgn'] = {'it'}, -- Romagnol ['scn'] = {'it'}, -- Sicilian ['vec'] = {'it'}, -- vèneto -- kk (Kazakh) cluster: -- kk-arab , kk-cyrl , kk-latn , kk-cn , kk-kz , kk-tr -> kk (Kazakh) ['kk'] = {'kk-cyrl'}, -- Kazakh ['kk-arab'] = {'kk-cyrl', 'kk'}, -- Kazakh (Arabic script) ['kk-cn'] = {'kk-arab', 'kk-cyrl', 'kk'}, -- Kazakh (China) ['kk-cyrl'] = {'kk'}, -- Kazakh (Cyrillic script) ['kk-kz'] = {'kk', 'kk-cyrl'}, -- Kazakh (Kazakhstan) ['kk-latn'] = {'kk-cyrl', 'kk'}, -- Kazakh (Latin script) ['kk-tr'] = {'kk-latn', 'kk-cyrl', 'kk'}, -- Kazakh (Turkey) ['kaa'] = {'kk-latn', 'kk-cyrl'}, -- Kara-Kalpak -- ku (Kurdish) cluster: ku-latn , ku-arab -> ku (Kurdish) ['ku'] = {'ku-latn'}, ['ku-arab'] = {'ckb', 'ckb-arab', 'ku'}, -- كوردي (عەرەبی) ['ku-latn'] = {'ku'}, ['ckb'] = {'ckb-arab', 'ku'}, -- nl (Dutch) cluster ['af'] = {'nl'}, -- Afrikaans ['fy'] = {'nl'}, -- Western Frisian ['li'] = {'nl'}, -- Liechtenstein ['nl-informal'] = {'nl'}, -- Nederlands (informeel) ['vls'] = {'nl'}, -- Vlaams ['zea'] = {'nl'}, -- Zeeuws --pl (Polish) cluster ['csb'] = {'pl'}, -- Kashubian ['szl'] = {'pl'}, -- Silesian -- pt (Portuguese) cluster ['gl'] = {'pt'}, -- Galician ['mwl'] = {'pt'}, -- Mirandese ['pt-br'] = {'pt'}, -- Brazilian Portuguese -- ro (Romanian) cluster ['mo'] = {'ro'}, -- Moldavian ['rmy'] = {'ro'}, -- Romani -- ru (Russian) cluster ['ab'] = {'ru'}, -- Abkhazian ['av'] = {'ru'}, -- Avaric ['ba'] = {'ru'}, -- Bashkir ['be-tarask'] = {'ru'}, -- Belorussian ['ce'] = {'ru'}, -- Chechen ['crh-cyrl'] = {'ru'}, -- Crimean Tatar (Cyrillic script) ['cv'] = {'ru'}, -- Chuvash ['inh'] = {'ru'}, -- Ingush ['koi'] = {'ru'}, -- Komi-Permyak ['krc'] = {'ru'}, -- Karachay-Balkar ['kv'] = {'ru'}, -- Komi ['lbe'] = {'ru'}, -- лакку ['lez'] = {'ru'}, -- Lezghian ['mhr'] = {'ru'}, -- Eastern Mari ['mrj'] = {'ru'}, -- Hill Mari ['myv'] = {'ru'}, -- Erzya ['os'] = {'ru'}, -- Ossetic ['rue'] = {'uk', 'ru'}, -- Rusyn ['sah'] = {'ru'}, -- Sakha ['tt'] = {'tt-cyrl', 'ru'}, -- Tatar ['tt-cyrl'] = {'ru'}, -- Tatar (Cyrillic script) ['udm'] = {'ru'}, -- Udmurt ['uk'] = {'ru'}, -- Ukranian ['xal'] = {'ru'}, -- Kalmyk ['tt'] = {'tt-cyrl', 'ru'}, -- Tatar -- ruq (Megleno Romanian) cluster: ruq-cyrl , ruq-grek , ruq-latn -> ruq (Megleno Romanian) ['ruq'] = {'ruq-latn', 'ro'}, -- Megleno-Romanian ['ruq-cyrl'] = {'ruq', 'mk'}, -- Megleno-Romanian (Cyrillic script) ['ruq-grek'] = {'ruq'}, -- Megleno-Romanian (Greek script) ['ruq-latn'] = {'ro', 'ruq'}, -- Megleno-Romanian (Latin script) -- sr (Serbian) cluster: sr-ec , sr-el -> sr (Serbian) ['sr'] = {'sr-ec'}, ['sr-ec'] = {'sr'}, ['sr-el'] = {'sr'}, -- tg (Tajik) cluster: tg-cyrl , tg-latn -> tg (Tajik) ['tg'] = {'tg-cyrl'}, ['tg-cyrl'] = {'tg'}, ['tg-latn'] = {'tg'}, -- tr (Turkish) cluster ['gag'] = {'tr'}, -- Gagauz ['kiu'] = {'tr'}, -- Kirmanjki ['lzz'] = {'tr'}, -- Lazuri -- tt (Tatar) cluster: tt-cyrl , tt-latn -> tt (Tatar) ['tt-cyrl'] = {'tt'}, ['tt-latn'] = {'tt'}, -- zh (Chinese) cluster -- /includes/language/converters/ZhConverter.php -- https://gerrit.wikimedia.org/r/703560 ['cdo'] = {'nan', 'zh-hant', 'zh', 'zh-hans'}, -- Min Dong Chinese ['gan'] = {'gan-hant', 'gan-hans', 'zh-hant', 'zh-hans', 'zh'}, -- Gan ['gan-hans'] = {'gan', 'gan-hant', 'zh-hans', 'zh', 'zh-hant'}, -- Simplified Gan script ['gan-hant'] = {'gan', 'gan-hans', 'zh-hant', 'zh', 'zh-hans'}, -- Traditional Gan script ['hak'] = {'zh-hant', 'zh', 'zh-hans'}, -- Hakka ['ii'] = {'zh-cn', 'zh-hans', 'zh', 'zh-hant'}, -- Sichuan Yi ['lzh'] = {'zh-hant', 'zh', 'zh-hans'}, -- Literary Chinese ['nan'] = {'cdo', 'zh-hant', 'zh', 'zh-hans'}, -- Min Nan Chinese ['szy'] = {'zh-tw', 'zh-hant', 'zh', 'zh-hans'}, -- Sakizaya ['tay'] = {'zh-tw', 'zh-hant', 'zh', 'zh-hans'}, -- Atayal ['trv'] = {'zh-tw', 'zh-hant', 'zh', 'zh-hans'}, -- Seediq ['wuu'] = {'zh-hans', 'zh-hant', 'zh'}, -- Wu -- https://phabricator.wikimedia.org/T59138 -- ['wuu'] = {'wuu-hans, 'wuu-hant', 'zh-hans', 'zh-hant', 'zh'}, -- Wu -- ['wuu-hans'] = {'wuu', 'wuu-hant', 'zh-hans', 'zh', 'zh-hant'}, -- Simplified Wu -- ['wuu-hant'] = {'wuu', 'wuu-hans', 'zh-hant', 'zh', 'zh-hans'}, -- Traditional Wu ['yue'] = {'zh-hk', 'zh-hant', 'zh-hans', 'zh'}, -- Cantonese -- https://phabricator.wikimedia.org/T59106 -- ['yue'] = {'yue-hant', 'yue-hans, 'zh-hk', 'zh-hant', 'zh-hans', 'zh'}, -- Cantonese -- ['yue-hans'] = {'yue', 'yue-hant', 'zh-hans', 'zh', 'zh-hk', 'zh-hant'}, -- Simplified Cantonese -- ['yue-hant'] = {'yue', 'yue-hans', 'zh-hk', 'zh-hant', 'zh', 'zh-hans'}, -- Traditional Cantonese ['za'] = {'zh-hans', 'zh-hant', 'zh'}, -- Zhuang -- The time allocated for running scripts has expired. -- ['zh'] = {'zh-hans', 'zh-hant', 'zh-cn', 'zh-tw', 'zh-hk'}, -- Chinese -- ['zh-hans'] = {'zh-cn', 'zh', 'zh-hant'}, -- Simplified Chinese -- ['zh-hant'] = {'zh-tw', 'zh-hk', 'zh', 'zh-hans'}, -- Traditional Chinese -- ['zh-tw'] = {'zh-hant', 'zh-hk', 'zh', 'zh-hans'}, -- Chinese (Taiwan) -- ['zh-hk'] = {'zh-hant', 'zh-tw', 'zh', 'zh-hans'}, -- Chinese (Hong Kong) ['zh'] = {'zh-hans', 'zh-hant', 'zh-hk'}, -- Chinese ['zh-hans'] = {'zh-hant', 'zh-hk'}, -- Simplified Chinese ['zh-hant'] = {'zh-hk', 'zh-hans'}, -- Traditional Chinese ['zh-cn'] = {'zh-hans', 'zh', 'zh-hant'}, -- Chinese (Mainland China) ['zh-sg'] = {'zh-hans', 'zh-cn', 'zh', 'zh-hant'}, -- Chinese (Singapore) ['zh-my'] = {'zh-hans', 'zh-sg', 'zh-cn', 'zh', 'zh-hant'}, -- Chinese (Malaysia) ['zh-tw'] = {'zh-hant', 'zh-hk', 'zh-hans'}, -- Chinese (Taiwan) ['zh-hk'] = {'zh-hant', 'zh-hans'}, -- Chinese (Hong Kong) ['zh-mo'] = {'zh-hant', 'zh-hk', 'zh-tw', 'zh', 'zh-hans'}, -- Chinese (Macau) ['zh-classical'] = {'lzh', 'zh-hant', 'zh', 'zh-hans'}, -- Classical Chinese -> Literary Chinese ['zh-min-nan'] = {'nan', 'cdo', 'zh-hant', 'zh', 'zh-hans'}, -- Chinese (Min Nan) -> Min Nan Chinese ['zh-yue'] = {'yue', 'zh-hk', 'zh-hant', 'zh-hans', 'zh'}, -- Yue Chinese -> Cantonese ------------------------ --------- misc --------- ------------------------ ['arz'] = {'ar'}, -- Egyptian Arabic -> Arabic ['azb'] = {'az'}, -- Southern Azerbaijani -> Azerbaijani ['be-x-old'] = {'be-tarask'}, -- be-x-old -> be-tarask (wrong to correct Taraškievica form of Belarusian orthography) ['bh'] = {'bho'}, -- Bihari -> Bhojpuri ['bpy'] = {'bn'}, -- Bishnupria Manipuri -> Bengali -- da ['jut'] = {'da'}, -- Jutish -> Danish ['kl'] = {'da'}, -- Kalaallisut -> Danish ['en-gb'] = {'en'}, -- Brexit -> English ['yi'] = {'he'}, -- Yiddish -> Hebrew ['iu'] = {'ike-cans'}, -- Inuktitut -> Eastern Canadian (Aboriginal syllabics) ['xmf'] = {'ka'}, -- Mingrelian -> Georgian ['kbd'] = {'kbd-cyrl', 'ru'}, -- Kabardian -> Адыгэбзэ ['tcy'] = {'kn'}, -- Tulu -> Kannada ['ko-kp'] = {'ko'}, -- 한국어 (조선) -> Korean ['ks'] = {'ks-arab'}, -- Kashmiri -> Kashmiri (Arabic script) -- lt ['bat-smg'] = {'sgs', 'lt'}, -- Samogitian -> Lithuanian ['sgs'] = {'lt'}, -- Samogitian -> Lithuanian ['ltg'] = {'lv'}, -- Latvian -> Latgalian ['dtp'] = {'ms'}, -- Central Dusun -> Malay ['no'] = {'nb'}, -- Norwegian (bokmål) -> Norwegian Bokmål ['roa-rup'] = {'rup'}, -- Aromanian (other Romance) -> Aromanian ['aln'] = {'sq'}, -- Gheg Albanian -> Albanian ['ug'] = {'ug-arab'}, -- Uyghur -> Uyghur (Arabic script) ['khw'] = {'ur'}, -- Khowar -> Urdu } puottz3ra6u2ba8av2uuzkxjgvm5n0q Module:Entrypoint 828 5596 20401 2026-08-14T10:41:22Z YaThaWinTha 42 Created page with "--- Entrypoint templating wrapper for Scribunto packages. -- The module generates an entrypoint function that can execute Scribunto -- package calls in the template context. This allows a package to support -- both direct and template invocations. -- -- @script entrypoint -- @release beta -- @author [[wikia:dev:User:8nml|8nml]] (Fandom Dev Wiki) -- @param {table} package Scribunto package. -- @error[85] {..." 20401 Scribunto text/plain --- Entrypoint templating wrapper for Scribunto packages. -- The module generates an entrypoint function that can execute Scribunto -- package calls in the template context. This allows a package to support -- both direct and template invocations. -- -- @script entrypoint -- @release beta -- @author [[wikia:dev:User:8nml|8nml]] (Fandom Dev Wiki) -- @param {table} package Scribunto package. -- @error[85] {string} 'you must specify a function to call' -- @error[91] {string} 'the function you specified did not exist' -- @error[opt,95] {string} '$2 is not a function' -- @return {function} Template entrypoint - @{main}. -- @note Parent frames are not available in Entrypoint's -- `frame`. This is because recursive (grandparent) -- frame access is impossible in legacy Scribunto -- due to [[mw:Manual:Parser#Empty-argument expansion -- cache|empty-argument expansion cache]] limitations. -- @note As Entrypoint enables template access rather than -- a new extension hook, it does not work with named -- numeric parameters such as `1=` or `2=`. This may -- result in unexpected behaviour such as Entrypoint -- and module errors. --- Stateless, sequential Lua iterator. -- @function inext -- @param {table} t Invariant state to loop over. -- @param {number} i Control variable (current index). -- @return[opt] {number} Next index. -- @return[opt] {number|string|table|boolean} Next value. -- @see https://github.com/lua/lua/blob/v5.1.1/lbaselib.c#L247 local inext = select(1, ipairs{}) --- Check for MediaWiki version 1.25. -- The concurrent Scribunto release adds a type check for package functions. -- @variable {boolean} func_check -- @see [[mw:MediaWiki 1.24/wmf7#Scribunto]] local func_check = tonumber(mw.site.currentVersion:match('^%d+.%d+')) >= 1.25 --- MediaWiki error message getter. -- Mimics Scribunto error formatting for script errors. -- @function msg -- @param {string} key MediaWiki i18n message key. -- @param[opt] {string} fn_name Name of package function. -- @return {string} Formatted lowercase message. -- @local local function msg(key, fn_name) return select(1, mw.message.new(key) :plain() :match(':%s*(.-)[.۔。෴։።]?$') :gsub('^.', mw.ustring.lower) :gsub('$2', fn_name or '$2') ) end --- Template entrypoint function generated by this module. -- @function main -- @param {Frame} frame Scribunto frame in module context. -- @return {string} Module output in template context. return function(package) return function(f) local frame = f:getParent() local args_mt = {} local arg_cache = {} args_mt.__pairs = function() return next, arg_cache, nil end args_mt.__ipairs = function() return inext, arg_cache, 0 end args_mt.__index = function(t, k) return arg_cache[k] end for key, val in pairs(frame.args) do arg_cache[key] = val end local fn_name = table.remove(arg_cache, 1) f.args = setmetatable({}, args_mt) frame.args = setmetatable({}, args_mt) if not fn_name then error(msg('scribunto-common-nofunction')) end fn_name = mw.text.trim(fn_name) if not package[fn_name] then error(msg('scribunto-common-nosuchfunction', fn_name)) end if func_check and type(package[fn_name]) ~= 'function' then error(msg('scribunto-common-notafunction', fn_name)) end return package[fn_name](frame) end end l7xohd37g14pkh4rq39hdb3rm65nejf Module:Deprecated 828 5597 20402 2026-08-14T10:42:12Z YaThaWinTha 42 Created page with "--- Marks items as deprecated, and provides a warning when they are called. -- -- ## Limitations ## -- This module will not provide a warning if a deprecated item is called from -- within the same module that this module is used. -- -- @release alpha -- @author [[User:Awesome_Aasim|Awesome Aasim]] -- @function deprecated -- @param {table} p package frame -- @param deprecatedTable -- @return package return function(p, deprecatedTable, replacement) local pckg = {} ---..." 20402 Scribunto text/plain --- Marks items as deprecated, and provides a warning when they are called. -- -- ## Limitations ## -- This module will not provide a warning if a deprecated item is called from -- within the same module that this module is used. -- -- @release alpha -- @author [[User:Awesome_Aasim|Awesome Aasim]] -- @function deprecated -- @param {table} p package frame -- @param deprecatedTable -- @return package return function(p, deprecatedTable, replacement) local pckg = {} --- Warn -- @param {string} text warning text function warn(text) local tb = debug.traceback() mw.log(text .. '\n' .. tb) mw.addWarning(text .. tb:gsub("\n", "<br/>"):gsub("\t", "&emsp;")) end if deprecatedTable == nil or deprecatedTable == true then deprecatedTable = {} for k,_ in pairs(p) do deprecatedTable[k] = { deprecated = true, replacement = replacement or "" } end end setmetatable(pckg, { __index = function(t, index) if deprecatedTable[index] and deprecatedTable[index]["deprecated"] then warn( mw.ustring.format( "Deprecated member <code>%s</code> called. ", index ) .. ( deprecatedTable[index]["replacement"] and mw.ustring.format("Please %s instead.", deprecatedTable[index]["replacement"]) or '' ) ) end return p[index] end }) return pckg end my1p1xp76qgfnvctx8pevv0cvz0hjyb 20406 20402 2026-08-14T10:55:33Z YaThaWinTha 42 20406 Scribunto text/plain --- Marks items as deprecated, and provides a warning when they are called. -- -- ## Limitations ## -- This module will not provide a warning if a deprecated item is called from -- within the same module that this module is used. -- -- @release alpha -- @author [[User:Awesome_Aasim|Awesome Aasim]] -- @function deprecated -- @param {table} p package frame -- @param deprecatedTable -- @return package return function(p, deprecatedTable, replacement) local pckg = {} --- Warn -- @param {string} text warning text local function warn(text) local tb = debug.traceback() mw.log(text .. '\n' .. tb) mw.addWarning(text .. tb:gsub("\n", "<br/>"):gsub("\t", "&emsp;")) end if deprecatedTable == nil or deprecatedTable == true then deprecatedTable = {} for k, _ in pairs(p) do deprecatedTable[k] = { deprecated = true, replacement = replacement or "" } end end setmetatable(pckg, { __index = function(t, index) if deprecatedTable[index] and deprecatedTable[index]["deprecated"] then warn( mw.ustring.format( "Deprecated member <code>%s</code> called. ", index ) .. ( deprecatedTable[index]["replacement"] and mw.ustring.format( "Please %s instead.", deprecatedTable[index]["replacement"] ) or '' ) ) end return p[index] end }) return pckg end olh2iou8mouxxd8dfpjmnqi9sldukbq တမ်းပလိတ်:Infobox mountain 10 5598 20404 2026-08-14T10:49:01Z YaThaWinTha 42 Created page with "{{Infobox | bodyclass = vcard | child = {{{child|}}} | subbox = {{{subbox|}}} | above = {{#if:{{{name|}}}|{{{name}}}|<includeonly>{{PAGENAMEBASE}}</includeonly>}} | aboveclass = fn org | autoheaders = y | abovestyle = background-color: #E7DCC3; | headerstyle = background-color: #E7DCC3; | imagestyle = padding: 0.3em 0.2em 0.2em 0.2em; | captionstyle = padding: 0.2em 0em; | bodystyle = width:24.5em; line-height:1.5em; | subhea..." 20404 wikitext text/x-wiki {{Infobox | bodyclass = vcard | child = {{{child|}}} | subbox = {{{subbox|}}} | above = {{#if:{{{name|}}}|{{{name}}}|<includeonly>{{PAGENAMEBASE}}</includeonly>}} | aboveclass = fn org | autoheaders = y | abovestyle = background-color: #E7DCC3; | headerstyle = background-color: #E7DCC3; | imagestyle = padding: 0.3em 0.2em 0.2em 0.2em; | captionstyle = padding: 0.2em 0em; | bodystyle = width:24.5em; line-height:1.5em; | subheaderclass= nickname | subheader = {{{other_name|}}} | image = {{#invoke:InfoboxImage|InfoboxImage|image={{#invoke:WikidataIB|getValue|1=P18|2={{{photo|}}}|name=photo|qid={{{qid|}}}|rank=best|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|NONE}}}|onlysourced={{{onlysourced|false}}}|maxvals=1|noicon=true}}||size={{if empty|{{{photo_width|}}}|{{{photo_size|}}}}}|upright={{{photo_upright|}}}|sizedefault=272px|maxsize=288px|alt={{{photo_alt|}}}}} | caption = {{#if:{{{photo|}}}|{{{photo_caption|}}}|{{#if:{{#invoke:WikidataIB|getValue|1=P18|2=|name=photo|qid={{{qid|}}}|rank=best|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|NONE}}}|onlysourced={{{onlysourced|false}}}|maxvals=1|noicon=true}}|{{#invoke:WikidataIB|getValue|1=P18|2=|name=caption|qid={{{qid|}}}|qual=P2096|qualsonly=true|rank=best|maxvals=1|ps=2}}}}}} | {{#if:{{#invoke:WikidataIB|getValue|1=P18|2={{{photo|}}}|name=photo|qid={{{qid|}}}|rank=best|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|NONE}}}|onlysourced={{{onlysourced|false}}}|maxvals=1|noicon=true}}|data26|data1}} = {{#if:{{{map|}}} | <div style="padding:0.2em 0.2em {{#if:{{{map_caption|}}}{{{location|}}}|0.5em|0.2em}} 0.2em;">{{location map|{{{map}}} | border = infobox | float = center | alt = {{{map_alt|}}} | default_width = 272 | max_width = 288 | width = {{if empty|{{{map_width|}}}|{{{map_size|}}} }} | caption = {{#switch:{{{map_caption|}}}|none=|#default={{if empty|{{{map_caption|}}}|{{{location|}}} }} }} | mark = Red triangle with thick white border.svg | marksize = 16 | relief = {{#ifeq:{{{map_relief|{{{relief|}}}}}}|0||1}} | label = {{if empty|{{{label|}}}|{{#if:{{{range_coordinates|}}}||{{{name|}}} }} }} | position ={{{label_position|}}} | coordinates = {{if empty|{{{range_coordinates|}}}|{{{coordinates|}}}|{{{coords|}}}}} }} </div> | {{#if:{{{map_image|{{{image_map|}}}}}} |<div style="padding:0.2em 0.2em {{#if:{{{map_caption|}}}{{{location|}}}|0.5em|0.2em}} 0.2em;">{{#invoke:InfoboxImage|InfoboxImage|image={{{map_image|{{{image_map|}}}}}}|size={{if empty|{{{map_size|}}}|{{{mapsize|}}}|{{{map_width|}}}}}|upright={{{map_upright|}}}|sizedefault=272px|maxsize=288px|alt={{{map_alt|}}}}}{{#switch:{{{map_caption|}}}|none|=|#default=<div>{{{map_caption}}}</div>}} </div>}} }} | header2 = အမြင့်ဆုံးအမှတ် | label3 = တောင်ထွတ် | data3 = {{If first display both|{{#invoke:WikidataIB|getValue|1=P2044|2={{{highest|}}}|name=highest|qid={{{qid|}}}|qual=P2561|qualsonly=Y|fetchwikidata={{{fetchwikidata|NONE}}}|suppressfields={{{suppressfields|}}}|onlysourced={{{onlysourced|false}}}|noicon=false}}|{{If last display both|,&#32;|{{#invoke:WikidataIB|getValue|1=P2044|2={{{highest_location|}}}|name=highest_location|qid={{{qid|}}}|qual=P276|qualsonly=Y|fetchwikidata={{{fetchwikidata|NONE}}}|suppressfields={{{suppressfields|}}}|onlysourced={{{onlysourced|false}}}|qshortname=true|noicon=false}}}}}} | label4 = အမြင့် | data4 = {{If empty|{{{elevation|}}}|{{#if:{{{elevation_m|}}}{{{elevation_ft|}}}|{{Convinfobox|{{{elevation_m|}}}|m|{{{elevation_ft|}}}|ft}}|}}|{{If first display both|{{#invoke:WikidataIB|getValue|1=P2044|2=|name=elevation|qid={{{qid|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|suppressfields={{{suppressfields|}}}|onlysourced={{{onlysourced|false}}}|unitabbr=true|convert=true|maxvals=1|noicon=false}}|{{#ifeq:{{{refs|no}}}|yes|{{Wikidata|references|normal+|{{{qid|}}}|P2044}}}}}}}}{{#if:{{{elevation_ref|{{{elevation_note|}}}}}}|{{{elevation_ref|{{{elevation_note|}}}}}}}}{{If last display both|<br/>|{{#invoke:WikidataIB|getValue|1=P2044|2={{{elevation_system|}}}|name=elevation_system|qid={{{qid|}}}|qual=P459|qualsonly=Y|fetchwikidata={{{fetchwikidata|ALL}}}|suppressfields={{{suppressfields|}}}|onlysourced={{{onlysourced|false}}}|qshortname=true|maxvals=1|noicon=false}}}} | label5 = [[:en:Topographic prominence|ပေါ်လွင်မှု]] | data5 = {{If empty|{{{prominence|}}}|{{#if:{{{prominence_m|}}}{{{prominence_ft|}}}|{{Convinfobox|{{{prominence_m|}}}|m|{{{prominence_ft|}}}|ft}}|}}|{{If first display both|{{#invoke:WikidataIB|getValue|1=P2660|2=|name=prominence|qid={{{qid|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|suppressfields={{{suppressfields|}}}|onlysourced={{{onlysourced|false}}}|unitabbr=true|convert=true|maxvals=1|noicon=false}}|{{#ifeq:{{{refs|no}}}|yes|{{Wikidata|references|normal+|{{{qid|}}}|P2660}}}}}}}}{{#if:{{{prominence_ref|}}}|{{{prominence_ref|}}}}} | label6 = [[:en:Topographic prominence#Prominence parentage|ပင်မတောင်ထွတ်]] | data6 = {{If first display both|{{#invoke:WikidataIB|getValue|1=P3137|2={{{parent_peak|}}}|name=parent_peak|qid={{{qid|}}}|fetchwikidata={{{fetchwikidata|NONE}}}|suppressfields={{{suppressfields|}}}|onlysourced={{{onlysourced|false}}}|shortname=true|maxvals=1|noicon=false|replacetext={{#ifeq:{{{fetchwikidata|}}}|ALL||[[Category:Wikidata value to be checked for Infobox mountain]]}}}}|{{#ifeq:{{{refs|no}}}|yes|{{Wikidata|references|normal+|{{{qid|}}}|P3137}}}}}} | label7 = [[:en:Topographic isolation|Isolation]] | data7 = {{If empty|{{{isolation|}}}|{{#if:{{{isolation_km|}}}{{{isolation_mi|}}}|{{Convinfobox|{{{isolation_km|}}}|km|{{{isolation_mi|}}}|mi}}|}}|{{If first display both|{{#invoke:WikidataIB|getValue|1=P2659|2=|name=isolation|qid={{{qid|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|suppressfields={{{suppressfields|}}}|onlysourced={{{onlysourced|false}}}|unitabbr=true|convert=true|maxvals=1|noicon=false}}|{{#ifeq:{{{refs|no}}}|yes|{{Wikidata|references|normal+|{{{qid|}}}|P2659}}}}}}}}{{If last display both|<br/>to&nbsp;|{{#invoke:WikidataIB|getValue|1=P2659|2={{{isolation_parent|}}}|name=isolation_parent|qid={{{qid|}}}|qual=P2210|qualsonly=Y|fetchwikidata={{{fetchwikidata|ALL}}}|suppressfields={{{suppressfields|}}}|onlysourced={{{onlysourced|false}}}|qshortname=true|maxvals=1|noicon=false}}}}{{#if:{{{isolation_ref|}}}|{{{isolation_ref|}}}}} | class8 = category | label8 = [[တောင်များ စာရင်း|စာရင်းသွင်းခြင်း]] | data8 = {{If first display both|{{#invoke:WikidataIB|getValue|1=P361|2={{{listing|}}}|name=listing|qid={{{qid|}}}|fetchwikidata={{{fetchwikidata|NONE}}}|suppressfields={{{suppressfields|}}}|onlysourced={{{onlysourced|false}}}|qshortname=true|sorted=true|noicon=false|list=ubl|replacetext={{#ifeq:{{{fetchwikidata|}}}|ALL||[[Category:Wikidata value to be checked for Infobox mountain]]}}}}|{{#ifeq:{{{refs|no}}}|yes|{{Wikidata|references|normal+|{{{qid|}}}|P3137}}}}}} | label9 = [[ပထဝီဝင် ကိုဩဒိနိတ် စနစ်|ကိုဩဒိနိတ်]] | data9 = {{#if:{{{coordinates|}}}{{{coords|}}}|{{#invoke:Coordinates|coordinsert|{{if empty|{{{coordinates|}}}|{{{coords|}}}}}|type:mountain|{{#if:{{{range_coordinates|}}}||{{#if:{{{length_km|}}}{{{length_mi|}}}{{{width_km|}}}{{{width_mi|}}}{{{area_mi2|}}}{{{area_km2|}}}|dim:{{Infobox dim|length_km={{{length_km|}}}|length_mi={{{length_mi|}}}|width_km={{{width_km|}}}|width_mi={{{width_mi|}}}|area_mi2={{{area_mi2|}}}|area_km2={{{area_km2|}}}}}}}}}}}<!-- -->{{if empty|{{{coordinates_note|}}}|{{{coordinates_ref|}}}|{{{coords_ref|}}} }} }} | header10 = အတိုင်းအစွာတိ | label11 = အလျား | data11 = {{If first display both|{{If empty|{{{length|}}}|{{#if:{{{length_km|}}}{{{length_mi|}}}|{{Convinfobox|{{{length_km|}}}|km|{{{length_mi|}}}|mi}}|}}|{{If first display both|{{#invoke:WikidataIB|getValue|1=P2043|2=|name=length|qid={{{qid|}}}|fetchwikidata={{{fetchwikidata|NONE}}}|suppressfields={{{suppressfields|}}}|onlysourced={{{onlysourced|false}}}|unitabbr=true|convert=true|noicon=false}}|{{#ifeq:{{{refs|no}}}|yes|{{Wikidata|references|normal+|{{{qid|}}}|P2043}}}}}}}}|{{If last display both|&#32;|{{If empty|{{{length_orientation|}}}|{{#ifeq:{{#invoke:String|match|s={{#invoke:WikidataIB|getQualifierIDs|1=P2043|2=|qid={{{qid|}}}|fwd=ALL|osd=n|qlist=P7469}}|pattern=Q36477|nomatch=}}|Q36477|(NS)|}}|{{#ifeq:{{#invoke:String|match|s={{#invoke:WikidataIB|getQualifierIDs|1=P2043|2=|qid={{{qid|}}}|fwd=ALL|osd=n|qlist=P7469}}|pattern=Q34027|nomatch=}}|Q34027|(EW)|}}}}}}{{If last display both||{{{length_ref|{{{length_note|}}}}}}}}}} | label12 = အကျယ် | data12 = {{If first display both|{{If empty|{{{width|}}}|{{#if:{{{width_km|}}}{{{width_mi|}}}|{{Convinfobox|{{{width_km|}}}|km|{{{width_mi|}}}|mi}}|}}|{{If first display both|{{#invoke:WikidataIB|getValue|1=P2049|2=|name=width|qid={{{qid|}}}|fetchwikidata={{{fetchwikidata|NONE}}}|suppressfields={{{suppressfields|}}}|onlysourced={{{onlysourced|false}}}|unitabbr=true|convert=true|noicon=false}}|{{#ifeq:{{{refs|no}}}|yes|{{Wikidata|references|normal+|{{{qid|}}}|P2049}}}}}}}}|{{If last display both|&#32;|{{If empty|{{{width_orientation|}}}|{{#ifeq:{{#invoke:String|match|s={{#invoke:WikidataIB|getQualifierIDs|1=P2049|2=|qid={{{qid|}}}|fwd=ALL|osd=n|qlist=P7469}}|pattern=Q36477|nomatch=}}|Q36477|(NS)|}}|{{#ifeq:{{#invoke:String|match|s={{#invoke:WikidataIB|getQualifierIDs|1=P2049|2=|qid={{{qid|}}}|fwd=ALL|osd=n|qlist=P7469}}|pattern=Q34027|nomatch=}}|Q34027|(EW)|}}}}}}{{If last display both||{{{width_ref|{{{width_note|}}}}}}}}}} | label13 = ဧရိယာ | data13 = {{If first display both|{{If empty|{{{area|}}}|{{#if:{{{area_km2|}}}{{{area_mi2|}}}|{{Convinfobox|{{{area_km2|}}}|km2|{{{area_mi2|}}}|mi2}}|}}|{{If first display both|{{#invoke:WikidataIB|getValue|1=P2046|2=|name=area|qid={{{qid|}}}|fetchwikidata={{{fetchwikidata|NONE}}}|suppressfields={{{suppressfields|}}}|onlysourced={{{onlysourced|false}}}|unitabbr=true|convert=true|noicon=false}}|{{#ifeq:{{{refs|no}}}|yes|{{Wikidata|references|normal+|{{{qid|}}}|P2046}}}}}}}}|{{If last display both||{{{area_ref|{{{area_note|}}}}}}}}}} | label14 = ထုထည် | data14 = {{If first display both|{{If empty|{{{volume|}}}|{{#if:{{{volume_km3|}}}{{{volume_mi3|}}}|{{Convinfobox|{{{volume_km3|}}}|km3|{{{volume_mi3|}}}|mi3}}|}}|{{If first display both|{{#invoke:WikidataIB|getValue|1=P2234|2=|name=volume|qid={{{qid|}}}|fetchwikidata={{{fetchwikidata|NONE}}}|suppressfields={{{suppressfields|}}}|onlysourced={{{onlysourced|false}}}|unitabbr=true|convert=true|noicon=false}}|{{#ifeq:{{{refs|no}}}|yes|{{Wikidata|references|normal+|{{{qid|}}}|P2234}}}}}}}}|{{If last display both||{{{volume_ref|{{{volume_note|}}}}}}}}}} | header15 = အမည်ပီးခြင်း | label16 = ဝေါဟာရဗေဒ | data16 = {{{etymology|}}} | class17 = nickname | label17 = နာမည်ပြောင် | data17 = {{{nickname|}}} | class18 = nickname | label18 = ဒေသခေါ်နာမည် | data18 = {{native name checker|{{{native_name|}}}}} | label19 = ဘာသာပြန် | data19 = {{{translation|}}} | label20 = ဘာသာစကား | data20 = {{#if:{{{native_name|}}}||<!-- -->{{#if:{{{language|}}}|{{{language}}}|<!-- -->{{#if:{{{native_name_lang|}}}|{{ISO 639 name|{{{native_name_lang|}}}|link=yes}}}}}}}} | label21 = အသံထွက် | data21 = {{{pronunciation|}}} | label22 = Defining authority | data22 = {{{authority|}}} | header25 = ပထဝီဝင် <!-- data26 reserved for map when photo is present --> | class27 = label | label27 = တည်နီရာ | data27 = {{#if:{{{map_caption|}}}|{{{location|}}}|{{#if:{{{photo|}}}|{{#if:{{{map|}}}||{{{location|}}} }}|{{{location|}}} }} }} | class28 = label | label28 = {{If empty|{{{country_type|}}}|{{#if:{{{country1|}}}|နိုင်ငံများ}}|နိုင်ငံ}} | data28 = {{enum|1={{{country|}}}|2={{{country1|}}}|3={{{country2|}}}|4={{{country3|}}}|5={{{country4|}}}|6={{{country5|}}}|7={{{country6|}}}|8={{{country7|}}}|9={{{country8|}}}|10={{{country9|}}}|11={{{country10|}}}|12={{{country11|}}}|13={{{country12|}}}|14={{{country13|}}}|15={{{country14|}}}|16={{{country15|}}}|17={{{country16|}}}|18={{{country17|}}}|19={{{country18|}}}}} | class29 = label | label29 = {{If empty|{{{subdivision1_type|}}}|{{{state_type|}}}|{{#if:{{{state1|}}}|ပြည်နယ်များ}}|ပြည်နယ်}} | data29 = {{if empty|{{{subdivision1|}}}|{{enum|1={{{state|}}}|2={{{state1|}}}|3={{{state2|}}}|4={{{state3|}}}|5={{{state4|}}}|6={{{state5|}}}|7={{{state6|}}}|8={{{state7|}}}|9={{{state8|}}}|10={{{state9|}}}|11={{{state10|}}}|12={{{state11|}}}|13={{{state12|}}}|14={{{state13|}}}|15={{{state14|}}}|16={{{state15|}}}|17={{{state16|}}}|18={{{state17|}}}|19={{{state18|}}}}}}} | class30 = label | label30 = {{If empty|{{{subdivision2_type|}}}|{{{region_type|}}}|{{#if:{{{region1|}}}|ဒေသများ}}|ဒေသ}} | data30 = {{if empty|{{{subdivision2|}}}|{{enum|1={{{region|}}}|2={{{region1|}}}|3={{{region2|}}}|4={{{region3|}}}|5={{{region4|}}}|6={{{region5|}}}|7={{{region6|}}}|8={{{region7|}}}|9={{{region8|}}}|10={{{region9|}}}|11={{{region10|}}}|12={{{region11|}}}|13={{{region12|}}}|14={{{region13|}}}|15={{{region14|}}}|16={{{region15|}}}|17={{{region16|}}}|18={{{region17|}}}|19={{{region18|}}}|20={{{region19|}}}|21={{{region20|}}}|22={{{region21|}}}|23={{{region22|}}}|24={{{region23|}}}}}}} | class31 = label | label31 = {{If empty|{{{subdivision3_type|}}}|{{{district_type|}}}|{{#if:{{{district1|}}}|ခရိုင်များ}}|ခရိုင်}} | data31 = {{if empty|{{{subdivision3|}}}|{{enum|1={{{district|}}}|2={{{district1|}}}|3={{{district2|}}}|4={{{district3|}}}|5={{{district4|}}}|6={{{district5|}}}|7={{{district6|}}}|8={{{district7|}}}|9={{{district8|}}}|10={{{district9|}}}|11={{{district10|}}}|12={{{district11|}}}|13={{{district12|}}}|14={{{district13|}}}|15={{{district14|}}}|16={{{district15|}}}|17={{{district16|}}}|18={{{district17|}}}|19={{{district18|}}}}}}} | label32 = {{If empty|{{{subdivision4_type|}}}|{{{part_type|}}}|{{#if:{{{part1|}}}|ဒေသခွဲများ}}|ဒေသခွဲ}} | data32 = {{if empty|{{{subdivision4|}}}|{{enum|1={{{part|}}}|2={{{part1|}}}|3={{{part2|}}}|4={{{part3|}}}|5={{{part4|}}}|6={{{part5|}}}|7={{{part6|}}}|8={{{part7|}}}|9={{{part8|}}}|10={{{part9|}}}|11={{{part10|}}}|12={{{part11|}}}|13={{{part12|}}}|14={{{part13|}}}|15={{{part14|}}}|16={{{part15|}}}|17={{{part16|}}}|18={{{part17|}}}|19={{{part18|}}}|20={{{part19|}}}}}}} | label33 = {{If empty|{{{settlement_type|{{{city_type|}}}}}}|{{#if:{{{settlement1|{{{city1|}}}}}}|လူနီထိုင်ရာများ}}|လူနီထိုင်ရာ}} | data33 = {{enum|1={{{settlement|{{{city|}}}}}}|2={{{settlement1|{{{city1|}}}}}}|3={{{settlement2|{{{city2|}}}}}}|4={{{settlement3|{{{city3|}}}}}}|5={{{settlement4|{{{city4|}}}}}}|6={{{settlement5|{{{city5|}}}}}}|7={{{settlement6|{{{city6|}}}}}}|8={{{settlement7|{{{city7|}}}}}}|9={{{settlement8|{{{city8|}}}}}}|10={{{settlement9|{{{city9|}}}}}}|11={{{settlement10|{{{city10|}}}}}}|12={{{settlement11|{{{city11|}}}}}}|13={{{settlement12|{{{city12|}}}}}}|14={{{settlement13|{{{city13|}}}}}}|15={{{settlement14|{{{city14|}}}}}}|16={{{settlement15|{{{city15|}}}}}}|17={{{settlement16|{{{city16|}}}}}}|18={{{settlement17|{{{city17|}}}}}}|19={{{settlement18|{{{city18|}}}}}} }} | label34 = [[ပထဝီဝင် ကိုဩဒိနိတ် စနစ်|တောင်တန်း ကိုဩဒိနိတ်]] | data34 = {{#if:{{{range_coordinates|}}}{{{range_coords|}}}|{{#invoke:Coordinates|coordinsert|{{if empty|{{{range_coordinates|}}}|{{{range_coords|}}}}}|type:mountain|{{#if:{{{length_km|}}}{{{length_mi|}}}{{{width_km|}}}{{{width_mi|}}}{{{area_mi2|}}}{{{area_km2|}}}|dim:{{Infobox dim|length_km={{{length_km|}}}|length_mi={{{length_mi|}}}|width_km={{{width_km|}}}|width_mi={{{width_mi|}}}|area_mi2={{{area_mi2|}}}|area_km2={{{area_km2|}}}}}}}}}}}{{#if:{{{range_coordinates_ref|{{{range_coordinates_note|}}}}}}|{{{range_coordinates_ref|{{{range_coordinates_note|}}}}}}}} | class35 = category | label35 = [[တောင်တန်း|ပင်မတောင်တန်း]] | data35 = {{{parent|{{{range|}}}}}} | label36 = တည်ရာနယ်နမိတ် | data36 = {{if empty|{{{borders_on|}}}|{{enum|1={{{border|}}}|2={{{border1|}}}|3={{{border2|}}}|4={{{border3|}}}|5={{{border4|}}}|6={{{border5|}}}|7={{{border6|}}}|8={{{border7|}}}|9={{{border8|}}}}}}} | label37 = [[:en:Ordnance Survey National Grid|OS grid]] | data37 = {{#if:{{{grid_ref_UK|}}}|{{gbm4ibx|{{{grid_ref_UK|}}}|name={{{name|{{PAGENAMEBASE}}}}} }}{{{grid_ref_UK_ref|{{{grid_ref_UK_note|}}}}}}}} | label38 = [[:en:Irish grid reference system|OSI/OSNI grid]] | data38 = {{#if:{{{grid_ref_Ireland|}}}|{{iem4ibx|{{{grid_ref_Ireland|}}}|name={{{name|{{PAGENAMEBASE}}}}} }}{{{grid_ref_Ireland_ref|{{{grid_ref_Ireland_note|}}}}}}}} | label39 = မြီမျက်နှာသွင်ပြင်ပြ မြီပုံ | data39 = {{#if:{{{topo_maker|}}}|{{{topo_maker}}}&nbsp;}}{{if empty|{{{topo|}}}|{{{topo_map|}}} }} | label40 = [[Biome]] | data40 = {{{biome|}}} | header42 = ဘူမိဗေဒ | label43 = ဖြစ်ပေါ်လှာခြင်း | data43 = {{{formed_by|}}} | label44 = [[Orogeny]] | data44 = {{{orogeny|}}} | label45 = ကျောက်သားသက်တမ်း | data45 = {{if empty|{{{age|}}}|{{enum|{{{period|}}}|{{{period1|}}}|{{{period2|}}}|{{{period3|}}}|{{{period4|}}}|{{{period5|}}}}}}} | label46 = [[တောင်အမျိုးအစားများ စာရင်း|တောင်အမျိုးအစား]] | data46 = {{{mountain_type|{{{type|}}}}}} | label47 = [[ကျောက်သားအမျိုးအစားများ စာရင်း|ကျောက်သားအမျိုးအစား]] | data47 = {{enum|{{{geology|}}}|{{{geology1|}}}|{{{geology2|}}}|{{{geology3|}}}|{{{geology4|}}}|{{{geology5|}}}|{{{rock|}}}}} | label48 = {{#if:{{{volcanic_region|}}}|နဂါးတောင်ဒေသ | {{#if:{{{volcanic_arc|}}}|[[Volcanic arc]] | {{#if:{{{volcanic_belt|}}}|[[Volcanic belt]] | {{#if:{{{volcanic_field|}}}|[[Volcanic field]] | {{#if:{{{volcanic_arc/belt|}}}|Volcanic [[Volcanic arc|arc]]/[[Volcanic belt|belt]]}}}}}}}}}} | data48 = {{If empty|{{{volcanic_region|}}}|{{{volcanic_arc|}}}|{{{volcanic_belt|}}}|{{{volcanic_field|}}}|{{{volcanic_arc/belt|}}}}} | label49 = နောက်ဆုံး ပေါက်ကွဲမှု | data49 = {{{last_eruption|}}} | header50 = တောင်တက်ခြင်း | label51 = ပထမဆုံး တက်ရောက်ခြင်း | data51 = {{{first_ascent|}}} | label52 = အလွယ်ဆုံး တောင်တက်လမ်း | data52 = {{{easiest_route|}}} | label53 = ပုံမှန် တောင်တက်လမ်း | data53 = {{{normal_route|}}} | label54 = ရောက်ဟိနိုင်မှု | data54 = {{{access|}}} | header55 = _BLANK_ | data56 = {{{embedded|}}} | data57 = {{{module|}}} }}<noinclude> {{Documentation}} </noinclude> 59crdgo7joekrdnhwhxoa9rqnytyvxy ကဏ္ဍ:နိုင်ငံအလိုက် မီးပြတိုက်တိ 14 5599 20409 2026-08-14T11:05:40Z YaThaWinTha 42 Created page with "[[ကဏ္ဍ:မီးပြတိုက်]]" 20409 wikitext text/x-wiki [[ကဏ္ဍ:မီးပြတိုက်]] 6f2eukjaf9i0qh0n816n67ma85f6704 ကဏ္ဍ:မြန်မာနိုင်ငံဟိ မီးပြတိုက်တိ 14 5600 20410 2026-08-14T11:06:07Z YaThaWinTha 42 Created page with "[[ကဏ္ဍ:နိုင်ငံအလိုက် မီးပြတိုက်တိ]]" 20410 wikitext text/x-wiki [[ကဏ္ဍ:နိုင်ငံအလိုက် မီးပြတိုက်တိ]] ktenj1llg2u8hhpgi20z2322vzq1ljo 20447 20410 2026-08-14T11:44:57Z YaThaWinTha 42 20447 wikitext text/x-wiki [[ကဏ္ဍ:နိုင်ငံအလိုက် မီးပြတိုက်တိ]] [[ကဏ္ဍ:မီးပြတိုက်]] dj7efhf5j7iqoclq4lqzhqz5col5ktl ကဏ္ဍ:ရခိုင်ပြည် မီးပြတိုက်တိ 14 5601 20411 2026-08-14T11:06:53Z YaThaWinTha 42 Created page with "[[ကဏ္ဍ:မြန်မာနိုင်ငံဟိ မီးပြတိုက်တိ]] [[ကဏ္ဍ:ရခိုင် ပထဝီဝင်]]" 20411 wikitext text/x-wiki [[ကဏ္ဍ:မြန်မာနိုင်ငံဟိ မီးပြတိုက်တိ]] [[ကဏ္ဍ:ရခိုင် ပထဝီဝင်]] dvte5maomjvrqp4163u0cs0a5crsrio 20448 20411 2026-08-14T11:45:07Z YaThaWinTha 42 20448 wikitext text/x-wiki [[ကဏ္ဍ:မြန်မာနိုင်ငံဟိ မီးပြတိုက်တိ]] [[ကဏ္ဍ:ရခိုင် ပထဝီဝင်]] [[ကဏ္ဍ:မီးပြတိုက်]] hbr09oqo8n18313e88t9b3pey4nazga ကဏ္ဍ:သီရိလင်္ကာနိုင်ငံဟိ မီးပြတိုက်တိ 14 5602 20413 2026-08-14T11:09:01Z YaThaWinTha 42 Created page with "[[ကဏ္ဍ:နိုင်ငံအလိုက် မီးပြတိုက်တိ]]" 20413 wikitext text/x-wiki [[ကဏ္ဍ:နိုင်ငံအလိုက် မီးပြတိုက်တိ]] ktenj1llg2u8hhpgi20z2322vzq1ljo 20449 20413 2026-08-14T11:45:17Z YaThaWinTha 42 20449 wikitext text/x-wiki [[ကဏ္ဍ:နိုင်ငံအလိုက် မီးပြတိုက်တိ]] [[ကဏ္ဍ:မီးပြတိုက်]] dj7efhf5j7iqoclq4lqzhqz5col5ktl တမ်းပလိတ်:Gbmappingsmall 10 5603 20414 2026-08-14T11:10:18Z YaThaWinTha 42 Created page with "{{OS coord|{{{1}}}_region:GB_scale:25000|{{{1}}}}}<noinclude> {{documentation|Template:Gbmapping/doc}} <!-- Add cats and interwikis to the /doc subpage, not here! --> </noinclude>" 20414 wikitext text/x-wiki {{OS coord|{{{1}}}_region:GB_scale:25000|{{{1}}}}}<noinclude> {{documentation|Template:Gbmapping/doc}} <!-- Add cats and interwikis to the /doc subpage, not here! --> </noinclude> tguf7meq5j0d2lxv58keoxy8md213vu တမ်းပလိတ်:OS coord 10 5604 20415 2026-08-14T11:10:43Z YaThaWinTha 42 Created page with "<span style="white-space: nowrap" class="plainlinks nourlexpansion">[{{fullurl:toollabs:os/coor g/|pagename={{FULLPAGENAMEE}}&params={{urlencode:{{{1}}}}}}} {{{2|{{{1}}}}}}]</span><includeonly>{{#ifeq:{{NAMESPACE}}||[[Category:Articles with OS grid coordinates]]}}</includeonly><noinclude> {{documentation}}<!-- Add cats and interwikis to the /doc subpage, not here! --></noinclude>" 20415 wikitext text/x-wiki <span style="white-space: nowrap" class="plainlinks nourlexpansion">[{{fullurl:toollabs:os/coor g/|pagename={{FULLPAGENAMEE}}&params={{urlencode:{{{1}}}}}}} {{{2|{{{1}}}}}}]</span><includeonly>{{#ifeq:{{NAMESPACE}}||[[Category:Articles with OS grid coordinates]]}}</includeonly><noinclude> {{documentation}}<!-- Add cats and interwikis to the /doc subpage, not here! --></noinclude> iao2ox9l25g4hl4vyszjr2es89hbltl တမ်းပလိတ်:If both 10 5605 20416 2026-08-14T11:11:32Z YaThaWinTha 42 Created page with "{{#if:{{{1|}}}| {{#if:{{{2|}}}|{{{3|}}}|{{{4|}}}}} |{{{4|}}} }}<noinclude> {{Documentation}} <!-- PLEASE ADD CATEGORIES AND INTERWIKIS TO THE /doc SUBPAGE, THANKS --> </noinclude>" 20416 wikitext text/x-wiki {{#if:{{{1|}}}| {{#if:{{{2|}}}|{{{3|}}}|{{{4|}}}}} |{{{4|}}} }}<noinclude> {{Documentation}} <!-- PLEASE ADD CATEGORIES AND INTERWIKIS TO THE /doc SUBPAGE, THANKS --> </noinclude> hbc6e1wnw2ovbrid69tepnpuzr53veg တမ်းပလိတ်:Infobox lighthouse/NGA 10 5606 20417 2026-08-14T11:12:02Z YaThaWinTha 42 Created page with "{{#ifeq:{{#invoke:String|find|source={{{NGA}}}|target=11[0-6]%-%d+%.?%d*|plain=false}}|1 |{{Formatter link |url=https://wikidata-externalid-url.toolforge.org/?url=https%3A%2F%2Fmsi.nga.mil%2FqueryResults%3Fpublications%2Fngalol%2Flights-buoys%3Fvolume%3D%251%26featureNumber%3D%252%26includeRemovals%3Dfalse%26output%3Dhtml&exp=(%5Cd%7B3%7D)-(.*)&id=$1 |code={{#invoke:String|match|s={{{NGA}}}|pattern=11[0-6]%-%d+%.?%d*}} }}{{#invoke:String|sub|s={{{NGA}}}|i={{#expr:{..." 20417 wikitext text/x-wiki {{#ifeq:{{#invoke:String|find|source={{{NGA}}}|target=11[0-6]%-%d+%.?%d*|plain=false}}|1 |{{Formatter link |url=https://wikidata-externalid-url.toolforge.org/?url=https%3A%2F%2Fmsi.nga.mil%2FqueryResults%3Fpublications%2Fngalol%2Flights-buoys%3Fvolume%3D%251%26featureNumber%3D%252%26includeRemovals%3Dfalse%26output%3Dhtml&exp=(%5Cd%7B3%7D)-(.*)&id=$1 |code={{#invoke:String|match|s={{{NGA}}}|pattern=11[0-6]%-%d+%.?%d*}} }}{{#invoke:String|sub|s={{{NGA}}}|i={{#expr:{{#invoke:String|len|s={{#invoke:String|match|s={{{NGA}}}|pattern=11[0-6]%-%d+%.?%d*}}}}+1}}|ignore_errors=true}} |{{{NGA}}} }}<noinclude> {{doc}} </noinclude> onihz04o2wuuiks2j33pn93o4o807px တမ်းပလိတ်:Infobox mapframe 10 5607 20418 2026-08-14T11:12:31Z YaThaWinTha 42 Created page with "<includeonly>{{#invoke:Infobox mapframe|main}}</includeonly><noinclude>{{Infobox mapframe|id=Q100}} {{Documentation}} </noinclude>" 20418 wikitext text/x-wiki <includeonly>{{#invoke:Infobox mapframe|main}}</includeonly><noinclude>{{Infobox mapframe|id=Q100}} {{Documentation}} </noinclude> 5e7pgapfsz1cey22zg8cnor2j3d28yp တမ်းပလိတ်:Wikidata location 10 5608 20419 2026-08-14T11:13:12Z YaThaWinTha 42 Created page with "{{#if:{{{location|}}}|{{{location|}}}|{{#if:{{#invoke:WikidataIB|checkBlacklist|name=location|suppressfields={{{suppressfields|}}} }}|{{comma separated values | 1 = {{#if:{{#Property:P706}}|{{#ifexist:{{#invoke:Wikidata|getRawValue|P706|onlysourced=no|FETCH_WIKIDATA}}၊ {{#invoke:Wikidata|getRawValue|P131|onlysourced=no|FETCH_WIKIDATA}} | {{#invoke:Wikidata|getRawValue|P706|onlysourced=no|FETCH_WIKIDATA}}၊ {{#invoke:Wikidata|getRawValue|P131|onlysourced=no|FETCH_WIK..." 20419 wikitext text/x-wiki {{#if:{{{location|}}}|{{{location|}}}|{{#if:{{#invoke:WikidataIB|checkBlacklist|name=location|suppressfields={{{suppressfields|}}} }}|{{comma separated values | 1 = {{#if:{{#Property:P706}}|{{#ifexist:{{#invoke:Wikidata|getRawValue|P706|onlysourced=no|FETCH_WIKIDATA}}၊ {{#invoke:Wikidata|getRawValue|P131|onlysourced=no|FETCH_WIKIDATA}} | [[{{#invoke:Wikidata|getRawValue|P706|onlysourced=no|FETCH_WIKIDATA}}၊ {{#invoke:Wikidata|getRawValue|P131|onlysourced=no|FETCH_WIKIDATA}}]] | {{#invoke:WikidataIB|getValue|P706|name=location|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|noicon=yes|{{{terrainfeature|}}}}} }}{{#ifeq:{{{refs|yes}}}|yes|{{wikidata|references|normal+|{{{qid|}}}|P706}}}}}} | 2 = {{#invoke:WikidataIB|getValue|P276|name=location|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|noicon=yes|{{{location|}}}}}{{#ifeq:{{{refs|yes}}}|yes|{{wikidata|references|normal+|{{{qid|}}}|P276}}}} | 3 = {{#ifexist:{{#invoke:Wikidata|getRawValue|P706|onlysourced=no|FETCH_WIKIDATA}}၊ {{#invoke:Wikidata|getRawValue|P131|onlysourced=no|FETCH_WIKIDATA}}||{{#ifexist:{{#invoke:Wikidata|getRawValue|P131|onlysourced=no|FETCH_WIKIDATA}} | [[{{#invoke:Wikidata|getRawValue|P131|onlysourced=no|{{{area|FETCH_WIKIDATA}}}}}]] | {{#invoke:WikidataIB|getValue|P131|name=location|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|noicon=yes|{{{area|}}}}} }}{{#ifeq:{{{refs|yes}}}|yes|{{wikidata|references|normal+|{{{qid|}}}|P131}}}}}} | 4 = {{#ifeq:{{#Property:P17}}|United States of America|{{#if:{{#Property:P706}}{{#Property:P276}}{{#Property:P131}}|US|United States}}|{{#ifeq:{{#Property:P17}}|no value|{{#if:{{#Property:P30}}|{{#Property:P30|from={{{qid|}}}{{#ifeq:{{{refs|yes}}}|yes|{{wikidata|references|normal+|{{{qid|}}}|P30}} }} {{EditAtWikidata|pid=P17|qid={{{qid|}}} }} }} }}|{{#if:{{#Property:P17}}|{{#if:{{#invoke:WikidataIB|checkBlacklist|name=location|suppressfields={{{suppressfields|}}} }}|{{#Property:P17|from={{{qid|}}} }}{{#ifeq:{{{refs|yes}}}|yes|{{wikidata|references|normal+|{{{qid|}}}|P17}} }} {{EditAtWikidata|pid=P17|qid={{{qid|}}} }} }} }} }} }} }}}}|}}<noinclude> {{documentation}} </noinclude> ots8s3r3mul1pukw6ou5p66mwfoo1aj တမ်းပလိတ်:Comma separated values 10 5609 20420 2026-08-14T11:13:35Z YaThaWinTha 42 Created page with "{{<includeonly>safesubst:</includeonly>#invoke:Separated entries|comma}}<noinclude> {{documentation}} <!-- Categories go on the /doc subpage, and interwikis go on Wikidata. --> </noinclude>" 20420 wikitext text/x-wiki {{<includeonly>safesubst:</includeonly>#invoke:Separated entries|comma}}<noinclude> {{documentation}} <!-- Categories go on the /doc subpage, and interwikis go on Wikidata. --> </noinclude> t57s6wp0qm3dwvu86y28fxzb2w1xmci တမ်းပလိတ်:Infobox lighthouse 10 5610 20421 2026-08-14T11:14:01Z YaThaWinTha 42 Created page with "{{infobox | child = {{#ifeq:{{{embed}}}|yes|yes}} | bodyclass = vcard | titleclass = fn | {{#ifeq:{{{embed}}}|yes|subheader|title}} = {{{name|{{#if:{{#invoke:Wikidata|ViewSomething|labels|en|value|id={{{qid|{{{item|}}}}}}}}|{{#invoke:Wikidata|ViewSomething|labels|en|value|id={{{qid|{{{item|}}}}}}}}|{{PAGENAMEBASE}}}}}}}{{#ifeq:{{{embed}}}|yes|&#32;{{EditAtWikidata|qid={{{qid|{{{item|}}}}}}}}}} | subheaderstyle = background:#bfbfbf; font-weight:bold; | image = {{#invo..." 20421 wikitext text/x-wiki {{infobox | child = {{#ifeq:{{{embed}}}|yes|yes}} | bodyclass = vcard | titleclass = fn | {{#ifeq:{{{embed}}}|yes|subheader|title}} = {{{name|{{#if:{{#invoke:Wikidata|ViewSomething|labels|en|value|id={{{qid|{{{item|}}}}}}}}|{{#invoke:Wikidata|ViewSomething|labels|en|value|id={{{qid|{{{item|}}}}}}}}|{{PAGENAMEBASE}}}}}}}{{#ifeq:{{{embed}}}|yes|&#32;{{EditAtWikidata|qid={{{qid|{{{item|}}}}}}}}}} | subheaderstyle = background:#bfbfbf; font-weight:bold; | image = {{#invoke:InfoboxImage|InfoboxImage|image={{#invoke:WikidataIB |getValue|maxvals=1|P18|name=image_name|qid={{{qid|{{{item|}}}}}}|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced=no|noicon=yes|{{{image_name|}}}}}|size={{{image_width|{{{image size|{{{image_size|{{{imagesize|}}}}}}}}}}}}|sizedefault=frameless|upright={{{image_upright|1}}}|alt={{{alt|}}}|suppressplaceholder=yes}} | caption = {{#if:{{{image|}}}|{{{caption|}}}|{{{caption|{{#invoke:Wikidata|getImageLegend|id={{{qid|{{{item|}}}}}}|FETCH_WIKIDATA}}}}}}} | image3 = {{yesno|{{{mapframe|{{#ifeq:{{{embed}}}|yes|no|yes}}}}}|no=|yes={{Infobox mapframe |id={{{qid|{{{item|}}}}}} |zoom={{{mapframe-zoom|5}}} |frame-width={{{mapframe-width|}}} |frame-height={{{mapframe-height|}}} |marker={{{mapframe-marker|lighthouse}}} |marker-color={{{mapframe-marker-color|{{{mapframe-marker-colour|}}}}}} |coord={{{coordinates|}}} |frame-lat={{{mapframe-lat|{{{mapframe-latitude|}}}}}} |frame-long={{{mapframe-long|{{{mapframe-longitude|}}}}}} }} }} | caption3 = {{yesno|{{{mapframe|yes}}}|no=|yes={{{mapframe-caption|}}}}} | label1 = တည်နီရာ | class1 = label | data1 = {{#ifeq:{{{embed}}}|yes||{{Wikidata location|suppressfields={{{suppressfields|{{#ifeq:{{{embed}}}|yes|location}}}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|location={{{location|}}}|refs={{{refs|no}}}|qid={{{qid|{{{item|}}}}}}}}}} | label2 = [[:en:British national grid reference system|OS grid]] | data2 = {{gbmappingsmall|{{#invoke:WikidataIB|getValue|P613|qid={{{qid|{{{item|}}}}}}|noicon=true|name=os_grid_reference|fetchwikidata={{{fetchwikidata|{{#ifeq:{{{embed}}}|yes||ALL}}}}}|onlysourced={{{onlysourced|no}}}|{{{grid_ref_UK|}}}}}}} | label3 = ကိုဩဒိနိတ် | data3 = {{#invoke:WikidataIB|getCoords|qid={{{qid|{{{item|}}}}}}|name=coordinates|fetchwikidata={{{fetchwikidata|{{#ifeq:{{{embed}}}|yes||ALL}}}}}|format={{{coord_format|}}}|{{{coordinates|}}}}} | label5 = တည်ဆောက်ခဲ့ | data5 = {{#invoke:WikidataIB |getValue|rank=best|P571|name=constructed|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{qid|{{{item|}}}}}}|{{{yearbuilt|}}}}} | label6 = ဒီဇိုင်းဆွဲသူ | data6 = {{#invoke:WikidataIB|getValue|P287|name=designer|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{qid|{{{item|}}}}}}}} | label7 = တည်ဆောက်သူ | data7 = {{comma separated entries |2={{#invoke:WikidataIB |getValue|P193|name=builder|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{qid|{{{item|}}}}}}}} |3={{#invoke:WikidataIB |getValue|P631|name=builder|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{qid|{{{item|}}}}}}}} }} | label8 = ပထမဆုံးမီးထွန်း | class8 = note | data8 = {{#invoke:WikidataIB |getValue|rank=best|P729|name=first lit|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{qid|{{{item|}}}}}}|{{{yearlit|}}}}} | label9 = အလိုအလျောက် | class9 = note | data9 = {{#invoke:WikidataIB |getQualifierValue |P793 |pval=Q24410992 |qual=P585 |name=automated |suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{qid|{{{item|}}}}}}|{{{automated|}}} }} | label10 = ဖျက်သိမ်း | data10 = {{#invoke:WikidataIB |getValue|rank=best|P730|name=yeardeactivated|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{qid|{{{item|}}}}}}|{{{yeardeactivated|}}} }} | label11 = ဖောင်ဒေးရှင်း | data11 = {{{foundation|}}} | label12 = ဆောက်လုပ်ရီး | data12 = {{#invoke:WikidataIB |getValue|P186|qual=P518|linked=no|name=construction|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{qid|{{{item|}}}}}}|{{{construction|}}}}} | label13 = မီးပြတိုက်ပုံစံ | data13 = {{#invoke:WikidataIB |getValue|linked=no|P1419|qual=P518|name=shape|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{qid|{{{item|}}}}}}|{{{shape|}}}}} | label14 = အမှတ်အသား | class14 = note | data14 = {{#if:{{{marking|}}} |{{{marking|}}} |{{comma separated entries |1={{#invoke:WikidataIB|getValue|linked=no|P462|qual=P518|name=pattern|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{qid|{{{item|}}}}}}}} |2={{#invoke:WikidataIB|getValue|linked=no|P5422|qual=P1114, P462, P7469, P518|name=pattern|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{qid|{{{item|}}}}}}}} }} }} | label15 = မီးပြတိုက်အမြင့် | data15 = {{#invoke:WikidataIB |getValue|rank=best|P2048|name=height|convert=yes|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{qid|{{{item|}}}}}}|{{{height|}}}}} | label16 = ဆုံချက်အမြင့် | data16 = {{#invoke:WikidataIB |getValue|rank=best|P2923|qual=P462|name=focalheight|convert=yes|linked=no|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{qid|{{{item|}}}}}}|{{{focalheight|}}}}} | label17 = Lens | data17 = {{#invoke:WikidataIB |getValue|P9597|qual=DATES|linked=yes|name=lens|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{qid|{{{item|}}}}}}|{{{lens|}}}{{if both|{{{lens|}}}|{{{currentlens|}}}|&#32;(original),<br>}}{{{currentlens|}}}{{if both|{{{lens|}}}|{{{currentlens|}}}|&#32;(current)}}}}{{#if:{{{currentlens|}}}|[[Category:Lighthouses using current lens parameter]]}} | label18 = ပါဝါရင်းမြစ် | data18 = {{#invoke:WikidataIB|getValue|linked=no|P618|name=powersource|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{qid|{{{item|}}}}}}}} | label19 = အလင်းရင်းမြစ် | data19 = {{{lightsource|}}}{{#if:{{{lightsource|}}}|{{#ifeq:{{Str find|{{lc:{{{lightsource}}}}}|solar}}|-1||[[Category:Solar powered lighthouses using wrong field]]}}}} | label20 = သိပ်သည်းဆ | data20 = {{#invoke:WikidataIB |getValue|rank=best|P3041|qual=P462|name=intensity|linked=no|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{qid|{{{item|}}}}}}|{{{intensity|}}}}} | label21 = အကွာအဝီး | data21 = {{#invoke:WikidataIB |getValue|rank=best|P2929|qual=P462|name=range|convert=yes|linked=no|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{qid|{{{item|}}}}}}|{{{range|}}}}} | label22 = [[:en:Light characteristic|ဝိသေသလက္ခဏာ]] | class22 = note | data22 = {{#if:{{{characteristic|}}} |{{{characteristic}}} |{{#if:{{#invoke:wd|qualifier|{{{qid|{{{item|}}}}}}|P1030|P805}} |{{#if:{{#invoke:wd|property|raw|{{#invoke:wd|qualifier|{{{qid|{{{item|}}}}}}|raw|P1030|P805}}|P2910}} |[[File:{{#invoke:wd|property|raw|{{#invoke:wd|qualifier|{{{qid|{{{item|}}}}}}|raw|P1030|P805}}|P2910}}|20px]]&#32; }}{{Tooltip|{{#invoke:WikidataIB|getValue|rank=best|P1030|qual=DATES|name=characteristic|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{qid|{{{item|}}}}}}}}|{{#invoke:wd|qualifier|{{{qid|{{{item|}}}}}}|P1030|P805}}}} |{{#invoke:WikidataIB |getValue|rank=best|P1030|name=characteristic|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{qid|{{{item|}}}}}}}} }} }} | label23 = [[:en:Foghorn#Marine fog signals|Fog signal]] | data23 = {{{fogsignal|}}} | label24 = [[Racon]] | data24 = {{#invoke:WikidataIB |getValue|rank=best|P3994|name=racon|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{qid|{{{item|}}}}}}|{{{racon|}}}}} | label25 = [[:en:United Kingdom Hydrographic Office|Admiralty]] number | data25 = {{#invoke:WikidataIB|getValue|rank=best|P3562|name=admiralty|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{qid|{{{item|}}}}}}|{{{admiralty|}}}}} | label26 = [[:en:Canadian Coast Guard|CCG]] number | data26 = {{#invoke:WikidataIB |getValue|rank=best|P3920|name=CCG|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{qid|{{{item|}}}}}}|{{{canada|}}}}}{{#if:{{{canada|}}}|{{#ifeq:{{Str find|{{uc:{{{canada}}}}}|CCG}}|-1||[[Category:Lighthouses with CCG prefix]]}}}} | label27 = [[:en:National Geospatial-Intelligence Agency|NGA]] number | data27 = {{Infobox lighthouse/NGA|NGA={{#invoke:WikidataIB|getValue|rank=best|P3563|name=NGA|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{qid|{{{item|}}}}}}|noicon=true|{{{NGA|}}}}}}} | label28 = [[:en:Amateur Radio Lighthouse Society|ARLHS]] number | data28 = {{#invoke:WikidataIB |getValue|rank=best|P2980|name=ARLHS|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{qid|{{{item|}}}}}}|{{{ARLHS|}}}}} | label29 = [[:en:United States Coast Guard|USCG]] number | data29 = {{#invoke:WikidataIB |getValue|rank=best|P3723|name=USCG|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{qid|{{{item|}}}}}}|{{{USCG|}}}}} | label30 = {{#if:{{{countrylink|}}}|[{{{countrylink}}} {{{country}}}]|{{{country}}}}} number | data30 = {{{countrynumber|}}} | label31 = အော်ပရေတာ | data31 = {{#invoke:WikidataIB |getValue|rank=best|P137|qual=DATES|name=managingagent|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{qid|{{{item|}}}}}}|{{{managingagent|}}}}} | label32 = အမွီအနှစ် | data32 = {{#invoke:WikidataIB |getValue|rank=best|P1435|name=heritage|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|qid={{{qid|{{{item|}}}}}}|linked=no|{{{heritage|}}}}} | data33 = {{{module|}}} | data100 = {{#if:{{{fetchwikidata|ALL}}} |{{#ifeq:{{{embed}}}|yes |<!--Null--> |{{#ifexpr:{{#ifeq:{{#invoke:wd|property|raw|P31}}|Q39715 |1<!--Instance of lighthouse--> |{{#ifeq:{{#invoke:wd|property|raw|{{#invoke:wd|property|raw|P31}}|P279}}|Q39715 |1<!--Subclass of lighthouse--> |0<!--Not a lighthouse--> }} }} |{{EditOnWikidata|qid={{{qid|{{{item|}}}}}}}} |{{#if:{{{qid|{{{item|}}}}}} |{{EditOnWikidata|qid={{{qid|{{{item|}}}}}}}} |<includeonly>[[Category:Pages using infobox Lighthouse needing Wikidata item]]</includeonly> }} }} }} }} }}{{#invoke:Check for unknown parameters|check|unknown={{main other|}}|preview=Page using [[Template:Infobox lighthouse]] with unknown parameter "_VALUE_"|ignoreblank=y| admiralty | alt | ARLHS | automated | canada | caption | characteristic | construction | coordinates | coordinates_footnotes | country | countrylink | countrynumber | currentlens | designation | embed | fetchwikidata | focalheight | fogsignal | foundation | grid_ref_UK | height | heritage | image | image size | image_name | image_size | image_upright | image_width | imagesize | intensity | item | lens | lightsource | location | managingagent | map_caption | mapframe | mapframe-caption | mapframe-height | mapframe-lat | mapframe-latitude | mapframe-long | mapframe-longitude | mapframe-marker | mapframe-marker-color | mapframe-marker-colour | mapframe-width | mapframe-zoom | marking | module | name | NGA | onlysourced | qid | racon | range | refs | relief | shape | suppressfields | USCG | yearbuilt | yeardeactivated | yearlit }}{{#if:{{{item|}}}|}}{{#if:{{{pushpin|}}}{{{pushpin_label_position|}}}{{{pushpin_map|}}}{{{pushpin_map_alt|}}}{{{pushpin_map_caption|}}}{{{pushpin_mapsize|}}}{{{pushpin_outside|}}}{{{pushpin_relief|}}}|}}<noinclude> {{documentation}}<!-- place category on the /doc sub-page, not here --> </noinclude> pf7zz5ckorcgkua7k6p1t7xxfdopked တမ်းပလိတ်:Lang-si 10 5611 20422 2026-08-14T11:15:17Z YaThaWinTha 42 Created page with "<includeonly>{{#invoke:lang|lang_xx_inherit |code=si }}</includeonly><noinclude> {{Documentation|Template:Lang-x/doc}} [[Category:Indo-Iranian multilingual support templates|{{PAGENAME}}]] </noinclude>" 20422 wikitext text/x-wiki <includeonly>{{#invoke:lang|lang_xx_inherit |code=si }}</includeonly><noinclude> {{Documentation|Template:Lang-x/doc}} [[Category:Indo-Iranian multilingual support templates|{{PAGENAME}}]] </noinclude> ofqk7uthw4lbb1ammqbs343vc9pigwb တမ်းပလိတ်:Cite rowlett 10 5612 20423 2026-08-14T11:17:48Z YaThaWinTha 42 Created page with "{{cite web | url = {{#switch:{{#invoke:WikidataIB |getValue|rank=best|P11627|fetchwikidata=ALL|onlysourced=no|noicon=true|qid={{{qid|}}}|{{{1|}}}}} |pr|jam|ven|doomsday|watch=https://www.ibiblio.org/lighthouse/{{trim|{{#invoke:WikidataIB |getValue|rank=best|P11627|fetchwikidata=ALL|onlysourced=no|noicon=true|qid={{{qid|}}}|{{{1|}}}}}}}.html |sparkplugs|earlyiron|oldstylebrick|octagonals|oldest=https://www.ibiblio.org/lighthouse/types/{{trim|{{#invoke:WikidataIB |getV..." 20423 wikitext text/x-wiki {{cite web | url = {{#switch:{{#invoke:WikidataIB |getValue|rank=best|P11627|fetchwikidata=ALL|onlysourced=no|noicon=true|qid={{{qid|}}}|{{{1|}}}}} |pr|jam|ven|doomsday|watch=https://www.ibiblio.org/lighthouse/{{trim|{{#invoke:WikidataIB |getValue|rank=best|P11627|fetchwikidata=ALL|onlysourced=no|noicon=true|qid={{{qid|}}}|{{{1|}}}}}}}.html |sparkplugs|earlyiron|oldstylebrick|octagonals|oldest=https://www.ibiblio.org/lighthouse/types/{{trim|{{#invoke:WikidataIB |getValue|rank=best|P11627|fetchwikidata=ALL|onlysourced=no|noicon=true|qid={{{qid|}}}|{{{1|}}}}}}}.html |earlyintegral=https://www.ibiblio.org/lighthouse/types/earlyintegral.htm |buttressed=https://www.ibiblio.org/lighthouse/types/Canada/buttressed.htm |#default=https://www.ibiblio.org/lighthouse/{{trim|{{#invoke:WikidataIB |getValue|rank=best|P11627|fetchwikidata=ALL|onlysourced=no|noicon=true|qid={{{qid|}}}|{{{1|}}}}}}}.htm }} | work = {{#ifeq:{{#invoke:WikidataIB |getValue|rank=best|P11627|fetchwikidata=ALL|onlysourced=no|noicon=true|qid={{{qid|}}}|{{{1|}}}}}|index||The Lighthouse Directory}} | last = Rowlett | first = Russ | publisher = {{#ifeq:{{{link|}}} | no |University of North Carolina at Chapel Hill | [[University of North Carolina at Chapel Hill]]}} | access-date = {{{access-date|{{{accessdate|}}}}}} | date = {{{date|}}} | ref = {{{ref|}}} | archive-url = {{{archive-url|}}} | archive-date = {{{archive-date|}}} | url-status = {{{url-status|}}} | no-tracking = {{{no-tracking|{{{template doc demo|}}}}}} | title = {{#switch:{{#invoke:WikidataIB |getValue|rank=best|P11627|fetchwikidata=ALL|onlysourced=no|noicon=true|qid={{{qid|}}}|{{{1|}}}}} <!-- Starting with general pages --> | tallest = The Tallest Lighthouses | nvi = Navassa Island Lighthouse | phl-esp = Spanish Lighthouses of the Philippines | storm_warning_towers = Coastal Warning Display Towers | doomsday = The Doomsday List | watch = The Watch List of Threatened Lighthouses | can_watch = The Canadian Watch List of Threatened Lighthouses | index = The Lighthouse Directory | windward = Windward Point Light (Faro Punta Barloventa), Guantánamo | n = Navassa Island Lighthouse | sparkplugs = Sparkplug Lighthouses, 1871–1926 | earlyintegral = The Oldest Integral Lighthouses | earlyiron = Tall Towers of Iron, 1844–1881 | oldstylebrick = Old Style Brick Lighthouses, 1820–1849 | octagonals = Early Federal Octagonals, 1792–1817 | oldest = The Oldest U.S. Towers, 1764–1791 | buttressed = Canadian Flying Buttress Lighthouses | Lighthouses of {{#switch:{{#invoke:WikidataIB |getValue|rank=best|P11627|fetchwikidata=ALL|onlysourced=no|noicon=true|qid={{{qid|}}}|{{{1|}}}}} <!-- General form --> | ct = the United States: Connecticut | de = the United States: Delaware | me = the United States: Eastern Maine | me2 = the United States: Southern Maine | md = the United States: Maryland | ma = the United States: Northern Massachusetts | ma2 = the United States: Southeast Massachusetts | nh = the United States: New Hampshire | nj = the United States: New Jersey | nydn = the United States: Downstate New York | nyli = the United States: Long Island, New York | nyup = the United States: Upstate New York | pa = the United States: Northwestern Pennsylvania | pase = the United States: Southeastern Pennsylvania | ri = Rhode Island | vt = the United States: Vermont | al = the United States: Alabama | fl = the United States: Eastern Florida and the Keys | flw = the United States: Western Florida | ga = the United States: Georgia | la = Louisiana | ms = the United States: Mississippi | nc = the United States: North Carolina | sc = the United States: South Carolina | tx = Texas | va = the United States: Virginia | il = the United States: Illinois | in = the United States: Indiana | mo = Missouri and Iowa | ky = Kentucky and Tennessee | miel = the United States: Michigan's Eastern Lower Peninsula | miwl = the United States: Michigan's Western Lower Peninsula | miup = the United States: Michigan's Eastern Upper Peninsula | miwu = the United States: Michigan's Western Lower Peninsula | mn = the United States: Minnesota | oh = the United States: Ohio | ok = Oklahoma | wi = the United States: Eastern Wisconsin | wi2 = the United States: Northern Wisconsin | ak = Alaska | az = the United States: Arizona | ca = the United States: Northern California | ca2 = the United States: Central and Southern California | gu = Guam | hi = the United States: Hawaii | umi = U.S. Pacific Remote Islands | mnp = the Northern Mariana Islands | or = the United States: Oregon | wa = the United States: Washington | pr = Puerto Rico | vi = the U.S. Virgin Islands | grl = Greenland | nb1 = Canada: Northern New Brunswick | nb = Canada: Southern New Brunswick | lab = Canada: Labrador and Belle Isle | nfln = Canada: Northern Newfoundland | nfle = Canada: Southeastern Newfoundland | nflw = Canada: Southwestern Newfoundland | ns2 = Canada: Cape Breton Island, Nova Scotia | ns3 = Canada: Eastern Nova Scotia | ns1 = Canada: Northwestern Nova Scotia | ns4 = Canada: Southern Nova Scotia | ns5 = Canada: Western Nova Scotia | pei = Canada: Eastern Prince Edward Island | peiw = Canada: Western Prince Edward Island | spm = Saint Pierre and Miquelon | ab = Canada: Alberta | bcn = Canada: Northern British Columbia | bc = Canada: Southern British Columbia | mb = Canada: Manitoba | nwt = Canada: Northwest Territories | nvt = Canada: Nunavut and Northern Québec | ongb = Central Ontario (Georgian Bay Area) | onse1 = Southern Ontario (Lake Ontario) | onse = Southeastern Ontario | onso = Canada: Southwestern Ontario | onnw = Canada: Western Ontario | onlh = Canada: West Central Ontario (Lake Huron Area) | qcc = Canada: Central Québec | qce = Canada: Eastern Québec | qcn = Canada: Northeastern Québec (Côte-Nord) | qcs = Canada: Southern Québec | qcsw = Canada: Southwestern Québec (Montérégie) | qcw = Canada: Western Québec | sk = Canada: Saskatchewan | aia = Anguilla | atg = Antigua and Barbuda | aru = Aruba | ave = Aves Island | bhs = the Bahamas | brb = Barbados | bmu = Bermuda | bon = Bonaire | cay = the Cayman Islands | cub = Cuba | cur = Curaçao | dom = the Dominican Republic | grd = Grenada | glp = Guadeloupe | hti = Haiti | jam = Jamaica | mtq = Martinique | sab = Saba and Sint Eustatius | cosap = San Andrés and Providencia | blm = Saint-Barthélemy | kna = St. Kitts and Nevis | lca = Saint Lucia | maf = Saint Martin | vct = St. Vincent and the Grenadines | tto = Trinidad and Tobago | tca = the Turks and Caicos Islands | veni = Venezuela: Caribbean Islands | blz = Belize | cri = Costa Rica | cric = Costa Rica: Caribbean Coast | slv = El Salvador | gtm = Guatemala: Caribbean Coast | gtmp = Guatemala: Pacific Coast | hnd = Honduras | baje = Mexico: Eastern Baja California | baj = Mexico: Northwestern Baja California | bajs = Mexico: Southwestern Baja California | mxqr = Mexico: Caribbean Coast (Quintana Roo) | mxg = Mexico: Central Gulf Coast | mxtm = Mexico: Northern Gulf Coast | mxy = Mexico: Southern Gulf Coast | mxnw = Mexico: Northwest Coast | mxs = Mexico: South Coast | mxw = Mexico: West Coast | wmx = Mexico: Northwest Coast | nic = Nicaragua | nicc = Nicaragua Caribbean Coast | pan = Northern Panamá | pans = Southern Panamá | ata = Antarctica | arg = Northern Argentina | arg2 = Southern Argentina | argtf = Argentina: Tierra del Fuego | shn = Saint Helena, Ascension and Tristan da Cunha | bol = Bolivia | brno = Northern Brazil | brne = Northeastern Brazil | brba = Brazil: Bahia | brse = Southeastern Brazil | bra = Southern Brazil | bris = Brazil: Atlantic Islands | chln = Central and Northern Chile | chls = Southern Chile | chlp = Chile: Pacific Islands | col = Northern Colombia | colw = Western Colombia | ecu = Ecuador | ecug = Ecuador: Galápagos | flk = Falkland Islands | guf = French Guiana | guy = Guyana | pru = Southern Perú | prun = Northern Perú | prut = Perú: Lake Titicaca | sur = Suriname | uru = Uruguay | vene = Eastern Venezuela | venw = Western Venezuela | asm = American Samoa | clp = Clipperton Island | cok = the Cook Islands | fji = Fiji | pyf = French Polynesia | kir = Kiribati | fsm = Micronesia | ncl = New Caledonia | nz = New Zealand: North Island | nzs = New Zealand: South Island | niu = Niue | plw = Palau | png = Papua New Guinea | phlbh = the Philippines: Bohol and Siquijor | phlce = the Philippines: Cebu | phllt = the Philippines: Leyte and Biliran | phln = the Philippines: Northeast Luzon and Batanes | phlnw = the Philippines: Northwest Luzon | phlb = the Philippines: Southeast Luzon and Catanduanes | phl = the Philippines: Southwest Luzon | phlrm = the Philippines: Romblon and Marinduque | phlmb = the Philippines: Masbate | phlm = the Philippines: Northern Mindanao | phlms = the Philippines: Southern Mindanao | phlmr = the Philippines: Mindoro | phlng = the Philippines: Negros | phlsw = the Philippines: Palawan | phlwv = the Philippines: Panay and Guimaras | phle = the Philippines: Samar | phlz = the Philippines: Zamboanga and Sulu | wsm = Samoa | slb = the Solomon Islands | ton = Tonga | vut = Vanuatu | wlf = Wallis and Futuna | csi = Australia: Coral Sea Islands Territory | nsw = Australia: Northern New South Wales | nsws = Australia: Southern New South Wales | nfk = Australia: Norfolk Island | nt = Australia: Northern Territory | qld = Australia: Southern Queensland | qldn = Australia: Far North Queensland | qldc = Australia: Northern and Central Queensland | sa = Australia: South Australia | tas = Australia: Tasmania | vic = Australia: Victoria | wau = Australia: Western Australia | iot = the British Indian Ocean Territory | vgb = British Virgin Islands | dma = Dominica | com = the Union of the Comoros | atf = the French Southern and Antarctic Lands | mdg = Madagascar | reu = Réunion | mus = Mauritius | myt = Mayotte | syc = Seychelles | dzae = Eastern Algeria | dza = Western Algeria | ago = Angola | ben = Benin | cmr = Cameroon | cpv = Cape Verde | cod = the Democratic Republic of the Congo | cog = the Republic of the Congo | civ = Côte d'Ivoire (Ivory Coast) | dji = Djibouti | eri = Eritrea | egy = Egypt | egys = Egypt: Red Sea | gnq = Equatorial Guinea | gab = Gabon | gmb = The Gambia | gha = Ghana | gin = Guinea | gnb = Guinea-Bissau | ken = Kenya | lby = Libya | lbr = Liberia | mrt = Mauritania | mar = Morocco: Atlantic Coast | marn = Morocco: Mediterranean Coast | esh = Morocco: Western Sahara | moz = Mozambique | nam = Namibia | ngr = Nigeria | stp = São Tomé and Príncipe | sen = Senegal | sle = Sierra Leone | som = Somalia | sml = Somaliland | zaf2 = Eastern South Africa | zaf = Western South Africa | sdn = Sudan | tza = Tanzania | tgo = Togo | tun = Tunisia | enge = Eastern England | engne = Northeastern England | engnw = Northwest England | engs = Southern England | engse = Southeastern England | engsw = Southwest England (Devon and Cornwall) | engw = Western England | ggy = Guernsey | irle = Eastern Ireland (Leinster) | irlsw = Southwestern Ireland (Munster) | irlw = Western Ireland (Ulster and Connacht) | man = the Isle of Man | jey = Jersey | nirl = Northern Ireland | scte = Eastern Scotland | sctw = Scotland: Argyll and Bute | sctnw = Scotland: Highlands | ork = Scotland: Orkney | sht = Scotland: Shetland | sctse = Southeastern Scotland | sctsw = Southwestern Scotland | heb = Scotland: Western Isles | cym = Wales | gir = France: Aquitaine | fns = France: Northern Finistère | fns2 = Brittany: Southern Finistère | brt = France: Brittany's North Coast | mbh = France: Morbihan | bsc2 = France: Charente-Maritime | cor = Corsica | riv = France: Côte d'Azur (French Riviera) | bsc = France: Loire-Atlantique | fras = France: Languedoc-Roussillon | frbr = France: Bouches-du-Rhône (Marseille Area) | mco = Monaco | fran2 = France: Haute-Normandie (Eastern Normandy) | fran3 = France: Basse-Normandie (Western Normandy) | fran = France: North Coast | che = Switzerland | bsc1 = France: La Vendée | nd = New Caledonia | gib = Gibraltar | azo = Portugal: Azores | mdr = Portugal: Madeira | prtn = Northern Portugal | prt = Southern Portugal | adl = Spain: Eastern Andalusia | adlw = Spain: Western Andalusia | esn = Spain: Asturias and Cantabria | blc = Spain: Balearic Islands | esek = Spain: Basque Country (Euskadi) | cnr = Spain: Canary Islands | cat = Catalonia | ceu = Spain: Ceuta | esg = Spain: Northern Galicia | esg2 = Spain: Western Galicia | mla = Spain: Melilla | espe = Spain: Valencia and Murcia | itasw2 = Calabria and Basilicata | itasw = Italy: Campania and Lazio | itae = Italy: Eastern | itane = Italy: Venice and Trieste | italg = Italy: Lago di Garda | itanw = Italy: Liguria | mlt = Malta | itase = Italy: Puglia | itase2 = Italy: Southern Puglia | sarn = Italy: Northern Sardinia (Sardegna) | sar = Italy: Southern Sardinia (Sardegna) | sic = Italy: Eastern Sicily | sic2 = Italy: Western Sicily | itanw2 = Italy: Tuscany | alb = Albania | bih = Bosnia and Herzegovina | bgr = Bulgaria | hrv1 = Northern Croatia | hrv2 = Central Croatia | hrv3 = Southern Croatia | cypn = Northern Cyprus | cyp = the Republic of Cyprus | grce = Greece: Aegean Islands | grck = Greece: Crete | grci = Greece: Ionian Islands | grcw = Northern Greece | grca = Southern Greece | mne = Montenegro | rou = Romania | rusk = Russia: Caspian Sea | russ = Russia: Eastern Black Sea | rusvd = Russia: Volga and Don | srb = Serbia | svn = Slovenia | crm = Russia: Crimea (Krym) <!-- This is what the source website writes. --> | tur4 = European Turkey | ukr1 = Ukraine: Mykolaiv Area | ukr2 = Russia: Crimea (Krym) | ukr = Ukraine: Odessa Area | ukr3 = Ukraine: Sea of Azov | aut = Austria | bel = Belgium | est3 = Eastern Estonia | est2 = Northern Estonia | est1 = Northwestern Estonia | est = Southwestern Estonia | fin1 = Southern Finland: Hamina to Porvoo | fin1a = Southern Finland: Uusimaa (Helsinki Region) | fin1b = Southwest Finland | ala = the Åland Islands | fin2 = Western Finland | fin3 = Northern Finland | fin4 = Finland: Lakes | deu1a = Germany: Borkum to Wilhelmshaven | deu1b = Germany: Bremerhaven | deu1c = Germany: Bremen | deu1d = Germany: Cuxhaven and Stade | deu2a = Germany: Hamburg Area | deu2b = Germany: North Frisia | deu3 = Germany: Flensburg to Lübeck | deu4 = Germany: Northeast Coast (Mecklenburg-Vorpommern) | deu5 = Germany: the Bodensee | lva = Latvia | ltu = Lithuania | nln = Northern Netherlands | nls = Southern Netherlands | pol2 = Poland: Baltic Coast | pol1 = Poland: Świnoujście and the Odra | kgd = Russia: Kaliningrad | ruswi = Russia: Ingria | rusw = Russia: St. Petersburg Area | rusv = Russia: Vyborg Area | rusl = Russia: Lake Ladoga | ruso = Russia: Lake Onega | rusm = Russia: Murmansk Area | rusn = Russia: Southern White Sea | ruspch = Russia: Pechenga Area | rusn1 = Russia: Arkhangel'sk | rusn2 = Russia: Eastern White Sea | rusnn = Russia: Nenetsia | ruskp = Russia: Kola Peninsula | rusz = Russia: Novaya Zemlya | dnkb = Denmark: Bornholm | dnkh = Denmark: Copenhagen | dnk1a = Denmark: Northeast Jylland | dnk3 = Denmark: Fyn and Langeland | dnk2 = Denmark: Southeast Jylland | dnke = Denmark: Sjælland Region | dnk1 = Denmark: West Coast | fro = the Faroes | islse = East and South Iceland | isln = Northern Iceland | islw = Western Iceland | norse = Norway: Østfold (Fredrikstad Area) | noros = Norway: Oslo Area (Akershus and Oslo) | norlm = Norway: Lake Mjøsa | norso = Norway: West Oslofjord | nortl = Norway: Telemark (Skien Area) | nors1 = Norway: Aust-Agder (Arendal Area) | nors2 = Norway: Vest-Agder (Kristiansand Area) | norsw2 = Norway: Southern Rogaland (Eigersund Area) | norsw1 = Norway: Central Rogaland (Stavanger Area) | norsw = Norway: Haugesund Area (Northern Rogaland) | norw = Norway: Leirvik Area (Southern Hordaland) | norw1 = Norway: Bergen Area (Northern Hordaland) | norw1a = Norway: Sognefjord Area | norw1b = Norway: Sunnfjord (Florø Area) | norw1c = Norway: Nordfjord | norw2 = Norway: Sunnmøre (Ålesund Area) | norw2a = Norway: Romsdal (Molde Area) | norw3 = Norway: Nordmøre (Kristiansund Area) | nornw = Norway: Hitra and Frøya | nornw1 = Norway: Trondheim Area | nornw1a = Norway: Central Trøndelag | nornw2 = Norway: Northern Trøndelag | nornw3 = Norway: Southern Helgeland | nornw4 = Norway: Central Helgeland | nornw5 = Norway: Northern Helgeland | norno = Norway: Bodø Area | nornvk = Norway: Narvik Area | norno1 = Norway: Inner Lofoten | norno1a = Norway: Outer Lofoten | norno2 = Norway: Vesterålen | norno3 = Norway: Southern Troms | norno3t = Norway: Tromsø Area | norno3n = Norway: Northern Troms | norno4 = Norway: Hammerfest Area | norno5 = Norway: Vadsø Area | svb = Norway: Svalbard | swe1 = Sweden: Tanum Area (Northern Bohuslän) | swe1a = Sweden: Uddevalla Area (Central Bohuslän) | swe2 = Sweden: Göteborg Area | swev = Sweden: Lake Vänern | swevt = Sweden: Lake Vättern and the Göta Canal | swe3 = Sweden: Halland | swe3a = Sweden: Scania (Helsingborg-Malmö Area) | swe3b = Sweden: Blekinge (Karlskrona Area) | swe4 = Sweden: Kalmar | sweo = Sweden: Öland | sweg = Sweden: Gotland | swe4a = Sweden: Nyköping Area | swe5 = Sweden: Nynäshamn Area | swe5a = Sweden: Stockholm Area | swem = Sweden: Lake Mälaren | swe6 = Sweden: Southern Bothnia | swe6a = Sweden: Västernorrland | swe7 = Sweden: Northern Bothnia | swe8 = Sweden: Northern Bothnia | abk = Abkhazia | aze = Azerbaijan | geo = Georgia (Sakartvelo) | isr = Israel | kaz = Kazakhstan | lbn = Lebanon | syr = Syria | tur1 = Northern Turkey | tur2 = Northwestern Turkey | tur2a = Southwestern Turkey – Kısılada (Kısıl Adalar) | tur3 = Southern Turkey | tkm = Turkmenistan | bgd = Bangladesh | are = the Gulf States and Iran | irn = Iran | qat = Qatar | jor = Jordan | kwt = Kuwait | bhr = Bahrain | omn = Oman | pak = Pakistan | pse = Palestine: Gaza | sau = Saudi Arabia | lka = Sri Lanka | yem = Yemen | amn = India: Andaman and Nicobar Islands | inde = India: West Bengal, Orissa, and Andhra Pradesh | indk = India: Western Gujarat | indkg = India: Karnataka and Goa | indnw = India: Southern Gujarat, Daman and Diu | indsw = India: Kerala and Karnataka | indse = India: Tamil Nadu and Puducherry | indw = India: Goa and Maharashtra | lak = Lakshadweep (Laccadive, Amindivi, and Minicoy Islands) | brn = Brunei | kmh = Cambodia | mdv = Maldives | mhl = Marshall Islands | mye = Malaysia: Sarawak | mysb = Malaysia: Labuan and Sabah | myw = West Malayasia East Coast | myw1 = West Malaysia South Coast | myw2 = West Malaysia West Coast | mmr = Myanmar (Burma) | sgp = Singapore | spr = the Spratly Islands | tha = Thailand | tls = Timor Leste (East Timor) | vnm = Northern Vietnam | vnms = Southern Vietnam | idba = Indonesia: Bali | idbb = Indonesia: Bangka-Belitung Islands | idsus = Indonesia: Southern Sumatra | idne = Indonesia: Eastern Sundas | idja = Indonesia: Java | idjae = Indonesia: Eastern Java | idka = Indonesia: Kalimantan (Borneo) | idml = Indonesia: Maluku | idn = Indonesia: Nusa Tenggara (Lesser Sunda Islands) | idpa = Indonesia: Papua | idri = Indonesia: Riau Islands | idsl = Indonesia: Sulawesi (Celebes) | idsu = Indonesia: Sumatra | mat = Matsu and Kinmen | twn1 = Taiwan: Northern | twn1e = Taiwan: Eastern | twn2 = Taiwan: Southeastern | twnp = Taiwan: Penghu Islands | chnp = China: Xisha (Paracel Islands) | hkg = China: Hong Kong | mac = China: Macau | chn1 = China: Liaoning | chn1a = China: Southwestern Liáoníng | chn1s = China: Southeastern Liáoníng | chn2 = China: Hebei and Tianjin | chn2y = China: Yāntái Area (Northern Shāndōng) | chn3 = China: Northern Shandong | chn3a = China: Southern Shandong | chn3r = China: Rìzhào, Shāndōng | chn4 = China: Jiangsu and Shanghai | chn4sh = China: Shanghai | chn5a = China: Shengsi and Qiqu Islands, Zhejiang | chn5b = China: Daishan Islands, Zhejiang | chn5c = China: Zhoushan Island Area, Zhejiang | chn5d = China: Southeastern Zhoushan Islands, Zhejiang | chn5 = China: Hangzhou Bay and Zhenhai Area, Zhejiang | chn5e = China: Xiangshan Area, Zhejiang | chn6 = China: Central Zhejiang (Taizhou) | chn6a = China: Southern Zhejiang (Wenzhou) | chn7 = China: Northern Fujian | chn7a = China: Fúzhōu, Fújiàn | chn7p = China: Píngtán Area, Fújiàn | chn8 = China: Southern Fujian | chn8a = China: Xiàmén, Fújiàn | chn8b = China: Southern Fújiàn | chn8q = China: Quánzhōu, Fújiàn | chn9 = China: Eastern Guangdong | chn9a = China: Shànwěi Area, Guǎngdōng | chn10 = China: Western Guangdong | chn10a = China: Zhànjiāng, Guǎngdōng | chn11 = China: Guǎngxī | chn12 = China: Northeastern Hǎinán | chn13 = China: Southwestern Hǎinán | ruskk = Russia: Khabarovsk Region | kur = Russia: Kuril Islands | rusb = Russia: Lake Baikal | rusp = Russia: Vladivostok Area | rusne = Russia: Northern Pacific Coast | sak = Sakhalin | rusa = Russia: Siberian Arctic | prk = North Korea | prkw = North Korea: Western | kor1 = South Korea: Sokcho Area (Northern Gangwon) | kor1a = South Korea: Gangneung Area (Southern Gangwon) | korud = South Korea: Ulleungdo and Dokdo | kor1b = South Korea: Uljin Area (North Gyeongsang) | kor1b2 = South Korea: Homigot | kor1c = South Korea: Ulsan | kor1d = South Korea: Northern Busan | kor2 = South Korea: Southern Busan | kor2a = South Korea: Masan and Geoje Area | kor2b = South Korea: Tongyeong and Namhae Area | kor2c = South Korea: Sacheon and Namhae | kor2ge = South Korea: Geoje | kor2go = South Korea: Goseeong Bay | kor3 = South Korea: Yeosu | kor3a = South Korea: Goheung Area | kor3s = South Korea: Samsan Island | kor4 = Korea: Jeju (Cheju) | kor4b = Korea: Seogwipo City (Southern Jeju) | kor4c = Korea: Chuja Islands | kor4j = South Korea: Jindo | kor5 = South Korea: Mokpo Area | kor5b = South Korea: Boryeong (Daecheon) Area | kor5g = South Korea: Gunsan | kor5h = South Korea: Heuksan Islands | kor5m = South Korea: Mokpo Area | kor6 = South Korea: Incheon Area | kor7 = South Korea: Danjin and Pyeongtaek | kor8 = South Korea: South Onjin Islands | kor9 = South Korea: Incheaon | jphk1 = Japan: Northern Hokkaidō | jphk1a = Japan: Northern Hokkaidō | jphk2 = Japan: Southern Hokkaidō | jphk3 = Japan: Western Hokkaidō | jprr = Japan: Rishiri and Rebun, Hokkaido | jphn1 = Japan: Northeastern Honshū | jphn1a = Japan: Miyagi | jphn2 = Japan: Eastern Honshū (Ibaraki and Chiba) | jphn2a = Japan: Tōkyō Area | jphn2b = Japan: Eastern Shizuoka | jphn3 = Japan: Nagoya (Aichi Prefecture) | jphn3a = Japan: Mie and Wakayama | jphn3b = Japan: Southern Wakayama Prefecture | jphn3ab = Japan: Southern Mie Prefecture | jphn3c = Japan: Northern Wakayama Prefecture | jphn4 = Japan: Ōsaka Area | jphn4b = Japan: Awaji Shima | jphn5 = Japan: Okayama and Hiroshima | jphn5a = Japan: Yamaguchi | jphn5b = Japan: Western Yamaguchi | jphn6 = Japan: Shimane | jphn6a = Japan: Southwestern Honshū | jphn7 = Japan: Western Honshū | jphn8 = Japan: Northern Honshū | jphn8a = Japan: Akita | jphn9 = Japan: Aomori | izu = Japan: Izu and Ogasawara Islands | jpky3 = Japan: Nagasaki Area | jpky1 = Japan: Northeastern Kyūshū | jpky4 = Japan: Northwestern Kyūshū | jpky4a = Japan: Fukuoka Area | jpky2 = Japan: Southern Kyūshū | jpky2b = Japan: Nagasaki Area | jpns = Japan: Okinawa | jpst = Japan: Ōsumi and Amami Islands | jpsh2 = Japan: Northwestern Shikoku | jpsh2a = Japan: Matsuyama Area (Central Ehime) | jpsh1 = Japan: Southeastern Shikoku | jpts = Japan: Tsushima | jpky1b = Japan: Kagoshima Area | #default = {{main other|{{error-small|1=invalid page designation; see documentation for Template:Cite Rowlett}}[[Category:Articles using Cite rowlett template with invalid page designation]]}} }} }} }}<noinclude> {{documentation}} </noinclude> 8axddwsm5hbesr5jd5zf5ij1vjmxc32 ကဏ္ဍ:Redirects connected to a Wikidata item 14 5613 20425 2026-08-14T11:24:52Z PK2 448 Created blank page 20425 wikitext text/x-wiki phoiac9h4m842xq45sp7s6u21eteeq1 ကဏ္ဍ:အီဂျစ်နိုင်ငံဟိ မီးပြတိုက်တိ 14 5614 20426 2026-08-14T11:27:36Z YaThaWinTha 42 Created page with "[[ကဏ္ဍ:နိုင်ငံအလိုက် မီးပြတိုက်တိ]]" 20426 wikitext text/x-wiki [[ကဏ္ဍ:နိုင်ငံအလိုက် မီးပြတိုက်တိ]] ktenj1llg2u8hhpgi20z2322vzq1ljo 20450 20426 2026-08-14T11:45:39Z YaThaWinTha 42 20450 wikitext text/x-wiki [[ကဏ္ဍ:နိုင်ငံအလိုက် မီးပြတိုက်တိ]] [[ကဏ္ဍ:မီးပြတိုက်]] dj7efhf5j7iqoclq4lqzhqz5col5ktl တမ်းပလိတ်:More citations needed 10 5615 20435 2026-08-14T11:36:54Z YaThaWinTha 42 Created page with "{{ {{{|safesubst:}}}#invoke:Unsubst||$N=Refimprove |date=__DATE__ |$B= {{ambox | name = {{{name|Refimprove}}} | subst = {{{subst|<includeonly>{{subst:</includeonly><includeonly>substcheck}}</includeonly>}}} | small = {{#if:{{{small|}}}|left}} | type = content | class = ambox-Refimprove | image = [[File:Question book-new.svg|50x40px|alt=]] | issue = ဒေ {{#if:{{{1|}}}|{{{1}}}|ဆောင်းပါး}}သည် '''[[WP:V|စိစစ်အတည်ပြု]]န..." 20435 wikitext text/x-wiki {{ {{{|safesubst:}}}#invoke:Unsubst||$N=Refimprove |date=__DATE__ |$B= {{ambox | name = {{{name|Refimprove}}} | subst = {{{subst|<includeonly>{{subst:</includeonly><includeonly>substcheck}}</includeonly>}}} | small = {{#if:{{{small|}}}|left}} | type = content | class = ambox-Refimprove | image = [[File:Question book-new.svg|50x40px|alt=]] | issue = ဒေ {{#if:{{{1|}}}|{{{1}}}|ဆောင်းပါး}}သည် '''[[WP:V|စိစစ်အတည်ပြု]]နှိုင်ဖို့အတွက် နောက်ထပ်ကိုးကားချက်တိ လိုအပ်နိန်ရေ'''။ | fix = ကျေးဇူးပြုပြီးကေ ယုံကြည်စိတ်ချရရေ ရင်းမြစ်များ ကိုးကားထည့်သွင်းခြင်းနန့် [{{fullurl:{{FULLPAGENAME}}|action=edit}} ဒေဆောင်းပါးကို ပြည့်စုံတိုးတက်လာယောင်] ကူညီပီးပါ။ အကိုးအကားရင်းမြစ် မပါဟိရေ အကြောင်းအရာတိစွာ ခေါ်တောင်းခြင်းခံရယား ဖယ်ယှားခံရနှိုင်ရေ။ | talk = {{{talk|}}} | date = {{{date|}}} | cat = အကိုးအကားများ ထပ်မံလိုအပ်ရေ ဆောင်းပါးတိ | all = အကိုးအကားများ ထပ်မံလိုအပ်ရေ ဆောင်းပါးတိအားလုံး }}<!--{{refimprove}} end--> }}<noinclude> {{documentation}}<!-- Please add categories and interwikis to the /doc subpage, thanks --> </noinclude> euqh9szkhq2g8yqywfoznr8fgpq3tzd ကဏ္ဍ:နိုင်ငံအလိုက် မြစ်နန့် ကမ်းခြီ 14 5616 20451 2026-08-14T11:51:48Z YaThaWinTha 42 Created page with "[[ကဏ္ဍ:မြစ် နန့် ကမ်းခြီ]]" 20451 wikitext text/x-wiki [[ကဏ္ဍ:မြစ် နန့် ကမ်းခြီ]] g9p59wefn1ckpsr8nre06b3nclemg1r ကဏ္ဍ:မြန်မာနိုင်ငံဟိ မြစ်နန့် ကမ်းခြီ 14 5617 20452 2026-08-14T11:52:03Z YaThaWinTha 42 Created page with "[[ကဏ္ဍ:နိုင်ငံအလိုက် မြစ်နန့် ကမ်းခြီ]]" 20452 wikitext text/x-wiki [[ကဏ္ဍ:နိုင်ငံအလိုက် မြစ်နန့် ကမ်းခြီ]] 3aby5c32sf05b4o786v5yf5r1gdr6zs 20453 20452 2026-08-14T11:52:38Z YaThaWinTha 42 20453 wikitext text/x-wiki [[ကဏ္ဍ:နိုင်ငံအလိုက် မြစ်နန့် ကမ်းခြီ]] [[ကဏ္ဍ:မြစ် နန့် ကမ်းခြီ]] 0092hbr3hzus2yxby3k76uuvjh3re0t ကဏ္ဍ:ရခိုင် ကမ်းခြီတိ 14 5618 20454 2026-08-14T11:53:35Z YaThaWinTha 42 Created page with "[[ကဏ္ဍ:မြန်မာနိုင်ငံဟိ မြစ်နန့် ကမ်းခြီ]] [[ကဏ္ဍ:မြစ် နန့် ကမ်းခြီ]] [[ကဏ္ဍ:ရခိုင် ပထဝီဝင်]]" 20454 wikitext text/x-wiki [[ကဏ္ဍ:မြန်မာနိုင်ငံဟိ မြစ်နန့် ကမ်းခြီ]] [[ကဏ္ဍ:မြစ် နန့် ကမ်းခြီ]] [[ကဏ္ဍ:ရခိုင် ပထဝီဝင်]] s3dleodmy2un5pm7393szkh6b9nf70u ကဏ္ဍ:ရခိုင် မြစ်တိ 14 5619 20455 2026-08-14T11:53:41Z YaThaWinTha 42 Created page with "[[ကဏ္ဍ:မြန်မာနိုင်ငံဟိ မြစ်နန့် ကမ်းခြီ]] [[ကဏ္ဍ:မြစ် နန့် ကမ်းခြီ]] [[ကဏ္ဍ:ရခိုင် ပထဝီဝင်]]" 20455 wikitext text/x-wiki [[ကဏ္ဍ:မြန်မာနိုင်ငံဟိ မြစ်နန့် ကမ်းခြီ]] [[ကဏ္ဍ:မြစ် နန့် ကမ်းခြီ]] [[ကဏ္ဍ:ရခိုင် ပထဝီဝင်]] s3dleodmy2un5pm7393szkh6b9nf70u ကဏ္ဍ:ကချင်ပြည်ဟိ မြစ်တိ 14 5620 20456 2026-08-14T11:56:10Z YaThaWinTha 42 Created page with "[[ကဏ္ဍ:မြန်မာနိုင်ငံဟိ မြစ်နန့် ကမ်းခြီ]]" 20456 wikitext text/x-wiki [[ကဏ္ဍ:မြန်မာနိုင်ငံဟိ မြစ်နန့် ကမ်းခြီ]] fzdnblbkj6ciydl7q1esggw42hdu01h တမ်းပလိတ်:IUCN2014.3 10 5621 20458 2026-08-14T11:57:04Z YaThaWinTha 42 Created page with "<includeonly>{{IUCN | authors={{{assessors|{{{authors|}}}}}} | vauthors={{{vauthors|{{{vassessors|}}}}}} | last1= {{{last1|{{{last|{{{author1|{{{author|{{{assessor1|{{{assessor|}}}}}}}}}}}}}}}}}} | first1={{{first1|{{{first|}}}}}} | last2= {{{last2|{{{author2|{{{assessor2|}}}}}}}}} | first2={{{first2|}}} | last3= {{{last3|{{{author3|{{{assessor3|}}}}}}}}} | first3={{{first3|}}} | last4= {{{last4|{{{author4|{{{assessor4|}}}}}}}}} | first4={{{first4|}}} | last5= {{{la..." 20458 wikitext text/x-wiki <includeonly>{{IUCN | authors={{{assessors|{{{authors|}}}}}} | vauthors={{{vauthors|{{{vassessors|}}}}}} | last1= {{{last1|{{{last|{{{author1|{{{author|{{{assessor1|{{{assessor|}}}}}}}}}}}}}}}}}} | first1={{{first1|{{{first|}}}}}} | last2= {{{last2|{{{author2|{{{assessor2|}}}}}}}}} | first2={{{first2|}}} | last3= {{{last3|{{{author3|{{{assessor3|}}}}}}}}} | first3={{{first3|}}} | last4= {{{last4|{{{author4|{{{assessor4|}}}}}}}}} | first4={{{first4|}}} | last5= {{{last5|{{{author5|{{{assessor5|}}}}}}}}} | first5={{{first5|}}} | last6= {{{last6|{{{author6|{{{assessor6|}}}}}}}}} | first6={{{first6|}}} | last7= {{{last7|{{{author7|{{{assessor7|}}}}}}}}} | first7={{{first7|}}} | last8= {{{last8|{{{author8|{{{assessor8|}}}}}}}}} | first8={{{first8|}}} | last9= {{{last9|{{{author9|{{{assessor9|}}}}}}}}} | first9={{{first9|}}} | last10= {{{last10|{{{author10|{{{assessor10|}}}}}}}}} | first10={{{first10|}}} | author1-link={{{author1-link|{{{author-link1|{{{author-link|{{{assessor1-link|{{{assessor-link1|{{{assessor-link|{{{author1link|{{{authorlink1|{{{authorlink|{{{assessor1link|{{{assessorlink1|{{{assessorlink|}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}} | author2-link={{{author2-link|{{{author-link2|{{{assessor2-link|{{{assessor-link2|{{{author2link|{{{authorlink2|{{{assessor2link|{{{assessorlink2|}}}}}}}}}}}}}}}}}}}}}}}} | author3-link={{{author3-link|{{{author-link3|{{{assessor3-link|{{{assessor-link3|{{{author3link|{{{authorlink3|{{{assessor3link|{{{assessorlink3|}}}}}}}}}}}}}}}}}}}}}}}} | author4-link={{{author4-link|{{{author-link4|{{{assessor4-link|{{{assessor-link4|{{{author4link|{{{authorlink4|{{{assessor4link|{{{assessorlink4|}}}}}}}}}}}}}}}}}}}}}}}} | author5-link={{{author5-link|{{{author-link5|{{{assessor5-link|{{{assessor-link5|{{{author5link|{{{authorlink5|{{{assessor5link|{{{assessorlink5|}}}}}}}}}}}}}}}}}}}}}}}} | author6-link={{{author6-link|{{{author-link6|{{{assessor6-link|{{{assessor-link6|{{{author6link|{{{authorlink6|{{{assessor6link|{{{assessorlink6|}}}}}}}}}}}}}}}}}}}}}}}} | author7-link={{{author7-link|{{{author-link7|{{{assessor7-link|{{{assessor-link7|{{{author7link|{{{authorlink7|{{{assessor7link|{{{assessorlink7|}}}}}}}}}}}}}}}}}}}}}}}} | author8-link={{{author8-link|{{{author-link8|{{{assessor8-link|{{{assessor-link8|{{{author8link|{{{authorlink8|{{{assessor8link|{{{assessorlink8|}}}}}}}}}}}}}}}}}}}}}}}} | author9-link={{{author9-link|{{{author-link9|{{{assessor9-link|{{{assessor-link9|{{{author9link|{{{authorlink9|{{{assessor9link|{{{assessorlink9|}}}}}}}}}}}}}}}}}}}}}}}} | author10-link={{{author10-link|{{{author-link10|{{{assessor10-link|{{{assessor-link10|{{{author10link|{{{authorlink10|{{{assessor10link|{{{assessorlink10|}}}}}}}}}}}}}}}}}}}}}}}} | display-authors={{{display-authors|{{{displayauthors|{{{display-assessors|{{{displayassessors|}}}}}}}}}}}} | last-author-amp={{{last-author-amp|{{{lastauthoramp|{{{last-assessor-amp|{{{lastassessoramp|}}}}}}}}}}}} | year={{{year}}} | title=''{{{title}}}'' | id={{{id}}} | access-date={{{accessdate|{{{access-date|{{{downloaded|}}}}}}}}} | version=2014.3 | criteria-version={{{criteria-version|}}} | mode={{{mode|cs1}}} | ref={{{ref|harv}}} }}</includeonly><noinclude> {{Documentation}} </noinclude> df1mr27c0bses75cibaobxbdaq7qqwo တမ်းပလိတ်:IUCN 10 5622 20459 2026-08-14T11:57:35Z YaThaWinTha 42 Created page with "<includeonly>{{#ifeq:{{{id|{{{ID|}}}}}}| | {{citation error|no <code>&#124;id&#61;</code> number specified|IUCN|nocat={{{template doc demo|}}}}} | {{#ifeq:{{{year|{{{assessment_year|}}}}}}| | {{citation error|no <code>&#124;assessment_year&#61;</code> specified|IUCN|nocat={{{template doc demo|}}}}} | {{#ifeq:{{{title|{{{taxon}}}}}}| | {{citation error|no <code>&#124;taxon&#61;</code> specified|IUCN|nocat={{{template doc demo|}}}}} | {{#ifeq:{{{vers..." 20459 wikitext text/x-wiki <includeonly>{{#ifeq:{{{id|{{{ID|}}}}}}| | {{citation error|no <code>&#124;id&#61;</code> number specified|IUCN|nocat={{{template doc demo|}}}}} | {{#ifeq:{{{year|{{{assessment_year|}}}}}}| | {{citation error|no <code>&#124;assessment_year&#61;</code> specified|IUCN|nocat={{{template doc demo|}}}}} | {{#ifeq:{{{title|{{{taxon}}}}}}| | {{citation error|no <code>&#124;taxon&#61;</code> specified|IUCN|nocat={{{template doc demo|}}}}} | {{#ifeq:{{{version|{{{IUCN_Year|{{{iucn_year|}}}}}}}}}| | {{citation error|no <code>&#124;version&#61;</code> specified|IUCN|nocat={{{template doc demo|}}}}} | {{cite web | url = http://www.iucnredlist.org/details/{{{id|{{{ID|}}}}}} | last1={{{last1|{{{last|{{{author|{{{assessors|{{{authors|}}}}}}}}}}}}}}} | first1={{{first1|{{{first|}}}}}} | last2={{{last2|}}} | first2={{{first2|}}} | last3={{{last3|}}} | first3={{{first3|}}} | last4={{{last4|}}} | first4={{{first4|}}} | last5={{{last5|}}} | first5={{{first5|}}} | last6={{{last6|}}} | first6={{{first6|}}} | last7={{{last7|}}} | first7={{{first7|}}} | last8={{{last8|}}} | first8={{{first8|}}} | last9={{{last9|}}} | first9={{{first9|}}} | last10={{{last10|}}} | first10={{{first10|}}} | year = {{{year|{{{assessment_year|}}}}}} | title = {{{title|{{{taxon}}}}}} | work = IUCN Red List of Threatened Species. Version {{{version|{{{IUCN_Year|{{{iucn_year|}}}}}}}}} | publisher = [[နိုင်ငံတကာ သဘာဝထိန်းသိမ်းစောင့်ယှောက်ရီး အသင်း]] | accessdate = {{{downloaded|{{{accessdate|}}}}}} | archiveurl = {{{archiveurl|}}} | archivedate = {{{archivedate|}}} | ref = {{{ref|harv}}} }}}}}}}}}}</includeonly><noinclude> {{documentation}} </noinclude> ha0fa0tgc4luj1u53ydhnceuprszxyp