模組討論:NoteTA
跳至導覽
跳至搜尋
不建議定義全局變量
儘管全局變量不會拋出錯誤,但是影響運行穩定,可能存在潛在的問題,還是建議應該使用局部變量,包括函數也應該存到局部變量中。——SolidBlock(討論) 2021年11月24日 (三) 17:51 (CST)
編輯請求 - Bhsd - 2022.12.09
由Bhsd提出的對模塊:NoteTA的編輯請求:
- 狀態: 完成
將以下內容:
local hash = require( 'Module:Crc32lua' ).crc32( mw.dumpObject( args ) )修改為:
if frame:callParserFunction('#var', 'noteta-'..name) == '1' then
return ''
end
frame:callParserFunction('#vardefine', 'noteta-'..name, '1')
local hash = 0避免重複調用同一個轉換組。————移動版用戶 Bhsd 2022年12月10日 (六) 06:59 (CST)
- Done. —— ほしみ 2022年12月10日 (六) 20:47 (CST)