View source for Module:Scripts
Jump to navigation
Jump to search
You do not have permission to edit this page, for the following reason:
You can view and copy the source of this page.
local export = {}
local Script = {}
--[==[Returns the script code of the language. Example: {{code|lua|"Cyrl"}} for Cyrillic.]==]
function Script:getCode()
return self._code
end
--[==[Returns the canonical name of the script. This is the name used to represent that script on Wiktionary. Example: {{code|lua|"Cyrillic"}} for Cyrillic.]==]
function Script:getCanonicalName()
return self._rawData[1] or self._rawData.canonicalName
end
--[==[Returns the display form of the script. For scripts, this is the same as the value returned by <code>:getCategoryName("nocap")</code>, i.e. it reads "NAME script" (e.g. {{code|lua|"Arabic script"}}). For regular and etymology languages, this is the same as the canonical name, and for families, it reads "NAME languages" (e.g. {{code|lua|"Indo-Iranian languages"}}). The displayed text used in <code>:makeCategoryLink</code> is always the same as the display form.]==]
function Script:getDisplayForm()
return self:getCategoryName("nocap")
end
function Script:getOtherNames(onlyOtherNames)
000
1:0
Templates used on this page:
- Template:Code (view source)
- Template:Documentation (view source)
- Template:Lua (view source)
- Template:Module documentation (view source)
- Template:Subpages (view source)
- Template:Tracking/parameters/no calling function (view source)
- Template:Tracking/parameters/no calling module (view source)
- Module:Array (view source)
- Module:Debug/track (view source)
- Module:Documentation (view source)
- Module:Module documentation (view source)
- Module:Parameters (view source)
- Module:Scripts (view source)
- Module:Scripts/documentation (view source)
- Module:Table (view source)
Return to Module:Scripts.