Difference between revisions of "Template:Victims"

From Wikispooks
Jump to navigation Jump to search
(like comparator)
(Use SmartNonLink to add " marks if needed)
Line 6: Line 6:
 
[[Category:Semantic Templates]]</noinclude><includeonly>{{SMWDocSection
 
[[Category:Semantic Templates]]</noinclude><includeonly>{{SMWDocSection
 
|expression= [[Victim of::{{PAGENAME}}]] OR [[Has deathCause::~*{{PAGENAME}}*]]
 
|expression= [[Victim of::{{PAGENAME}}]] OR [[Has deathCause::~*{{PAGENAME}}*]]
|caption_singular= A victim of {{PAGENAME}} on Wikispooks
+
|caption_singular= A victim of {{SmartNonLink|{{PAGENAME}}}} on Wikispooks
|caption_plural= Victims of {{PAGENAME}} on Wikispooks
+
|caption_plural= Victims of {{SmartNonLink|{{PAGENAME}}}} on Wikispooks
 
|mainlabel = Title
 
|mainlabel = Title
 
|properties={{#if: {{#show: {{PAGENAME}} | ?Has keyProperties}}|{{#show: {{PAGENAME}} | ?Has keyProperties}}|Description}}
 
|properties={{#if: {{#show: {{PAGENAME}} | ?Has keyProperties}}|{{#show: {{PAGENAME}} | ?Has keyProperties}}|Description}}
 
|headers={{#if: {{#show: {{PAGENAME}} | ?Has keyProperties}}|{{#show: {{PAGENAME}} | ?Has keyPropertyHeaders}}|Description}}}}</includeonly>
 
|headers={{#if: {{#show: {{PAGENAME}} | ?Has keyProperties}}|{{#show: {{PAGENAME}} | ?Has keyPropertyHeaders}}|Description}}}}</includeonly>

Revision as of 14:56, 31 January 2018

This template places a list of people who are victims of {{PAGENAME}}. It has no parameters.

If the page name is referenced by any property:victim of, it makes a section:

Victim(s) of {{PAGENAME}} on Wikispooks

Plus a table of the affected person(s) underneath