Check out Sunborn's two newly announced games (official English titles pending): Girls' Frontline: Blue Butterfly Contract and Reverse Collapse: F !
You don't need an account to join in. Learn how to contribute, browse Bounties and join our Discord server.

Widget:ICSGenerator: Difference between revisions

Welcome to IOP Wiki. This website is maintained by the Girls' Frontline community and is free to edit by anyone.
Jump to navigation Jump to search
m Possibly proper dependency name
m Moved the currentScript declaration outside
Line 2: Line 2:
var icsStart = "<!--{$start|escape:'html'}-->";
var icsStart = "<!--{$start|escape:'html'}-->";
var icsEnd = "<!--{$end|escape:'html'}-->";
var icsEnd = "<!--{$end|escape:'html'}-->";
var container = document.currentScript.parentNode;
RLQ.push(['ext.gadget.md5hasher', function () {
RLQ.push(['ext.gadget.md5hasher', function () {
   $(document).ready(function() {
   $(document).ready(function() {
    var container = document.currentScript.parentNode;
     window.iopwidgets.ICSGenerator.buildIcsLink(icsName, icsStart, icsEnd, container);
     window.iopwidgets.ICSGenerator.buildIcsLink(icsName, icsStart, icsEnd, container);
   });
   });
}]);</script></includeonly><noinclude>{{Documentation}}</noinclude>
}]);</script></includeonly><noinclude>{{Documentation}}</noinclude>

Revision as of 19:34, 18 July 2025

Documentation[view] [edit] [history] [purge]

Creates a download link for an ICS file (event date container).

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Title of the eventtitle

The general title of the event. This is the text that will be shown in a calendar. Keep it short.

Example
Shattered Connexion
Stringrequired
Event startstart

The start date of the event.

Example
2021-08-12T04:00:00+07
Daterequired
Event endend

The ending of the event.

Example
2021-08-26T10:00:00+07
Daterequired

Usage

See the widget's testcases:


Test with given full date definition
Wiki code
{{#widget:ICSGenerator
|title=Name of the event
|start=20220218T194956
|end=20220218T195956}}
Main version
Sandbox version (no sandbox subpage)
Test with short date definition
Wiki code
{{#widget:ICSGenerator
|title=Name of the event
|start=20220218T194956
|end=20220218T195956}}
Main version
Sandbox version (no sandbox subpage)

See also