Jump to content

Template:Has objectClass: Difference between revisions

From Deep Politics Wiki
WikiSpooks>Robin
category
 
WikiBot (talk | contribs)
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: {{#show: {{PAGENAME}} | ?Has objectClass | link=none}}|{{{1|}}}|True}}</includeonly>
</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... }}