Anonymous user
Template:Smalldiv/doc: Difference between revisions
From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
→Usage: update instructions
m (→See also: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other) |
(→Usage: update instructions) |
||
Line 4:
== Usage ==
This template is a drop-in replacement for {{tl|small}} templates or {{tag|small}} tags that wrap multiple lines or wrap a template containing {{tag|div}} tags. When a {{tl|small}} template or {{tag|small}} tags wrap multiple lines, [[Special:LintErrors|Linter]] errors are caused, typically "Missing end tag", "Misnested tag", or "Stripped tag".
The only parameter, {{para|1=}}, is the content that is intended to be rendered at a font size of 85% of normal.
Note that if the <code>=</code> character appears in the content, it should be replaced with {{tl|{{=}}}}, or the content must be explicitly preceded with {{para|1}}. See examples in the table below. Pages with this error are likely to appear in {{clc|Pages using small with an empty input parameter}}. ▼
▲Note that if the <code>=</code> character appears in the content, it should be replaced with {{tl|{{=}}}}, or the content must be explicitly preceded with {{para|1}}. See examples in the table below. Pages
:Examples of uses for {{tl|smalldiv}}
Line 36:
| {{smalldiv|{{hidden||{{nowrap|Ichirō Hatoyama – 394<br/>Nobusuke Kishi – 4<br/>''Others'' – 15}}}}}}
|-
|Example with = character in the content (error):<br/> <code><nowiki>{{smalldiv|Ichirō Hatoyama = 394<br/>Nobusuke Kishi = 4<br/>''Others'' = 15}}</nowiki></code>
| {{smalldiv|Ichirō Hatoyama = 394<br/>Nobusuke Kishi = 4<br/>''Others'' = 15}}
|-
|