Diferencia entre revisiones de «Módulo:Ficha de videojuego»
Contenido eliminado Contenido añadido
Cambio en cómo se muestra la etiqueta respecto al texto en la fecha de lanzamiento |
Más comprobaciones necesarias (que por lo visto no se hacía ninguna) |
||
(No se muestra una edición intermedia del mismo usuario) | |||
Línea 78:
-- Software
local Motor = argumento['motor'] or propiedad('P408') or ''
local Version
if VerFecha then else
local VersionDesa = (function()▼
else
local Version = argumento['versión desarrollo'] or argumento['versión desarrollo']▼
Version = ''
local VersionFecha = argumento['versión desarrollo fecha'] or argumento['version desarrollo fecha']▼
▲ return Version
▲ VerFecha
if Ver then
if VerFecha then
VersionDesa = Ver .. '<small>(' .. VerFecha .. ')</small>'
else
VersionDesa = Ver
end
else
VersionDesa = ''
end
local Plataformas = argumento['plataforma'] or argumento['plataformas'] or propiedad('P400') or ''
Línea 289 ⟶ 301:
if argumento[1] and argumento[2] and argumento[3] then
local Valor = '<li style="display:table-row"><span style="display:table-cell;font-size:70%;vertical-align:top">[[' .. argumento[1] .. '|' .. argumento[2] .. ']]</span><span style="display:table-cell">' .. argumento[3] .. '</span></li>'
local Categoria
Categoria else
end
table.insert(Valores, Valor..Categoria)
Línea 304 ⟶ 318:
else
for k, v in pairs(LanzamientoDatos) do
local Valor
▲ for kk, vv in pairs(v[2]) do
break
if not Valor then
if argumento[vv] then
Valor = argumento[vv]
end
end
▲ for kk, vv in pairs((v[3] or {})) do
▲ if argumento[vv] then return argumento[vv] end
▲ end
▲ end)()
if Valor then
if v[1] == 'DESC' then
Etiqueta= (function()▼
Etiqueta Etiqueta ▲ end)()
else
table.insert(Valores, '<li style="display:table-row"><span style="display:table-cell;font-size:70%;vertical-align:top">' .. Etiqueta .. '</span><span style="display:table-cell">'.. Valor ..'</span></li>')▼
if Etiqueta then
table.insert(Valores, '<li style="display:table-row"><span style="display:table-cell;font-size:70%;vertical-align:top">' .. Etiqueta .. '</span><span style="display:table-cell">'.. Valor ..'</span></li>')
end
end
Línea 339 ⟶ 362:
function Lanzamientovj()
local Valores = {}
if not Entidad then return end
local Obj = elementoTabla(Entidad, 'claims', 'P577')
if Obj then
for k, v in pairs(Obj) do
local Valor = FormatoFechaHora(elementoTabla(v, 'mainsnak', 'datavalue', 'value'), {['enlace']='no'})
local Region = elementoTabla(v, 'qualifiers', 'P291', 1, 'datavalue', 'value', 'id')
local Etiqueta
▲ Etiqueta= (function()
if Etiqueta = '[[' .. vv[4] .. '|' .. vv[1] ..']]' elseif vv[1] then
Etiqueta = vv[1]
end
end
else
end
▲ table.insert(Valores, '<li style="display:table-row"><span style="display:table-cell;font-size:70%;vertical-align:top">' .. Etiqueta .. '</span><span style="display:table-cell">'.. Valor ..'</span></li>')
if Etiqueta and Valor then
▲ table.insert(Valores, '<li style="display:table-row"><span style="display:table-cell;font-size:70%;vertical-align:top">' .. Etiqueta .. '</span><span style="display:table-cell">'.. Valor ..'</span></li>')
end
end
end
Línea 401 ⟶ 432:
local Calificador = opciones['calificador']
local Obj
▲ end)()
local Obj3 = elementoTabla(Obj2, 'qualifiers', Calificador)
end
▲ end)()
▲ end
▲ return elementoTabla(Obj, 'mainsnak')
▲ end)()
Tipo = elementoTabla(Obj, 'datavalue', 'type')
|