Open main menu

UESPWiki β

Template:Trim Category Text

SummaryEdit

This template trims the specified leading text from every entry in the category. If the category doesn't start with the specified text, no changes are made.

ParametersEdit

Trim Category Text
Parameter Scope Description
1 required The text to trim. If the leading text doesn't match this, or if it matches the current category entry precisely, nothing will be trimmed. , so trimming UESPWiki:Archives from a category entry named UESPWiki:Archives will do nothing. For subcategories, always include the final /.

ExamplesEdit

Using the following three entries as an example:

IncorrectEdit

{{Trim Category Text|UESPWiki:Administrator Noticeboard/Archives}}

Produces:

CorrectEdit

{{Trim Category Text|UESPWiki:Administrator Noticeboard/Archives/}}

Produces: