Difference between revisions of "Template:Lower"

From blackwiki
Jump to navigation Jump to search
blackwiki>NeilN
m (Changed protection level of Template:Lower: Highly visible template ([Edit=Allow only template editors and admins] (indefinite) [Move=Allow only template editors and admins] (indefinite)))
blackwiki>Ahecht
(Make substable)
Line 1: Line 1:
<span style="position: relative; top: {{#if:{{{2|}}}|{{{1}}}|0.6em}};">{{{2|{{{1}}}}}}</span><noinclude>
+
<span style="position: relative; top: {{safesubst<noinclude />:#if:{{{2|}}}|{{{1}}}|0.6em}};">{{{2|{{{1}}}}}}</span><noinclude>
 
{{documentation}}
 
{{documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 00:36, 17 April 2020

{{{1}}}

Template documentation[view] [edit] [history] [purge]

Use to lower some text or other element a specified number of units – the proportional "em" units are recommended – otherwise by a default 0.6em:

{{lower|Nem|text/element}} to lower by N em units  (e.g. {{lower|0.4em|This is the text to lower.}})
{{lower|text/element}} to lower by the default amount.

Can be useful e.g. to position <ref>erence links (footnote links) appearing in tables without any preceding text (cf. {{Infobox ethnic group}}).

See also