Content deleted Content added
No edit summary |
replace target_check() with call to target_check() in Module:Footnotes, which has full wrapper/whitelist functionality |
||
(One intermediate revision by one other user not shown) | |||
Line 1:
require('strict')
local code_open_tag = '<code class="cs1-code">'; -- cs1-code class defined in Module:Citation/CS1/styles.css
Line 12 ⟶ 11:
--[[--------------------------< T A R G E T _ C H E C K >------------------------------------------------------
check to see if target of harvc exists in the page somewhere. Uses the target check mechanism from Module:Footnotes
setting |ignore-errors=yes in {{harvc}} will override this check
]]
local function target_check (anchor_id, ignore)
local whitelist_check = require('Module:Footnotes').target_check
local args = {ignore=ignore, template='Harvc', show=true}
return whitelist_check(anchor_id, args)
end▼
end
Line 46 ⟶ 26:
--[[--------------------------< I S _ S E T >------------------------------------------------------------------
Whether variable is set or not. A
]]
Line 329 ⟶ 309:
table.insert (result, args.ps);
table.insert (result, args.err_msg);
if not is_set(args.err_msg) then
table.insert (result, '</span>');
|