మాడ్యూల్:Language: కూర్పుల మధ్య తేడాలు

Content deleted Content added
imported>Erutuon
చి fix error
coding standards
పంక్తి 1:
require('Module:No globals')
 
local U = mw.ustring.char
 
--[[ Name is the "canonical name" used on Wiktionary. Article is the Wikipedia article. Script is the ISO 15924 code. ]]
 
local data = {
["ar"] = {
["name"] = "Arabic",
Line 157 ⟶ 159:
]]
 
flocal p = {}
 
local gsub = mw.ustring.gsub
 
local function checkForString(variable)
Line 200 ⟶ 202:
 
local function languageSpan(languageCode, text, italics)
local languageData = data[languageCode]
iflocal languageScript = languageData thenand languageData["scripts"][1] or nil
languageScript = languageData["scripts"][1]
end
if italics == "auto" then
if languageScript == "Latn" then
పంక్తి 223:
end
 
function fp.lang(frame)
return languageSpan(frame.args[1], frame.args[2])
end
 
local function wiktionaryLink(languageCode, entry, linkText, italics)
local languageData, languageName = {}, ""
if languageCode then
పంక్తి 241:
end
 
function fp.wikt(frame)
local languageCode = frame.args[1]
local word1 = frame.args[2]
local word2 = frame.args[3]
local italics = frame.args.italics or "auto"
local entry, linkText
if languageCode then
if checkForString(word2) and checkForString(word1) then
Line 262 ⟶ 263:
end
 
return fp
"https://te.wikipedia.org/wiki/మాడ్యూల్:Language" నుండి వెలికితీశారు