Modul:External links/conf
Seba na module şıma şenê yû pela dokumani vırazê Modul:External links/conf/dok
local messages = {}
messages['en'] = {
['wikidata-linkback-edit'] = 'Edit on Wikidata',
['missing-limits'] = 'Missing limits-var in [[Module:External links/conf/$1]]',
['missing-conf'] = 'Missing content in [[Module:External links/conf/$1]]',
['msg-langcode'] = '<span class="bjeller languageicon" style="color: var(--color-subtle, #54595d);cursor:help;" title="{{#language:$1|en}}">($1)</span>',
['msg-ul-prepend'] = '* ',
['msg-inline-separator'] = ', ',
}
messages['nb'] = {
['wikidata-linkback-edit'] = 'Rediger på Wikidata',
['missing-limits'] = 'Mangler limits-variabel i [[Module:External links/conf/$1]]',
['missing-conf'] = 'Mangler innhold i [[Module:External links/conf/$1]]',
['msg-langcode'] = '<span class="bjeller languageicon" style="color: var(--color-subtle, #54595d);cursor:help;" title="{{#language:$1|nb}}">($1)</span>',
['msg-ul-prepend'] = '* ',
['msg-inline-separator'] = ', ',
}
messages['nn'] = {
['wikidata-linkback-edit'] = 'Rediger på Wikidata',
['missing-limits'] = 'Mangler limits-variabel i [[Module:External links/conf/$1]]',
['missing-conf'] = 'Mangler innhald i [[Module:External links/conf/$1]]',
['msg-langcode'] = '<span class="bjeller languageicon" style="color: var(--color-subtle, #54595d);cursor:help;" title="{{#language:$1|nn}}">($1)</span>',
['msg-ul-prepend'] = '* ',
['msg-inline-separator'] = ', ',
}
local arguments = {
['arg-conf'] = 'conf',
['arg-title'] = 'tittel',
['arg-properties'] = 'prop',
['arg-maxlink'] = 'maxlink',
['arg-short'] = 'kort',
['arg-languages'] = 'språk',
['arg-no-categories'] = 'uten kategorier',
['arg-inline'] = 'inline',
['arg-track'] = 'track',
['mod-filter-all'] = 'alle',
['mod-filter-separator'] = ',',
}
local p = {
['g'] = function (self, ...)
for _,v in ipairs(arg) do
if self.messages then
return self.messages
end
end
return '<'..arg[1]..'>'
end,
['a'] = function (self, ...)
for _,v in ipairs(arg) do
if self.arguments[v] then
return self.arguments[v]
end
end
return '<'..arg[1]..'>'
end
}
-- metatable for the export
local mt = {
-- adjust the installation of the module
['__call'] = function (self, lang)
self.messages = messages[lang]
self.arguments = arguments
return self
end
}
-- install the metatable
setmetatable(p, mt)
return p