Jump to content

Module:Harvc and Module:Harvc/sandbox: Difference between pages

(Difference between pages)
Page 1
Page 2
Content deleted Content added
replace target_check() with call to target_check() in Module:Footnotes, which has full wrapper/whitelist functionality
 
only display target error if there is no argument error message
 
Line 18: Line 18:


local function target_check (anchor_id, ignore)
local function target_check (anchor_id, ignore)
local whitelist_check = require('Module:Footnotes').target_check
local whitelist_check = require('Module:Footnotes/sandbox').target_check
local args = {ignore=ignore, template='Harvc', show=true}
local args = {ignore=ignore, template='Harvc', show=true}
return whitelist_check(anchor_id, args)
return whitelist_check(anchor_id, args)