Diferencia entre revisiones de «Módulo:Ficha»
arreglar error tamañoimagensuperor |
Realizados cambios necesarios para que la barra de Wikidata muestre el enlace adecuado cuando se utiliza el acceso arbitrario en la ficha, se muestre la barra siempre que se use el acceso arbitrario y categorización de articulos con acceso arbitrario |
||
| Línea 543: | Línea 543: | ||
local enlacePagina = mw.title.getCurrentTitle().text | local enlacePagina = mw.title.getCurrentTitle().text | ||
local etiquetaPagina = mw.ustring.gsub(enlacePagina,'%s%(.*%)','') | local etiquetaPagina = mw.ustring.gsub(enlacePagina,'%s%(.*%)','') | ||
local entidad = wikibase.id() | local entidad = args.entidad or wikibase.id() | ||
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) 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 | ||
textoPie = '' | textoPie = '' | ||
elseif entidad ~= "" and entidad ~= nil then | elseif entidad ~= "" and entidad ~= nil then | ||
textoPie = '<small>[<span class= plainlinks>[[d:' .. tostring(entidad) .. '|editar datos en Wikidata]]</span>]</small>' | textoPie = '<small>[<span class= plainlinks>[[d:' .. tostring(entidad) .. '|editar datos en Wikidata]]</span>]</small>' | ||
if args.entidad 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]]' | |||
end | |||
else | else | ||
textoPie = "<small>'''Página no enlazada a [[Wikidata]]'''\n".. | textoPie = "<small>'''Página no enlazada a [[Wikidata]]'''\n".. | ||