Template:Source/medium/doc

From Wikinews, the free news source you can write!
Jump to navigation Jump to search

This template generates a space and a medium tag, to appear at the end of a source citation (or near the end, if followed by a link to a file on commons).

Note this is not transcluded unless needed, so should be far less heavily used than {{source}}.

Usage[edit]

Required parameter medium names the medium. Must be one of the allowed values, which at this writing are video, audio, PDF, word.

Optional parameter lang names the language.

Examples[edit]

Internals[edit]

The template validates the medium, decides whether to use particle "an" rather than "a" with it, generates the space, and delegates to subtemplate {{source/medium/tag}}.

See also[edit]