Jump to content

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

(Difference between pages)
Page 1
Page 2
Content deleted Content added
boldly add group param to sfn/sfnm – I tested this in my sandbox/testcases and everything looks fine, but please revert if this breaks things
 
Module:Footnotes/anchor_id_list/sandbox
 
Line 37: Line 37:
local function target_check (anchor_id, args)
local function target_check (anchor_id, args)
local namespace = mw.title.getCurrentTitle().namespace;
local namespace = mw.title.getCurrentTitle().namespace;
local anchor_id_list_module = mw.loadData ('Module:Footnotes/anchor_id_list');
local anchor_id_list_module = mw.loadData ('Module:Footnotes/anchor_id_list/sandbox');
local anchor_id_list = anchor_id_list_module.anchor_id_list;
local anchor_id_list = anchor_id_list_module.anchor_id_list;
local article_whitelist = anchor_id_list_module.article_whitelist;
local article_whitelist = anchor_id_list_module.article_whitelist;
Line 118: Line 118:
YYYY
YYYY
n.d.
n.d.
n.d.- (This will be suffixed by a letter when using author-date citations for the same author.)
nd
nd
c. YYYY
c. YYYY
Line 130: Line 131:
'^%d%d%d%d?%l?$',
'^%d%d%d%d?%l?$',
'^n%.d%.%l?$',
'^n%.d%.%l?$',
'^n%.d%.%-%l$',
'^nd%l?$',
'^nd%l?$',
'^c%. %d%d%d%d?%l?$',
'^c%. %d%d%d%d?%l?$',