Admin:Creating New Widgets

From Serious Documentation
Jump to: navigation, search

Check if the Widget you want already exists online

https://www.mediawikiwidgets.org/Widgets_Catalog

Check if the Widget is already added

- Navigate to: https://techref.myserious.com/index.php?title=Special:AllPages
- Select Widgets from the Namspace dropdown and click Go

Copy the full source of an existing Widget to speed up the process

- Example 1: https://techref.myserious.com/index.php?title=Widget:Vimeo&action=edit
- Example 2: https://techref.myserious.com/index.php?title=Widget:Wistia&action=edit
- Example 3: https://www.mediawikiwidgets.org/YouTube

Creating a new Widget

- Go to a link like this: https://techref.myserious.com/index.php?title=Widget:{nameOfWidget}
    - No curly braces
- Click on create this page
- Now you can paste the contents of the other Widget you copied in step 3.
- To delete a page: https://techref.myserious.com/index.php?title=Widget:{nameOfWidget}&action=delete

Modify the Widget in the created page

- Documentation: https://www.mediawiki.org/wiki/Extension:Widgets#Usage
- Modify the inner content of the <includeonly> tag with correct syntax from the documentation above. In Widget:Wistia, for example, you'd modify the iframe.