Diferencia entre revisiones de «Módulo:Control de autoridades»

Contenido eliminado Contenido añadido
snooker.org tournament (d:P:P4921) y CueTracker (d:P:P4924). Solicitado por Alavense.
Añado sección de identificadores fiscales: IRS (d:P:P1297), VAT (d:P:P3608) y UID (d:P:P4829). Pequeña modificación para permitir mostrar el identificador sin generar un enlace externo con la cadena 'nolink'. Solicitado por Tinker Bell.
Línea 137:
-- -- label: internal link in wiki format
-- -- propertyId in Wikidata: number without 'P' suffix
-- -- formatting function: one of these fourfive options
-- -- -- local function (like 'generic')
-- -- -- string 'y' (yes), to show a default identifier 'ID'
-- -- -- string 'n' (no), to show the real identifier
-- -- -- string 'nolink', to show the identifier without an external link
-- -- -- any other string, to show this string as identifier ('id', 'url', 'link', ...)
-- -- category id: one of these tree options
Línea 520 ⟶ 521:
{ 'Bloomberg', '[[Bloomberg L.P.|Bloomberg]]', 3052, 'n', 0 },
{ 'Crunchbase', '[[Crunchbase]]', 2087, 'n', 0 },
},
},
{
title = 'Identificadores fiscales',
group = {
{ 'IRS', '[[Servicio de Impuestos Internos de los Estados Unidos|IRS]]', 1297, 'nolink', 0 },
{ 'VAT', '[[Número de Identificación Fiscal a efectos del IVA (NIF-IVA)|VAT]]', 3608, 'nolink', 0 },
{ 'UID', 'UID', 4829, 'n', 0 },
},
},
Línea 784 ⟶ 793:
elseif mask == 'n' then
return '['..link..' '..val..']'
elseif mask == 'nolink' then
return val
end
return '['..link..' '..mask..']'