BaltoCo:Extensions2

From BaltoCo

Jump to: navigation, search

Contents

[edit] MediaWiki Extensions


[edit] EmbedVideo

[edit] Usage

The EmbedVideo parser function expects to be called in either of the following ways:

  • {{#ev:service|id}} -or-
  • {{#ev:service|id|width}}

Where:

  • service is the name of a video sharing service.
  • id is the id of the video to include
  • width (optional) is the width in pixels of the viewing area (height will be determined automatically)

For example, to include the famous "evolution of dance" YouTube video, you'd enter:

{{#ev:youtube|dMH0bHeiRNg}}

And if you wanted scaled down to thumbnail size, you could use:

{{#ev:youtube|dMH0bHeiRNg|100}}

Note: See the Project Homepage for more examples.

[edit] Supported Services

As of version 0.1, EmbedVideo supports embedding video content from the following services:


[edit] Flickr

Unknown Girl Restored
My Great-Grandmother

Usage is basically as follows:
<flickr>{photoid}|{type}|{location}|{size}|{caption}</flickr>

Where :

{photoid} is the Flickr photo ID. This is the only compulsory parameter. All others are optional and will be detected automatically. Anything which isn't detected as on another parameter will be classified as part of the caption.

{type} is the image type as per this page (so 'thumb' / 'thumbnail' or 'frame' or nothing). Defaults to nothing.

{location} is the location as per this page (so 'right', 'left', 'center' or 'none'). Defaults to 'right'.

{size} is the size as per this page. Defaults to medium.

and {caption} is an image title. If left blank or not set then defaults to title of image from Flickr.


[edit] 01/31/08 - ToggleDisplay

[edit] Abstract

This extension allows to show and hide regions on a page by clicking on a link.

[edit] Usage

The simplest usage is:

<toggledisplay>
hidable text
</toggledisplay>

What you will see is a link "[show details]" in small font and nothing else. When you click on the link, the hidable text will be shown and the link text changes to "[hide details]". When you click again, you return to the initial state.

The following optional parameters can be provided in the [show details]
Personal tools