Diferencia entre revisiones de «Módulo:Ficha»
cambio código |
cambio código |
||
| Línea 562: | Línea 562: | ||
local function hacerBarraWikidata()-- Crea en la parte inferior un enlace al ítem de Wikidata | local function hacerBarraWikidata()-- Crea en la parte inferior un enlace al ítem de Wikidata | ||
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%(.*%)','') | ||
| 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">[[[d:' .. tostring(entidad) .. '|editar datos en Wikidata]]]</div>' | textoPie = '<div class="plainlinks wikidata-link" style="font-size: 0.85em">[[[d:' .. tostring(entidad) .. '|editar datos en Wikidata]]]</div>' | ||
if | 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 | ||