「模組:Redirect」:修訂歷史

比對選擇的版本差異:選擇要比對修訂版本的單選按鈕並點選底部的按鈕進行比對。
符號說明:(目前) = 與最新的修訂版本比對,(前筆) = 與前一筆修訂版本比對, = 次要修訂。

2024年6月15日 (星期六)

  • 目前前筆 20:312024年6月15日 (六) 20:31LarryChou 留言 貢獻 4,349位元組 +4,349 建立內容為「-- This module provides functions for getting the target of a redirect page. local p = {} -- Gets a mw.title object, using pcall to avoid generating script errors if we -- are over the expensive function count limit (among other possible causes). local function getTitle(...) local success, titleObj = pcall(mw.title.new, ...) if success then return titleObj else return nil end end -- Gets the name of a page that a redirect leads to, or nil if it is…」的新頁面