Diferencia entre revisiones de «Módulo:Encabezado»

Contenido eliminado Contenido añadido
alv
Sin resumen de edición
Línea 78:
if argus[nombre] and argus[nombre] ~= '' then
if imagen == '' then
texto = ''..'[['..texto1..'|'..texto2..']].   '
else
texto = ''..'[[File:'..imagen..'|16px]] '..'[['..texto1..'|'..texto2..']].   '
end
elseif sitio~='' and Entidad ~= '' then
if Entidad:getSitelink(sitio[1]) ~= nil and Entidad:getSitelink(sitio[1]) ~= '' then
argus[nombre] = sitio[2]..Entidad:getSitelink(sitio[1])
texto = '[[File:'..imagen..'|16px]] '..'[['..sitio[2]..Entidad:getSitelink(sitio[1])..'|'..texto2..']].   '
elseif sitio[1] =='commonswiki' and propiedad('p373') ~= '' then --categoría en commons
texto = '[[File:'..imagen..'|16px]] '..'[[commons:Category:'..propiedad('p373')..'|'..texto2..']].   '
end
end