Template:IfStrCategory
Jump to navigation
Jump to search
Purpose
[edit]- This template checks if the string provided as a parameter contains substring "Category:", "Cat:", or neither.
- Note: This template only analyzes a string; it does no verification to determine if a category bearing that name actually exists.
Examples
[edit]{{IfStrCategory|Category:Northern Cyprus}}
Category:Northern Cyprus{{IfStrCategory|Cat:Northern Cyprus}}
Cat:Northern Cyprus{{IfStrCategory|Category:}}
Category:{{IfStrCategory|Cat:}}
Cat:{{IfStrCategory|Cats in Northern Cyprus}}
{{IfStrCategory|Category}}
Category{{IfStrCategory|Cat}}
Cat{{IfStrCategory|Cats}}
'iftrue' options
[edit]{{IfStrCategory|Cat:Northern Cyprus}}
Cat:Northern Cyprus{{IfStrCategory|Cat:Northern Cyprus|iftrue=expand}}
Category:Northern Cyprus{{IfStrCategory|Cat:Northern Cyprus|iftrue=extract}}
Cat{{IfStrCategory|Cat:Northern Cyprus|iftrue=strip}}
Northern Cyprus