aude added a comment.

right now, a lot of modules have code like:

  -- module local variables
  local wiki = 
  {
        langcode = mw.language.getContentLanguage().code
  }
  
  function p.descriptionIn(frame)
        local langcode = frame.args[1]
        local id = frame.args[2]        -- "id" must be nil, as access to other 
Wikidata objects is disabled in Mediawiki configuration
        -- return description of a Wikidata entity in the given language or the 
default language of this Wikipedia site
        return mw.wikibase.getEntityObject(id).descriptions[langcode or 
wiki.langcode].value
  end

https://en.wikipedia.org/wiki/Module:Wikidata

this would become unnecessary, and is intuiatively how I expected and thought 
these things worked.


TASK DETAIL
  https://phabricator.wikimedia.org/T99078

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: aude
Cc: gerritbot, aude, Aklapper, Wikidata-bugs



_______________________________________________
Wikidata-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to