Template:Suppress categories/doc: Difference between revisions

From Caves of Qud Wiki
Jump to navigation Jump to search
mNo edit summary
(Category:Template documentation)
 
Line 8: Line 8:
* Use this template on documentation pages for templates that apply a category - you can wrap your template example in <code><nowiki>{{suppress categories|  }}</nowiki></code> to prevent it from showing up on the category list with other "real" pages.
* Use this template on documentation pages for templates that apply a category - you can wrap your template example in <code><nowiki>{{suppress categories|  }}</nowiki></code> to prevent it from showing up on the category list with other "real" pages.


[[Category:Documentation templates]][[Category:Templates]]
[[Category:Documentation templates]][[Category:Template documentation]]

Latest revision as of 07:17, 4 April 2022

This template was adapted from wikipedia.

See here for the original template documentation.

This template strips categories from wikitext. For example, if passed the code "foo[[Category:Some category]]", it will return only "foo". It can be used to strip categories from templates as well; if passed the code "{{my template}}", it will return the template output minus the categories.

Common Use Cases

  • Use this template on documentation pages for templates that apply a category - you can wrap your template example in {{suppress categories| }} to prevent it from showing up on the category list with other "real" pages.