Module:Cite Unicode Explained

require('strict')

local p = local getArgs = require('Module:Arguments').getArgs

local dates =

local isbn =

local latest = "15.1.0"

function p.Date(frame) local v = p.Version(frame) local d = dates[v] return dend

function p.ISBN(frame) local v = p.Version(frame) local d = isbn[v] if d then return d endend

function p.Location(frame) local f = getArgs(frame) local l = p._Version(f[1]) if l[1] < 15 or (l[1]

15 and l[2] < 1) then return "Mountain View, CA" end return "South San Francisco, CA"end

function p.Version(frame) local f = getArgs(frame) if f[1]

"" then return latest end

return table.concat(p._Version(f[1]), ".")end

function p._Version(s) local res = if s

nil then s = latest end local i = 1 for token in string.gmatch(s, "[^%.]+") do res[i] = tonumber(token) i = i + 1 if i

4 then break end end return resend

return p