Module:Wikidata label: Difference between revisions

Jump to navigation Jump to search
prova modifica priorità lingue (prima lingua dell'interfaccia)
No edit summary
(prova modifica priorità lingue (prima lingua dell'interfaccia))
 
Line 1: Line 1:
--[[
--[[
__  __          _      _      __        ___ _    _    _      _          _      _          _
  __  __          _      _      __        ___ _    _    _      _          _      _          _
  |  \/  | ___  __| |_  _| | ___ \ \      / (_) | _(_) __| | __ _| |_ __ _  | | __ _| |__  ___| |
  |  \/  | ___  __| |_  _| | ___ \ \      / (_) | _(_) __| | __ _| |_ __ _  | | __ _| |__  ___| |
  | |\/| |/ _ \ / _` | | | | |/ _ (_) \ /\ / /| | |/ / |/ _` |/ _` | __/ _` | | |/ _` | '_ \ / _ \ |
  | |\/| |/ _ \ / _` | | | | |/ _ (_) \ /\ / /| | |/ / |/ _` |/ _` | __/ _` | | |/ _` | '_ \ / _ \ |
Line 268: Line 268:


if not lang then
if not lang then
label, lang = mw.wikibase.getLabelWithLang(item)
lang = mw.getCurrentFrame():callParserFunction("int","lang") -- get user's chosen language
if not lang then lang = 'it' end -- Stefano Bargioni 2023-07-18
label = nil
end
end
if not lang then -- if still no language
if not lang then -- if still no language
lang = mw.getCurrentFrame():callParserFunction("int","lang")  -- get user's chosen language
label, lang = mw.wikibase.getLabelWithLang(item)
label = nil
end
end


571

edits

Navigation menu