Template:Repeat: Difference between revisions

From PS3 Developer wiki
Jump to navigation Jump to search
(Created page with "<includeonly>{{Repeat/1|{{{1}}}|{{#expr:{{{2}}}mod400}}}}{{Repeat/1|{{Repeat/1|{{{1}}}|400}}|{{#expr:({{{2}}}-{{{2}}}mod400)/400}}}}</includeonly><noinclude>{{Documentation}}<...")
 
mNo edit summary
 
Line 1: Line 1:
<includeonly>{{Repeat/1|{{{1}}}|{{#expr:{{{2}}}mod400}}}}{{Repeat/1|{{Repeat/1|{{{1}}}|400}}|{{#expr:({{{2}}}-{{{2}}}mod400)/400}}}}</includeonly><noinclude>{{Documentation}}</noinclude>
<includeonly>{{Repeat/1|{{{1}}}|{{#expr:{{{2}}}mod400}}}}{{Repeat/1|{{Repeat/1|{{{1}}}|400}}|{{#expr:({{{2}}}-{{{2}}}mod400)/400}}}}</includeonly><noinclude>{{Documentation}}</noinclude>
[[Category:Templates]]

Latest revision as of 21:33, 14 December 2012

[edit] Template documentation

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]

mk:Шаблон:Повтори