Difference between revisions of "Template:Examples"
Jump to navigation
Jump to search
m (Text replacement - "Page name" to "Page name") |
(Better default for when keyProperties is not set) |
||
(14 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <noinclude>'''This template can be used on any pages which might have | + | <noinclude>{{TemplateProblem|This is not displaying any results for [[Journalist]]. It should do.}} |
+ | '''This template can be used on any pages which might have examples.''' It has no parameters. | ||
− | If there are | + | If there are examples, it places a heading:<br/> |
− | ==Example(s) on | + | ==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><!-- The below test is to prevent re-displaying of data which will be displayed by {{JobHolders}}... | </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 | --><includeonly>{{#ifexpr: {{#ask: [[Has jobTitle::{{PAGENAME}}]]|format=count}}=0|{{SMWDocSection | ||
− | |expression= [[Constitutes::{{PAGENAME}}]] | + | |expression= [[Constitutes::{{PAGENAME}}]] OR [[Has posting::{{PAGENAME}}]] |
− | | | + | |caption_singular=An example |
− | | | + | |caption_plural=Examples |
+ | |limit=200 | ||
|mainlabel = Page name | |mainlabel = Page name | ||
− | |properties={{#if: {{#show: {{PAGENAME}} | ?Has keyProperties}}|{{#show: {{PAGENAME}} | ?Has keyProperties}}| | + | |sort={{#show: {{PAGENAME}} | ?Has keySort}} |
− | |headers={{#if: {{#show: {{PAGENAME}} | ?Has keyProperties}}|{{#show: {{PAGENAME}} | ?Has keyPropertyHeaders}}| | + | |properties={{#if: {{#show: {{PAGENAME}} | ?Has keyProperties}}|{{#show: {{PAGENAME}} | ?Has keyProperties}}|Description}} |
+ | |headers={{#if: {{#show: {{PAGENAME}} | ?Has keyProperties}}|{{#show: {{PAGENAME}} | ?Has keyPropertyHeaders}}|Description}}}}}}</includeonly> |
Revision as of 01:23, 31 March 2019
This template has problems: This is not displaying any results for Journalist. It should do. Use the discussion page to see the debate about this. |
This template can be used on any pages which might have examples. It has no parameters.
If there are examples, it places a heading:
Example(s) on Wikispooks
Plus a table of examples under this heading