Difference between revisions of "Template:Examples"

From Wikispooks
Jump to navigation Jump to search
(simplify - back almost to square 1 on this)
(trim heading names)
Line 6: Line 6:
 
</noinclude><includeonly>{{SMWDocSection
 
</noinclude><includeonly>{{SMWDocSection
 
|expression= [[Constitutes::{{PAGENAME}}]]
 
|expression= [[Constitutes::{{PAGENAME}}]]
|captionSingular=An example on WikiSpooks
+
|captionSingular=An example
|captionPlural=Examples on WikiSpooks
+
|captionPlural=Examples
 
|mainlabel = Page name
 
|mainlabel = Page name
 
|properties={{#if: {{#show: {{PAGENAME}} | ?Has key properties}}|{{#show: {{PAGENAME}} | ?Has key properties}}|DocType/Has publication date/Has author/Is about/Description}}
 
|properties={{#if: {{#show: {{PAGENAME}} | ?Has key properties}}|{{#show: {{PAGENAME}} | ?Has key properties}}|DocType/Has publication date/Has author/Is about/Description}}
 
|headers={{#if: {{#show: {{PAGENAME}} | ?Has key properties}}|{{#show: {{PAGENAME}} | ?Has key property headers}}|Type/Date/Author(s)/Subject(s)/Description}}
 
|headers={{#if: {{#show: {{PAGENAME}} | ?Has key properties}}|{{#show: {{PAGENAME}} | ?Has key property headers}}|Type/Date/Author(s)/Subject(s)/Description}}
 
}}</includeonly>
 
}}</includeonly>

Revision as of 08:19, 2 January 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