Difference between revisions of "Template:Lower"

From blackwiki
Jump to navigation Jump to search
blackwiki>David Kernow
(updating link using AWB)
m (19 revisions imported)
 
(7 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<includeonly>{{#if:{{{2|}}} |<!--then:(offset specified)--><span style="position:relative; top:{{{1}}};">{{{2|}}}</span>|<!--else:(offset not specified; use default)--><span style="position:relative; top:8px;">{{{1|}}}</span><!--end #if:-->}}</includeonly><noinclude>
+
<span style="position: relative; top: {{safesubst<noinclude />:#if:{{{2|}}}|{{{1}}}|0.6em}};">{{{2|{{{1}}}}}}</span><noinclude>
{{hprotected}}
+
{{documentation}}
Use to lower some text or other element a specified number of pixels (px), otherwise by a default 8px:
 
: <code><nowiki>{{</nowiki>lower|''N''px|''text''/''element''}}</code> to lower by ''N'' pixels{{spaces|2}}<span style="font-size:90%;">(e.g. <code><nowiki>{{</nowiki>lower|6px|This is the text to lower.}}</code>)
 
: <code><nowiki>{{</nowiki>lower|''text''/''element''}}</code> to lower by default 8px.
 
Can be useful e.g. to position <nowiki><ref></nowiki>erence links (footnote links) appearing in tables without any preceeding text (cf {{tl|Infobox Ethnic group}}).
 
 
 
== See also ==
 
* {{tl|Raise}}
 
 
 
 
 
<!--Categories-->
 
[[Category:Formatting templates|{{PAGENAME}}]]
 
 
</noinclude>
 
</noinclude>

Latest revision as of 11:09, 22 September 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