<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="de">
	<id>https://firestone-idle-rpg.de/Modul:Tempnotice/history?feed=atom</id>
	<title>Modul:Tempnotice - Versionsgeschichte</title>
	<link rel="self" type="application/atom+xml" href="https://firestone-idle-rpg.de/Modul:Tempnotice/history?feed=atom"/>
	<link rel="alternate" type="text/html" href="https://firestone-idle-rpg.de/Modul:Tempnotice/history"/>
	<updated>2026-08-15T19:01:20Z</updated>
	<subtitle>Versionsgeschichte dieser Seite in Firestone Idle RPG Wiki</subtitle>
	<generator>MediaWiki 1.44.2</generator>
	<entry>
		<id>https://firestone-idle-rpg.de/index.php?title=Modul:Tempnotice&amp;diff=83&amp;oldid=prev</id>
		<title>Webmaster: Die Seite wurde neu angelegt: „--&lt;pre&gt;Displays a notice for XX days -- based on the last date the page was saved/edited -- use in template or directly -- Syntax = {{#invoke:Tempnotice|main|days=2|notice=&quot;This message will self-destruct in ...&quot;|template=true}} -- Syntax = {{#invoke:Tempnotice|main|days=2|notice=selfdestruct|template=true}}   local p = {} local u = require(&quot;Module:Utility&quot;)   function p.main(frame)     local oArgTable = frame.args       if (oArgTable) then         local…“</title>
		<link rel="alternate" type="text/html" href="https://firestone-idle-rpg.de/index.php?title=Modul:Tempnotice&amp;diff=83&amp;oldid=prev"/>
		<updated>2023-10-23T23:04:07Z</updated>

		<summary type="html">&lt;p&gt;Die Seite wurde neu angelegt: „--&amp;lt;pre&amp;gt;Displays a notice for XX days -- based on the last date the page was saved/edited -- use in template or directly -- Syntax = {{#invoke:Tempnotice|main|days=2|notice=&amp;quot;This message will self-destruct in ...&amp;quot;|template=true}} -- Syntax = {{#invoke:Tempnotice|main|days=2|notice=selfdestruct|template=true}}   local p = {} local u = require(&amp;quot;Module:Utility&amp;quot;)   function p.main(frame)     local oArgTable = frame.args       if (oArgTable) then         local…“&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Neue Seite&lt;/b&gt;&lt;/p&gt;&lt;div&gt;--&amp;lt;pre&amp;gt;Displays a notice for XX days&lt;br /&gt;
-- based on the last date the page was saved/edited&lt;br /&gt;
-- use in template or directly&lt;br /&gt;
-- Syntax = {{#invoke:Tempnotice|main|days=2|notice=&amp;quot;This message will self-destruct in ...&amp;quot;|template=true}}&lt;br /&gt;
-- Syntax = {{#invoke:Tempnotice|main|days=2|notice=selfdestruct|template=true}}&lt;br /&gt;
 &lt;br /&gt;
local p = {}&lt;br /&gt;
local u = require(&amp;quot;Module:Utility&amp;quot;)&lt;br /&gt;
 &lt;br /&gt;
function p.main(frame)&lt;br /&gt;
    local oArgTable = frame.args&lt;br /&gt;
 &lt;br /&gt;
    if (oArgTable) then&lt;br /&gt;
        local iDays = oArgTable[&amp;quot;days&amp;quot;]&lt;br /&gt;
        local endDate = oArgTable[&amp;quot;date&amp;quot;]&lt;br /&gt;
        local sArg1 = oArgTable[1]  or oArgTable[&amp;quot;notice&amp;quot;]&lt;br /&gt;
        local bTemplate = oArgTable[&amp;quot;template&amp;quot;]&lt;br /&gt;
 &lt;br /&gt;
        return p.shownotice(iDays,sArg1,endDate,bTemplate)&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
 &lt;br /&gt;
function p.shownotice(iDays,sArg1,endDate,bTemplate)&lt;br /&gt;
    local sCat =&amp;quot;&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
    if (iDays or endDate) and sArg1  then&lt;br /&gt;
        local revDate =preprocess(&amp;quot;{{REVISIONYEAR}}-{{REVISIONMONTH}}-{{REVISIONDAY2}}&amp;quot;)&lt;br /&gt;
        local dFutureDate = u.addDays (revDate,iDays)&lt;br /&gt;
        local todayDate = os.date(&amp;quot;%Y-%m-%d&amp;quot;)&lt;br /&gt;
        local iDaysLeft = u.datediff(dFutureDate,todayDate)&lt;br /&gt;
        local isValidDate = u.checkdate(endDate)&lt;br /&gt;
        local sPrefix,sSuffix =&amp;quot;&amp;quot;,&amp;quot;&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
        if isValidDate then&lt;br /&gt;
            iDaysLeft = u.datediff(endDate,os.date(&amp;quot;%Y-%m-%d&amp;quot;))&lt;br /&gt;
        end&lt;br /&gt;
 &lt;br /&gt;
        if bTemplate then&lt;br /&gt;
            sPrefix = &amp;quot;{{&amp;quot;&lt;br /&gt;
            sSuffix = &amp;quot;}}&amp;quot;&lt;br /&gt;
        end&lt;br /&gt;
        &lt;br /&gt;
        if iDaysLeft and iDaysLeft&amp;gt;0 then&lt;br /&gt;
            sCat = sPrefix .. sArg1 .. sSuffix&lt;br /&gt;
        end&lt;br /&gt;
    end&lt;br /&gt;
    return sCat&lt;br /&gt;
end&lt;br /&gt;
 &lt;br /&gt;
function preprocess(sText)&lt;br /&gt;
    if mw.getCurrentFrame() then&lt;br /&gt;
        sText = mw.getCurrentFrame():preprocess(sText)&lt;br /&gt;
    end&lt;br /&gt;
 &lt;br /&gt;
    return sText&lt;br /&gt;
end&lt;br /&gt;
 &lt;br /&gt;
return p&lt;br /&gt;
--[[Category:Lua modules]]&lt;/div&gt;</summary>
		<author><name>Webmaster</name></author>
	</entry>
</feed>