Module:Find sources/templates/Find sources/sandbox
Appearance
![]() | This is the module sandbox page for Module:Find sources/templates/Find sources (diff). |
This module is generally no longer used. You probably want Module:Find sources/templates/Find general sources instead.
-- 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 avalailable 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,
}