Difference between revisions of "Template:Examples"

From Wikispooks
Jump to navigation Jump to search
m
(test refinement)
Line 4: Line 4:
 
==Example(s) on WikiSpooks==
 
==Example(s) on WikiSpooks==
 
Plus a table of examples under this heading[[Category:Semantic Templates]]
 
Plus a table of examples under this heading[[Category:Semantic Templates]]
</noinclude><includeonly>{{SMWDocSection
+
</noinclude><!-- The below test is to prevent re-displaying of data which will be displayed by {{JobHolders}}...
 +
--><includeonly>{{#ifexpr: {{#ask: [[Has jobTitle::{{PAGENAME}]]|format=count}}>0||{{SMWDocSection
 
|expression= [[Constitutes::{{PAGENAME}}]]
 
|expression= [[Constitutes::{{PAGENAME}}]]
 
|captionSingular=An example
 
|captionSingular=An example
Line 10: Line 11:
 
|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}}}}}}</includeonly>

Revision as of 16:37, 1 June 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