Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Template:Smalldiv

Permanently protected template
From Wikipedia, the free encyclopedia
{{{1}}}
Template documentation[view] [edit] [history] [purge]
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.
WarningThis template is used onapproximately 37,000 pages and changes may be widely noticed. Test changes in the template's/sandbox or/testcases subpages, or in your ownuser subpage. Consider discussing changes on thetalk page before implementing them.

Usage

{{Smalldiv}} should be used instead of{{small}} or<small>...</small> to wrap multiple lines of text, or to wrap a template that contains<div>...</div> tags.

This template is a drop-in replacement for{{small}} templates or<small>...</small> tags that wrap multiple lines or wrap a template containing<div>...</div> tags. When a{{small}} template or<small>...</small> tags wrap multiple lines,Linter errors are caused, typically "Missing end tag", "Misnested tag", or "Stripped tag".

The only parameter,|, is the content that is intended to be rendered at a font size of 85% of normal.

Note that if the= character appears in the content, it should be replaced with{{=}}, or the content must be explicitly preceded with|1=. See examples in the table below. Pages ignoring this instruction are likely to appear inCategory:Pages using small with an empty input parameter (1,838).

Examples of uses for{{smalldiv}}
inputshows
{{smalldiv|*One*Two*Three}}
  • One
  • Two
  • Three
{{smalldiv|{{unbulleted list|One|Two|Three}}}}
  • One
  • Two
  • Three
{{smalldiv|{{hlist|One|Two|Three}}}}
  • One
  • Two
  • Three
{{smalldiv|{{hidden||{{nowrap|Ichirō Hatoyama – 394<br/>Nobusuke Kishi – 4<br/>''Others'' – 15}}}}}}
Ichirō Hatoyama – 394
Nobusuke Kishi – 4
Others – 15
Example with = character in the content (error):
{{smalldiv|Ichirō Hatoyama = 394<br/>Nobusuke Kishi = 4<br/>''Others'' = 15}}
{{{1}}}
Example with = character in the content using|1=:
{{smalldiv|1=Ichirō Hatoyama = 394<br/>Nobusuke Kishi = 4<br/>''Others'' = 15}}
Ichirō Hatoyama = 394
Nobusuke Kishi = 4
Others = 15

When not to use this template

Remember to "avoid using smaller font sizes in elements that already use a smaller font size, such as infoboxes, navboxes and reference sections", perMOS:ACCESS#Font size andMOS:SMALLFONT. Using this template within an infobox or a navbox reduces the text size to about 75%, which is smaller than the 85% limit prescribed by the MOS guideline.

TemplateData

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

TemplateData for Smalldiv

A template that makes the font smaller for multiple lines

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Text1

The text that you'd like to be made smaller

Stringrequired

Tracking category

See also

  • {{bigdiv}} (for wrapping multiple lines in big formatting)
  • {{monodiv}} (for wrapping multiple lines in monospace formatting)
  • {{bold div}} (for wrapping multiple lines in bold formatting)
  • {{italic div}} (for wrapping multiple lines in italic formatting)
  • {{Resizediv}} – block-level template for changing text size
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:Smalldiv/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:Smalldiv&oldid=1008154658"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2026 Movatter.jp