Template:2x/doc

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search

Repeats what you enter twice.

{{2x|your text here}}
produces:
your text hereyour text here
{{2x|your text here|,}}
produces:
your text here,your text here

Example

[edit source]
Code Result
{{2x|Red Sox!}} Red Sox!Red Sox!
{{2x|Red Sox!| }} Red Sox! Red Sox!

TemplateData

[edit source]
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:2x in articles based on its TemplateData.

TemplateData for 2x

Repeats what you enter twice.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Text1

This text will be repeated

Unbalanced wikitextrequired
Separator2

Goes between the two repetitions

Example
,
Unbalanced wikitextoptional

See also

[edit source]
  • {{1x}}
  • {{2x}}
  • {{3x}}
  • {{4x}}
  • {{5x}}
  • {{Loop}} (for arbitrary numbers of repetitions)