Difference between revisions of "Template:SMWDefaultMarkup"

From Wikispooks
Jump to navigation Jump to search
(fix)
({{display date}})
Line 2: Line 2:
  
 
#The page is assigned a [[Property:Has fullpagename| ]] set to its full pagename
 
#The page is assigned a [[Property:Has fullpagename| ]] set to its full pagename
 +
 +
The following Display Properties are set:
 +
# [[Template:Display date]]
 
<!--#If the page is an allowed [[Property:DocType]], it sets  
 
<!--#If the page is an allowed [[Property:DocType]], it sets  
 
[[Property:Has key properties]] and [[Property:Has key property headers]] so that the examples format nicely.
 
[[Property:Has key properties]] and [[Property:Has key property headers]] so that the examples format nicely.
Line 8: Line 11:
 
<!-- THE BELOW IS A SLOW AND RESOURCE EXPENSIVE HAMMER TO CRACK A NUT. LESS SEMANTIC WEB DATA IS GENERALLY BETTER THAN MORE!  
 
<!-- 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}}}} -->
 
{{#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>
 
</includeonly>

Revision as of 18:54, 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.

  1. The page is assigned a set to its full pagename

The following Display Properties are set:

  1. Template:Display date