Diferencia entre revisiones de «Módulo:Ficha»

Sin resumen de edición
Etiqueta: Revertido
Sin resumen de edición
Etiqueta: Reversión manual
 
(No se muestran 5 ediciones intermedias del mismo usuario)
Línea 565: Línea 565:
     local enlacePagina = mw.title.getCurrentTitle().prefixedText  
     local enlacePagina = mw.title.getCurrentTitle().prefixedText  
     local etiquetaPagina = mw.ustring.gsub(enlacePagina,'%s%(.*%)','')
     local etiquetaPagina = mw.ustring.gsub(enlacePagina,'%s%(.*%)','')
local entidad = args.entidad
local entidad = args.entidad or mw.wikibase.getEntityIdForCurrentPage()
     local textoPie = ""
     local textoPie = ""
     if  (args.child == 'si' or args.integrada == 'sí' or args.wikidata == 'no') or (mw.title.getCurrentTitle().namespace ~= 0 and mw.title.getCurrentTitle().namespace ~= 104 and not args.entidad) then
     if  (args.child == 'si' or args.integrada == 'sí' or args.wikidata == 'no') or (mw.title.getCurrentTitle().namespace ~= 0 and mw.title.getCurrentTitle().namespace ~= 104 and not args.entidad) then
Línea 571: Línea 571:
     elseif  entidad ~= "" and entidad ~= nil  then
     elseif  entidad ~= "" and entidad ~= nil  then
         textoPie = '<div class="plainlinks wikidata-link" style="font-size: 0.85em">&#x5B;[[d:' .. tostring(entidad) .. '|editar datos en Wikidata]]&#x5D;</div>'
         textoPie = '<div class="plainlinks wikidata-link" style="font-size: 0.85em">&#x5B;[[d:' .. tostring(entidad) .. '|editar datos en Wikidata]]&#x5D;</div>'
         if (mw.title.getCurrentTitle().namespace == 0 or mw.title.getCurrentTitle().namespace == 104)  then
         if (entidad ~= mw.wikibase.getEntityIdForCurrentPage()) and (mw.title.getCurrentTitle().namespace == 0 or mw.title.getCurrentTitle().namespace == 104)  then
         textoPie = textoPie .. '[[Categoría:Wikipedia:Artículos con fichas que utilizan acceso arbitrario]]'
         textoPie = textoPie .. '[[Categoría:Wikipedia:Artículos con fichas que utilizan acceso arbitrario]]'
         end
         end