Template talk:Loop

message: What is the difference between this template and ?—Ëzhiki (Igels Hérissonovich Ïzhakoff-Amursky) • (yo?); 16:03, 23 March 2007 (UTC)
thread_title: Question

message: Where do you type it in?  —Preceding unsigned comment added by 76.126.233.15 (talk) 03:18, 1 May 2008 (UTC)
thread_title: QUESTION

message: Does this template still work with the new preprocessor? I know  doesn't. Thanks. Verisimilus T 00:13, 28 January 2008 (UTC)
replies: text: Yes, it does.--Patrick (talk) 13:52, 28 January 2008 (UTC)
thread_title: Preprocessor

message: Please update  with . Per Wikipedia:Template documentation/List Thankyou. -- ṃ•α•Ł•ṭ•ʰ•Ə•Щ•  @ 06:13, 28 April 2008 (UTC)
replies: text: Done.--Patrick (talk) 07:23, 28 April 2008 (UTC)
thread_title:  Edit request 

message: is there any way to call loop as an inner template?  ie:

where the number of loop reiterations is passed by the outer template?  I get this "Expression error: Unrecognised punctuation character "{"" when I try it.  Thanks.  --stmrlbs|talk 07:04, 3 August 2009 (UTC)
replies: text: That should work, can you give a link to your attempt?--Patrick (talk) 07:40, 11 September 2009 (UTC)
thread_title:  Is there any way to call loop as an inner template? 

message: I made this on the RuneScape Wiki, and it works until 1399 times instead of 149 times. Also it is a shorter code. 
Show code
This is for 1399 repeatings as a limit:

And this for 139 repeatings:
{#ifexpr:(2<=10)=1||}}
With the "Multi/1" being 

(the rmv template has )
As you can see this is a shorter code than what is currently on the template(1355+57=1412 bytes instead of 5927 bytes) and it repeats almost 10 times as much.
Joeytje50 (talk) 20:36, 21 November 2010 (UTC)
replies: text: Are you suggesting that we replace this template with your code?  The nice thing about this code is that it has no expression nesting, which can be a major problem, given the 40 level limit for the Wikimedia servers.  What is the post-expand size of your version?  This is another issue for the servers.  Also, is there a reason why we need to loop more than 149 times?  Thanks! Plastikspork ―Œ(talk) 21:42, 21 November 2010 (UTC)
replies: text: So this code is not possible for wikipedia? Joeytje50 (talk) 20:39, 22 November 2010 (UTC)
replies: text:  The issue is not so much if it would work most of the time,  see Template:Repeat for example, but the complexity of what might be inside the loop.  The nice thing about this implementation is that it has no nesting, which reducing the potential for nesting limits.  I am just curious why we need to be looping so many times. Thanks! Plastikspork ―Œ(talk) 02:43, 23 November 2010 (UTC)
replies: text: It could be useful in any case. I don't know any, but if you scroll trough the template links, you will probably find examples of things that need repeating, so maybe you will be able to think of something yourself. And one question: what is "nesting"? is that the using of a template inside a template?Joeytje50 (talk) 19:18, 23 November 2010 (UTC)
replies: text:  Yes, nesting is either using a template inside of another template (limit is 40 levels), or using a parser function inside of another parser function.  For example, see the ongoing discussion at Template talk:convert or Template talk:documentation or Template talk:rnd.  It is for this reason that we should try to keep these templates simple, and only add complexity when we need to.  Thanks! Plastikspork ―Œ(talk) 06:26, 24 November 2010 (UTC)
thread_title:  Edit request from Joeytje50, 21 November 2010 

message: Relevant discussion: https://en.wikipedia.org/w/index.php?title=Wikipedia:Lua_requests&oldid=557697440#Template:Loop --MZMcBride (talk) 15:31, 31 May 2013 (UTC)
thread_title:  Replace current template logic with a Scribunto module