Template:Source/medium/doc
Appearance
This is a documentation subpage for Template:Source/medium (see that page for the template itself). It contains usage information, categories and other content that is not part of the original template page. |
This template is used on over 50 pages. Changes to this template may cause some server load, and mistakes will be visible on many pages. Please carefully test any edits before making them, and avoid making unnecessary edits. |
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]- "video" — Megadodo Publications, December 7, 2014 (Video)
- "French audio" — Megadodo Publications, December 7, 2014 (Audio) (French)
- "document" — Megadodo Publications, December 7, 2014 (PDF)
- "document" — Megadodo Publications, December 7, 2014 (Word document)
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]