Difference between revisions of "Template:SMWDefaultMarkup"

From Wikispooks
Jump to navigation Jump to search
Line 2: Line 2:
  
 
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: {{#show: {{PAGENAME}} |?-DocType}}|xx|y}}</includeonly>

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