Module talk:Wikidata2

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Testing getSiteLink[edit]

  • {{#invoke:Wikidata2|getSiteLink|enwiki|qid=Q25169}} → The Hitchhiker's Guide to the Galaxy
  • {{#invoke:Wikidata2|getSiteLink|dewiki|qid=Q25169}} → Per Anhalter durch die Galaxis (Romanreihe)
  • {{#invoke:Wikidata2|getSiteLink|{{BaseLang}}wiki|qid=Q25169}} → The Hitchhiker's Guide to the Galaxy
  • {{#invoke:Wikidata2|baseLang}} → en
  • {{BaseLang}} → en

also:

  • enwikivoyage
  • {{BaseLang}}wikivoyage
  • commonswiki

--RexxS (talk) 15:09, 3 February 2018 (UTC)[reply]

Where did this module come from?[edit]

Edit history claims that it was copied from enwiki, while enwiki edit history claims that it was copied from commons. --Jarekt (talk) 14:04, 12 November 2018 (UTC)[reply]

@Jarekt: en:Module:Wikidata (which is different from Module:Wikidata here). Thanks. Mike Peel (talk) 14:20, 12 November 2018 (UTC)[reply]
Mike Peel thanks for explanation. What is confusing is that the module is linked to en:Module:Wikidata2, which should be a copy of en:Module:Wikidata? --Jarekt (talk) 14:27, 12 November 2018 (UTC)[reply]
Yup, it looks like en:Module:Wikidata2 is a duplicate. I think it's due to someone trying to copy {{Wikidata Infobox}} over to enwp... Thanks. Mike Peel (talk) 15:01, 12 November 2018 (UTC)[reply]
BTW, I think Module:Wikidata is a fork of en:Module:Wd, but I'm not sure. Thanks. Mike Peel (talk) 15:03, 12 November 2018 (UTC)[reply]

require('strict')[edit]

{{Edit protected}} As per the new lua feature mentioned at m:Tech/News/2022/42, could require('Module:No globals') be replaced with require('strict') -- WOSlinker (talk) 17:21, 25 October 2022 (UTC)[reply]

✓ Done Jonesey95 (talk) 16:11, 26 October 2022 (UTC)[reply]