Jump to content

Module:Find sources/templates/Find sources/sandbox

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by 84.250.14.116 (talk) at 14:21, 17 August 2021 (Fix grammar: "available"). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
-- Links
local links = {
	{
		code = 'google',
		display = 'Google',
		separator = ' (',
	},
	{
		code = 'google books',
		display = 'books',
	},
	{
		code = 'google news',
		display = 'news',
	},
	{
		code = 'google newspapers',
		display = 'newspapers',
	},
	{
		code = 'google scholar',
		display = 'scholar',
	},
	{
		code = 'google free images',
		display = 'free images',
	},
	{
		code = 'wikipedia reference search',
		display = 'WP refs',
		afterDisplay = ')',
	},
	{
		code = 'free news sources',
		display = 'FENS',
	},
	{
		code = 'jstor',
		display = 'JSTOR',
	},
}

-- Add a newspaper of record, if available for this article.
local newspaperOfRecord = mw.text.trim(mw.getCurrentFrame():expandTemplate{ title = 'Newspaper of record' })
if newspaperOfRecord ~= '' then
	table.insert(links, {code = newspaperOfRecord})
end

-- Add other links
table.insert(links, {
	code = 'wikipedia library',
	display = 'TWL',
})

return {
	-- Blurb
	-- $1 is the intro link, and $2 represents the other links.
	blurb = "''Find sources:'' $1$2",
	links = links,
}