Changes
Jump to navigation
Jump to search
enhance with link to smalldiv template
{{Documentation subpage}}
{{High-risk| 435938 }}
{{COinS safe|n}}
{{Notice|As of [[Special:Diff/724648585|June 10, 2016]], a rule has been added to MediaWiki:Common.css, so now {{tag|small|o}} consistently renders at a 85% size. This template remains as a convenience wrapper.}}
{{Uses TemplateStyles|Template:Small/styles.css}}
== Usage ==
This template is a replacement for {{tag|small}}.
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. Note that if the <code>=</code> character appears in the content, the parameter must be explicitly specified as {{para|1}}.
Do not use this template to wrap multiple lines; doing so will cause [[Special:LintErrors|Linter]] errors. If you need to wrap multiple list items or multiple paragraphs, use {{tl|smalldiv}} around the entire block, or wrap each list item or paragraph separately.
:Thus {{done|Good practice}}
{| class="wikitable"
|-
!input
!shows
|-
| <code><nowiki>What a wonderful world</nowiki></code>
| What a wonderful world
|-
| <code><nowiki>{{small|What a wonderful world}}</nowiki></code>
| {{small|What a wonderful world}}
|-
| <code><nowiki>{{small|1=3 + 2 = 5}}</nowiki></code>
| {{small|1=3 + 2 = 5}}
|-
|<code><nowiki>{{small|1=103}}</nowiki></code>
<code><nowiki>{{small|1=+ 2}}</nowiki></code>
<code>——</code>
<code><nowiki>{{small|1=105}}</nowiki></code>
|{{small|1=103}}
{{small|1=+ 2}}
——
{{small|1=105}}
|}
{{not done|Don't do this}}:
<pre><nowiki>{{small|
*One
*Two
*Three}}</nowiki></pre>
{{done|Do this instead}}:
<pre><nowiki>{{smalldiv|
*One
*Two
*Three}}</nowiki></pre>
== Template data ==
{{TemplateDataHeader}}
<templatedata>
{
"description": "A template shortcut for the \"small\" HTML tag that makes the font smaller ",
"params": {
"1": {
"label": "Text",
"description": "The text that you'd like to be made smaller",
"type": "string",
"required": true
}
}
}
</templatedata>
== Tracking category ==
* {{clc|Pages using small with an empty input parameter}}
== See also ==
{{font size templates}}
<includeonly>
<!-- CATEGORIES HERE, THANKS -->
[[Category:Resizing templates|{{PAGENAME}}]]
[[Category:Wikipedia XHTML tag-replacing templates]]
</includeonly>
{{High-risk| 435938 }}
{{COinS safe|n}}
{{Notice|As of [[Special:Diff/724648585|June 10, 2016]], a rule has been added to MediaWiki:Common.css, so now {{tag|small|o}} consistently renders at a 85% size. This template remains as a convenience wrapper.}}
{{Uses TemplateStyles|Template:Small/styles.css}}
== Usage ==
This template is a replacement for {{tag|small}}.
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. Note that if the <code>=</code> character appears in the content, the parameter must be explicitly specified as {{para|1}}.
Do not use this template to wrap multiple lines; doing so will cause [[Special:LintErrors|Linter]] errors. If you need to wrap multiple list items or multiple paragraphs, use {{tl|smalldiv}} around the entire block, or wrap each list item or paragraph separately.
:Thus {{done|Good practice}}
{| class="wikitable"
|-
!input
!shows
|-
| <code><nowiki>What a wonderful world</nowiki></code>
| What a wonderful world
|-
| <code><nowiki>{{small|What a wonderful world}}</nowiki></code>
| {{small|What a wonderful world}}
|-
| <code><nowiki>{{small|1=3 + 2 = 5}}</nowiki></code>
| {{small|1=3 + 2 = 5}}
|-
|<code><nowiki>{{small|1=103}}</nowiki></code>
<code><nowiki>{{small|1=+ 2}}</nowiki></code>
<code>——</code>
<code><nowiki>{{small|1=105}}</nowiki></code>
|{{small|1=103}}
{{small|1=+ 2}}
——
{{small|1=105}}
|}
{{not done|Don't do this}}:
<pre><nowiki>{{small|
*One
*Two
*Three}}</nowiki></pre>
{{done|Do this instead}}:
<pre><nowiki>{{smalldiv|
*One
*Two
*Three}}</nowiki></pre>
== Template data ==
{{TemplateDataHeader}}
<templatedata>
{
"description": "A template shortcut for the \"small\" HTML tag that makes the font smaller ",
"params": {
"1": {
"label": "Text",
"description": "The text that you'd like to be made smaller",
"type": "string",
"required": true
}
}
}
</templatedata>
== Tracking category ==
* {{clc|Pages using small with an empty input parameter}}
== See also ==
{{font size templates}}
<includeonly>
<!-- CATEGORIES HERE, THANKS -->
[[Category:Resizing templates|{{PAGENAME}}]]
[[Category:Wikipedia XHTML tag-replacing templates]]
</includeonly>