Module:Internet Archive: Difference between revisions

Content deleted Content added
m Changed protection level for "Module:Internet Archive": High-risk Lua module: Bump to TE-protection to match Template:Internet Archive author, which has ~ 17k transclusions ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 42:
local sopt = nil -- search options (default: nil)
byabout = "Works by or about"
tagline = "at [[W:Internet Archive|Internet Archive]]"
urlhead = "https://archive.org/search.php?query="
mydate = "" -- birth-death date
Line 581:
-- For an alternative method, see sandbox revision dated 5:58 am, 15 October 2014
if argsbirth == "" or argsbirth == nil then
local birthtable = entity:formatPropertyValues( 'P569P4712' )
local birthsplit = mw.text.split(birthtable["value"], " ")
local l, count = mw.ustring.gsub(birthtable["value"], "%S+", "")
Line 600:
 
if argsdeath == "" or argsdeath == nil then
local deathtable = entity:formatPropertyValues( 'P570P4723' )
local deathsplit = mw.text.split(deathtable["value"], " ")
local l, count = mw.ustring.gsub(deathtable["value"], "%S+", "")