Module:Commons link: Difference between revisions

m
1 revision imported from wikipedia:Module:Commons_link
(use CSS instead of HTML for italic/bold formatting)
 
m (1 revision imported from wikipedia:Module:Commons_link)
 
(2 intermediate revisions by 2 users not shown)
Line 1:
require('Module:No globals')
 
-- Module to find commons galleries and categories based on wikidata entries
local getArgs = require('Module:Arguments').getArgs
Line 491 ⟶ 493:
end
if fetchCategory then
local cat_wikidata, cat_consistent = p._hasCategoryConsistent(qid,true)
if not fetchGallery or (cat_consistent and cat_wikidata) then
return selectTrackingCat(categoryTrackingCats,cat_wikidata,
Line 503 ⟶ 505:
 
local function _createFormatting(args)
local formatting = {}
formatting.linktext = args.linktext
formatting.lcfirst = yesNo(args.lcfirst)
verified
2,504

edits