Module:BaseDomain: Revision history

From Trans People Together Wiki

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

8 May 2025

  • curprev 17:4717:47, 8 May 2025 Admin talk contribs 892 bytes +892 Created page with "-- Module:BaseDomain local p = {} -- frame.args[1] or frame.args.url is the URL to process function p.extract(frame) local url = frame.args[1] or frame.args.url or '' local host -- Try to parse with mw.uri (MediaWiki ≥1.35) local ok, uri = pcall(mw.uri.new, url) if ok and uri and uri.host then host = uri.host else -- Fallback: grab everything after scheme:// up to the next / host = url:match('^%w+://([^/]+)') or url..."