Template:Repeat
Jump to navigation
Jump to search
[edit] Template documentation
Usage
{{repeat|text|count}}
Examples
"{{repeat|[[:Template:Xpd/code]][[:Template:Xpd/code]][[:Template:Xpd/code]]|[[:Template:Xpd/code]][[:Template:Xpd/code]][[:Template:Xpd/code]]}}[[:Template:Xpd/code]][[:Template:Xpd/code]][[:Template:Xpd/code]][[:Template:Xpd/code]][[:Template:Xpd/code]][[:Template:Xpd/code]][[:Template:Xpd/code]][[:Template:Xpd/code]][[:Template:Xpd/code]]"
gives "ababababababababababababababababababababababab" [1]"{{repeat|[[:Template:Xpd/code]][[:Template:Xpd/code]][[:Template:Xpd/code]]|[[:Template:Xpd/code]][[:Template:Xpd/code]][[:Template:Xpd/code]]}}[[:Template:Xpd/code]][[:Template:Xpd/code]][[:Template:Xpd/code]][[:Template:Xpd/code]][[:Template:Xpd/code]][[:Template:Xpd/code]][[:Template:Xpd/code]][[:Template:Xpd/code]][[:Template:Xpd/code]]"
gives "ab ab abab ab ab ab ab ab ab ab ab ab ab ab ab ab ab ab ab ab ab ab" [2]{{#expr:{{repeat|ln(10*|20}}1{{repeat|)/ln2|20}}}}
gives Expression error: Unrecognized punctuation character "[". (iterative method, solving <math>10x=2^x</math>)