Template talk:SchematicSprite

Max loops?
I think I'm running into a loop maximum of 50 per page, because of my use of #while. Am I correct that if I switch to using #forargs or #fornumargs, I won't hit any page maximums? I think I see how to make that work, using some secondary templates: #replace +s with pipes; when that's plugged into a secondary template call, the template will only see pipes separating parameters and can cycle through them with #fornumargs…. If that works, it might actually make the code easier to follow.

&mdash;Munin295 &middot;  &middot; 06:06, 8 February 2013 (UTC)


 * Yes #forargs or #fornumargs are not counted in the loop PP. –ultradude25 ᐸ Talk Contribs 03:23, 9 February 2013 (UTC)


 * Okay. I couldn't find a way to #replace +s with pipes ( doesn't get expanded until later, I think) so I just called a predefined number of parameters with #exploded pieces of the string. A little extra work for the server handling blank parameters, but it seems to have solved the issue. Thanks!
 * &mdash;Munin295 &middot; Grid_Book_and_Quill.png Grid_Stone_Pickaxe.png &middot; 06:33, 9 February 2013 (UTC)


 * Can you not use &amp;#124;? –ultradude25 ᐸ Talk Contribs 06:49, 9 February 2013 (UTC)


 * I couldn't get either of them to work. The replacement occurs, but it doesn't seem to get the template call to interpret the string as multiple parameters, so maybe they get converted to pipes later? You can see some tests I did at SchematicSprite/sandbox.
 * &mdash;Munin295 &middot; Grid_Book_and_Quill.png Grid_Stone_Pickaxe.png &middot; 08:04, 9 February 2013 (UTC)