Template:Resize/doc: Difference between revisions
Jump to navigation
Jump to search
m (→Beware) |
mNo edit summary |
||
Line 3: | Line 3: | ||
==Usage== | ==Usage== | ||
<code><nowiki>{{ | <code><nowiki>{{Resize|N|text}}</nowiki></code> — N specifies a size, such as "95%", "1.2em", etc. | ||
<code><nowiki>{{ | <code><nowiki>{{Resize|text}}</nowiki></code> — If N is omitted, as in the second line above, a default 90% size is applied. | ||
==Beware== | ==Beware== |
Revision as of 04:05, 22 April 2021
It contains usage information, categories and other content that is not part of the original template page.
|
Usage
{{Resize|N|text}}
— N specifies a size, such as "95%", "1.2em", etc.
{{Resize|text}}
— If N is omitted, as in the second line above, a default 90% size is applied.
Beware
Beware that if text
happens to contain an equality sign (=), it will fail to render properly. Here are the workarounds:
- Replace all instances of
=
with{{=}}
, or - Specify
{{resize|N|2=text}}
or{{resize|1=text}}
.
Also it will fail to wrap multiple blocks, such as multiple paragraphs or multiple bullet points. Here are the workarounds:
- Use, for example,
<div style="font-size:90%;">
...multiple paragraphs...
</div>
, or - Apply this template separately to each block of paragraph, bullet point etc.