Template:C0: Difference between revisions
No edit summary |
m (Protected "Template:C0" ([edit=sysop] (indefinite) [move=sysop] (indefinite))) |
||
| (12 intermediate revisions by one other user not shown) | |||
| Line 1: | Line 1: | ||
{{#if:{{{1|}}} | <includeonly>{{#if:{{{1|}}} | ||
|{{#switch:{{{type}}} | |{{#switch:{{{type}}} | ||
|nonperformer= | |nonperformer|fictional= | ||
| | |{{#ifeq:{{NAMESPACE}}|{{ns:0}}|[[Category:{{{1}}}]]}} | ||
}} | }} | ||
}} | }}</includeonly><noinclude> | ||
{{documentation}} | |||
</noinclude> | |||
Latest revision as of 23:20, 14 October 2013
- This documentation is transcluded from Template:C0/doc. (edit | history)
Usage
This template is used within {{Biobox new}} to prevent categories from being added if the biobox is used on other pages than articles.
Furthermore, it prevents categories from being added if the type parameter of the biobox is set to nonperformer or fictional.
- Example
In former biobox versions, if natural tits = yes, [[Category:Natural tits]] would have been executed.
If [[Category:Natural tits]] is replaced by {{c0|Natural tits|type={{{type}}}}}, the Natural tits category is only added if the biobox is displayed in an article.
If it is used on a category page (for example Category:Gréta Istvándi models, which includes Gréta Istvándi, the categories are not added. This prevents photographer categories or user pages with bioboxes from being listed in performer categories.