Jump to content

Module:Is the arbitration proposed decision posted

From Calamity Wiki

{{#invoke:Is the arbitration proposed decision posted|main|''case name goes here''}} returns yes if the proposed decision of case name has been posted and the empty string if it has not. This is detected by the removal of an HTML comment which is included in the proposed decision template, but removed when the first principle is posted. The case name should not include the Wikipedia:Arbitration/Requests/Case/ prefix.



local p = {}

function p.main(frame)
	args = require('Module:Arguments').getArgs(frame)
	return mw.ustring.find(mw.title.new("Wikipedia:Arbitration/Requests/Case/" .. args[1] .. "/Proposed decision").content or "", "remove this comment", 1, true) and '' or 'yes'
end

return p