To: Heading_
Smallsite Design logo (SD) 390x390px

Smallsite Design

Online editing help

9  Media element

!

Media blocks allow articles to have images, videos and audio.

Multimedia is a large part of why people use the internet, with images being the principal form used. Video can be useful for attracting attention, so Smallsite Design allows for introductory videos, but video, and audio to a lesser degree, take a up lot of storage and bandwidth, which can tax the servers hosting small sites, resulting in buffering or other glitches. They need dedicated high-bandwidth server infrastructure like that provided by YouTube, Vimeo or SoundCloud, so such content is better provided on them and linked to.

Smallsite Design does not allow content embedded from other sites so that those other sites cannot track the site's visitors, which happens even if the media is not played. Unless uploaded to the site, video and audio must be hosted elsewhere and linked to. Smallsite Design also does not allow media to automatically play, so readers are not taken by surprise.

Like most blocks, media blocks require an introduction to guide readers as to what to expect from or look for in the media item. If the media file has an Owner specified, that will be displayed below the file near the start, and be a link if the file has a Page article or URL.

The sequence element can be used as an alternative to many multimedia presentations because they can result in substantial reductions in storage size and bandwidth. They are suitable replacements for computer instructional videos and meditations. Their advantages are that they are hosted on the site and can be edited by the site owner, even if they had help to create them.

Figure

A figure element can show an image, and an optional quote.

Most image formats used in websites are able to be displayed in almost all browsers, unlike with video and audio files, so as long as the image file has an entry in MIME types matching its extension, it can be used in a figure.

A quote can be added for display below the image, though since it is quoted, it is only relevant if the image is a picture of the person who said or wrote the quote. It does not have to be original, but be something the person is emphatic about or known for saying. Even better, if the image has a Page specified, the quote should be displayed in that page and indicate the context in which it was said or written.

Unlike other files, images for non-master locale variants, or to replace an existing image, must have the same pixel dimensions. This means that if there is text in the image that might be different for each locale variant, such as for screenshots, the size will have to cater for the most verbose variant.

Linking to figures

A table or list can be linked to a figure to provide descriptions and other information for its labels.

A table or list and a figure that share the same Prefix field are linked, as long as there are labels defined for the figure and the table has Both for its Heading and Alphabetic for its Numbering, or the list has a Character of Alphabetic. The numbers of labels and body rows do not have to be the same, though it would be odd to have labels without corresponding table rows or list items, and vice versa. Once linked, clicking on the label letter will jump to the corresponding table row or list item letter, and clicking on it to get back to the label.

When paired, the introductions of both will end with a directional link between them, allowing a quick check to see which element each is paired with.

If a figure is linked to, no other table or list can be set to be linked to it, even by using Clone. The exception is when appending or inserting from a spike produces a clone, resulting in more than one list or table pointing to the same figure. In that case, while all the links to the figure's labels will still work, the labels themselves will not be links, making the process only one-way. If the labels should be links but are not, the lists or tables sharing the same Prefix will have a , but the expected figure will not.

Alphabetic ordering is typically used to indicate position but without the implied ranking that numbers do. However, for those scripts that do not have an alphabet, numbers are displayed instead for the Alphabetic selection, but that option must still be used to link image labels to lists or tables.

Some recommendations are:
  1. a.For a table, make the side heading column heading be a key word in the introduction to the figure. For example, if the heading is Area, a suitable introduction is The principal areas of the screen are:
  2. b.The same introduction can be used for the table or list, but if it is immediately after the figure, a simple where: will suffice. Note the lack of capitalisation so that it is taken as a flow-on.

This linking allows a figure to be in an aside while the table or list can be in the body of the article. While the use of an aside normally implies that the figure is not so important for article continuity, the and the positioning overrides that assumption. See the Procedure article for an example.

When a figure and the immediately following table or list have the same Prefix, the space between them will be reduced to indicate they are to be viewed as linked, such as in the Top of the page section of Common page elements, which also shows the use of the where introduction for the table following the figure.

Files

Audio and video elements may require multiple file types to enable a wide spectrum of site visitors to see or hear them.

Like all files, there can be a variant for each locale for media as well, but because not all the codecs that enable playback of video and audio files are available on all peoples' computers, files with each format may be required so that most people have a chance of watching or listening to their content. The mp3 audio format is now out of patent and free to use, so can be used for audio across all platforms, though not as compact as others. While mp4 is a fairly well known video format, it really is a container that might use different codecs for audio and video on different platforms.

This means that multiple files might be needed for audio or video. A browser will try each file from the first until it finds one it can play. In Smallsite Design, each file extension corresponds to a single MIME type, as specified in the MIME types section of the Settings page. There must be an entry in that table for a file to play within the page, otherwise it can only be downloaded, if set for embedding. As time goes on, new file formats will become popular, requiring additions to that table.

.svg files are not allowed because they have security risks due to allowing scripts, external fonts and external links. While theoretically these sub-elements could be automatically filtered out on import, mostly that would result in destroying the file's functionality as such sub-elements are often incorporated to provide it. The diagram element provides some basic drawing functionality, but it is not scalable like images are. Otherwise, render the file as raster for use in a figure element.

Links   Latest articles&Subsite links

Powered by: Smallsite Design  ©Smallsite™  Privacy   Manage\