Template:Repeat/doc
Jump to navigation
Jump to search
This is a documentation subpage for Template:Repeat (see that page for the template itself). It contains usage information, categories and other content that is not part of the original template page. |
Usage[edit source]
{{repeat|text|count}}
Examples[edit source]
"{{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>)
See also[edit source]
- Template:loop (backlinks, edit)
- Template:for loop (backlinks, edit)
- Template:simple recursion (backlinks, edit)
- Template:Repetition (backlinks, edit)