יחידה:תבנית מידע: הבדלים בין גרסאות בדף

מאין תקציר עריכה
מאין תקציר עריכה
שורה 626: שורה 626:
local hasContent = templateArgs[label_data_names] and #templateArgs[label_data_names]>0
local hasContent = templateArgs[label_data_names] and #templateArgs[label_data_names]>0
-- + and use explicit wikidata replace the content with such if available from wikidata
-- + and use explicit wikidata replace the content with such if available from wikidata
if templateParams[label_data_names..explicitWikidata] and mw.ustring.match(templateArgs[label_data_names], '^ *+$') then
if templateParams[label_data_names..explicitWikidata] and templateArgs[label_data_names]~=nil and mw.ustring.match(templateArgs[label_data_names], '^ *+$') then
hasContent = false
hasContent = false
end
end