Global Lua Modules/Tempnotice

Tempnotice displays a notice for XX days.
== Syntax ==
* {{#invoke:Tempnotice|main|days=2|notice=This message will self-destruct in ...|template=true}}
* {{#invoke:Tempnotice|main|days=2| notice=selfdestruct|template=true}}
== Examples ==
The notice above will be blank after some days, for the sake of an example the one below will always show the same output.
{{#invoke:Tempnotice|main|days={{#expr:({{#time: U |now + 3 days }} -{{#time:U|{{REVISIONYEAR}}-{{REVISIONMONTH}}-{{REVISIONDAY}}}})/(3600*24) }}|notice=selfdestruct|template=true}}
Output: