Modul:Citation/CS1/Identifiers
Prijeđi na navigaciju
Prijeđi na pretraživanje
Script error: The function "nonexistent" does not exist.
-- Modul:Citation/CS1/Identifiers
-- Minimalna verzija kompatibilna s tvojim CS1 modulom
local p = {}
function p.format(id, value)
if not value or value == "" then return nil end
local id_lower = string.lower(id)
if id_lower == "isbn" then
return string.format("ISBN: [%s %s]", "https://www.worldcat.org/isbn/" .. value, value)
elseif id_lower == "doi" then
return string.format("DOI: [%s %s]", "https://doi.org/" .. value, value)
elseif id_lower == "pmid" then
return string.format("PMID: [%s %s]", "https://pubmed.ncbi.nlm.nih.gov/" .. value, value)
end
return id .. ": " .. value
end
return p