Content deleted Content added
m Changed protection level for "Module:Search": Highly visible module ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite)) |
templatestyles |
||
Line 13:
local function addlink(p, u, a, t, s)
local item = ll:tag('li
item:wikitext(p .. '[' .. u .. ' ')
item:tag('abbr')
:attr('title', a)
:wikitext(t)
item:wikitext(']' .. s)
Line 33 ⟶ 30:
local ret = mw.html.create('div')
:addClass('template-search')
:addClass('plainlist')
:addClass('plainlinks')
▲ ll = ret:tag('ul'):css('display', 'inline')
addlink('(', '//en.wikipedia.org/w/index.php?title=Special:Search&search=' .. ssenc, 'Wikipedia', 'wp', ' ')
Line 47 ⟶ 44:
addlink('', 'https://www.bing.com/search?q=' .. ssenc, 'Bing', 'b', ' | ')
addlink('', 'https://www.britannica.com/search?nop&query=' .. ssenc, 'Encyclopaedia Britannica', 'eb', ' ')
addlink('', '
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('', '
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', ')')
Line 56 ⟶ 53:
end
return
name = 'templatestyles', args = { src = 'Module:Search/styles.css' }
} .. tostring(ret)
end
|