మాడ్యూల్:Language: కూర్పుల మధ్య తేడాలు
Content deleted Content added
imported>Erutuon చి fix error |
Jackmcbarn (చర్చ | రచనలు) 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:
]]
local gsub = mw.ustring.gsub
local function checkForString(variable)
Line 200 ⟶ 202:
local function languageSpan(languageCode, text, italics)
local languageData = data[languageCode]
if italics == "auto" then
if languageScript == "Latn" then
పంక్తి 223:
end
function
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
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
|