Difference between revisions of "Feature Demo"

From PKC
Jump to navigation Jump to search
BenKoo>Benkoo
BenKoo>Benkoo
Line 26: Line 26:
<pre>
<pre>
{{#display_map:circles=
{{#display_map:circles=
   Pulau Serangan, Bali, Indonesia:500;
   Serangan, Bali, Indonesia:500;
  Pulau Serangan, Bali, Indonesia:100~Title Text~Description Text~green~0.7~10~blue~0.5
  Serangan, Bali, Indonesia:100~Title Text~Description Text~green~0.7~10~blue~0.5
| zoom=9
| zoom=9
|width=600|height=400
|width=600|height=400
Line 35: Line 35:


{{#display_map:circles=
{{#display_map:circles=
   Pulau Serangan, Bali, Indonesia:500;
   Serangan, Bali, Indonesia:500;
   Pulau Serangan, Bali, Indonesia:100~Title Text~Description Text~green~0.7~10~blue~0.5
   Serangan, Bali, Indonesia:100~Title Text~Description Text~green~0.7~10~blue~0.5
| zoom=9
| zoom=9
|width=600|height=400
|width=600|height=400

Revision as of 09:13, 29 April 2021

This page is dedicated to demonstrate features of various extensions.

A few obvious features are:

  1. Maps by leaflet
  2. EmbedVideo
  3. Math Type Setting
  4. 3D object visualization
  5. Dynamic Page List
  6. Spotify

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.

Example 1

To show the the center of a city, a map can be specified as follow:

{{#display_map:center=Indonesia|zoom=5}}
Loading map...

Example 2

For example, the following map can be specified as follow:

{{#display_map:circles=
  Serangan, Bali, Indonesia:500;
  Serangan, Bali, Indonesia:100~Title Text~Description Text~green~0.7~10~blue~0.5
| zoom=9
|width=600|height=400
}}


Loading map...




EmbedVideo

Not only you may embed[2] videos of many sources in your page, you can also specify starting and stopping time points.

{{#ev:youtube|https://www.youtube.com/watch?v=X_oNzF_KS6g|||||start=100&end=103}}

{{#ev:youtube|https://www.youtube.com/watch?v=X_oNzF_KS6g%7C%7C%7C%7C%7Cstart=100&end=103}}

Embedding videos 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.


Spotify

If you are into music, you can embed Spotify songs here.

<spotify>album/4tRU7xRuLI8oaTTNFtrytT</spotify>


Math Typesetting

For mathematicians and engineers, your can also typeset mathematical equations using LaTeX syntax here.

<math>\int_a^x \!\!\!\int_a^s f(x)\,dz\,ds = \int_a^x f(w)(z-c)\,dy</math>

3D Object

https://pkc.pub/images/a/af/Asad_Al-Lat.stl
https://pkc.pub/images/f/f1/Cube.json

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

  1. https://maps.extension.wiki/wiki/Displaying_Leaflet_maps
  2. 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
  3. IlyaHaykinson and Amgine, Extension:DynamicPageList, Wikimedia, last accessed: March 27, 2021, URL:https://www.mediawiki.org/wiki/Extension:DynamicPageList_(Wikimedia)
  4. Anonymous MediaWiki Manual Editors, Manual:Extensions, Last Access: March 27, 2021, https://www.mediawiki.org/wiki/Manual:Extensions