Difference between revisions of "Template:SMWDefaultMarkup"

From Wikispooks
Jump to navigation Jump to search
({{display date}})
(tidy)
Line 1: Line 1:
 
<noinclude>'''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.
 
<noinclude>'''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.
 
+
<hr/>
#The page is assigned a [[Property:Has fullpagename| ]] set to its full pagename
+
The following properties are set:
 
+
* [[Property:Has fullpagename]]
The following Display Properties are set:
+
* [[Property:Display date]]
# [[Template:Display date]]
+
* [[Property:ON display date]]
<!--#If the page is an allowed [[Property:DocType]], it sets
+
</noinclude><includeonly>[[Has fullpagename::{{FULLPAGENAME}}| ]]<!--  
[[Property:Has key properties]] and [[Property:Has key property headers]] so that the examples format nicely.
+
SET DISPLAY PROPERTIES -->{{Display date}}{{ON display date}}</includeonly>
-->
 
</noinclude><includeonly>[[Has fullpagename::{{FULLPAGENAME}}| ]]
 
<!-- THE BELOW IS A SLOW AND RESOURCE EXPENSIVE HAMMER TO CRACK A NUT. LESS SEMANTIC WEB DATA IS GENERALLY BETTER THAN MORE!
 
{{#ifexpr: {{#ask: [[DocType::{{PAGENAME}}]]|format=count}}>0|{{SMWData|KeyProperties=Is about/Has author/Has publication date/Description|KeyPropertyHeaders=Subject(s)/Author(s)/Published/Description}}}} -->
 
 
 
<!-- SET DISPLAY PROPERTIES -->
 
{{Display date}}
 
</includeonly>
 

Revision as of 19:45, 3 January 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: