Revision as of 23:14, 21 April 2005 view sourceBrian0918 (talk | contribs)Extended confirmed users41,856 editsmNo edit summary← Previous edit | Latest revision as of 23:49, 30 November 2020 view source Andrybak (talk | contribs)Extended confirmed users, Template editors81,136 edits Reverted to revision 991575520 by ProcrastinatingReader (talk): Bug with some transclusions using Template:Start date has been addressed (see Special:Diff/991614297)Tags: Twinkle Undo | ||
(137 intermediate revisions by 66 users not shown) | |||
Line 1: | Line 1: | ||
{{#invoke:Spoken Misplaced Pages|main|1={{{1|<noinclude>example.ogg</noinclude>}}}|date={{{date|<noinclude>{{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY2}}</noinclude>}}}}}<noinclude> | |||
<div id="section_SpokenWikipedia" class="noprint" style="clear: right; border: solid #aaa 1px; margin: 0 0 1em 1em; font-size: 90%; background: #f9f9f9; width: 250px; padding: 4px; spacing: 0px; text-align: left; float: right;"> | |||
{{documentation}}<!-- add categories to /doc page --> | |||
<div style="margin-left: 10px; text-align: center">''']'''</div> | |||
</noinclude> | |||
<div style="float: left; margin-left: 10px">]</div> | |||
<div style="margin-left: 60px; margin-top: 2px; font-size: xx-small; line-height: 10pt">This audio file was created from the revision dated {{{2}}}, and does not reflect subsequent edits to the article. (])</div> | |||
<div style="margin-left: 10px; text-align: center; clear: both">''']'''</div> | |||
] | |||
</div> |
Latest revision as of 23:49, 30 November 2020
Listen to this page (0 minutes) This audio file was created from a revision of this page dated 12 January 2025 (2025-01-12), and does not reflect subsequent edits.(Audio help · More spoken articles) Template documentation[view] [edit] [history] [purge]This template is used on approximately 2,100 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
This template uses Lua: |
This template links to the spoken version of the article, adds a small sound icon at the top of the article with a link to the audio file, and adds the article into Category:Spoken articles.
Usage
Place this template near the top of the last section of the article:
{{Spoken Misplaced Pages|date=YYYY-MM-DD|Filename 1.ogg|Filename 2.ogg|Filename 3.ogg ...}}
Where date is of article revision that corresponds to the audio file, in any format, supported by Module:Date, e.g. ISO 8601. See also Template:Date/doc#Examples.
Example at Black:
{{Spoken Misplaced Pages|date=2005-08-16|black.ogg}}
Parameters
|1=
,|2=
,|3=
...- Filenames for the recording. Arbitrary amount of files is supported. At least one file must be specified.
|date=
- Date of the recording.
|page=
- Which page is read in the recording. Defaults to subject page name. Can be used to put the template on pages, other than the subject's page.
Tracking categories
- When filenames are missing, page is added to Category:Spoken Misplaced Pages without file.
- When parameter
|date=
is missing, page is added to Category:Spoken Misplaced Pages without date.
Microformat
The HTML mark-up produced by this template includes an hAudio microformat that makes an audio recording's details readily parsable by computer programs. This aids tasks such as the cataloguing of articles and maintenance of databases. For more information about the use of microformats on Misplaced Pages, please visit the Microformat WikiProject.- Subtemplates
Date-of-publication ("published") information will only be included in the microformat if {{start date}} (or, where appropriate, {{start date and age}}) is used in a parent infobox/template. Do not, however, use {{start date}} or {{start date and age}} if a date before 1583 CE is involved.
Use {{duration}} to specify the duration/length of a recording. For instance, if the recording's duration is 3 minutes 45 seconds, use {{duration|m=3|s=45}}
(which appears as: 3:45). If needed, |h=
may be included to specify a number of hours.
Please do not remove instances of these subtemplates.
- Classes used
The HTML classes of this microformat include:
- haudio
- fn
- album
- description
- category
- contributor
- duration
- h
- item
- min
- photo
- position
- price
- published
- s
nor collapse nested elements which use them.
TemplateData
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Spoken Misplaced Pages in articles based on its TemplateData.TemplateData for Spoken Misplaced Pages
Adds a box and topicon for readers to play the spoken version of a page
Parameter | Description | Type | Status | |
---|---|---|---|---|
Date of recording | date | Date of the version of the article spoken. Should be formatted using ].
| Unknown | required |
Filename | 1 | Filename of the audio file for the spoken version (without the File: prefix). Use |2=, |3=, and so on for multiple files.
| File | required |
2nd filename | 2 | Second filename
| File | optional |
3rd filename | 3 | Third filename.
| File | optional |
page | page | Specifies that the recording is of a page other than the page where the template appears. Do not use for same page. | Page name | optional |
nocat | nocat | no description | Unknown | optional |
See also
documentation is transcluded from Template:Spoken Misplaced Pages/doc. (edit | history)Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages.
Add categories to the /doc subpage. Subpages of this template. Categories: