Hurm, I guess I maybe did not explain well, if article/page lives inside of
  the  "STAR" namespace id like it to just not show any page with that, my
  other thought would be some how to make the template smart and know that if
  the title/pagename contains "^STAR:" to not add it to the category

  I know perl so my best explanation would be

  if($title =~ /^STAR:/i) {
              Do_no_add_to_cat;
  } else {
            Add_to_cat;
  }

  is this something that ParserFunctions
  <http://www.mediawiki.org/wiki/Extension:ParserFunctions>can do?
Oops, sorry about the first answer. Yes, parserfunctions extension can handle 
it. Combined with a {{NAMESPACE}} magic word.

It would look like this.

{{#ifeq:{{NAMESPACE}}|STAR|[[Category:This Category]]|[[Category:That 
Category]]}}

This tells the parser, if Namespace is STAR, then This category, not equal, 
That Category

For your example you would have to use a double pipe.

{{#ifeq:{{NAMESPACE}}|STAR||[[Category:That Category]]}}

This tells the parser, if Namespace is STAR, then nothing(there is nothing 
between the two || characters), not equal, That category.

Tom
_______________________________________________
MediaWiki-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l

Reply via email to