Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Template:Small

Permanently protected template
From Wikipedia, the free encyclopedia

{{{1}}}

Template documentation[view] [edit] [history] [purge]
WarningThis template is used onapproximately 631,000 pages, or roughly 1% of all pages.
To avoid major disruption and server load, any changes should be tested in the template's/sandbox or/testcases subpages, or in your ownuser subpage. The tested changes can be added to this page in a single edit. Consider discussing changes on thetalk page before implementing them.
iconThis templateshould not be used incitation templates such asCitation Style 1 andCitation Style 2, because it includes markup that will pollute theCOinS metadata they produce; seeWikipedia:COinS.
As ofJune 10, 2016, a rule has been added to MediaWiki:Common.css, so now<small> consistently renders at size that is 85% of the surrounding text. This template remains as a convenience wrapper.

{{Small}} is a replacement for<small>...</small>.

Usage

Remember "Avoid using smaller font sizes in elements that already use a smaller font size, such as infoboxes, navboxes and references sections", perMOS:ACCESS#Font size andMOS:SMALLFONT. Using this template within an infobox would produce a font size 75% of the page default, well below the 85% minimum specified in the linked guidelines.

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= character appears in the content, the parameter must be explicitly specified as|1=.

Usage with multiple lines

Do not use this template to wrap multiple lines; doing so will causeLinter errors. If you need to wrap multiple list items or multiple paragraphs, use{{smalldiv}} around the entire block, or wrap each list item or paragraph separately.

Thus Good practice:

inputshows
What a wonderful worldWhat a wonderful world
{{small|What a wonderful world}}What a wonderful world
{{small|1=3 + 2 = 5}}3 + 2 = 5
{{small|1=103}}{{small|1=+ 2}}——{{small|1=105}}
103

+ 2

——

105

 Don't do this:

{{small|*One*Two*Three}}

 Do this instead:

{{smalldiv|*One*Two*Three}}

TemplateData

This is theTemplateData for this template used byTemplateWizard,VisualEditor and other tools.See a monthly parameter usage report forTemplate:Small in articles based on its TemplateData.

TemplateData for Small

A template shortcut for the "small" HTML tag that makes the font smaller

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Text1

The text that you'd like to be made smaller

Stringrequired

Tracking categories

See also

Font size templates
Code for inline contentCode for block contentSizeResult
{{small|text}}{{smalldiv|text}}85%text
{{resize|text}}{{resizediv|text}}90%text
nonenone100%text
{{large|text}}{{largediv|text}}120%text
{{huge|text}}180%text
{{resize|x%|text}}{{resizediv|x%|text}}customvaries
{{font|size=x%}}customvaries
The abovedocumentation istranscluded fromTemplate:Small/doc.(edit |history)
Editors can experiment in this template'ssandbox(edit |diff) andtestcases(edit) pages.
Add categories to the/doc subpage.Subpages of this template.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Small&oldid=1313016425"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2025 Movatter.jp