Jump to content

MediaWiki talk:Parser-template-loop-warning

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Davidgothberg (talk | contribs) at 23:47, 18 February 2009 (Debresser: Good idea. But I tried it and it didn't work, sorry.). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Don't categorise itself

{{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.
Additional comment:
I don't think there is much to do. Sure, we could try to use some parserfuntion (that is an #ifeq: or so and check the pagename), but I doubt it will work.
--David Göthberg (talk) 23:47, 18 February 2009 (UTC)[reply]