Content deleted Content added
why is long like this |
undo my dumbness |
||
Line 12:
end
local function addlink(
local item = ll:tag('li')
item:wikitext(p .. '[' .. u .. ' ')
item:tag('abbr')
:attr('title', a)
end
Line 26 ⟶ 31:
local ret = mw.html.create('div')
:addClass('template-search')
:addClass('plainlist')
:addClass('plainlinks')
ll = ret:tag('ul')
addlink('//en.wikipedia.org/w/index.php?title=Special:Search&search=' .. ssenc, 'Wikipedia', 'wp')▼
if long then
addlink('', 'https://www.britannica.com/search?nop&query=' .. ssenc, 'Encyclopaedia Britannica', 'eb'
addlink('', 'https://www.bartleby.com/cgi-bin/texis/webinator/65search?query=' .. ssenc, 'Columbia Encyclopedia', 'co'
addlink('', 'https://www.google.com/search?q=site%3Ahttp%3A%2F%2Fwww.pcmag.com%2Fencyclopedia_term%2F+' .. ssenc, 'PC Magazine Encyclopedia over Google', 'gct'
addlink('', 'https://scienceworld.wolfram.com/search/index.cgi?as_q=' .. ssenc, 'World of Science', 'sw'
addlink('', 'https://babel.hathitrust.org/cgi/ls?field1=ocr;q1=' .. ssenc .. ';a=srchls;lmt=ft', 'HathiTrust', 'ht', ')')▼
else
▲ addlink('(', '//en.wikipedia.org/w/index.php?title=Special:Search&search=' .. ssenc, 'Wikipedia', 'wp', ' ')
addlink('', 'https://www.bing.com/search?q=' .. ssenc, 'Bing', 'b', ')')
end
▲ table.insert(list1, addlink('https://www.google.com/search?q=' .. ssenc, 'Google', 'g'))
▲ table.insert(list1, addlink('https://www.bing.com/search?q=site%3Awikipedia.org+' .. ssenc, 'Wikipedia over Bing', 'bwp'))
▲ table.insert(list1, addlink('https://www.bing.com/search?q=' .. ssenc, 'Bing', 'b'))
▲ addlink('https://www.britannica.com/search?nop&query=' .. ssenc, 'Encyclopaedia Britannica', 'eb'),
▲ addlink('https://www.bartleby.com/cgi-bin/texis/webinator/65search?query=' .. ssenc, 'Columbia Encyclopedia', 'co'),
▲ addlink('https://www.google.com/search?q=site%3Ahttp%3A%2F%2Fwww.pcmag.com%2Fencyclopedia_term%2F+' .. ssenc, 'PC Magazine Encyclopedia over Google', 'gct'),
▲ addlink('https://scienceworld.wolfram.com/search/index.cgi?as_q=' .. ssenc, 'World of Science', 'sw'),
▲ addlink('https://archive.org/search.php?query=' .. ssenc, 'Internet Archive', 'arc'),
▲ addlink('https://babel.hathitrust.org/cgi/ls?field1=ocr;q1=' .. ssenc .. ';a=srchls;lmt=ft', 'HathiTrust', 'ht')
▲ addlink('https://www.bing.com/search?q=' .. ssenc, 'Bing', 'b')
▲ ret:wikitext('(')
▲ :wikitext(')')
return frame:extensionTag{
|