Template talk:Userbox preview

From Guild Wars 2 Wiki
Jump to navigationJump to search

This needs category surpression from w:Template:Usbk but I'm not sure how it works. -- User Nineaxis Icon Mesmer.jpg Nineaxis (talk) 16:08, 25 July 2012 (UTC)

The individual templates have to allow for category suppression, you can't force it from this template alone. Since these are userboxes, they should probably only add the category when used in userspace, so the best way to do this is to edit each userbox and change:
<includeonly>[[Category:(generic category name)|{{PAGENAME}}]]</includeonly>
to:
{{#ifeq:{{NAMESPACE}}|User|[[Category:(generic category name)|{{PAGENAME}}]]}}
That way, the category is only applied if the page begins with "User:" and is not applied anywhere else. See this diff for how I did this on Template:User Lyssa. —Dr Ishmael User Dr ishmael Diablo the chicken.png 16:18, 25 July 2012 (UTC)
Alright, I'll go through and apply that where needed. Thanks. -- User Nineaxis Icon Mesmer.jpg Nineaxis (talk) 17:03, 25 July 2012 (UTC)