No description
This repository has been archived on 2026-07-02. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
  • JavaScript 95%
  • CSS 4.7%
  • PHP 0.3%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2020-12-11 12:24:46 +01:00
i18n update description 2020-12-11 09:49:36 +01:00
resources change to bunnycdn for videos, add aciinema 2020-12-01 21:10:53 +01:00
src add video object 2020-12-11 09:29:32 +01:00
extension.json change to bunnycdn for videos, add aciinema 2020-12-01 21:10:53 +01:00
LICENSE.txt update readme 2020-12-11 09:43:35 +01:00
README.md Update README.md 2020-12-11 12:24:46 +01:00
StdoutParserFunctions.i18n.php update description 2020-12-11 09:49:36 +01:00

StdoutParserFunctions

Custom MediaWiki parserhook extension for https://cavelab.dev

Installation

  • Clone this repository in s directory called StdoutParserFunctions in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php:
wfLoadExtension( 'StdoutParserFunctions' );
  • Done! Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Function hooks

htmlvideo

Insert HTML5 video element.

{{#htmlvideo: video-file|parameter=value}}

Expected directory structure;

/video-file/
    playlist.m3u8
    thumbnail_001.jpg

Parameters:

  • thumb: thumbnail number; default 1
  • name: video name
  • desc: video description
  • date: video upload date

Parameters are separated by |, and none are required.

If parameters name, desc and date are present, a video object will be defined.

partslist

Insert project parts list from json file.

{{#partslist: serialno}}

youtube

Insert YouTube embedded video.

{{#youtube: video-id}}

asciinema

Insert asciicast video player.

{{#asciinema: cast-url|cols|rows|poster}}

Parameters:

  • cols: columns; default 80
  • rows: rows; default 24
  • poster: poster timestamp; default 0:15

Author

Thomas Jensen

License

The MIT License (MIT). Please see license file for more information.