{{subst:U:GuoPC/FA}}
)。操作申請版申請刪除已修復錨點的討論頁。我為什麼要寫到模塊裡呢
僅存在條目討論頁,直接列出各頁面名稱,中間以@
隔開。如:
{{subst:U:GuoPC/FA|1@2@3}}
以下討論頁中提到的錯誤錨點已在對應條目中修復,請求刪除:
若存在模板討論頁,在對應頁面名稱前加上T:
或t:
即可。如2
是一個模板討論頁:
{{subst:U:GuoPC/FA|1@t:2@3}}
以下討論頁中提到的錯誤錨點已在對應條目或模板中修復,請求刪除:
若需要區分錨點已由其他編輯者修復,在第二個參數填入1
即可。如:
{{subst:U:GuoPC/FA|1@2@t:3|1}}
以下討論頁中提到的錯誤錨點之前已由其他編輯者修復,一併請求刪除:
{{subst:U:GuoPC/FA|t:1@2}} {{subst:U:GuoPC/FA|3@4@5|1}} 感謝。——~~~~
以下討論頁中提到的錯誤錨點已在對應條目或模板中修復,請求刪除:
以下討論頁中提到的錯誤錨點之前已由其他編輯者修復,一併請求刪除:
local p = {} function p.main( frame ) local args = frame.args return p._main( args ) end function p._main( args ) local li = '' local r = '' local list = args[1] local listline = mw.text.split( list, '@' ) local aflag = false local tflag = false local isothers = false if args[2] == '1' then isothers = true end for k, item in ipairs( listline ) do if mw.ustring.sub( item, 1, 2 ) == 'T:' or mw.ustring.sub( item, 1, 2 ) == 't:' then li = li .. '* [[Template talk:' .. mw.ustring.sub( item, 3 ) .. ']]\n' tflag = true else li = li .. '* [[Talk:' .. item .. ']]\n' aflag = true end end if isothers == true then r = r .. '以下討論頁中提到的錯誤錨點之前已由其他編輯者修復,一併請求刪除:\n' elseif aflag == true then if tflag == true then r = r .. '以下討論頁中提到的錯誤錨點已在對應條目或模板中修復,請求刪除:\n' else r = r .. '以下討論頁中提到的錯誤錨點已在對應條目中修復,請求刪除:\n' end else r = r .. '以下討論頁中提到的錯誤錨點已在對應模板中修復,請求刪除:\n' end r = r .. li return r end return p