Template:Pronounce: Difference between revisions

From Tolkien Gateway
m (sorry - please bear with me)
(Updated documentation. Might tweak further later on; there's no reason this should have to be hard-coded to the right)
 
(36 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{| align="right" style="border:3px double #d8d6d6; color:#000; background-color:#f5f5f5; margin-left:10px; margin-bottom:10px;" width="250px"
<div style="right: 0px; clear: right; float:right; margin: 0px 0px 10px 10px;">
|-
<table style="border: 3px double #d8d6d6; color: #000; background-color: #f5f5f5; font-size: 0.8em; line-height: 1.5;" width="275px">
| rowspan="3" | [[Image:Sound-icon.png|38px]]
<tr>
|-
<td style="text-align:center; padding-bottom:3px" colspan="2">{{{3|[[:File:{{{1}}}]]}}}</td>
| align="center" | '''[[:Media:{{{1}}}|''{{{1}}}'']]'''
</tr>
|-
<tr>
| style="font-size: xx-small; padding-bottom: 3px;" align="center" | By [[User:{{{2}}}|{{{2}}}]]. ([[Wikipedia:Media help|Help]]; [[:Category:Pronounced articles|more articles]])
<td rowspan="2"><span class="plainlinks">[[File:Sound-icon.png|38px|link=File:{{{1}}}]]</span></td>
|}
<td style="text-align:center">'''[[File:{{{1}}}]]'''</td>
</tr>
<tr>
<td style="font-size: small; padding-bottom: 3px; text-align:center">By [[User:{{{2}}}|{{{2}}}]]. ([[Wikipedia:Media help|Media help]])</td>
</tr>
</table>
</div>
<noinclude>
==Usage==
<nowiki>{{</nowiki>pronounce|'''1'''|'''2'''|'''3'''<nowiki>}}</nowiki>


<noinclude>[[Category:Templates]]</noinclude>
Where '''1''' is the name of the file (without brackets and without the <code>File:</code> prefix), '''2''' is the name of the user who created it, and '''3''' is the label to display above the file. If '''3''' is omitted, it will default to a direct link to the file.
[[Category:Pronounced articles]]
 
The template is known to mess up the layout of images; when used with illustrated articles, it is suggested to put this template under Etymology sections where images are not used.
[[Category:Media templates|{{PAGENAME}}]]
</noinclude>
<includeonly>[[Category:Pronounced articles]]</includeonly>

Latest revision as of 08:07, 21 April 2024

[[:File:{{{1}}}]]
link=File:{{{1}}} [[File:{{{1}}}]]
By [[User:{{{2}}}|{{{2}}}]]. (Media help)

Usage[edit source]

{{pronounce|1|2|3}}

Where 1 is the name of the file (without brackets and without the File: prefix), 2 is the name of the user who created it, and 3 is the label to display above the file. If 3 is omitted, it will default to a direct link to the file.

The template is known to mess up the layout of images; when used with illustrated articles, it is suggested to put this template under Etymology sections where images are not used.