Modul:Redirect hatnote: Unterschied zwischen den Versionen
Updated from sandbox: Migrated p._quote to Module:Hatnote
(Updated from sandbox: Rewrote p._quote to use mw.html, divided functions into helper functions and main functions, and tweaked getTitle) |
(Updated from sandbox: Migrated p._quote to Module:Hatnote) |
||
Zeile 22: | Zeile 22: | ||
local success, titleObj = pcall(mw.title.new, ...) | local success, titleObj = pcall(mw.title.new, ...) | ||
return success and titleObj or nil | return success and titleObj or nil | ||
end | end | ||
Zeile 81: | Zeile 64: | ||
local formattedRedirect = {} | local formattedRedirect = {} | ||
for k,v in pairs(redirect) do | for k,v in pairs(redirect) do | ||
formattedRedirect[k] = | formattedRedirect[k] = mHatnote.quote(v) | ||
end | end | ||
local text = { | local text = { |