{
"name": "wikipedia.org",
"regex": "((?:([a-z\\d-]{1,50})\\.)?(?:m\\.)?wikipedia\\.org)",
"articlePath": "/wiki/",
"scriptPath": "/w/",
"wikiFarm": "wikimedia",
"extensions": [
"CentralAuth"
]
}
name
- The hostname of the URL should match thename
.regex
- Match the URL against the regex$1
- Hostname and path betweenhttps://
andarticlePath
orscriptPath
$n
- If the hostname contains multiple wikis, additional groups are used to uniquely identify them
articlePath
- Article path of the project ishttps://
+$1
+articlePath
scriptPath
- Script path of the project ishttps://
+$1
+scriptPath
regexPaths
- If true,articlePath
andscriptPath
include group matches ofregex
wikiFarm
- Name of the wiki farm the project belongs to (wikimedia
,fandom
,miraheze
,wiki.gg
)extensions
- List of extensions providing useful API endpoints (CentralAuth
,Cargo
)urlSpaceReplacement
- Replacement for spaces in page names (default:_
; wikihow.com:-
)note
- Usage notes for the API of a specific project