Module:Sourdant : Diferince etur modêyes

Contenu supprimé Contenu ajouté
Aucun résumé des modifications
Aucun résumé des modifications
Roye 12:
-- return the table of a reference
-- or false if reference doesn't exist
-- @fromWD bool try to load data from wikidata if true
function p.get_reference(refID, fromWD)
-- default fromWD is true
if fromWD ~= false then fromWD = true end
-- if refID is not a correct ID
Ligne 32 ⟶ 36 :
-- get data from Wikidata if possible
if fromWD and ref.wikidata ~= nil and ref.wikidata ~="" then
local wd = require("Module:Sourdant/wikidata")
data = wd.get_reference(ref.wikidata)