יחידה:Sister project links: הבדלים בין גרסאות בדף
מאין תקציר עריכה |
מאין תקציר עריכה |
||
| שורה 151: | שורה 151: | ||
for i, proj in ipairs(projects) do | for i, proj in ipairs(projects) do | ||
if (not args[proj['arg']] or args[proj['arg']]==nil) and proj['name'] then | -- fetch link from wikidata if not specific | ||
if entity~=nil and (not args[proj['arg']] or args[proj['arg']]==nil) and proj['name'] then | |||
if proj['name'] == 'commons' then | if proj['name'] == 'commons' then | ||
local commonCat = mw.wikibase.getBestStatements( entity, 'P373' ) | local commonCat = mw.wikibase.getBestStatements( entity, 'P373' ) | ||