Template:SplitP (Split Parenthesis) is a string parsing template. It extracts the text from inside or outside the parenthesis and returns it.
Usage
It accepts one mandatory string parameter and one optional string parameter.
1is the string to be parsed. There can be only one set of parenthesis, and they must come last in the string.2(default:out) controls which portion of the string is returned, either what'soutside the parenthesis orinside. Any other input triggers an error.
Return
{{SplitP|Human (Cheerleader)|out}} returns: Human
{{SplitP|Human (Cheerleader)|in}} returns: Cheerleader
{{SplitP|Human|out}} returns: Human
{{SplitP|Human|in}} returns: Human
{{SplitP|Human (Cheerleader)|foo}} returns: Error!
foo is not a valid parameter for Template:SplitP!The documentation above was transcluded from Template:SplitP/Documentation. [edit]
