Module:wikipedia: Difference between revisions
Created page with "local export = {} local function process_links(linkdata, prefix, name, wmlang, sc) prefix = prefix .. ":" .. (wmlang:getCode() == "en" and "" or wmlang:getCode() .. ":")..." |
No edit summary |
||
| (13 intermediate revisions by the same user not shown) | |||
| Line 17: | Line 17: | ||
link.term = prefix .. link.term | link.term = prefix .. link.term | ||
link.tr = "-" | link.tr = "-" | ||
table.insert(iplinks, "<span style=\"display: none; clear: both; border-top: 2px dotted #AAAAAA; margin-top: 2em;\"> | local short = "[[" .. link.term .. "|" .. ipalt or link.term .. "]]" | ||
table.insert(links, | table.insert(iplinks, "<span style=\"display: none; clear: both; border-top: 2px dotted #AAAAAA; margin-top: 2em;\">" .. short .. "</span>") | ||
table.insert(links, "<b lang='" .. wmlang:getCode() .. "' class='tr Latn'>" .. short .. "</b>") | |||
end | end | ||
| Line 27: | Line 28: | ||
function export.wikipedia_box(frame) | function export.wikipedia_box(frame) | ||
local params = { | local params = { | ||
[1] = {}, | [1] = {default = "wikipedia"}, | ||
[2] = {}, | [2] = {}, | ||