Template:Has objectClass: Difference between revisions
Appearance
WikiSpooks>Robin category |
m Plain formatting, no semantic markup |
||
| Line 4: | Line 4: | ||
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: | </noinclude><includeonly>{{#ifeq: |{{{1|}}}|True}}</includeonly> | ||
Latest revision as of 22:34, 24 September 2026
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... }}