Module:Catalog lookup link/sandbox: Difference between revisions

Content deleted Content added
Postfix is not a word, but suffix is
add empty content
 
(3 intermediate revisions by 3 users not shown)
Line 26:
]]
 
require('Module:No globalsstrict');
local getArgs = require ('Module:Arguments').getArgs;
local lock_icons = { --icon classes are defined in Module:Citation/CS1/styles.css
['free'] = {'cs1id-lock-free', 'Freely accessible'},
['registration'] = {'cs1id-lock-registration', 'Free registration required'},
['limited'] = {'cs1id-lock-limited', 'Free access subject to limited trial, subscription normally required'},
['subscription'] = {'cs1id-lock-subscription', 'Paid subscription required'},
}
 
Line 195:
end
out_text = frame:callParserFunction('#tag', {'templatestyles', '', src=table.concat({
'Module:Citation/CS1',
mw.ustring.match(frame:getTitle(), '/sandbox$') or '',
'/styles.css',
})});
if is_set (args['list-leadout']) then
out_text = table.concat ({out_text, label, mw.text.listToText (result, list_separator, list_leadout)});
else
out_text = table.concat ({out_text, label, table.concat (result, list_separator)});
end
 
end --is_set (args[1])
 
return out_text
end