Module:Url/doc

From Puella Magi Wiki
Jump to navigation Jump to search

This is the documentation page for Module:Url.

A utility module for dealing with URLs.

Usage

local url = require('Module:Url')
local p = {}

function p.main(frame)
	local hostname = url.hostname(frame.args[1])
	-- Main module code goes here.
end

return p

Hostanme

Extract hostname from the URL.

{{#invoke:Url|hostname|https://www.example.com/}}