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
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:
- UESPWiki:Administrator Noticeboard/Archives
- UESPWiki:Administrator Noticeboard/Archives/Archive Protection
- UESPWiki:Archive/CP Noticeboards
IncorrectEdit
{{Trim Category Text|UESPWiki:Administrator Noticeboard/Archives}}
Produces:
CorrectEdit
{{Trim Category Text|UESPWiki:Administrator Noticeboard/Archives/}}
Produces: