Módulo:Control de autoridades: Diferenzas entre revisións
Contido eliminado Contido engadido
Sen resumo de edición |
Sen resumo de edición |
||
Liña 22:
local function getIdFromWikidata( item, property )
local id = nil
if item.claims[property] ==
end▼
return id
end
Liña 94 ⟶ 85:
local valurl = val
valurl = mw.ustring.gsub(valurl,'%%','%%%%')
link = mw.ustring.gsub(link, '$1', valurl)
Liña 128 ⟶ 112:
return outStr..'>' .. link .. '</span></span>\n'
else
return '* ' .. mw.text.tag('span', {class='error'}, '
end
end
Liña 239 ⟶ 223:
--warn if unknown(s) present
if #unknownParams > 0 then
if frame:preprocess( '{{REVISIONID}}' ) == '' then
errors = errors..'<div class="hatnote" style="color:red">'..
'<strong>
'
'
end
end
Liña 295 ⟶ 270:
if parentArgs['from'..f] then
errors = errors .. mw.text.tag('strong', {class='error'}, '
parentArgs['from'..f] .. '"
end
end
Liña 393 ⟶ 368:
--Categorize
end
end
Liña 452 ⟶ 420:
--Add categories
if string.sub(currentTitle.subpageText,1,9) == 'testcases' then parentArgs['demo'] = true end
return outString .. errors
end
|