Jump to content

Module:Official website and Module:Official website/sandbox: Difference between pages

(Difference between pages)
Page 1
Page 2
Content deleted Content added
remove mobile and flash options, 50 uses in 300k does not support the additional complexity
 
update to use new mw.wikibase API changes
 
Line 107: Line 107:
ret[#ret + 1] = '[[File:OOjs UI icon edit-ltr-progressive.svg |frameless |text-top |10px |alt=Edit this at Wikidata |link=https://www.wikidata.org/wiki/' .. qid .. '#P856|Edit this at Wikidata]]'
ret[#ret + 1] = '[[File:OOjs UI icon edit-ltr-progressive.svg |frameless |text-top |10px |alt=Edit this at Wikidata |link=https://www.wikidata.org/wiki/' .. qid .. '#P856|Edit this at Wikidata]]'
end
end
end
if options.format == 'flash' then
ret[#ret + 1] = mw.getCurrentFrame():expandTemplate{
title = 'Color',
args = {'#505050', '(Requires [[Adobe Flash Player]])'}
}
end
if options.mobile then
ret[#ret + 1] = '(' .. makeUrl(options.mobile, 'Mobile') .. ')'
end
end
return table.concat(ret, ' ')
return table.concat(ret, ' ')
Line 137: Line 146:
url = url,
url = url,
wikidataurl = wikidataurl,
wikidataurl = wikidataurl,
display = args[2] or args.name or 'Official website'
display = args[2] or args.name or 'Official website',
format = args.format,
mobile = args.mobile
}
}
return formattedUrl .. renderTrackingCategory(url, wikidataurl)
return formattedUrl .. renderTrackingCategory(url, wikidataurl)