יחידה:PropertyLink: הבדלים בין גרסאות בדף
מאין תקציר עריכה |
מאין תקציר עריכה |
||
| שורה 223: | שורה 223: | ||
function property( frame ) | function property( frame ) | ||
if frame.args['entity']==nil and frame.args['title'] and #frame.args['title']>0 then | |||
frame.args['entity'] = mw.wikibase.getEntityIdForTitle( frame.args['title'] ) | |||
if frame.args['entity']==nil then return end | |||
end | |||
return getProperty(string.upper(frame.args[1]), (frame.args[2] and string.len(frame.args[2])>0) or false, true, frame.args['entity']) | return getProperty(string.upper(frame.args[1]), (frame.args[2] and string.len(frame.args[2])>0) or false, true, frame.args['entity']) | ||
end | end | ||