Jump to content

Template:Display class icon: Difference between revisions

From Deep Politics Wiki
WikiSpooks>Robin
m t
 
WikiBot (talk | contribs)
m Plain formatting, no semantic markup
Tag: Replaced
 
Line 1: Line 1:
<noinclude>[[category:Semantic Utility Templates]]'''This is a semantic utility template to return the plaintext name of an icon for the page.'''<br/>
<includeonly></includeonly><noinclude>
The logic is:
Icon and rating queries removed. They needed Semantic MediaWiki.
* If the page has a [[Property:Has objectClass|Has objectClass]] property, then use that.
</noinclude>
* Else look at the namespace, and use that.</noinclude><includeonly>{{#if: {{{1|}}}|File:{{#if: {{#show: {{{1}}}|?Has objectClass2}}|{{#show: {{{1}}}|?Has objectClass2}}.png|{{#switch: {{NAMESPACE:{{{1|}}}}}
| =Main.png
| Talk = Talk.png
| User = User.png
| User talk =User_talk.png
| Project =WikispooksPage.png
| Project talk=WikispooksPage_talk.png
| File = File.png
| File talk=File_talk.png
| MediaWiki = Property.png
| MediaWiki talk = Property.png
| Help = Help.png
| Help talk=Help_png.png
| Category =Category.png
| Category talk=Category_talk.png
| Template =Template.png
| Template talk=Template_talk.png
| Property = Property.png
| Property talk = Property_talk.png
| Type
| Type talk
| Form
| Form talk
| Concept
| Concept talk = Template.png
| Document = Document.png
| Document talk = Document_talk.png
| Wikipedia = Property.png
| Wikipedia talk = Property.png
| Test = Test.png
| Test talk = Test_talk.png
| Widget
| Widget talk
| Layer
| Layer talk
| Module
| Module talk = Template.png
}}}}}}</includeonly>

Latest revision as of 22:34, 24 September 2026

Icon and rating queries removed. They needed Semantic MediaWiki.