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 ==
ThisUse this template is a drop-in replacementinstead forof {{tl|small}} whenor it is used{{tag|small}} to wrap multiple lines of text, or to wrap a template containingthat contains {{tag|div}} tags. When {{tl|small}} wraps multiple lines, it causes [[Special:LintErrors|Linter]] errors, including "Missing end tag" and "Stripped tag".
 
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 is the content and may contain templates, images, etc. if a block needs to be wrapped in this template and contains such elements.
 
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 withignoring this errorinstruction are likely to appear in {{clc|Pages using small with an empty input parameter}}.
Use this template instead of {{tl|small}} to wrap multiple lines.
 
: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}}
|-
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu