Module:WikidataIB/sandbox1: Difference between revisions

Content deleted Content added
update from main and remove span around pen icon
avoid "preprocess" where not needed as it needlessly increases preprocessor visited node count and post-expand include size
Line 151:
langobj = mw.language.new( langcode )
else
langcode = mw.getCurrentFrame():preprocesscallParserFunction('int', {'{{int:lang'}}' )
if mw.language.isKnownLanguageTag(langcode) then
langobj = mw.language.new( langcode )
Line 2,967:
-------------------------------------------------------------------------------
p.siteID = function(frame)
local txtlang = frame:preprocesscallParserFunction('int', "{{int:'lang'}}" ) or ""
-- This deals with specific exceptions: be-tarask -> be-x-old
if txtlang == "be-tarask" then
Line 2,991:
-------------------------------------------------------------------------------
p.projID = function(frame)
local txtlang = frame:preprocesscallParserFunction('int', "{{int:'lang'}}" ) or ""
-- This deals with specific exceptions: be-tarask -> be-x-old
if txtlang == "be-tarask" then