Template:Pronounce: Difference between revisions

From Tolkien Gateway
m (Adding some more letters and brackets. Nothing will go wrong)
(Updated documentation. Might tweak further later on; there's no reason this should have to be hard-coded to the right)
 
(One intermediate revision by the same user not shown)
Line 2: Line 2:
<table style="border: 3px double #d8d6d6; color: #000; background-color: #f5f5f5; font-size: 0.8em; line-height: 1.5;" width="275px">
<table style="border: 3px double #d8d6d6; color: #000; background-color: #f5f5f5; font-size: 0.8em; line-height: 1.5;" width="275px">
<tr>
<tr>
<td style="text-align:center">{{{3}}}</td>
<td style="text-align:center; padding-bottom:3px" colspan="2">{{{3|[[:File:{{{1}}}]]}}}</td>
</tr>
</tr>
<tr>
<tr>
Line 15: Line 15:
<noinclude>
<noinclude>
==Usage==
==Usage==
<nowiki>{{</nowiki>pronounce|'''1'''|'''2'''<nowiki>}}</nowiki>
<nowiki>{{</nowiki>pronounce|'''1'''|'''2'''|'''3'''<nowiki>}}</nowiki>


Where, '''1''' is the link to the file and '''2''' is the name of the user who created it.
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.


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.
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.

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.