Difference between revisions of "Template:SMWDefaultMarkup"

From Wikispooks
Jump to navigation Jump to search
(Fix?)
Line 3: Line 3:
 
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.</noinclude><includeonly>
 
[[Property:Has key properties]] and [[Property:Has key property headers]] so that the examples format nicely.</noinclude><includeonly>
{{#ifexpr: {{#show: {{PAGENAME}} |?-DocType}}|xx|y}}</includeonly>
+
{{#ifexpr: {{#ask: [[DocType::article]]|format=count}}>0|{{SMWData|KeyProperties=Is about/Has author/Has publication date/Description|KeyPropertyHeaders=Subject(s)/Author(s)/Published/Description}}</includeonly>

Revision as of 18:31, 31 December 2013

This template adds SMWData to the page, based on the existing data. It has no parameters. It is currently very simple.

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.