Moduli:title/makeTitle

Nga Enciklopedi Puro Shqiptare
Versioni i datës 10 gusht 2025 08:32 nga Kujdestari7 (diskuto | kontribute) (Krijoi faqen me "local make_title = mw.title.makeTitle --[==[ A modified version of {mw.title.makeTitle} that fixes a bug which causes certain inputs to generate title objects for the empty string. Such empty string titles do not represent a valid page, and are broken in various ways (e.g. attempting to access certain keys results in an error); see phab:T240678.]==] return function(ns, title, fragment, interwiki) local title = make_title(ns, title, fragment, interwiki) return title...")
(ndrysh) ← Version më i vjetër | shikoni versionin e tanishëm (ndrysh) | Version më i ri → (ndrysh)
Jump to navigation Jump to search

Udhëzuesi për këtë modul mund të krijohet te Moduli:title/makeTitle/doc.

local make_title = mw.title.makeTitle

--[==[
A modified version of {mw.title.makeTitle} that fixes a bug which causes certain inputs to generate title objects for the empty string. Such empty string titles do not represent a valid page, and are broken in various ways (e.g. attempting to access certain keys results in an error); see [[phab:T240678]].]==]
return function(ns, title, fragment, interwiki)
	local title = make_title(ns, title, fragment, interwiki)
	return title and title.prefixedText ~= "" and title or nil
end