Anonimo

Modulo:DTGenerico: differenze tra le versioni

Da Wikitrek.
m
nessun oggetto della modifica
(Category for modern HT box)
mNessun oggetto della modifica
Riga 26: Riga 26:
local Markup
local Markup
-- TODO
-- If there are multiple images, then create a carousel
-- Example from https://data.wikitrek.org/wiki/Item:Q5641
-- <gallery mode="slideshow" widths=100% heights=350px>
-- File:Dis1x3 discovery1031.jpg|caption|alt=alt language
-- File:Dis3x6 discovery1031a.jpg|caption|alt=alt language
-- </gallery>
if Item['claims']['P37'] then
if Item['claims']['P37'] then
local FileTitle = "File:" .. Item['claims']['P37'][1].mainsnak.datavalue['value']
local FileTitle = "File:" .. Item['claims']['P37'][1].mainsnak.datavalue['value']