helialprofile.png
Welcome to IOPWiki, Commander. You can contribute to this wiki without an account. Learn how to contribute and join our Discord server.

Difference between revisions of "Widget:ICSGenerator"

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
(Fixed hashing)
m (Fixed param naming)
Line 50: Line 50:
 
}
 
}
  
var icsName = "<!--{$name|escape:'html'}-->";
+
var icsName = "<!--{$title|escape:'html'}-->";
 
var icsStart = "<!--{$start|escape:'html'}-->";
 
var icsStart = "<!--{$start|escape:'html'}-->";
 
var icsEnd = "<!--{$end|escape:'html'}-->";
 
var icsEnd = "<!--{$end|escape:'html'}-->";
 
buildIcsLink(icsName, icsStart, icsEnd);</script></includeonly><noinclude>{{Documentation}}</noinclude>
 
buildIcsLink(icsName, icsStart, icsEnd);</script></includeonly><noinclude>{{Documentation}}</noinclude>

Revision as of 18:42, 17 February 2022

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

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

Template parameters

This template has custom formatting.

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.

Default
empty
Example
Shattered Connexion
Auto value
empty
Stringrequired
Event startstart

The start date of the event.

Default
empty
Example
2021-08-12T04:00:00+07
Auto value
empty
Daterequired
Event endend

The ending of the event.

Default
empty
Example
2021-08-26T10:00:00+07
Auto value
empty
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