« Module:Auteur2 » : différence entre les versions
Contenu supprimé Contenu ajouté
ajout d'une catégorie de maintenance ; j'espère ne rien casser |
correction de l'ajout de Catégorie:Pages « Auteur » sans nationalité |
||
Ligne 543 :
end
--nationalités
local categoryForCountry = mw.loadData('Module:Auteur2/nationalités')
local withNationality = false
if item ~= nil then
for _, statement in pairs(item:getBestStatements('P27')) do
Ligne 550 ⟶ 551 :
if categoryForCountry[countryId] == nil then
html:wikitext('[[Catégorie:Pages utilisant le modèle Auteur avec une nationalité sans catégorie]]')
withNationality = true
elseif categoryForCountry[countryId] then
html:wikitext('[[Category:' .. categoryForCountry[countryId] .. ']]')
withNationality = true
end
end
Ligne 558 ⟶ 561 :
if args.pays ~= nil then
html:wikitext('[[Catégorie:Pages utilisant le modèle Auteur avec une nationalité locale]]')
withNationality = true
end▼
if not withNationality then
html:wikitext('[[Catégorie:Pages « Auteur » sans nationalité]]')▼
end
--occupation
Ligne 667 ⟶ 674 :
html:wikitext(frame:preprocess('{{DEFAULTSORT:' .. args.cle .. '}}'))
end
▲ html:wikitext('[[Catégorie:Pages « Auteur » sans nationalité]]')
▲ end
--contenu
|