MediaWiki talk:Parser-template-loop-warning

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

Don't categorise itself[edit]

{{editprotected}}

To prevent the MediaWiki page itself from being added to the Category:Template loop warnings (since it doesn't have any loops itself) would putting the category between <includeonly>...</includeonly> be enough? Debresser (talk) 21:07, 18 February 2009 (UTC)[reply]

As you said in the edit summary, the "includeonly" was visible. I was afraid this might happen, because this is not a regular template. Any ideas for another solution? Not that it is such a big deal, but still. Debresser (talk) 23:37, 18 February 2009 (UTC)[reply]

Gah! You are too fast, I was just writing a comment and got an editconflict: Here's my first response:
Good idea. But since this is a MediaWiki message you never know how it is parsed. So I tried it and checked the result. And ouch, the includeonlys got visible on the pages where this warning is used, so we can't use them. Guess we have to live with having this page in the category. Sorry.
--David Göthberg (talk) 23:47, 18 February 2009 (UTC)[reply]
checkY Done - Okay, that was odd. Since you Debresser seemed so enthusiastic about it I tried a very long shot: I used an #ifeq: to check the pagename instead. And waddayanow, it worked. Looks fine on the pages that has this warning message. MediaWiki never ceases to surprise.
--David Göthberg (talk) 23:59, 18 February 2009 (UTC)[reply]
Very nice. Good to know there're smart admins around here. :) The obvious solution. I've used variations of it. Usually a more general one on userboxes. Debresser (talk) 00:31, 19 February 2009 (UTC)[reply]
Hehe, thanks. And well, template coding is what I mostly do here at Wikipedia, so parserfunctions such as #ifeq: is what I work with everyday. I was asked to become admin since many of the templates I had created had become high-use and thus protected. Thus since I continued to take care of those templates I was doing editprotected requests so often that they made me admin to get me off their backs. :))
--David Göthberg (talk) 02:51, 19 February 2009 (UTC)[reply]

Implementing CfD[edit]

Per Wikipedia:Categories for discussion/Log/2020 August 8#Category:Template loop warnings Category:Template loop warnings is to be deleted. This is implemented by removing everything except the first line (The ifeq block) from this page. While you're at it please delete the category as well. --Trialpears (talk) 09:23, 7 October 2020 (UTC)[reply]

 Done — Martin (MSGJ · talk) 12:07, 7 October 2020 (UTC)[reply]

Protected edit request on 3 February 2021[edit]

Please change [[$1]] to [[:$1]], because a template loop on a file or category page does not display the message correctly without the colon. 54nd60x (talk) 04:46, 3 February 2021 (UTC)[reply]

Done. — The Earwig talk 07:21, 3 February 2021 (UTC)[reply]