Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Template:Times

Permanently protected template
From Wikipedia, the free encyclopedia

 × 

<spanclass="nowrap">{{{1|}}}&thinsp;&times;&thinsp;{{{2|}}}</span>
Template documentation[view] [edit] [history] [purge]

Usage

{{times}}

or

{{resx|horizontal|vertical}}

{{times}} and{{resx}} are intended for use as amultiplication sign and with display resolutions, respectively. This template substitutes for a multiplication sign with a thinspace on either side. Resolution numbers can also be entered (optionally) as parameters to the template. This has the advantage of preventing the resolution from being split across lines by word wrapping, which can occur when the numbers are outside the template.

Example UsageOutputComment
{{resx|1920|1080}}
{{resx|1920px|1080px}}
1920 × 1080

1920px × 1080px

Including the numbers as arguments prevents word wrapping in the middle and uses the product of the numbers as a sort key in tables.This is the recommended syntax.
1920{{resx}}1080
1920 × 1080With no arguments, the template outputs the multiplication sign enclosed by thin spaces.
{{resx|1920x1080}}{{resx|1920X1080}}{{resx|1920*1080}}{{resx|1920×1080}}
{{resx|1920 x 1080}}{{resx|1920 X 1080}}{{resx|1920 * 1080}}{{resx|1920 × 1080}}
{{resx|1920 x 1080}}

(etc.)

1920 × 1080

Single argument syntax is allowed, using a spaced or unspaced letterx, multiplication sign×, or an asterisk*, to make converting existing articles to this template more convenient. Table sorting does not function with this syntax.
{{resx|1920px x 1080px}}{{resx|1920px * 1080px}}{{resx|1920px × 1080px}}
{{resx|1920x1080 px}}{{resx|1920*1080 px}}{{resx|1920×1080 px}}
1920p ×  × 1080p × 

1920 × 1080 p × 

The letterx is converted aggressively

TemplateData

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

TemplateData for Times

This template is intended for use as a multiplication sign and commonly used with display resolutions

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
First number1

The number before the multiplication sign (e.g. 1920 in 1920x1080)

Numberoptional
Second number2

The number after the multiplication sign (e.g. 1080 in 1920x1080)

Numberoptional

See also

The abovedocumentation istranscluded fromTemplate:Times/doc.(edit |history)
Editors can experiment in this template's sandbox(create |mirror) and testcases(create) pages.
Add categories to the/doc subpage.Subpages of this template.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Times&oldid=1136867341"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2025 Movatter.jp