יחידה:OCLC – הבדלי גרסאות

תוכן שנמחק תוכן שנוסף
יצירת דף עם התוכן "local p= { } function p.oclc(frame) local short = frame.args['מקוצר'] local qid = frame.args['qid'] or mw.wikibase.getEntityIdForCurrentPage() local prop..."
 
מאין תקציר עריכה
שורה 3:
local short = frame.args['מקוצר']
local qid = frame.args['qid'] or mw.wikibase.getEntityIdForCurrentPage()
local properties = { 'P5331', 'P243' }
local oclc = frame.args[1]
local oclcUrl = ''
שורה 24 ⟵ 23:
if short then
return mw.ustring.format('[%s %s]', oclcUrl, oclc)
else
local name = frame.args[2]
שורה 31 ⟵ 30:
name = mw.ustring.gsub(name, " *[(].*[)]","")
end
return mw.ustring.format('[%s %s], באתר [[Online Computer Library Center|OCLC]] {{אנגלית}}', oclcUrl, name)
end
end