FANDOM


Forums > Senate Hall archive > SH Archive/Technical note: Suppressing template-provided categories


It has been a long-standing problem that subpages of Wookieepedia:Template messages were added to all categories that the displayed templates dictated.

However, as a side-effect of the random choice tag (currently used on the Main Page to alternate between the "sky" and "water" styles), any categories that appear inside the options are stripped.

Therefore, to discard template-provided categories, one can use this syntax:

<choose><option>{{templatename|params}}</option></choose>

I changed Wookieepedia:Template messages/Maintenance as an example. Unfortunately, it can't be done within parameterized templates, as parameters between the tags are not substituted. So, we have to use <choose><option>{{template display box|...}}</option></choose> instead of just {{template display box|...}} for every template showcased.

I'd like to know if it's acceptable before I deploy Artoo to fix the other pages. - Sikon 17:10, 11 January 2007 (UTC)

  • Fine by me, although I'd be just as happy to see the random choice tag use be gone. — SparqMan Talk 17:48, 11 January 2007 (UTC)
    • So you're just wanting to use this on template message pages and other pages showing templates that don't really go in those categories, correct? If so, fine by me too. —Xwing328(Talk) 20:05, 11 January 2007 (UTC)

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.