Widget:Repeating_weekly_countdown

ページ名:Widget:Repeating_weekly_countdown

This widget sets up a repeating weekly countdown on a page.

Usage[]

There are two steps to using the widget. The first is to set up one or more s where you want the timer to be displayed as follows:

where [name] should be replaced with any word or phrase that you choose to identify the timer, though as it is a CSS class name, it must be valid as a CSS identifier.

You can display the same time at multiple spots on the page by using the empty span above multiple times with the same class.

The second step is to actually run the timer by placing this on the page. It's recommended to place this at the bottom of the page.

{{#widget:Repeating weekly countdown |name=[name] |zone=[zone] |day=[day] |hour=[hour] |minute=[minute]}}

Where:

  • [name] should be replaced with the same name used as the class in the relevant s
  • [zone] should be a valid timezone identifier from this list
  • [day] should identify the day of the week as follows:
    • 1 for Monday
    • 2 for Tuesday
    • 3 for Wednesday
    • 4 for Thursday
    • 5 for Friday
    • 6 for Saturday
    • 7 for Sunday
  • hour should be replaced with the hour in 24-hour time (from 0 to 23)
  • minute should be replaced with the minute from 0 to 59

Note that identifying the correct timezone of the event time is vital for allowing the timer to correctly cope with daylight savings time.

It is possible to use this widget more than once to support countdowns to multiple events on a single page. They will need unique names, however; using the same name will set up a race condition where one timer will overwrite the others every minute. But be advised that the widget is not optimized for running a lot of timers on the same page; it's probably best to keep the number below ten. (This does not apply to using multiple spans for the same timer since that adds little overhead.)

Example[]

The following code below sets up a countdown timer for Tuesday noon in the US Pacific time zone.

{{#widget:Repeating weekly countdown |name=example |zone=America/Los_Angeles |day=2 |hour=12 |minute=0}}

{{#widget:Repeating weekly countdown

|name=example |zone=America/Los_Angeles |day=2 |hour=12 |minute=0

}}



特に記載のない限り、コミュニティのコンテンツはCC BY-SAライセンスの下で利用可能です。

シェアボタン: このページをSNSに投稿するのに便利です。


最近更新されたページ

食パン

Boost Cardファイル:食パン.pngEffect duration: 3 chaptersHeal 1 HP every turn. The effect is removed upon ge...

迷子

Gift Cardファイル:迷子.pngMove backwards while this card is held. Cannot Norma while holding this card. Th...

貯金箱

Trap Cardファイル:貯金箱.pngGain stars equal to five times the number of chapters passed since this card wa...

襲来

Trap Cardファイル:襲来.pngYou will have an encounter. The enemy will attack first.Level1 ☆Cost0 ★Limit3 pe...

裏取引

Boost Cardファイル:裏取引.pngPerform a Norma check, then your turn ends.Can only be used by the player with...

虹色の環

Battle Cardファイル:虹色の環.pngDuring this battle, gain +2 EVD and -1 DEF.Level2 ☆Cost5 ★Limit3 per DeckDec...

聖水

Battle Cardファイル:聖水.pngFor this battle, gain 5 HP and +1 ATK, DEF, EVD.Level1 ☆Cost0 ★Symbolファイル:聖水 S...

聖なる夜

Event Cardファイル:聖なる夜.pngPermanent Effect.Start-of-chapter bonus stars are increased by one.Level1 ☆Co...