Module:WikidataIB/nolinks

From Viki
Jump to navigation Jump to search

Documentation for this module may be created at Module:WikidataIB/nolinks/doc

 1 local p ={}
 2 
 3 --[[
 4 The values here are the English sitelinks for items that should not be linked.
 5 These 36 are not definitive and may be altered to suit.
 6 --]]
 7 p.items = {
 8 	"Australia",
 9 	"Austria",
10 	"Belgium",
11 	"Canada",
12 	"China",
13 	"Denmark",
14 	"England",
15 	"France",
16 	"Germany",
17 	"Greece",
18 	"Hungary",
19 	"Iceland",
20 	"India",
21 	"Republic of Ireland",
22 	"Israel",
23 	"Italy",
24 	"Jamaica",
25 	"Japan",
26 	"Luxembourg",
27 	"Mexico",
28 	"Netherlands",
29 	"New Zealand",
30 	"Northern Ireland",
31 	"Norway",
32 	"Poland",
33 	"Portugal",
34 	"Russia",
35 	"Scotland",
36 	"South Africa",
37 	"Spain",
38 	"Sweden",
39 	"Switzerland",
40 	"Turkey",
41 	"United Kingdom",
42 	"UK",
43 	"United States",
44 	"USA",
45 	"Wales",
46 }
47 
48 --[[
49 This provides a convenient way to create a test whether an item is on the list.
50 --]]
51 p.itemsindex = {}
52 for i, v in ipairs(p.items) do
53 	p.itemsindex[v] = true
54 end
55 
56 return p