Module:Search/sandbox: Difference between revisions

Content deleted Content added
ok here we go here is some rewreite
remove that bit about a middle
 
(One intermediate revision by the same user not shown)
Line 27:
local search_phrase_encoded = urlencode(args[1] or 'example phrase')
local short_module_args = {
class = 'template-search-sand plainlinks',
make_link('//en.wikipedia.org/w/index.php?title=Special:Search&search=' .. search_phrase_encoded, 'Wikipedia', 'wp'),
make_link('https://www.google.com/search?q=' .. search_phrase_encoded, 'Google', 'g'),
Line 33:
}
local long_module_args = {
class = 'template-search-sand plainlinks',
make_link('//en.wikipedia.org/w/index.php?title=Special:Search&search=' .. search_phrase_encoded, 'Wikipedia', 'wp'),
make_link('https://www.google.com/search?q=site%3Awikipedia.org+' .. search_phrase_encoded, 'Wikipedia over Google', 'gwp'),
make_link('https://www.google.com/search?q=' .. search_phrase_encoded, 'Google', 'g'),
make_link('https://www.bing.com/search?q=site%3Awikipedia.org+' .. search_phrase_encoded, 'Wikipedia over Bing', 'bwp'),
make_link('https://www.bing.com/search?q=' .. search_phrase_encoded, 'Bing', 'b', 'template-search-long-middle', ' |'),
make_link('https://www.britannica.com/search?nop&query=' .. search_phrase_encoded, 'Encyclopaedia Britannica', 'eb'),
make_link('https://www.bartleby.com/cgi-bin/texis/webinator/65search?query=' .. search_phrase_encoded, 'Columbia Encyclopedia', 'co'),