This wish is for iftags-style syntax that can show something on the page if a certain date condition has been met.
For example, I may only want to allow editing of a page for 3 months after it is created, then lock it automatically. This is useful for forums, and may also be useful for other advanced Wikidot "inventions".
Example code (used to aid understanding, not an example of the syntax)
[[if_created_at="last 3 months"]]
This page was created within the last 90 days, so you can still [[button edit]] it.
[[/if_created_at]]
[[if_updated_at="last 24 hours"]]
This page was edited within the past 24 hours.
[[/if_updated_at]]
And the opposite (i.e. NOT within last 3 months)
[[if_created_at="NOT last 3 months"]]
This page-based forum thread was created more than 3 months ago and has been automatically locked. If you have the same problem as the original poster, please create a new thread instead.
[[/if_created_at]]
It could also be used for:
- "This page hasn't been updated within the past 12 months. Please read through it and see if you can contribute to make the page more up-to-date!"
- "You are allowed to edit your page-based forum post within 1 hour of posting it. After that time, you are not allowed to edit any more." (I've seen this on other forums, e.g. the popular 'daniweb' technology forum)