wiki:ShowWhenMacro

Show content When specified time range

Description

This is a macro that shows content during a specified time range. This is particularly useful for example for newsworthy items, announcements of team events or messages concerning system outages. For specific examples, see below.

(ja-JP) 指定した時間帯だけコンテンツを表示します。

A few examples of how to use this macro:

{{{
#!ShowWhen
|| 2012-01-04                || 2012-01-04T23:59:59       || [[Image(wiki:SandBox:yutori01.gif)]] Wednesday is Refresh-day. go home early!
|| 2012-07-13T00:00:00+09:00 || 2012-07-13T23:59:59+09:00 || [[Image(wiki:SandBox:birthday.gif)]] Happy Birthday, matobaa!
|| 2012-11-13T22:10:54Z      || 2012-11-13T22:14:56Z      || Look at the Moon! Total Eclipse!
}}}

Bugs/Feature Requests

Existing bugs and feature requests for ShowWhenMacro are here.

If you have any issues, create a new ticket.

Download

Download the zipped source from here.

Source

You can check out ShowWhenMacro from here using Subversion, or browse the source with Trac.

Installation

Download showwhen.py and place it in the plugins directory.

Recent Changes

12704 by matobaa on 2013-03-10 15:22:25
closes #10920, included license text for
ContextChromePlugin, EpochFieldPlugin, FieldTooltipPlugin, HideFieldChangesPlugin, MsSqlBackendPlugin, NeighborPagePlugin, QueryUiAssistPlugin, ShowWhenMacro, SnapshotPlugin, StatusHistoryChartMacro, and TracLinksPlugin.
12526 by matobaa on 2013-01-11 17:07:18
ShowWhenMacro: PEP8 cleanup
11157 by matobaa on 2012-01-18 14:33:59
ShowWhenMacro: write more description
(more)

Author/Contributors

Author: matobaa
Maintainer: matobaa
Contributors:

Last modified 3 months ago Last modified on Sep 22, 2016, 8:30:35 PM