Template:Resize/doc/main
< Template:Resize | doc
Lua error: Internal error: The interpreter exited with status 127. It is to change the font size of a text string.
Usage
- Lua error: Internal error: The interpreter exited with status 127. — N specifies a size, such as "95%", "1.2em", etc.
- Lua error: Internal error: The interpreter exited with status 127. — If N is omitted, as in the second line above, a default 90% size is applied.
- Lua error: Internal error: The interpreter exited with status 127. — As above but uses a div tag instead of a span tag.
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
Lua error: Internal error: The interpreter exited with status 127.
orLua error: Internal error: The interpreter exited with status 127.
.
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.
- Use Lua error: Internal error: The interpreter exited with status 127..
- Use {{smalldiv}}.
Examples
Code | Result |
---|---|
Lua error: Internal error: The interpreter exited with status 127. | This text defaults to 90% normal size. |
Lua error: Internal error: The interpreter exited with status 127. | This text is 80% normal size. |
Lua error: Internal error: The interpreter exited with status 127. | This text is 0.2em larger than normal. |
{{resize|We know 1+1=2 and 2+2=4. It will fail to render}} |
{{{1}}} |
{{resize|We know 1+1{{=}}2 and 2+2{{=}}4.}} |
We know 1+1=2 and 2+2=4. |
{{resize|1=We know 1+1=2 and 2+2=4.}} |
We know 1+1=2 and 2+2=4. |
{{resize|120%|2=We know 1+1=2 and 2+2=4. This text is 120% normal size.}} |
We know 1+1=2 and 2+2=4. This text is 120% normal size. |