Module:Footnotes/anchor id list/sandbox: Difference between revisions

Content deleted Content added
parse fascicle
fix fascicle logic
Line 505:
vol = params['volume'] or 'default';
local fascicle = params['fascicle'] -- some templates use "fascicle" to mean "subvolume"
vol =if fascicle andthen
local subvol = vol..'/'..fascicle or vol -- if fascicle is used, set volumesubvolume = "vol/fascicle"
if whitelist.wrapper_templates[template_name][subvol] then -- if subvolume exists, use it, otherwise fall back to volume
vol = subvol
end
end
if not whitelist.wrapper_templates[template_name][vol] then -- make sure this volume exists
vol = 'default'; -- doesn't exist, use default volume