Difference between revisions of "Template:Examples"
Jump to navigation
Jump to search
(test) |
|||
Line 11: | Line 11: | ||
{{#ifexpr:{{#ask: [[-Has key properties::{{PAGENAME}}]]|format=count}}>0| | {{#ifexpr:{{#ask: [[-Has key properties::{{PAGENAME}}]]|format=count}}>0| | ||
<!-- Key properties specified, so use them to display the document table --> | <!-- Key properties specified, so use them to display the document table --> | ||
− | {{ | + | {{ask |
+ | |expr= [[Constitutes::{{PAGENAME}}]] OR [[DocType::{{PAGENAME}}]] OR [[DocType::{{Uncapitalize|{{PAGENAME}}}}]] | ||
|mainlabel=Example | |mainlabel=Example | ||
− | |||
|format=table | |format=table | ||
+ | |columns={{#arraymaptemplate:{{#show: {{PAGENAME}}|?Has key properties}}|AskItem|, |/}} | ||
}} | }} | ||
<!-- | <!-- |
Revision as of 15:03, 31 December 2013
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