Difference between revisions of "Template:Repeat/doc"

From Yugipedia
Jump to: navigation, search
(update documentation)
(may as well add an example)
Line 8: Line 8:
  
 
*''text'' is the text or code to be repeated.
 
*''text'' is the text or code to be repeated.
 +
*''number'' is the number of times to repeat the text or code.
  
*''number'' is the number of times to repeat the text or code.
+
For example, the code <code><nowiki>{{Repeat|[[File:Star.svg]]|7}}</nowiki></code> results in {{Repeat|[[File:Star.svg]]|7}}
  
 
<includeonly>
 
<includeonly>

Revision as of 06:16, 5 January 2012

{{Repeat}} is used to repeat a given bit of text or code a specified number of times.

Usage

{{Repeat|text|number}}

  • text is the text or code to be repeated.
  • number is the number of times to repeat the text or code.

For example, the code {{Repeat|[[File:Star.svg]]|7}} results in Star.svgStar.svgStar.svgStar.svgStar.svgStar.svgStar.svg