Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Template:Side box

Permanently protected template
From Wikipedia, the free encyclopedia
Template documentation[view] [edit] [history] [purge]
WarningThis template is used onapproximately 1,230,000 pages, or roughly 2% 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.
This template usesLua:
above content appears here, in a separate row above the main text area
(image)
text content, the box's main content, appears here
(image
right
 )
below content appears here, in a separate row below the main text area
{{{above}}}
{{{image}}}
{{{text}}}
{{{imageright}}}
{{{below}}}

Side box is a meta-template that can be used to create nicely-styled floating content boxes (see example directly opposite).

Parameters

ParameterDescription
metadataSet as|metadata=no to suppress theHTML "metadata" class.
positionSet as|position=left to position the box on the left-hand rather than right-hand side of the page and remove the float.
classCSSclasses to apply to the box.
styleCSS styles to apply to the box.
roleWAI-ARIA role, such as note or figure, to apply to the box.
labelledbyHTML id of an element that acts as a label for the box.
abovestyleCSS styles to apply to the "above" cell (see next parameter) only.
aboveContent to appear in a separate row above the main cell (and spanning the entire width of the box).
imageA full image tag (or other content); if this is not present or set asnone, no image is displayed.
textclassCSS classes to apply to the text cells only. (default: 'plainlist')
textstyleCSS styles to apply to the text cells only.
textText to display in the box.
imagerightA full image tag (or other content) to display in a separate table cell on the box's righthand side.
belowContent to appear in a separate row underneath the main cell (and spanning the entire width of the box).

TemplateData

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

TemplateData for Side box

A meta-template that can be used to create nicely-styled floating content boxes

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
aboveabove

no description

Unknownoptional
imageimage

no description

Unknownoptional
texttext

no description

Unknownoptional
imagerightimageright

no description

Unknownoptional
belowbelow

no description

Unknownoptional

See also

The abovedocumentation istranscluded fromTemplate:Side box/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:Side_box&oldid=774482268"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2025 Movatter.jp