Difference between revisions of "Template:SMWDefaultMarkup"

From Wikispooks
Jump to navigation Jump to search
(Switch to ObjectClass2)
(Don't set Property:Display icon, not needed at the moment)
Line 10: Line 10:
 
* [[Property:Display lifespan]]
 
* [[Property:Display lifespan]]
 
</noinclude><includeonly>[[Has fullPageName::{{FULLPAGENAME}}| ]]<!--[[Has pageName::{{PAGENAME}}| ]]-->[[Has rootFullPageName::{{#titleparts: {{FULLPAGENAME}} | 1 }}| ]]<!--  
 
</noinclude><includeonly>[[Has fullPageName::{{FULLPAGENAME}}| ]]<!--[[Has pageName::{{PAGENAME}}| ]]-->[[Has rootFullPageName::{{#titleparts: {{FULLPAGENAME}} | 1 }}| ]]<!--  
SET DISPLAY PROPERTIES -->{{Display docType}}{{Display date}}{{ON display date}}{{#if: {{#ask: [[Has objectClass2::{{PAGENAME}}]]}}|[[Display icon::Image:{{#ask: [[Has objectClass2::{{PAGENAME}}]]}}.png| ]]|[[Display icon::Image:Torchlight_help_icon.png| ]]}}{{Display lifespan}}</includeonly>
+
SET DISPLAY PROPERTIES -->{{Display docType}}{{Display date}}{{ON display date}}<!--
 +
CURRENTLY UNUSED. NOT ACTUALLY NEEDED, ANF THE BELOW CODE DOESN'T WORK AS INTENDED
 +
{{#if: {{#ask: [[Has objectClass2::{{PAGENAME}}]]}}|[[Display icon::Image:{{#ask: [[Has objectClass2::{{PAGENAME}}]]}}.png| ]]|[[Display icon::Image:Torchlight_help_icon.png| ]]}}
 +
-->{{Display lifespan}}</includeonly>

Revision as of 07:23, 21 September 2014

This template adds SMWData to the page, based on the existing data. It has no parameters. It is currently simple, and should probably remain that way, because it affects so many pages and has the potential to tie up the SMW jobs queue.


The following properties are set: