Many thanks to our Patrons who cover ~2/3 of our hosting bill. Please join them if you can.
Difference between revisions of "Template:Has objectClass"
Jump to navigation
Jump to search
(Created page with "<noinclude>'''This is a simple check of Property:Has objectClass.'''<br/> It takes one parameter, the objectClass to check.<br/><br/> Usage:<br/> :<nowiki>{{#if: {{Has obj...") |
(category) |
||
Line 1: | Line 1: | ||
− | <noinclude>'''This is a simple check of [[Property:Has objectClass]].'''<br/> | + | <noinclude>Category:Semantic Utility Templates'''This is a simple check of [[Property:Has objectClass]].'''<br/> |
− | It takes one parameter, the objectClass to check.<br/><br/> | + | It takes one parameter, the objectClass to check.<br/> |
+ | Currently, only a single object class is supported.<br/><br/> | ||
Usage:<br/> | Usage:<br/> | ||
:<nowiki>{{#if: {{Has objectClass|Year}}| ...Code for pages of type 'year'... | ...code otherwise... }}</nowiki> | :<nowiki>{{#if: {{Has objectClass|Year}}| ...Code for pages of type 'year'... | ...code otherwise... }}</nowiki> | ||
</noinclude><includeonly>{{#ifeq: {{#show: {{PAGENAME}} | ?Has objectClass | link=none}}|{{{1|}}}|True}}</includeonly> | </noinclude><includeonly>{{#ifeq: {{#show: {{PAGENAME}} | ?Has objectClass | link=none}}|{{{1|}}}|True}}</includeonly> |
Latest revision as of 10:42, 31 August 2016
Category:Semantic Utility TemplatesThis is a simple check of Property:Has objectClass.
It takes one parameter, the objectClass to check.
Currently, only a single object class is supported.
Usage:
- {{#if: {{Has objectClass|Year}}| ...Code for pages of type 'year'... | ...code otherwise... }}