mediawiki-projects-list 4.3.1 → 4.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.d.ts CHANGED
@@ -1,5 +1,21 @@
1
1
  declare module 'mediawiki-projects-list' {
2
2
 
3
+ /** A wiki farm */
4
+ export type WikiFarm = (
5
+ "biligame" |
6
+ "fandom" |
7
+ "huijiwiki" |
8
+ "miraheze" |
9
+ "mywikis" |
10
+ "shoutwiki" |
11
+ "telepedia" |
12
+ "wiki.gg" |
13
+ "wikiforge" |
14
+ "wikimedia" |
15
+ "wikitide" |
16
+ null
17
+ );
18
+
3
19
  /** A MediaWiki project */
4
20
  export type WikiProject = {
5
21
  /** Hostname of the project */
@@ -26,7 +42,7 @@ declare module 'mediawiki-projects-list' {
26
42
  /** Whether the paths include matches of the regex */
27
43
  regexPaths: boolean;
28
44
  /** Wiki farm of the project */
29
- wikiFarm: ("biligame" | "fandom" | "huijiwiki" | "miraheze" | "shoutwiki" | "telepedia" | "wiki.gg" | "wikiforge" | "wikimedia") | null;
45
+ wikiFarm: WikiFarm;
30
46
  /** List of extensions providing useful API endpoints */
31
47
  extensions: ("Cargo" | "CentralAuth" | "OAuth")[];
32
48
  /** Replacement for spaces in the article URL */
package/index.js CHANGED
@@ -1,6 +1,11 @@
1
1
  const {properties: {wikiProjects: {items: {properties: wikiProjectSchema}}, frontendProxies: {items: {properties: frontendProxySchema}}}} = require('./projects-schema.json');
2
2
  const PROJECTS = require('./projects.json');
3
3
 
4
+ /**
5
+ * A wiki farm
6
+ * @typedef {"biligame"|"fandom"|"huijiwiki"|"miraheze"|"mywikis"|"shoutwiki"|"telepedia"|"wiki.gg"|"wikiforge"|"wikimedia"|"wikitide"|null} WikiFarm
7
+ */
8
+
4
9
  /**
5
10
  * A MediaWiki project
6
11
  * @typedef {object} WikiProject
@@ -15,7 +20,7 @@ const PROJECTS = require('./projects.json');
15
20
  * @property {string} idString.regex - Regex to match the id string
16
21
  * @property {string[]} idString.scriptPaths - How to turn the group matches of the id string regex into an URL to the script path, index based on group matches
17
22
  * @property {boolean} regexPaths - Whether the paths include matches of the regex
18
- * @property {?("biligame"|"fandom"|"huijiwiki"|"miraheze"|"shoutwiki"|"telepedia"|"wiki.gg"|"wikiforge"|"wikimedia")} wikiFarm - Wiki farm of the project
23
+ * @property {WikiFarm} wikiFarm - Wiki farm of the project
19
24
  * @property {("Cargo"|"CentralAuth"|"OAuth")[]} extensions - List of extensions providing useful API endpoints
20
25
  * @property {string} urlSpaceReplacement - Replacement for spaces in the article URL
21
26
  * @property {?string} note - Note about the specific project
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mediawiki-projects-list",
3
- "version": "4.3.1",
3
+ "version": "4.5.0",
4
4
  "type": "commonjs",
5
5
  "description": "List of MediaWiki projects for use in discord-wiki-bot",
6
6
  "main": "index.js",
@@ -177,11 +177,13 @@
177
177
  "fandom",
178
178
  "huijiwiki",
179
179
  "miraheze",
180
+ "mywikis",
180
181
  "shoutwiki",
181
182
  "telepedia",
182
183
  "wiki.gg",
183
184
  "wikiforge",
184
- "wikimedia"
185
+ "wikimedia",
186
+ "wikitide"
185
187
  ],
186
188
  "default": null
187
189
  },
package/projects.json CHANGED
@@ -58,7 +58,8 @@
58
58
  "regex": "((?:www\\.)?7kingdoms\\.ru)",
59
59
  "articlePath": "/wiki/",
60
60
  "scriptPath": "/w/",
61
- "fullScriptPath": "https://7kingdoms.ru/w/"
61
+ "fullScriptPath": "https://7kingdoms.ru/w/",
62
+ "note": "Requires cookies and JS to be accessed."
62
63
  },
63
64
  {
64
65
  "name": "amiibopedia.com",
@@ -538,13 +539,6 @@
538
539
  "Cargo"
539
540
  ]
540
541
  },
541
- {
542
- "name": "flyff-universe-wiki.com",
543
- "regex": "(flyff-universe-wiki\\.com)",
544
- "articlePath": "/wiki/",
545
- "scriptPath": "/",
546
- "fullScriptPath": "https://flyff-universe-wiki.com/"
547
- },
548
542
  {
549
543
  "name": "gbf.wiki",
550
544
  "regex": "((?:www\\.)?gbf\\.wiki)",
@@ -558,9 +552,14 @@
558
552
  {
559
553
  "name": "glitchcity.wiki",
560
554
  "regex": "((?:www\\.)?glitchcity\\.wiki)",
561
- "articlePath": "/",
562
- "scriptPath": "/",
563
- "fullScriptPath": "https://glitchcity.wiki/"
555
+ "articlePath": "/wiki/",
556
+ "scriptPath": "/w/",
557
+ "fullScriptPath": "https://glitchcity.wiki/w/",
558
+ "wikiFarm": "miraheze",
559
+ "extensions": [
560
+ "CentralAuth",
561
+ "OAuth"
562
+ ]
564
563
  },
565
564
  {
566
565
  "name": "goldensunwiki.net",
@@ -733,18 +732,6 @@
733
732
  ]
734
733
  }
735
734
  },
736
- {
737
- "name": "lgbtqia.wiki",
738
- "regex": "((?:www\\.)?lgbtqia\\.wiki)",
739
- "articlePath": "/wiki/",
740
- "scriptPath": "/w/",
741
- "fullScriptPath": "https://www.lgbtqia.wiki/w/",
742
- "wikiFarm": "miraheze",
743
- "extensions": [
744
- "CentralAuth",
745
- "OAuth"
746
- ]
747
- },
748
735
  {
749
736
  "name": "librewiki.net",
750
737
  "regex": "(librewiki\\.net)",
@@ -769,8 +756,8 @@
769
756
  "name": "lostmediawiki.com",
770
757
  "regex": "((?:www\\.)?lostmediawiki\\.com)",
771
758
  "articlePath": "/",
772
- "scriptPath": "/",
773
- "fullScriptPath": "https://lostmediawiki.com/"
759
+ "scriptPath": "/w/",
760
+ "fullScriptPath": "https://lostmediawiki.com/w/"
774
761
  },
775
762
  {
776
763
  "name": "lotro-wiki.com",
@@ -831,6 +818,20 @@
831
818
  "OAuth"
832
819
  ]
833
820
  },
821
+ {
822
+ "name": "medievil.wiki",
823
+ "regex": "((?:www\\.)?medievil\\.wiki)",
824
+ "articlePath": "/w/",
825
+ "scriptPath": "/",
826
+ "fullScriptPath": "https://medievil.wiki/"
827
+ },
828
+ {
829
+ "name": "megatenwiki.com",
830
+ "regex": "((?:www\\.)?megatenwiki\\.com)",
831
+ "articlePath": "/wiki/",
832
+ "scriptPath": "/",
833
+ "fullScriptPath": "https://megatenwiki.com/"
834
+ },
834
835
  {
835
836
  "name": "metapedia.org",
836
837
  "regex": "(([a-z\\d-]{1,50})\\.metapedia\\.org)",
@@ -932,23 +933,37 @@
932
933
  }
933
934
  },
934
935
  {
935
- "name": "mrlove.wiki",
936
- "regex": "(mrlove\\.wiki)",
936
+ "name": "mutecity.org",
937
+ "regex": "((?:www\\.)?mutecity\\.org)",
937
938
  "articlePath": "/wiki/",
938
939
  "scriptPath": "/w/",
939
- "fullScriptPath": "https://mrlove.wiki/w/",
940
- "wikiFarm": "miraheze",
941
- "extensions": [
942
- "CentralAuth",
943
- "OAuth"
944
- ]
940
+ "fullScriptPath": "https://mutecity.org/w/"
945
941
  },
946
942
  {
947
- "name": "mutecity.org",
948
- "regex": "((?:www\\.)?mutecity\\.org)",
943
+ "name": "mywikis.eu",
944
+ "regex": "(([a-z\\d-]{1,50})\\.mywikis\\.eu)",
949
945
  "articlePath": "/wiki/",
950
946
  "scriptPath": "/w/",
951
- "fullScriptPath": "https://mutecity.org/w/"
947
+ "idString": {
948
+ "regex": "([a-z\\d-]{1,50})",
949
+ "scriptPaths": [
950
+ "https://$1.mywikis.eu/w/"
951
+ ]
952
+ },
953
+ "wikiFarm": "mywikis"
954
+ },
955
+ {
956
+ "name": "mywikis.wiki",
957
+ "regex": "(([a-z\\d-]{1,50})\\.mywikis\\.wiki)",
958
+ "articlePath": "/wiki/",
959
+ "scriptPath": "/w/",
960
+ "idString": {
961
+ "regex": "([a-z\\d-]{1,50})",
962
+ "scriptPaths": [
963
+ "https://$1.mywikis.wiki/w/"
964
+ ]
965
+ },
966
+ "wikiFarm": "mywikis"
952
967
  },
953
968
  {
954
969
  "name": "newchallenger.net",
@@ -1007,6 +1022,13 @@
1007
1022
  ]
1008
1023
  }
1009
1024
  },
1025
+ {
1026
+ "name": "paxdeimmo.wiki",
1027
+ "regex": "((?:www\\.)?paxdeimmo\\.wiki)",
1028
+ "articlePath": "/wiki/",
1029
+ "scriptPath": "/",
1030
+ "fullScriptPath": "https://paxdeimmo.wiki/"
1031
+ },
1010
1032
  {
1011
1033
  "name": "pcgamingwiki.com",
1012
1034
  "regex": "((?:www\\.)?pcgamingwiki.com)",
@@ -1101,16 +1123,11 @@
1101
1123
  },
1102
1124
  {
1103
1125
  "name": "polandballwiki.com",
1104
- "regex": "((?:([a-z-]{2,12})\\.)?polandballwiki\\.com)",
1126
+ "regex": "((?:www\\.)?polandballwiki\\.com)",
1105
1127
  "articlePath": "/wiki/",
1106
1128
  "scriptPath": "/w/",
1107
- "idString": {
1108
- "regex": "([a-z-]{2,12})",
1109
- "scriptPaths": [
1110
- "https://$1.polandballwiki.com/w/"
1111
- ]
1112
- },
1113
- "wikiFarm": "miraheze",
1129
+ "fullScriptPath": "https://www.polandballwiki.com/w/",
1130
+ "wikiFarm": "wikitide",
1114
1131
  "extensions": [
1115
1132
  "CentralAuth",
1116
1133
  "OAuth"
@@ -1156,6 +1173,13 @@
1156
1173
  "scriptPath": "/",
1157
1174
  "fullScriptPath": "https://quelmarwiki.com/"
1158
1175
  },
1176
+ {
1177
+ "name": "rammwiki.net",
1178
+ "regex": "((?:www\\.)?rammwiki\\.net)",
1179
+ "articlePath": "/wiki/",
1180
+ "scriptPath": "/www/w/",
1181
+ "fullScriptPath": "https://rammwiki.net/www/w/"
1182
+ },
1159
1183
  {
1160
1184
  "name": "rarewiki.com",
1161
1185
  "regex": "((?:www\\.)?rarewiki\\.com)",
@@ -1517,6 +1541,13 @@
1517
1541
  "scriptPath": "/mediawiki/",
1518
1542
  "fullScriptPath": "https://ukikipedia.net/mediawiki/"
1519
1543
  },
1544
+ {
1545
+ "name": "vetpetmon.com",
1546
+ "regex": "((?:www\\.)?vetpetmon\\.com)",
1547
+ "articlePath": "/snazpedia/index.php/",
1548
+ "scriptPath": "/snazpedia/",
1549
+ "fullScriptPath": "https://www.vetpetmon.com/snazpedia/"
1550
+ },
1520
1551
  {
1521
1552
  "name": "vikidia.org",
1522
1553
  "regex": "((?:([a-z-]{2,12})\\.)vikidia\\.org)",
@@ -1618,6 +1649,20 @@
1618
1649
  },
1619
1650
  "wikiFarm": "biligame"
1620
1651
  },
1652
+ {
1653
+ "name": "wiki.bravofleet.com",
1654
+ "regex": "(wiki\\.bravofleet\\.com)",
1655
+ "articlePath": "/index.php/",
1656
+ "scriptPath": "/",
1657
+ "fullScriptPath": "https://wiki.bravofleet.com/"
1658
+ },
1659
+ {
1660
+ "name": "wiki.eveuniversity.org",
1661
+ "regex": "(wiki\\.eveuniversity\\.org)",
1662
+ "articlePath": "/",
1663
+ "scriptPath": "/",
1664
+ "fullScriptPath": "https://wiki.eveuniversity.org/"
1665
+ },
1621
1666
  {
1622
1667
  "name": "wiki.factorio.com",
1623
1668
  "regex": "(wiki\\.factorio\\.com)",
@@ -1713,6 +1758,13 @@
1713
1758
  "scriptPath": "/vita/",
1714
1759
  "fullScriptPath": "https://wiki.henkaku.xyz/vita/"
1715
1760
  },
1761
+ {
1762
+ "name": "wiki.holdfastgame.com",
1763
+ "regex": "(wiki\\.holdfastgame\\.com)",
1764
+ "articlePath": "/",
1765
+ "scriptPath": "/",
1766
+ "fullScriptPath": "https://wiki.holdfastgame.com/"
1767
+ },
1716
1768
  {
1717
1769
  "name": "wiki.hypixel.net",
1718
1770
  "regex": "(wiki\\.hypixel\\.net)",
@@ -1741,6 +1793,13 @@
1741
1793
  "scriptPath": "/",
1742
1794
  "fullScriptPath": "https://wiki.london2038.com/"
1743
1795
  },
1796
+ {
1797
+ "name": "wiki.mabinogiworld.com",
1798
+ "regex": "(wiki\\.mabinogiworld\\.com)",
1799
+ "articlePath": "/view/",
1800
+ "scriptPath": "/",
1801
+ "fullScriptPath": "https://wiki.mabinogiworld.com/"
1802
+ },
1744
1803
  {
1745
1804
  "name": "wiki.melvoridle.com",
1746
1805
  "regex": "(wiki\\.melvoridle\\.com)",
@@ -1856,12 +1915,20 @@
1856
1915
  "scriptPath": "/w/",
1857
1916
  "fullScriptPath": "https://wiki.ポケモン.com/w/"
1858
1917
  },
1918
+ {
1919
+ "name": "wiki.zorua.top",
1920
+ "regex": "(wiki\\.zorua\\.top)",
1921
+ "articlePath": "/wiki/",
1922
+ "scriptPath": "/",
1923
+ "fullScriptPath": "https://wiki.zorua.top/"
1924
+ },
1859
1925
  {
1860
1926
  "name": "wikiapiary.com",
1861
1927
  "regex": "((?:www\\.)?wikiapiary\\.com)",
1862
1928
  "articlePath": "/wiki/",
1863
1929
  "scriptPath": "/w/",
1864
- "fullScriptPath": "https://wikiapiary.com/w/"
1930
+ "fullScriptPath": "https://wikiapiary.com/w/",
1931
+ "note": "Has Wiki-Bot blocked."
1865
1932
  },
1866
1933
  {
1867
1934
  "name": "wikibooks.org",
@@ -2054,6 +2121,23 @@
2054
2121
  "OAuth"
2055
2122
  ]
2056
2123
  },
2124
+ {
2125
+ "name": "wikitide.com",
2126
+ "regex": "(([a-z\\d-]{1,50})\\.wikitide\\.com)",
2127
+ "articlePath": "/wiki/",
2128
+ "scriptPath": "/w/",
2129
+ "idString": {
2130
+ "regex": "([a-z\\d-]{1,50})",
2131
+ "scriptPaths": [
2132
+ "https://$1.wikitide.com/w/"
2133
+ ]
2134
+ },
2135
+ "wikiFarm": "wikitide",
2136
+ "extensions": [
2137
+ "CentralAuth",
2138
+ "OAuth"
2139
+ ]
2140
+ },
2057
2141
  {
2058
2142
  "name": "wikiversity.org",
2059
2143
  "regex": "((?:([a-z\\d-]{1,50})\\.)?(?:m\\.)?wikiversity\\.org)",