Die Dokumentation für dieses Modul kann unter Modul:VCard/Unesco/doc erstellt werden
-- This module presenting a Unesco icon with a link to the related article
-- has to be adapted to the needs of the local wiki. It depends on the
-- existence of Unesco heritage articles.
-- modul variable and administration
local unesco = {
moduleInterface = {
suite = 'vCard',
sub = 'Unesco',
serial = '2022-07-03',
item = 111232404
}
}
-- heritage articles by continent, taken from Module:Unesco/i18n
local articles = {
af = 'Welterbe/Afrika', -- africa
am = 'Welterbe/Amerika', -- america
as = 'Welterbe/Asien und Ozeanien', -- asia
au = 'Welterbe/Asien und Ozeanien', -- australia
eu = 'Welterbe/Europa', -- europe
na = 'Welterbe/Amerika', -- north america
oc = 'Welterbe/Asien und Ozeanien', -- oceania
sa = 'Welterbe/Amerika', -- south america
default = 'Welterbe'
}
-- image titles by continent, taken from Module:Unesco/i18n
local imgTitles = {
af = 'Unesco-Welterbestätten in Afrika',
am = 'Unesco-Welterbestätten in Amerika',
as = 'Unesco-Welterbestätten in Asien',
au = 'Unesco-Welterbestätten in Australien',
eu = 'Unesco-Welterbestätten in Europa',
na = 'Unesco-Welterbestätten in Nordamerika',
oc = 'Unesco-Welterbestätten in Ozeanien',
sa = 'Unesco-Welterbestätten in Südamerika',
default = 'Unesco-Welterbestätten'
}
-- create unesco image with link and title
function unesco.getUnescoInfo( countryData )
local title = imgTitles[ countryData.cont ]
local link = articles.default
if title then
link = articles[ countryData.cont ] .. '#' .. countryData.country
else
title = imgTitles.default
end
return link, title
end
return unesco