This page is dedicated to demonstrate features of various extensions.
A few obvious features are:
- Maps by leaflet
- EmbedVideo
- Math Type Setting
- 3D object visualization
- Dynamic Page List
- Spotify
Locating the Table of Content (ToC) using the Magic word
Please look at this page [1] for map-related extensions.
Map
The following maps are leaflet maps embedded in MediaWiki, you can find instructions[1] on how to edit these embedded links to create your own map.
For example, the following map can be specified as follow:
{{#display_map:Bali, Indonesia}}
Example 1
Loading map...
{"minzoom":false,"maxzoom":false,"mappingservice":"leaflet","width":"auto","height":"350px","centre":false,"title":"","label":"","icon":"","lines":[],"polygons":[],"circles":[{"text":"","title":"","link":"","strokeColor":"#FF0000","strokeOpacity":"1","strokeWeight":"2","fillColor":"#FF0000","fillOpacity":"0.5","centre":{"lon":115.1919203,"lat":-8.2271303},"radius":500},{"text":"\u003Cb\u003E\u003Cdiv class=\"mw-parser-output\"\u003E\u003Cp\u003ETitle Text\n\u003C/p\u003E\u003C/div\u003E\u003C/b\u003E\u003Cdiv class=\"mw-parser-output\"\u003E\u003Cp\u003EDescription Text\n\u003C/p\u003E\u003C/div\u003E","title":"Title Text\n","link":"","strokeColor":"green","strokeOpacity":"0.7","strokeWeight":"10","fillColor":"blue","fillOpacity":"0.5","centre":{"lon":115.1919203,"lat":-8.2271303},"radius":100}],"rectangles":[],"copycoords":false,"static":false,"zoom":14,"defzoom":14,"layers":["OpenStreetMap"],"image layers":[],"overlays":[],"resizable":false,"fullscreen":false,"scrollwheelzoom":true,"cluster":false,"clustermaxzoom":20,"clusterzoomonclick":true,"clustermaxradius":80,"clusterspiderfy":true,"geojson":"","clicktarget":"","imageLayers":[],"locations":[],"imageoverlays":null}
Loading map...
{"minzoom":false,"maxzoom":false,"mappingservice":"leaflet","width":"400px","height":"250px","centre":false,"title":"","label":"","icon":"","lines":[],"polygons":[],"circles":[],"rectangles":[],"copycoords":false,"static":false,"zoom":false,"defzoom":14,"layers":["OpenStreetMap"],"image layers":[],"overlays":[],"resizable":false,"fullscreen":false,"scrollwheelzoom":true,"cluster":false,"clustermaxzoom":20,"clusterzoomonclick":true,"clustermaxradius":80,"clusterspiderfy":true,"geojson":"","clicktarget":"","imageLayers":[],"locations":[{"text":"","title":"","link":"","lat":-8.2271303,"lon":115.1919203,"icon":""}],"imageoverlays":null}
To show the the center of a city, a map can be specified as follow:
{{#display_map:center=Boston, USA}}
Example 1
Loading map...
{"minzoom":false,"maxzoom":false,"mappingservice":"leaflet","width":"auto","height":"350px","centre":{"text":"","title":"","link":"","lat":42.3554334,"lon":-71.060511,"icon":""},"title":"","label":"","icon":"","lines":[],"polygons":[],"circles":[],"rectangles":[],"copycoords":false,"static":false,"zoom":false,"defzoom":14,"layers":["OpenStreetMap"],"image layers":[],"overlays":[],"resizable":false,"fullscreen":false,"scrollwheelzoom":true,"cluster":false,"clustermaxzoom":20,"clusterzoomonclick":true,"clustermaxradius":80,"clusterspiderfy":true,"geojson":"","clicktarget":"","imageLayers":[],"locations":[],"imageoverlays":null}
Spotify
Try this special page:
Special:Manage_Two-factor_authentication
EmbedVideo
Embedding videos[2] in a web page will significantly enrich user experience. The following link shows a video embedded in this page. More extensive demo can be found in this link.
Note that using the '#ev' tag, one may specify 'start' and 'stop' time points.
{{#ev:youtube|https://www.youtube.com/watch?v=-cPchmU-pB4%7C%7C%7C%7C%7Cstart=200&end=203}}
Using the '#evt' tag, specify the dimensions of the video.
{{#evt:
service=youtube
|id=https://www.youtube.com/watch?v=eAORm-8b1Eg
|dimensions=50
}}
Math Typesetting
3D Object
DynamicPageList
You may also specify certain conditional information to extract a list of pages from the database. This is the well-known DynamicPageList[3] feature of MediaWiki.
An example can be shown here
<DynamicPageList>
category=Logic Model
count=5
</DynamicPageList>
It is always helpful to read MediaWiki's Manual:Extensions
[4]
References
- ↑ https://maps.extension.wiki/wiki/Displaying_Leaflet_maps
- ↑
Alexia E. Smith (Alexia E. Smith), Andrew Whitworth (Whiteknight), Jim R. Wilson (Jimbojw), and Mohammad Derakhshani (Mderakhs),
Extension:EmbedVideo,
Latest version 2.9.0 (2020-10-14),
Wikimedia,
https://www.mediawiki.org/wiki/Extension:EmbedVideo
- ↑
IlyaHaykinson and Amgine,
Extension:DynamicPageList,
Wikimedia,
last accessed: March 27, 2021,
URL:https://www.mediawiki.org/wiki/Extension:DynamicPageList_(Wikimedia)
- ↑
Anonymous MediaWiki Manual Editors,
Manual:Extensions,
Last Access: March 27, 2021,
https://www.mediawiki.org/wiki/Manual:Extensions