Template:Smalldiv/doc: Difference between revisions
From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
Content deleted Content added
m →See also: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other |
→Usage: update instructions |
||
Line 4: | Line 4: | ||
== Usage == |
== Usage == |
||
Use this template instead of {{tl|small}} or {{tag|small}} to wrap multiple lines of text, or to wrap a template that contains {{tag|div}} tags. |
|||
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 |
||
⚫ | 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 ignoring this instruction 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}} |
:Examples of uses for {{tl|smalldiv}} |
||
Line 36: | Line 36: | ||
| {{smalldiv|{{hidden||{{nowrap|Ichirō Hatoyama – 394<br/>Nobusuke Kishi – 4<br/>''Others'' – 15}}}}}} |
| {{smalldiv|{{hidden||{{nowrap|Ichirō Hatoyama – 394<br/>Nobusuke Kishi – 4<br/>''Others'' – 15}}}}}} |
||
|- |
|- |
||
|Example with = character in the content:<br/> <code><nowiki>{{smalldiv|Ichirō Hatoyama = 394<br/>Nobusuke Kishi = 4<br/>''Others'' = 15}}</nowiki></code> |
|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}} |
| {{smalldiv|Ichirō Hatoyama = 394<br/>Nobusuke Kishi = 4<br/>''Others'' = 15}} |
||
|- |
|- |