Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
welcome
Community portal
village pump
participate
Upload file
Recent changes
latestfiles
Random File
contact
Special pages
Islamical Commons
Search
Search
English
Appearance
Create account
Log in
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Editing
Template
:
Suppress categories/doc
Template
Discussion
English
Read
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit source
View history
General
What links here
Related changes
Upload file
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{Lua|Module:Suppress categories}} {{TemplateBox |1 = 1 |1label-en= input text |1type = content |1stat = required |name = Suppress categories |desc-td = Removes category links from wikitext, including categories generated by templates. |desc-td-en = This template strips categories from wikitext. It can also remove categories generated by transcluded templates. |desc = This template strips [[w:en:Help:Category|categories]] from [[w:en:Help:Wiki markup|wikitext]]. For example, if passed the code "<code><nowiki>foo[[Category:Some category]]</nowiki></code>", it will return only "<code>foo</code>". It can be used to strip categories from templates as well; if passed the code "<code><nowiki>{{my template}}</nowiki></code>", it will return the template output minus the categories. The template properly handles categories escaped with the [[w:en:Help:Colon trick|colon trick]], categories whose names include invalid characters such as "<code>></code>", and categories that are surrounded with [[w:en:WP:NOWIKI|nowiki]] tags. However, it does not support complex wikitext such as nested links or [[w:en:WP:MAGIC|magic words]] like <code><nowiki>__TOC__</nowiki></code>. Even so, it should still remove the vast majority of categories from any given wikitext. |desc-td-en = This template strips categories from wikitext. For example, if passed the code "<nowiki>foo[[Category:Some category]]</nowiki>", it will return only "foo". It can be used to strip categories from templates as well; if passed the code "<nowiki>{{my template}}</nowiki>", it will return the template output minus the categories. |example = <nowiki>foo[[Category:Piped link|bar]]</nowiki> |example-value = {{suppress categories|foo[[Category:Piped link|bar]]}} |namespace = all |usergroup = all |useTemplateData = only }}
Summary:
Please note that all contributions to Islamical Commons may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
commons:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Pages included on this page:
Template:Clickable button
(
edit
)
Template:Clickable button/iconclass
(
edit
)
Template:Documentation subpage
(
edit
)
Template:Documentation subpage/en
(
edit
)
Template:Documentation subpage/lang
(
edit
)
Template:Documentation subpage/layout
(
edit
)
Template:Edit
(
edit
)
Template:Fallback
(
edit
)
Template:GetFallback
(
edit
)
Template:GetFallback2
(
edit
)
Template:Lua
(
edit
)
Template:Mbox
(
edit
)
Template:Str left
(
edit
)
Template:Suppress categories
(
edit
)
Template:T/main
(
edit
)
Template:TRANSLATIONLANGUAGE
(
edit
)
Template:TemplateBox
(
edit
)
Template:TemplateBox/i18n
(
edit
)
Template:TemplateBox/layout
(
edit
)
Template:TemplateBox/styles.css
(
edit
)
Template:TemplateDataInfo/i18n/en
(
edit
)
Template:TemplateDataInfo/toggler
(
edit
)
Template:Tl
(
edit
)
Template:Tlf
(
edit
)
Template:W
(
edit
)
Module:Arguments
(
edit
)
Module:Autotranslate
(
edit
)
Module:Error
(
edit
)
Module:JSON
(
edit
)
Module:Languages
(
edit
)
Module:List
(
edit
)
Module:Lua banner
(
edit
)
Module:Message box
(
edit
)
Module:Message box/configuration
(
edit
)
Module:Message box/mbox.css
(
edit
)
Module:Suppress categories
(
edit
)
Module:TNT
(
edit
)
Module:TableTools
(
edit
)
Module:TemplateBox
(
edit
)
Module:Transclude
(
edit
)
Module:Yesno
(
edit
)
Search
Search
Editing
Template
:
Suppress categories/doc
Add languages
Add topic