Template talk:Water geohash

From Geohashing
Revision as of 18:07, 6 January 2009 by imported>Jevanyn (if {{PAGENAME}}.indexOf("User:") ...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Identifying users as pirates

I wanted to change the template, so that if the current page was a user page, then the Pirates category would be added. However, there don't seem to be any string-comparison functions in the wiki template langauge, and my PHP fu is weak. Something like this:

{{#if "{{PAGENAME}}" ~ "User:.*"|[[Category:Pirates]]|}}

Anyone? -- Jevanyn