Tom, You are the man! Thanks for your assistance :) It works as prescribed and all is happy and well in my MediaWiki.
Thanks again for being apart of an awesome community that is always willing to help On Tue, Feb 14, 2012 at 9:21 PM, Tom Hutchison <[email protected]> wrote: > 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 > _______________________________________________ MediaWiki-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
