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

מאין תקציר עריכה
מאין תקציר עריכה
שורה 17: שורה 17:
         end
         end
         if propValue['type']=='wikibase-entityid' then
         if propValue['type']=='wikibase-entityid' then
             return "[[" .. mw.wikibase.sitelink("Q" .. propValue.value['numeric-id']) .. "|" .. mw.wikibase.label("Q" ..propValue.value['numeric-id']) .."]]"
             linkTarget = mw.wikibase.sitelink("Q" .. propValue.value['numeric-id'])
            linkTitle = mw.wikibase.label("Q" ..propValue.value['numeric-id'])
            if not ((linkTarget == nil) or (linkTitle==nil)) then
                return "[[" .. linkTarget .. "|" .. linkTitle .."]]"
            end
         elseif propValue['type']=='string' then
         elseif propValue['type']=='string' then
             return propValue.value
             return propValue.value
         end
         end
        return nil
          
          
end
end
return p
return p