515:. This may not be possible, as the countdown isn't wrapped in any div or span nor even a class. It's added as a regular paragraph; therefore, a script cannot detect it via regular methods. If it DOES become wrappable in a tag other than "p", then it may even be hard to grab the end date from the display anyway. It's only stored in the module, and the module is pretty much done before the script kicks in. I may consider a non-Lua-based template; however, LCT is the best compatible version of this. โ
509:
549:
391:
316:
580:
635:
648:
608:
467:
422:
343:
350:
in version v1.2. The function inside of the loop was part of the issue, making the script single-threaded. Moving the loop outside of the function prevents the loop from focusing on just one countdown.
644:: The v1.4.4 script does some basic XSS detection before the script attempts to start a countdown. Normally, MediaWiki would catch all of the XSS (I couldn't even add it in my sandbox properly
1026:
322:. Right as I find out how, I'll be implementing this as soon as possible. A culprit may be the function inside of the scan loop, so this might work if the two are separated. โ
935:
The userscript is presumed to work with this enabled, but it is impossible for the maintainers to test it (as of Thu, 16 Apr 2020 23:00:03 +0000). Proceed with caution.
52:
998:
48:
994:
44:
810:
ADVANCED: add a custom date. Adding this parameter will override the other date parameters, but may likely prevent non-users from seeing your countdown.
1042:
965:
If the countdown template errors in the process, a firewall would be shown, preventing users from seeing it without downloading the script:
980:
234:
698:
715:
When used in conjunction with the LiveCountdown userscript, displays a live countdown that refreshes the page on completion
238:
197:
91:
1047:
212:}} (further referenced with LCT) transclusions and replaces them with a working countdown. The LCT is similar to the
702:
988:
968:
958:
205:
40:
27:
261:
257:
429:
in v1.3. A big error will pop up if there is difficulty parsing the end date. For example, see the LCT page. โ
694:
This is the documentation for the corresponding template (LCT) to be used by VisualEditor and other tools.
556:
902:
The 24-hour time (12:00-24:00) when the countdown should disable. This cannot be shown to non-users.
948:
498:
216:
508:
984:
833:
The month of when the countdown should disable. Can be a name (Dec, July) or a number (10, 2).
661:
624:
595:
568:
524:
483:
438:
410:
360:
331:
176:
84:
586:
I'll run the event through MediaWiki's API to parse, and then cut away all of the comments. โ
282:
183:
856:
The day of when the countdown should disable. Can be a name (Dec, July) or a number (10, 2).
267:
548:
390:
315:
172:
579:
1036:
251:
164:
654:
617:
588:
561:
517:
476:
431:
403:
353:
324:
80:
17:
451:
Add a check to see if the countdown works, without invoking the script directly
158:
944:
The LCT checks its parameters to see if it could be referenced with the other
781:
The name of the event (to fill in the blank "there are 2 seconds until _____")
672:
225:
Right now, this userscript is in a very basic state, so don't expect much.
222:
template, however, the template may switch between the two when necessary.
32:
652:), but a bit of wool on top of obsidian never hurt in a game of BedWars! โ
954:
template, and if so, it will display the
Countdown template with an ad:
752:
The HTML tag to wrap the countdown around (for example, "b" or "small")
168:
208:
is a userscript that, upon entering a page, checks the page for all {{
543:
Right now, wikitext is unparsed, forcing you to add HTML to the page.
294:
for discussions of items, but items themselves shouldn't be signed.
559:. This is a potential security hole, so this is high-proirity. โ
189:
Cologne Blue, Vector, Modern, Monobook, Timeless, MinervaNeue
536:
Allow wikitext/links to be entered in the "event" parameter
454:
Maybe in a form of special page that the script will change?
879:
The year of when the countdown should disable (2020, 3000).
303:
have been implemented in the latest version of the script.
72:}} with a live countdown that refreshes the page on finish
959:
Tired of purging every few minutes? Try this userscript!
1019:
1011:
1007:
254:|User:ToxiBoi/LiveCountdownTemplate.js}}
671:(And yes, I am aware that I am likely using the wrong
193:
182:
157:
139:
131:
113:
98:
76:
64:
1004:Editors can experiment in this template's sandbox
474:. As relevant to this page, I've added it here. โ
310:Allow more than one countdowns to be supported
8:
712:
59:
931:
929:
927:
705:in articles based on its TemplateData.
718:
374:Add error handling for unknown parameters
58:
923:
708:TemplateData for LiveCountdownTemplate
239:User:ToxiBoi/LiveCountdownTemplate.js
7:
699:See a monthly parameter usage report
645:
244:However, here's the manual method:
399:User:ToxiBoi/LiveCountdownTemplate
233:Hint: It's much easier if you get
210:User:ToxiBoi/LiveCountdownTemplate
70:User:ToxiBoi/LiveCountdownTemplate
24:
285:and add anything to this section.
646:
633:
606:
578:
547:
507:
465:
420:
389:
341:
314:
241:and click "Install" at the top.
971:enabled to view this countdown.
30:enabled to view this countdown.
703:Template:LiveCountdownTemplate
260:or a skin-specific page, like
1:
1043:User pages with script errors
198:User:ToxiBoi/LiveCountdown.js
667:10:21, 17 April 2020 (UTC)
630:05:40, 17 April 2020 (UTC)
337:00:05, 17 April 2020 (UTC)
1064:
989:User:ToxiBoi/LiveCountdown
978:
601:05:24, 17 April 2020 (UTC)
574:04:21, 17 April 2020 (UTC)
530:23:33, 16 April 2020 (UTC)
489:23:33, 16 April 2020 (UTC)
444:04:37, 17 April 2020 (UTC)
416:00:05, 17 April 2020 (UTC)
385:and the countdown freezes.
366:04:13, 17 April 2020 (UTC)
68:Replaces invocations of {{
726:
229:Installation instructions
969:LiveCountdown userscript
381:Right now, it only says
262:Special:MyPage/vector.js
258:Special:MyPage/common.js
28:LiveCountdown userscript
1048:Knowledge (XXG) scripts
494:Allow modification of
1027:Subpages of this page
145:; 4 years ago
119:; 4 years ago
60:LiveCountdownTemplate
557:User:ToxiBoi/sandbox
916:
723:
721:Template parameters
237:, then navigate to
143:April 17, 2020
117:April 15, 2020
61:
967:You must have the
719:
717:
460:Write TemplateData
320: Acknowledged
26:You must have the
962:
915:
914:
739:
713:
203:
202:
1055:
1023:
1015:
1002:
973:
956:
953:
947:
942:
936:
933:
898:
875:
852:
829:
806:
788:the event begins
777:
748:
740:
724:
676:
666:
664:
659:
651:
650:
649:
640:
637:
636:
629:
627:
622:
614:
610:
609:
600:
598:
593:
582:
573:
571:
566:
551:
529:
527:
522:
513:Not done for now
511:
503:
497:
488:
486:
481:
473:
469:
468:
443:
441:
436:
428:
424:
423:
415:
413:
408:
393:
365:
363:
358:
349:
345:
344:
336:
334:
329:
318:
290:Signing here is
268:Clear your cache
255:
221:
215:
153:
151:
146:
127:
125:
120:
105:
62:
56:
37:
1063:
1062:
1058:
1057:
1056:
1054:
1053:
1052:
1033:
1032:
1031:
1030:
1025:
1017:
1005:
1003:
992:
977:
976:
964:
951:
945:
943:
939:
934:
925:
921:
896:
873:
850:
827:
804:
775:
746:
711:
691:
670:
662:
655:
653:
647:
638:
634:
625:
618:
616:
607:
605:
596:
589:
587:
569:
562:
560:
553: Confirmed
525:
518:
516:
501:
495:
484:
477:
475:
466:
464:
439:
432:
430:
421:
419:
411:
404:
402:
395: Confirmed
361:
354:
352:
342:
340:
332:
325:
323:
299:Items that are
277:
249:
235:ScriptInstaller
231:
219:
213:
149:
147:
144:
123:
121:
118:
103:
57:
38:
35:
31:
22:
21:
20:
12:
11:
5:
1061:
1059:
1051:
1050:
1045:
1035:
1034:
1016:and testcases
975:
974:
937:
922:
920:
917:
913:
912:
909:
906:
905:
899:
894:
890:
889:
886:
883:
882:
876:
871:
867:
866:
863:
860:
859:
853:
848:
844:
843:
840:
837:
836:
830:
825:
821:
820:
817:
814:
813:
807:
802:
798:
797:
794:
791:
790:
789:
786:
778:
773:
769:
768:
765:
762:
761:
760:
757:
749:
744:
738:
737:
734:
731:
728:
697:
690:
687:
686:
685:
684:
683:
682:
681:
680:
679:
678:
677:
603:
584: Doing...
575:
533:
532:
531:
492:
491:
490:
457:
456:
455:
449:
448:
447:
446:
445:
417:
371:
370:
369:
368:
367:
306:
305:
296:
287:
276:
273:
272:
271:
265:
230:
227:
201:
200:
195:
191:
190:
187:
180:
179:
162:
155:
154:
141:
137:
136:
133:
129:
128:
115:
114:First released
111:
110:
104:
100:
96:
95:
78:
74:
73:
66:
34:
33:
25:
23:
15:
14:
13:
10:
9:
6:
4:
3:
2:
1060:
1049:
1046:
1044:
1041:
1040:
1038:
1028:
1021:
1013:
1009:
1000:
996:
990:
986:
982:
981:documentation
972:
970:
963:
960:
950:
941:
938:
932:
930:
928:
924:
918:
910:
907:
904:
903:
900:
895:
892:
891:
887:
884:
881:
880:
877:
872:
869:
868:
864:
861:
858:
857:
854:
849:
846:
845:
841:
838:
835:
834:
831:
826:
823:
822:
818:
815:
812:
811:
808:
803:
800:
799:
795:
792:
787:
784:
783:
782:
779:
774:
771:
770:
766:
763:
758:
755:
754:
753:
750:
745:
742:
741:
735:
732:
729:
725:
722:
716:
710:
709:
704:
700:
696:
695:
688:
674:
669:
668:
665:
660:
658:
643:
632:
631:
628:
623:
621:
613:
604:
602:
599:
594:
592:
585:
581:
576:
572:
567:
565:
558:
554:
550:
546:
545:
544:
541:
540:
538:
537:
534:
528:
523:
521:
514:
510:
506:
505:
500:
493:
487:
482:
480:
472:
463:
462:
461:
458:
453:
452:
450:
442:
437:
435:
427:
418:
414:
409:
407:
400:
396:
392:
388:
387:
386:
384:
379:
378:
376:
375:
372:
364:
359:
357:
348:
339:
338:
335:
330:
328:
321:
317:
313:
312:
311:
308:
307:
304:
302:
297:
295:
293:
288:
286:
284:
281:Feel free to
279:
278:
274:
269:
266:
263:
259:
253:
247:
246:
245:
242:
240:
236:
228:
226:
223:
218:
211:
207:
206:LiveCountdown
199:
196:
192:
188:
186: support
185:
181:
178:
174:
170:
166:
165:Google Chrome
163:
160:
156:
142:
138:
134:
130:
116:
112:
109:
101:
97:
93:
90:
86:
82:
79:
75:
71:
67:
63:
54:
50:
46:
42:
36:Documentation
29:
19:
966:
955:
952:}}
946:{{
940:
901:
878:
855:
832:
809:
780:
751:
720:
714:
707:
706:
693:
692:
689:TemplateData
656:
641:
619:
615:in v1.4.3. โ
611:
590:
583:
577:
563:
552:
542:
539:
535:
519:
512:
502:}}
496:{{
478:
470:
459:
433:
425:
405:
398:
394:
382:
380:
377:
373:
355:
346:
326:
319:
309:
300:
298:
291:
289:
280:
250:{{
243:
232:
224:
220:}}
214:{{
209:
204:
107:
106:
88:
69:
18:User:ToxiBoi
985:transcluded
801:Custom Date
730:Description
65:Description
51:] [
47:] [
43:] [
1037:Categories
979:The above
805:customdate
772:Event Name
673:initialism
612: Done
471: Done
426: Done
347: Done
292:encouraged
275:To-Do List
270:and enjoy!
252:subst:iusc
150:2020-04-17
124:2020-04-15
949:Countdown
865:suggested
842:suggested
796:suggested
727:Parameter
504:displays
499:Countdown
217:Countdown
77:Author(s)
911:optional
888:optional
819:optional
767:optional
102:Status:
92:contribs
1010:|
999:history
997:|
785:Default
756:Default
283:be bold
169:Firefox
161:support
159:Browser
148: (
140:Updated
132:Version
122: (
83: (
81:ToxiBoi
49:history
1024:pages.
1020:create
1012:mirror
1008:create
908:String
885:String
862:String
839:String
816:String
793:String
736:Status
301:struck
248:Place
194:Source
135:v1.4.4
99:Status
87:
987:from
919:Notes
828:month
824:Month
776:event
642:Extra
108:Alpha
55:]
53:purge
39:[
16:<
995:edit
897:time
893:Time
874:year
870:Year
764:Line
733:Type
701:for
675:...)
663:Boi!
657:Toxi
626:Boi!
620:Toxi
597:Boi!
591:Toxi
570:Boi!
564:Toxi
526:Boi!
520:Toxi
485:Boi!
479:Toxi
440:Boi!
434:Toxi
412:Boi!
406:Toxi
362:Boi!
356:Toxi
333:Boi!
327:Toxi
184:Skin
173:Edge
85:talk
45:edit
41:view
983:is
851:day
847:Day
759:div
747:tag
743:Tag
555:at
401:. โ
397:at
383:NaN
256:on
1039::
991:.
926:^
177:IE
175:/
171:,
167:,
1029:.
1022:)
1018:(
1014:)
1006:(
1001:)
993:(
961:)
957:(
639:Y
351:โ
264:.
152:)
126:)
94:)
89:ยท
Text is available under the Creative Commons Attribution-ShareAlike License. Additional terms may apply.