Template:TrimNamespace

From AtlasWiki
Revision as of 15:51, 21 April 2014 by TheodoreMurdock (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This template is designed to trim off the namespace from a string, for example, "XCSG:Foo" will be trimmed to "Foo". If no colon is present (or, for technical reasons, if the string starts or ends with a colon and has no colon in the middle of the string), it returns the original string.

Note that this template just looks for a colon and returns what comes after the colon; page names that themselves include colons may cause undesirable results. {{{1}}}