Difference between revisions of "Module:Find sources/templates/Find sources"

From blackwiki
Jump to navigation Jump to search
blackwiki>Mr. Stradivarius
(comment out most of the links to make it easier to prototype the main module)
blackwiki>Mr. Stradivarius
(use named keys to make the code here clearer)
Line 1: Line 1:
 
return {
 
return {
 +
-- Blurb
 +
-- $1 is the intro link, and $2 represents the other links.
 
blurb = "''Find sources:'' $1 – $2",
 
blurb = "''Find sources:'' $1 – $2",
introLink = {'google'},
+
 
 +
-- Links
 +
introLink = {
 +
code = 'google'
 +
},
 
links = {
 
links = {
{'google news'},
+
{
--[[
+
code = 'google news',
{'google newspapers'},
+
display = 'news'
{'google books'},
+
},
{'google scholar'},
+
{
{'jstor'},
+
code = 'google newspapers',
{'google free images'}
+
display = 'newspapers'
--]]
+
},
 +
{
 +
code = 'google books',
 +
display = 'books'
 +
},
 +
{
 +
code = 'google scholar',
 +
display = 'scholar'
 +
},
 +
{
 +
code = 'jstor',
 +
display = 'JSTOR'
 +
},
 +
{
 +
code = 'google free images',
 +
display = 'free images'
 +
}
 
}
 
}
 
}
 
}

Revision as of 11:31, 26 September 2014


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

	-- Links
	introLink = {
		code = 'google'
	},
	links = {
		{
			code = 'google news',
			display = 'news'
		},
		{
			code = 'google newspapers',
			display = 'newspapers'
		},
		{
			code = 'google books',
			display = 'books'
		},
		{
			code = 'google scholar',
			display = 'scholar'
		},
		{
			code = 'jstor',
			display = 'JSTOR'
		},
		{
			code = 'google free images',
			display = 'free images'
		}
	}
}