Difference between revisions of "Template:ExampleObjects"

From Wikispooks
Jump to navigation Jump to search
m (t)
(Support keySort and keyOrder properties)
Line 9: Line 9:
 
|mainlabel = Page name
 
|mainlabel = Page name
 
|properties={{#if: {{#show: {{PAGENAME}} | ?Has keyProperties}}|{{#show: {{PAGENAME}} | ?Has keyProperties}}|Has documentType/Has publicationDate/Has author/Is about/Description}}
 
|properties={{#if: {{#show: {{PAGENAME}} | ?Has keyProperties}}|{{#show: {{PAGENAME}} | ?Has keyProperties}}|Has documentType/Has publicationDate/Has author/Is about/Description}}
|headers={{#if: {{#show: {{PAGENAME}} | ?Has keyProperties}}|{{#show: {{PAGENAME}} | ?Has keyPropertyHeaders}}|Type/Date/Author(s)/Subject(s)/Description}}}}</includeonly>
+
|headers={{#if: {{#show: {{PAGENAME}} | ?Has keyProperties}}|{{#show: {{PAGENAME}} | ?Has keyPropertyHeaders}}|Type/Date/Author(s)/Subject(s)/Description}}
 +
|sort={{#show: {{PAGENAME}} | ?Has keySort}}
 +
|order={{#show: {{PAGENAME}} | ?Has keyOrder}}
 +
}}</includeonly>

Revision as of 14:42, 17 September 2014

This template can be used on any pages which might have example documents. It has no parameters.

If there are any example documents, it places a heading:

Example(s) on WikiSpooks

Plus a table of examples under this heading